bc79dcb234efdd826f79e2b2ec20e9bc5dca41d6
[gnulib.git] / ChangeLog
1 2010-11-13  Jim Meyering  <meyering@redhat.com>
2
3         tests: avoid test failure on Solaris 10 due to lack of PATH export
4         * tests/test-update-copyright.sh: Don't forget to export PATH.
5
6         init.sh: ensure that IFS is defined, just in case...
7         * tests/init.sh (setup_): Ensure that IFS is defined,
8         so that saving and restoring it works as expected.  This
9         appears to be useful at least for an old version of dash
10         from a long time ago (RH 6).  See here for details:
11         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
12
13         maint.mk: tighten "test a == b" check
14         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
15         test to files that contain something like #!/bin/sh.
16         Without this, coreutils would get two false positives in
17         the comments of C source files.
18
19 2010-11-12  Eric Blake  <eblake@redhat.com>
20
21         bootstrap: fix typo in previous attempt
22         * build-aux/bootstrap (buildreq): Correct the grouping.
23         Reported by Paul Eggert.
24
25         maintainer-makefile: prohibit test x == x
26         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
27         Based on a report by Matthias Bolte.
28
29         bootstrap: allow FreeBSD gzip
30         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
31         which has no '.' and goes to stderr.
32         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
33         Reported by Matthias Bolte.
34
35         maintainer-makefile: check for i18n setup
36         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
37         will likely work.
38
39 2010-11-12  Bruno Haible  <bruno@clisp.org>
40
41         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
42         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
43         * lib/nanosleep.c (nanosleep): Likewise.
44
45 2010-11-11  Bruno Haible  <bruno@clisp.org>
46
47         fcntl-h: Fix for use of C++ on glibc systems.
48         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
49         also on glibc systems in C++ mode.
50         Reported by Gary V. Vaughan <gary@gnu.org>.
51
52 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
53
54         mknod: avoid false failure with dash
55         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
56
57 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
58
59         unlink: Fix "is it should" typo in diagnostic.
60         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
61         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
62
63 2010-11-11  Bruno Haible  <bruno@clisp.org>
64
65         Tests for module 'strerror_r-posix'.
66         * modules/strerror_r-posix-tests: New file.
67         * tests/test-strerror_r.c: New file.
68         * tests/test-string-c++.cc: Check the signature of strerror_r.
69
70         New module 'strerror_r-posix'.
71         * lib/string.in.h (strerror_r): New declaration.
72         * lib/strerror_r.c: New file.
73         * m4/strerror_r.m4: New file.
74         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
75         of strerror_r.
76         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
77         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
78         * modules/strerror_r-posix: New file.
79         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
80         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
81         * doc/posix-functions/strerror_r.texi: Mention the new module and the
82         portability problems.
83
84 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
85
86         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
87         line is also considered for output. Quoted function name in shell
88         command, so temporary files for functions like MyClass::operator()
89         are removed correctly without errors.
90
91 2010-11-09  Bruno Haible  <bruno@clisp.org>
92
93         * doc/posix-functions/strerror.texi: List more failing platforms.
94
95         * doc/posix-functions/strerror.texi: Add a comment.
96
97 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
98
99         fdopendir: fix bug on MacOS X when low on file descriptors
100
101         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
102         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
103         All callers changed.
104         (fdopendir): Invoke save_cwd at the top level, not after using
105         multiple dup() calls to use up file descriptors.  Then retry
106         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
107         less than the maximum number of open file descriptors, because
108         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
109         on Mac OS X 10.6.4 for tar 1.24
110         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
111         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
112         and for tar 1.25
113         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
114
115 2010-11-07  Bruno Haible  <bruno@clisp.org>
116
117         vasnprintf: Support I flag on glibc systems.
118         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
119         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
120         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
121         snprintf function.
122         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
123         glibc systems.
124         * tests/test-vasnprintf-posix3.c: New file.
125         * modules/vasnprintf-posix-tests (Files): Add it.
126         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
127
128 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
129
130         [html] Fix copy/paste bug: Use unique name for compiler warnings.
131         * MODULES.html.sh: For compiler warnings, use name
132         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
133
134 2010-11-05  Eric Blake  <eblake@redhat.com>
135
136         ceil, floor: avoid spurious failure with icc
137         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
138         [denormals-as-zero] when optimizing without -mieee-fp option.
139         * tests/test-floorf2.c (floorf_reference): Likewise.
140         * tests/test-ceilf1.c (dummy): New function.
141         (main): Use it to outsmart icc's optimization.
142         * tests/test-floorf1.c (dummy, main): Likewise.
143
144         tests: require working signbit
145         * modules/ceilf-tests (Depends-on): Add signbit.
146         * modules/ceill-tests (Depends-on): Likewise.
147         * modules/floorf-tests (Depends-on): Likewise.
148         * modules/floorl-tests (Depends-on): Likewise.
149         * modules/round-tests (Depends-on): Likewise.
150         * modules/roundf-tests (Depends-on): Likewise.
151         * modules/roundl-tests (Depends-on): Likewise.
152         * modules/trunc-tests (Depends-on): Likewise.
153         * modules/truncf-tests (Depends-on): Likewise.
154         * modules/truncl-tests (Depends-on): Likewise.
155
156         strtod: work around icc bug
157         * lib/strtod.c (minus_zero): Define to working value.
158         (strtod): Use it to avoid icc bug.
159
160         copysign: enhance tests
161         * modules/copysign-tests (Files): Add minus-zero.h.
162         * tests/test-copysign.c (main): Also test zeros.
163
164 2010-11-04  Eric Blake  <eblake@redhat.com>
165
166         ceil, floor, round, trunc: enhance tests of -0
167         * tests/test-ceilf1.c (main): Ensure correct sign of result.
168         * tests/test-ceill.c (main): Likewise.
169         * tests/test-floorf1.c (main): Likewise.
170         * tests/test-floorl.c (main): Likewise.
171         * tests/test-round1.c (main): Likewise.
172         * tests/test-roundf1.c (main): Likewise.
173         * tests/test-roundl.c (main): Likewise.
174         * tests/test-trunc1.c (main): Likewise.
175         * tests/test-truncf1.c (main): Likewise.
176         * tests/test-truncl.c (main): Likewise.
177
178 2010-11-04  Eric Blake  <eblake@redhat.com>
179
180         frexp, tests: work around ICC bug with -zero
181         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
182         works with more compilers.
183         * tests/minus-zero.h: New file.
184         * modules/ceilf-tests (Files): Include it.
185         * modules/ceill-tests (Files): Likewise.
186         * modules/floorf-tests (Files): Likewise.
187         * modules/floorl-tests (Files): Likewise.
188         * modules/frexp-nolibm-tests (Files): Likewise.
189         * modules/frexp-tests (Files): Likewise.
190         * modules/frexpl-nolibm-tests (Files): Likewise.
191         * modules/frexpl-tests (Files): Likewise.
192         * modules/isnan-tests (Files): Likewise.
193         * modules/isnand-nolibm-tests (Files): Likewise.
194         * modules/isnand-tests (Files): Likewise.
195         * modules/isnanf-nolibm-tests (Files): Likewise.
196         * modules/isnanf-tests (Files): Likewise.
197         * modules/isnanl-nolibm-tests (Files): Likewise.
198         * modules/isnanl-tests (Files): Likewise.
199         * modules/round-tests (Files): Likewise.
200         * modules/roundf-tests (Files): Likewise.
201         * modules/roundl-tests (Files): Likewise.
202         * modules/ldexpl-tests (Files): Likewise.
203         * modules/signbit-tests (Files): Likewise.
204         * modules/snprintf-posix-tests (Files): Likewise.
205         * modules/sprintf-posix-tests (Files): Likewise.
206         * modules/strtod-tests (Files): Likewise.
207         * modules/trunc-tests (Files): Likewise.
208         * modules/truncf-tests (Files): Likewise.
209         * modules/truncl-tests (Files): Likewise.
210         * modules/vsnprintf-posix-tests (Files): Likewise.
211         * modules/vsprintf-posix-tests (Files): Likewise.
212         * modules/vasnprintf-posix-tests (Files): Likewise.
213         * modules/vasprintf-posix-tests (Files): Likewise.
214         * tests/test-ceilf1.c (main): Use it.
215         * tests/test-ceill.c (main): Likewise.
216         * tests/test-floorf1.c (main): Likewise.
217         * tests/test-floorl.c (main): Likewise.
218         * tests/test-frexp.c (main): Likewise.
219         * tests/test-frexpl.c (main): Likewise.
220         * tests/test-isnan.c (main): Likewise.
221         * tests/test-isnand.h (main): Likewise.
222         * tests/test-isnanf.h (main): Likewise.
223         * tests/test-isnanl.h (main): Likewise.
224         * tests/test-ldexpl.c (main): Likewise.
225         * tests/test-round.c (main): Likewise.
226         * tests/test-roundf.c (main): Likewise.
227         * tests/test-roundl.c (main): Likewise.
228         * tests/test-signbit.c (test_signbitf, test_signbitd)
229         (test_signbitl): Likewise.
230         * tests/test-snprintf-posix.h (test_function): Likewise.
231         * tests/test-sprintf-posix.h (test_function): Likewise.
232         * tests/test-strtod.c (main): Likewise.
233         * tests/test-trunc1.c (main): Likewise.
234         * tests/test-truncf1.c (main): Likewise.
235         * tests/test-truncl.c (main): Likewise.
236
237         isnanl: work around icc bug
238         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
239
240 2010-11-03  Eric Blake  <eblake@redhat.com>
241
242         tests: fix compiler warnings
243         * tests/test-getopt.h (test_getopt): Fix condition.
244         * tests/test-getopt_long.h (test_getopt_long): Likewise.
245         * tests/test-pipe2.c (main): Likewise.
246         * tests/test-quotearg-simple.c (main): Avoid icc warning.
247
248         utimens: fix broken m4 test
249         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
250
251 2010-10-28  Bruno Haible  <bruno@clisp.org>
252
253         posix_spawn*, getdtablesize: Relax license.
254         * modules/posix_spawn (License): Change to LGPLv2+.
255         * modules/posix_spawnp (License): Likewise.
256         * modules/posix_spawn-internal (License): Likewise.
257         * modules/posix_spawnattr_init (License): Likewise.
258         * modules/posix_spawnattr_getflags (License): Likewise.
259         * modules/posix_spawnattr_setflags (License): Likewise.
260         * modules/posix_spawnattr_getpgroup (License): Likewise.
261         * modules/posix_spawnattr_setpgroup (License): Likewise.
262         * modules/posix_spawnattr_getschedparam (License): Likewise.
263         * modules/posix_spawnattr_setschedparam (License): Likewise.
264         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
265         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
266         * modules/posix_spawnattr_getsigdefault (License): Likewise.
267         * modules/posix_spawnattr_setsigdefault (License): Likewise.
268         * modules/posix_spawnattr_getsigmask (License): Likewise.
269         * modules/posix_spawnattr_setsigmask (License): Likewise.
270         * modules/posix_spawnattr_destroy (License): Likewise.
271         * modules/posix_spawn_file_actions_init (License): Likewise.
272         * modules/posix_spawn_file_actions_addclose (License): Likewise.
273         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
274         * modules/posix_spawn_file_actions_addopen (License): Likewise.
275         * modules/posix_spawn_file_actions_destroy (License): Likewise.
276         * modules/getdtablesize (License): Likewise.
277         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
278
279 2010-10-26  Bruno Haible  <bruno@clisp.org>
280
281         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
282         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
283         Cygwin and mingw.
284         Suggested by Eric Blake.
285
286 2010-10-26  Bruno Haible  <bruno@clisp.org>
287
288         stdio: Work around compilation error due to renameat() on Solaris 10.
289         * lib/stdio.in.h: Include <unistd.h> on Solaris.
290         * lib/renameat.c: Don't include <unistd.h> here.
291         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
292         Reported by Paul Eggert and Eric Blake.
293
294 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
295
296         renameat: port to Solaris 10, which declares renameat in unistd.h
297
298         * lib/renameat.c: Include unistd.h before stdio.h, because
299         Solaris 10 declares renameat in unistd.h.  Problem encountered
300         when building GNU tar 1.24 on Solaris 10.
301
302 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
303
304         fdopendir: fix C89 compilation
305         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
306         compilers.
307
308 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
309
310         inttostr: simplify by removing unnecessary redundancy
311         * lib/anytostr.c: Don't include verify.h.
312         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
313         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
314         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
315         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
316         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
317         Likewise.
318         * modules/inttostr (Depends-on): Remove 'verify'.
319
320 2010-10-23  Bruno Haible  <bruno@clisp.org>
321
322         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
323         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
324         Reported by Eric Blake.
325
326 2010-10-23  Bruno Haible  <bruno@clisp.org>
327
328         Tests: Fix LOCALE_JA on MirBSD 10.
329         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
330         to an UTF-8 locale.
331         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
332         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
333         Reported by Eric Blake.
334
335 2010-10-21  Bruno Haible  <bruno@clisp.org>
336
337         nl_langinfo test: Avoid test failure on NetBSD 5.
338         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
339         Reported by Eric Blake.
340
341 2010-10-21  Eric Blake  <eblake@redhat.com>
342
343         c-stack: work around libsigsegv 2.8 bug
344         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
345         overflow on at least PowerPC64.
346
347 2010-10-17  Bruno Haible  <bruno@clisp.org>
348
349         userspec: Drop redundant file.
350         * modules/userspec (Files): Remove lib/inttostr.h.
351
352 2010-10-17  Bruno Haible  <bruno@clisp.org>
353
354         nl_langinfo tests: Silence some warnings.
355         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
356         Reported by Jim Meyering.
357
358 2010-10-17  Bruno Haible  <bruno@clisp.org>
359
360         Make use of GCC's attribute __alloc_size__.
361         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
362         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
363         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
364         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
365         __alloc_size__.
366         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
367         Suggested by Jim Meyering.
368
369 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
370
371         bootstrap: anchor .gitignore entries.
372         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
373         with...
374         (insert_vc_ignore): ... this new function, which prepends `/' to
375         all .gitignore entries before passing them to
376         insert_sorted_if_absent.
377
378 2010-10-16  Bruno Haible  <bruno@clisp.org>
379
380         nextafter: Fix configure check.
381         * modules/nextafter (configure.ac): Correct expected prototype.
382
383 2010-10-16  Bruno Haible  <bruno@clisp.org>
384
385         termios: Update documentation.
386         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
387
388 2010-10-16  Bruno Haible  <bruno@clisp.org>
389
390         tests: Make them compile with TinyCC.
391         * tests/test-strstr.c (main): Remove parentheses around array
392         initializer.
393
394 2010-10-15  Eric Blake  <eblake@redhat.com>
395
396         ignore-value: make header idempotent
397         * lib/ignore-value.h: Add double-inclusion guards.
398         Reported by Stefan Berger.
399
400 2010-10-15  Jim Meyering  <meyering@redhat.com>
401
402         GNUmakefile: handle "stable" target, not "major"
403         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
404         lists in maint.mk and announce-gen.  Without this, "make stable"
405         would fail to ensure that $(VERSION) is up to date.
406
407 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
408
409         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
410         & co.
411
412 2010-10-14  Bruno Haible  <bruno@clisp.org>
413
414         vasnprintf: Don't set errno to 0.
415         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
416         block that sets it to 0.
417         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
418
419 2010-10-14  Bruno Haible  <bruno@clisp.org>
420
421         socketlib: Fix.
422         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
423         gl_PREREQ_SYS_H_WINSOCK2.
424         Reported by Ian Beckwith <ianb@erislabs.net>.
425
426 2010-10-13  Jim Meyering  <meyering@redhat.com>
427
428         test-select-stdin.c: avoid warn_unused_result warnings
429         * tests/test-select-stdin.c: Include "macros.h".
430         ASSERT that read and fflush succeed.
431
432 2010-10-13  Jim Meyering  <meyering@redhat.com>
433
434         git-version-gen: do require git-VC'd files in cwd
435         * build-aux/git-version-gen: Reject a git version string
436         if there are no commits associated with the current directory.
437         This avoids an unlikely false-positive (unrelated dir whose parent
438         repository also contains a tag matching v*), as pointed out
439         by Giuseppe Scrivano in
440         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
441
442 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
443
444         argv-iter: omit nonconforming declaration
445         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
446         enum arg_iter_err declaration, which doesn't conform to C99.
447         Solaris 10 cc warns about this.
448
449 2010-10-13  Eric Blake  <eblake@redhat.com>
450
451         termios: fix compilation on mingw
452         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
453         (gl_TERMIOS_H): Adjust it on mingw.
454         * modules/termios (Makefile.am): Substitute new key.
455         * lib/termios.in.h (includes): Make include_next conditional.
456         * doc/posix-headers/termios.texi (termios.h): Update
457         documentation.
458         Reported by Daniel P. Berrange.
459
460 2010-10-13  Jim Meyering  <meyering@redhat.com>
461
462         git-version-gen: don't require that .git/ be in the current dir
463         * build-aux/git-version-gen: Adjust this script so that it works
464         when run from any working directory beneath the top-level .git/-
465         containing directory.  Inspired by a patch from Giuseppe Scrivano,
466         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
467
468         test-select: avoid warn_unused_result warnings
469         * tests/test-select.c: Include "macros.h".
470         ASSERT that each call to read, write, and pipe succeeds.
471         While not technically required, also check each "close".
472         * modules/select-tests (Files): Add tests/macros.h.
473
474         test-symlinkat: remove declaration of unused local
475         * tests/test-symlinkat.c (main): Remove unused local, "buf".
476
477         test-inttostr: avoid shadowing warnings
478         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
479         and use malloc rather than the stack for the same reason as
480         mentioned in the comment justifying the other allocation.
481
482 2010-10-11  Bruno Haible  <bruno@clisp.org>
483
484         stdlib: Allow multiple gnulib generated replacements to coexist.
485         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
486         Reported by Sam Steingold <sds@gnu.org>.
487
488 2010-10-11  Jim Meyering  <meyering@redhat.com>
489
490         fix a documentation typo
491         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
492
493 2010-10-11  Eric Blake  <eblake@redhat.com>
494
495         futimens: work around Solaris 11 bug
496         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
497         * tests/test-futimens.h (test_futimens): Enhance, rather than
498         weaken test.
499         * doc/posix-functions/futimens.texi (futimens): Document the bug.
500
501 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
502
503         Indentation.
504         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
505         higher-level operators more to the left.
506
507 2010-10-11  Jim Meyering  <meyering@redhat.com>
508
509         test-futimens: avoid unwarranted test failure on Solaris 5.11
510         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
511         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
512         because it tries to dereference the NULL name argument.
513
514 2010-10-11  Bruno Haible  <bruno@clisp.org>
515
516         Indentation.
517         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
518         indentation.
519
520 2010-10-11  Jim Meyering  <meyering@redhat.com>
521
522         spawn.in.h: make indentation consistent with parentheses
523         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
524         Make indentation consistent with parentheses.
525
526 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
527
528         Fix mismatched parens in previous commit
529         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
530         parens.
531
532 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
533
534         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
535
536         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
537         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
538         * lib/malloca.c: Include "verify.h".
539         (verify1): Remove, replacing with a verify call.
540         * lib/relocwrapper.c (verify1): Likewise.
541         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
542         Likewise.
543         * modules/malloca (Depends-on): Add 'verify'.
544         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
545         * modules/vasnprintf (Depends-on): Add 'verify'.
546         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
547         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
548         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
549         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
550         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
551         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
552         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
553
554         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
555
556         Formerly the style was sometimes 2*X - 1, because the C standard
557         was wrongly thought to disallow ?: in integral constant expressions.
558         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
559         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
560         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
561         * lib/stdint.in.h (_verify_intmax_size): Likewise.
562         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
563         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
564         verify that time_t cannot be floating.
565
566 2010-10-08  Eric Blake  <eblake@redhat.com>
567
568         time: enforce recent POSIX ruling that time_t is integral
569         * lib/time.in.h (__time_t_must_be_integral): Detect any
570         problematic systems, allowing the rest of gnulib to assume POSIX.
571
572 2010-10-08  Jim Meyering  <meyering@redhat.com>
573
574         fdopendir: fix a bug on systems lacking openat and /proc support
575         OpenBSD 4.7 is one such system.  The most noticeable effect was
576         failure of any application making nontrivial use of fts: rm, du,
577         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
578           ./rm: traversal failed: `a': Bad file descriptor
579         Debugging that, you see that even though FD 6 was closed just
580         prior to the opendir call in fd_clone_opendir, its resulting
581         dir->dd_fd was 8, rather than the expected value of 6:
582
583         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
584         93                close (fd);
585         (gdb) n
586         94                dir = fd_clone_opendir (dupfd);
587         (gdb) n
588         95                saved_errno = errno;
589         (gdb) p dir->dd_fd
590         $11 = 8
591
592         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
593         The problem is that on OpenBSD, fd_clone_opendir has to resort
594         to using the old-style save/restore CWD mechanism, due to its
595         lack of openat/proc support, and *that* would steal the FD (6)
596         that opendir was supposed to use.
597
598         The fix is to squirrel away the desired FD so that save_cwd uses a
599         different one, and then free the dest FD right before calling opendir.
600         That guarantees opendir will use the required file descriptor.
601
602         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
603
604 2010-10-08  Bruno Haible  <bruno@clisp.org>
605
606         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
607         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
608
609 2010-10-08  Bruno Haible  <bruno@clisp.org>
610
611         nanosleep: Make replacement POSIX compliant.
612         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
613         is out of range.
614         Reported by Jim Meyering.
615
616 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
617
618         bootstrap: add hook for altering gnulib.mk, for Bison
619         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
620         the Bison bootstrapping process can rewrite file names and variables
621         in this file before later parts of 'bootstrap' use the file.
622         Bison wants to include lib/gnulib.mk from the top-level makefile,
623         so it needs the file names in this file to be relative to the top
624         level, not relative to lib; plus it needs variable names to be
625         rewritten.
626         (slurp): Use the new function.
627
628         bootstrap: reformat for readability
629         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
630
631 2010-10-08  Eric Blake  <eblake@redhat.com>
632
633         docs: update cygwin progress
634         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
635         1.7.7.
636         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
637         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
638         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
639         * doc/posix-functions/carg.texi (carg): Likewise.
640         * doc/posix-functions/cargf.texi (cargf): Likewise.
641         * doc/posix-functions/casin.texi (casin): Likewise.
642         * doc/posix-functions/casinf.texi (casinf): Likewise.
643         * doc/posix-functions/casinh.texi (casinh): Likewise.
644         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
645         * doc/posix-functions/catan.texi (catan): Likewise.
646         * doc/posix-functions/catanf.texi (catanf): Likewise.
647         * doc/posix-functions/catanh.texi (catanh): Likewise.
648         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
649         * doc/posix-functions/ccos.texi (ccos): Likewise.
650         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
651         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
652         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
653         * doc/posix-functions/cexp.texi (cexp): Likewise.
654         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
655         * doc/posix-functions/cimag.texi (cimag): Likewise.
656         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
657         * doc/posix-functions/clog.texi (clog): Likewise.
658         * doc/posix-functions/clogf.texi (clogf): Likewise.
659         * doc/posix-functions/conj.texi (conj): Likewise.
660         * doc/posix-functions/conjf.texi (conjf): Likewise.
661         * doc/posix-functions/cpow.texi (cpow): Likewise.
662         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
663         * doc/posix-functions/cproj.texi (cproj): Likewise.
664         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
665         * doc/posix-functions/creal.texi (creal): Likewise.
666         * doc/posix-functions/crealf.texi (crealf): Likewise.
667         * doc/posix-functions/csin.texi (csin): Likewise.
668         * doc/posix-functions/csinf.texi (csinf): Likewise.
669         * doc/posix-functions/csinh.texi (csinh): Likewise.
670         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
671         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
672         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
673         * doc/posix-functions/ctan.texi (ctan): Likewise.
674         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
675         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
676         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
677         * doc/posix-headers/complex.texi (complex.h): Likewise.
678
679 2010-10-07  Jim Meyering  <meyering@redhat.com>
680
681         parse-datetime: avoid compilation failure on OpenBSD 4.7
682         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
683         This works around a compilation failure on OpenBSD 4.7:
684         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
685
686 2010-10-07  Eric Blake  <eblake@redhat.com>
687
688         docs: update cygwin progress
689         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
690         1.7.6.
691         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
692         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
693         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
694         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
695         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
696         Likewise.
697         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
698         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
699         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
700         Likewise.
701         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
702         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
703         Likewise.
704         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
705         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
706         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
707         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
708         Likewise.
709         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
710         Likewise.
711         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
712
713         docs: update parse-datetime history
714         * doc/parse-datetime.texi (Authors of parse_datetime): Better
715         documentation of this function's history and alternatives.
716
717         cygwin: use more robust version check
718         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
719         exclude an eventual cygwin 1.9.1.
720         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
721         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
722         (gl_FUNC_STRCASESTR): Likewise.
723         Reported by Bruno Haible.
724
725 2010-10-06  Bruno Haible  <bruno@clisp.org>
726
727         string, sys_select: Avoid #including large headers unless necessary.
728         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
729         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
730         OSF/1, BeOS, Haiku.
731         Reported by Jim Meyering.
732
733 2010-10-05  Eric Blake  <eblake@redhat.com>
734
735         memmem, strstr, strcasestr: fix bug with long periodic needle
736         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
737         periodic needle having false positive.
738         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
739         and cygwin 1.7.7.
740         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
741         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
742         (gl_FUNC_STRCASESTR): Likewise.
743         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
744         * tests/test-memmem.c (main): Expose the bug.
745         * tests/test-strcasestr.c (main): Likewise.
746         * tests/test-strstr.c (main): Likewise.
747         * tests/test-c-strcasestr.c (main): Likewise.
748         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
749         * doc/posix-functions/strstr.texi (strstr): Likewise.
750         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
751         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
752
753 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
754
755         parse-datetime: do some more renaming
756         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
757         parse_datetime, not get_date.  Mention the renaming.
758         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
759         in comments.
760         * m4/bison.m4: Likewise.
761
762 2010-10-05  Eric Blake  <eblake@redhat.com>
763
764         parse-datetime: better name than get_date
765         * NEWS: Reword the deprecation notice.
766         * modules/get_date: Rename to modules/parse-datetime.
767         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
768         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
769         * lib/get_date.y: Rename to lib/parse-datetime.y.
770         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
771         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
772         * doc/getdate.texi: Provide fallback wrapper.
773         * lib/getdate.h: Move guts, and wrap...
774         * lib/parse-datetime.h: ...new file.
775         * lib/parse-datetime.y (get_date): Rename...
776         (parse_datetime): ...to this.
777         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
778         (gl_PARSE_DATETIME): ...to this.
779         * doc/posix-functions/getdate.texi (get_date): Provide fallback
780         documentation.
781         * modules/getdate (Files): Provide fallback docs and header.
782         (Notice, Depends-on): Update references.
783         * tests/test-parse-datetime.c: Likewise.
784         * DEPENDENCIES: Likewise.
785         * MODULES.html.sh (Date and time <time.h>): Likewise.
786         * doc/parse-datetime.texi (Date input formats)
787         (Authors of parse_datetime): Likewise.
788         * modules/parse-datetime (Files, configure.ac, Makefile.am)
789         (Include): Likewise.
790         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
791         * gnulib-tool: Likewise.
792         * m4/bison.m4 (gl_BISON): Likewise.
793         Suggested by Bruno Haible.
794
795 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
796
797         more ports to Solaris tr, which needs [] around ranges
798         * gnulib-tool: Solaris tr needs [] around ranges.
799         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
800         * tests/test-pipe-filter-gi1.c (main): Likewise.
801         * tests/test-pipe-filter-ii1.c (main): Likewise.
802
803 2010-10-05  Eric Blake  <eblake@redhat.com>
804
805         bootstrap: fix Solaris regression
806         * build-aux/bootstrap (check_versions): Solaris tr still needs []
807         around ranges.
808         Reported by Pádraig Brady.
809
810         bootstrap: work with pkg-config
811         * build-aux/bootstrap (check_versions): Also transliterate - in
812         prerequisite name.
813         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
814         prerequisites that were already found, to avoid confusion.
815         Reported by Justin Clift.
816
817         faccessat: remove unused wrappers
818         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
819         presence of these wrappers dragged in -lgen on Solaris.
820         Reported by Clemens Brogi; fix suggested by Paul Eggert.
821
822 2010-10-05  Jim Meyering  <meyering@redhat.com>
823
824         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
825         * Makefile (sc_pragma_columns): New syntax-check rule.
826
827 2010-10-04  Bruno Haible  <bruno@clisp.org>
828
829         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
830         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
831         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
832         Reported by Bruce Korb and Eric Blake.
833
834 2010-10-04  Bruno Haible  <bruno@clisp.org>
835
836         threadlib: Make option --with-libpth-prefix work.
837         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
838         use $LIBPTH, not just -lpth.
839
840 2010-10-04  Bruno Haible  <bruno@clisp.org>
841
842         Avoid line length limitation from HP NonStop system header files.
843         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
844         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
845         * lib/ctype.in.h: Likewise.
846         * lib/dirent.in.h: Likewise.
847         * lib/errno.in.h: Likewise.
848         * lib/fcntl.in.h: Likewise.
849         * lib/float.in.h: Likewise.
850         * lib/getopt.in.h: Likewise.
851         * lib/iconv.in.h: Likewise.
852         * lib/inttypes.in.h: Likewise.
853         * lib/langinfo.in.h: Likewise.
854         * lib/locale.in.h: Likewise.
855         * lib/math.in.h: Likewise.
856         * lib/netdb.in.h: Likewise.
857         * lib/netinet_in.in.h: Likewise.
858         * lib/poll.in.h: Likewise.
859         * lib/pthread.in.h: Likewise.
860         * lib/pty.in.h: Likewise.
861         * lib/sched.in.h: Likewise.
862         * lib/se-selinux.in.h: Likewise.
863         * lib/search.in.h: Likewise.
864         * lib/signal.in.h: Likewise.
865         * lib/spawn.in.h: Likewise.
866         * lib/stdarg.in.h: Likewise.
867         * lib/stddef.in.h: Likewise.
868         * lib/stdint.in.h: Likewise.
869         * lib/stdio.in.h: Likewise.
870         * lib/stdlib.in.h: Likewise.
871         * lib/string.in.h: Likewise.
872         * lib/strings.in.h: Likewise.
873         * lib/sys_file.in.h: Likewise.
874         * lib/sys_ioctl.in.h: Likewise.
875         * lib/sys_select.in.h: Likewise.
876         * lib/sys_socket.in.h: Likewise.
877         * lib/sys_stat.in.h: Likewise.
878         * lib/sys_time.in.h: Likewise.
879         * lib/sys_times.in.h: Likewise.
880         * lib/sys_utsname.in.h: Likewise.
881         * lib/sys_wait.in.h: Likewise.
882         * lib/sysexits.in.h: Likewise.
883         * lib/termios.in.h: Likewise.
884         * lib/time.in.h: Likewise.
885         * lib/unistd.in.h: Likewise.
886         * lib/wchar.in.h: Likewise.
887         * lib/wctype.in.h: Likewise.
888         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
889         * modules/ctype (Makefile.am): Likewise.
890         * modules/dirent (Makefile.am): Likewise.
891         * modules/errno (Makefile.am): Likewise.
892         * modules/fcntl-h (Makefile.am): Likewise.
893         * modules/float (Makefile.am): Likewise.
894         * modules/getopt-posix (Makefile.am): Likewise.
895         * modules/iconv-h (Makefile.am): Likewise.
896         * modules/inttypes (Makefile.am): Likewise.
897         * modules/langinfo (Makefile.am): Likewise.
898         * modules/locale (Makefile.am): Likewise.
899         * modules/math (Makefile.am): Likewise.
900         * modules/netdb (Makefile.am): Likewise.
901         * modules/netinet_in (Makefile.am): Likewise.
902         * modules/poll-h (Makefile.am): Likewise.
903         * modules/pthread (Makefile.am): Likewise.
904         * modules/pty (Makefile.am): Likewise.
905         * modules/sched (Makefile.am): Likewise.
906         * modules/search (Makefile.am): Likewise.
907         * modules/selinux-h (Makefile.am): Likewise.
908         * modules/signal (Makefile.am): Likewise.
909         * modules/spawn (Makefile.am): Likewise.
910         * modules/stdarg (Makefile.am): Likewise.
911         * modules/stddef (Makefile.am): Likewise.
912         * modules/stdint (Makefile.am): Likewise.
913         * modules/stdio (Makefile.am): Likewise.
914         * modules/stdlib (Makefile.am): Likewise.
915         * modules/string (Makefile.am): Likewise.
916         * modules/strings (Makefile.am): Likewise.
917         * modules/sys_file (Makefile.am): Likewise.
918         * modules/sys_ioctl (Makefile.am): Likewise.
919         * modules/sys_select (Makefile.am): Likewise.
920         * modules/sys_socket (Makefile.am): Likewise.
921         * modules/sys_stat (Makefile.am): Likewise.
922         * modules/sys_time (Makefile.am): Likewise.
923         * modules/sys_times (Makefile.am): Likewise.
924         * modules/sys_utsname (Makefile.am): Likewise.
925         * modules/sys_wait (Makefile.am): Likewise.
926         * modules/sysexits (Makefile.am): Likewise.
927         * modules/termios (Makefile.am): Likewise.
928         * modules/time (Makefile.am): Likewise.
929         * modules/unistd (Makefile.am): Likewise.
930         * modules/wchar (Makefile.am): Likewise.
931         * modules/wctype (Makefile.am): Likewise.
932
933 2010-10-04  Bruno Haible  <bruno@clisp.org>
934
935         read-file tests: Avoid a test failure on NonStop Kernel.
936         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
937         a regular file.
938         Reported by Joachim Schmitz <schmitz@hp.com>.
939
940 2010-10-03  Bruno Haible  <bruno@clisp.org>
941
942         gnulib-tool: Fixes for --create-testdir with --libtool.
943         * gnulib-tool (func_get_automake_snippet): Don't augment
944         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
945         an executable.
946         (func_create_testdir): Handle module 'alloca' like func_import.
947         Reported by Bruce Korb <bruce.korb@gmail.com>.
948
949 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
950
951         Avoid some lines longer than 80 characters.
952         * lib/stdint.in.h: Break long comment lines.
953         * lib/math.in.h: Likewise.
954         (_GL_NUM_UINT_WORDS): New macro, for readability.
955         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
956         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
957         * lib/stdlib.in.h: Likewise.
958         * lib/spawn.in.h: Likewise.
959         * lib/sys_socket.in.h: Update an URL.
960         * lib/sys_stat.in.h: Break long line.
961
962 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
963
964         Improve pmccabe2html.
965         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
966         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
967         when the sources change. Remove the line in the HTML about "Used
968         ranges" (which implied that there might be other unused ranges),
969         rename "Resume" to "Summary" (easier to understand for more users).
970         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
971         styles, and some unnecessary blank lines.
972
973 2010-10-03  Bruno Haible  <bruno@clisp.org>
974             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
975
976         acl: Add support for ACLs on NonStop Kernel.
977         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
978         Check whether the function aclsort() exists.
979         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
980         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
981         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
982         (acl_nontrivial [HAVE_ACLSORT]: New function.
983         (file_has_acl): Implement for NonStop Kernel.
984         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
985         (qset_acl): Implement for NonStop Kernel.
986         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
987         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
988         (main): Implement for NonStop Kernel.
989         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
990         Kernel. Handle this flavor.
991         * tests/test-set-mode-acl.sh: Likewise.
992         * tests/test-copy-acl.sh: Likewise.
993         * tests/test-copy-file.sh: Likewise.
994
995 2010-10-03  Bruno Haible  <bruno@clisp.org>
996
997         Info about ACLs on NonStop Kernel.
998         * doc/acl-resources.txt: Add info about NonStop Kernel.
999         References by Joachim Schmitz <schmitz@hp.com>.
1000
1001 2010-10-02  Bruno Haible  <bruno@clisp.org>
1002
1003         Define missing EDQUOT on NonStop Kernel.
1004         * lib/errno.in.h (EDQUOT): Assign a value if missing.
1005         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
1006         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
1007         missing.
1008         * doc/posix-headers/errno.texi: Mention the NSK bug.
1009         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
1010         Reported by Joachim Schmitz <schmitz@hp.com>.
1011
1012 2010-10-02  Bruno Haible  <bruno@clisp.org>
1013
1014         Update doc for POSIX:2008.
1015         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
1016         Update URL of POSIX specification.
1017
1018 2010-10-02  Bruno Haible  <bruno@clisp.org>
1019
1020         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
1021         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
1022         from gnulib, not from Automake.
1023
1024 2010-10-02  Bruno Haible  <bruno@clisp.org>
1025
1026         New module 'system-posix'.
1027         * modules/system-posix: New file.
1028         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
1029         module is present.
1030         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
1031         GNULIB_SYSTEM_POSIX.
1032         * modules/stdlib (Depends-on): Remove sys_wait.
1033         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
1034         * doc/posix-functions/system.texi: Mention the new module.
1035         * doc/posix-headers/stdlib.texi: Likewise.
1036         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
1037         define test_sys_wait_macros to a no-op.
1038         Reported by Sam Steingold <sds@gnu.org>.
1039
1040 2010-09-30  Bruno Haible  <bruno@clisp.org>
1041
1042         More renaming from 'getdate' to 'get_date'.
1043         * doc/get_date.texi: Renamed from doc/getdate.texi.
1044         * modules/get_date (Files): Update.
1045         * MODULES.html.sh (Date and time <time.h>): Update.
1046         * DEPENDENCIES: Update.
1047         * gnulib-tool: Update comment.
1048         * m4/bison.m4 (gl_BISON): Likewise.
1049         * m4/get_date.m4 (gl_GET_DATE): Likewise.
1050
1051 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
1052
1053         bootstrap: support ACLOCAL_FLAGS during aclocal
1054         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
1055         can add additional -I dir for third-party .m4 files.
1056
1057 2010-09-30  Eric Blake  <eblake@redhat.com>
1058
1059         bootstrap: use glibtoolize on MacOS
1060         * build-aux/bootstrap (check_versions): Convert libtool into
1061         libtoolize.
1062         (tool search): Move libtool check earlier, and look for
1063         glibtoolize for MacOS.
1064         (gnulib_tool_options): Auto-add --libtool when appropriate.
1065         Reported by Justin Clift.
1066
1067         poll: fix typo that broke test on MacOS
1068         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
1069         Reported by Justin Clift.
1070
1071         getdate: rename to get_date
1072         Note: getdate.h is not renamed, to minimize client impact.
1073         * modules/getdate: Mark obsolete.  Move old contents...
1074         * modules/get_date: ...to new module name.
1075         * modules/getdate-tests: Move...
1076         * modules/get_date-tests: ...here.
1077         * m4/getdate.m4: Move...
1078         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
1079         * lib/getdate.y: Move...
1080         * lib/get_date.y: ...here.
1081         * tests/test-getdate.c: Move...
1082         * tests/test-get_date.c: ...here.
1083         * doc/posix-functions/getdate.texi (getdate): Update name.
1084         * NEWS: Mention the change.
1085
1086 2010-09-29  Bruno Haible  <bruno@clisp.org>
1087
1088         Separate the module 'waitpid' from the module 'sys_wait'.
1089         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
1090         present.
1091         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
1092         gl_MODULE_INDICATOR_FOR_TESTS.
1093         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
1094         * modules/sys_wait (Depends-on): Remove waitpid.
1095         (Makefile.am): Substitute GNULIB_WAITPID.
1096         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
1097         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
1098         signature only if the 'waitpid' module is present.
1099         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
1100         * NEWS: Mention the change.
1101         * modules/grantpt (Depends-on): Add waitpid.
1102         * modules/wait-process (Depends-on): Likewise.
1103
1104 2010-09-29  Bruno Haible  <bruno@clisp.org>
1105
1106         More tests for module 'sys_wait'.
1107         * modules/sys_wait-c++-tests: New file.
1108         * tests/test-sys_wait-c++.cc: New file.
1109         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
1110         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
1111
1112 2010-09-29  Bruno Haible  <bruno@clisp.org>
1113
1114         New module 'waitpid'.
1115         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
1116         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
1117         Don't include <process.h>.
1118         (waitpid): Declare only, using modern idiom.
1119         * m4/waitpid.m4: New file.
1120         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
1121         * modules/waitpid: New file.
1122         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
1123         (Makefile.am): Update.
1124         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
1125
1126 2010-09-28  Bruno Haible  <bruno@clisp.org>
1127
1128         poll: Assume ANSI C.
1129         * lib/poll.c (poll): Use an ANSI C declaration.
1130
1131 2010-09-28  Bruno Haible  <bruno@clisp.org>
1132
1133         poll-h: Create poll.h on all platforms.
1134         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
1135         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
1136         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
1137         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
1138         (gl_REPLACE_POLL_H): Don't set POLL_H.
1139         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
1140         * modules/poll-h (Depends-on): Add include_next.
1141         (Makefile.am): Create poll.h unconditionally. Substitute also
1142         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
1143
1144 2010-09-28  Bruno Haible  <bruno@clisp.org>
1145
1146         Tests for module 'poll-h'.
1147         * modules/poll-h-c++-tests: New file.
1148         * tests/test-poll-h-c++.cc: New file.
1149
1150         Tests for module 'poll-h'.
1151         * modules/poll-h-tests: New file.
1152         * tests/test-poll-h.c: New file.
1153
1154 2010-09-28  Bruno Haible  <bruno@clisp.org>
1155
1156         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
1157         * modules/poll-h (Depends-on): Add 'extensions'.
1158
1159 2010-09-28  Bruno Haible  <bruno@clisp.org>
1160
1161         New module 'poll-h'.
1162         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
1163         (poll): Use modern idiom.
1164         * modules/poll-h: New file.
1165         * modules/poll (Files): Remove lib/poll.in.h.
1166         (Depends-on): Add poll-h.
1167         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
1168         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
1169         * m4/poll_h.m4: New file.
1170         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
1171         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
1172         and invoke gl_REPLACE_POLL_H.
1173         * lib/poll.c: Use common idiom.
1174         * tests/test-poll.c: Likewise.
1175         * doc/posix-headers/poll.texi: Mention the poll-h module.
1176         Suggested by Eric Blake.
1177
1178 2010-09-26  Bruno Haible  <bruno@clisp.org>
1179
1180         sys_wait: Implement WSTOPSIG.
1181         * lib/sys_wait.in.h (WSTOPSIG): New macro.
1182         Reported by Simon Josefsson.
1183
1184 2010-09-26  Simon Josefsson  <simon@josefsson.org>
1185
1186         stdlib, sys_wait: Avoid compilation error on mingw.
1187         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
1188
1189 2010-09-26  Bruno Haible  <bruno@clisp.org>
1190
1191         stdlib tests: Avoid code duplication.
1192         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
1193         * modules/sys_wait-tests (Files): Likewise.
1194         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
1195         * tests/test-stdlib.c: Include test-sys_wait.h.
1196         (main): Invoke test_sys_wait_macros.
1197         * tests/test-sys_wait.c: Include test-sys_wait.h.
1198         (main): Invoke test_sys_wait_macros.
1199
1200 2010-09-25  Simon Josefsson  <simon@josefsson.org>
1201
1202         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
1203         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
1204         sure Windows sockets are working before calling getaddrinfo.
1205         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
1206         * doc/gnulib.texi (Windows sockets): Fix typo.
1207
1208 2010-09-25  Bruno Haible  <bruno@clisp.org>
1209
1210         Tests for module 'regex-quote'.
1211         * modules/regex-quote-tests: New file.
1212         * tests/test-regex-quote.c: New file.
1213
1214         New module 'regex-quote'.
1215         * lib/regex-quote.h: New file.
1216         * lib/regex-quote.c: New file.
1217         * modules/regex-quote: New file.
1218         Suggested by Reuben Thomas <rrt@sc3d.org>.
1219
1220 2010-09-24  Bruno Haible  <bruno@clisp.org>
1221
1222         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
1223         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
1224
1225 2010-09-23  Bruno Haible  <bruno@clisp.org>
1226
1227         setenv: Relax license.
1228         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
1229         Blake.
1230         Requested by Eric Blake.
1231
1232 2010-09-22  Bruno Haible  <bruno@clisp.org>
1233
1234         termios: Relax license.
1235         * modules/termios (License): Change to LGPLv2+.
1236         Requested by Eric Blake.
1237
1238 2010-09-22  Bruno Haible  <bruno@clisp.org>
1239
1240         threadlib: Allow the package to change the default to 'no'.
1241         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
1242         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
1243         Reported by Paul Eggert.
1244
1245 2010-09-22  Pádraig Brady  <P@draigbrady.com>
1246             Bruno Haible  <bruno@clisp.org>
1247
1248         Fix endless loop in mbmemcasecoll.
1249         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
1250         byte.
1251         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
1252
1253 2010-09-22  Bruno Haible  <bruno@clisp.org>
1254
1255         Tests for module 'memcoll'.
1256         * modules/memcoll-tests: New file.
1257         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
1258
1259         memcoll, xmemcoll: Clarify size vs. length.
1260         * modules/memcoll.c (memcoll0): Clarify specification.
1261         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
1262         passed to collate_error.
1263
1264 2010-09-22  Bruno Haible  <bruno@clisp.org>
1265
1266         Tests for module 'memcasecmp'.
1267         * modules/memcasecmp-tests: New file.
1268         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
1269
1270 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
1271
1272         * lib/pthread.in.h: Add split double-inclusion guard, and include
1273         system <pthread.h> if there is one.  Use @@-style as in other
1274         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
1275         pthread.h doesn't.
1276         (pthread_mutexattr_destroy, pthread_mutexattr_init):
1277         (pthread_mutexattr_settype, pthread_mutex_trylock):
1278         New static inline functions, if there's no system <pthread.h>.
1279         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
1280         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
1281         Approximate with mutexes if the system lacks spinlocks, as in
1282         MacOS.
1283         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
1284         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
1285         @@-style.  Check for spinlocks separately.
1286         (gl_PTHREAD_DEFAULTS): New macro.
1287         * modules/pthread: Redo to use a more typical style for in.h files.
1288
1289 2010-09-21  Eric Blake  <eblake@redhat.com>
1290
1291         net_if: enhance tests
1292         * tests/test-net_if.c (main): Move signature checks earlier.
1293         Print failures to stderr.
1294         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
1295         Document the bug that we do not yet fix.
1296
1297 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
1298
1299         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
1300         about gnulib, not GSS.
1301
1302 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
1303
1304         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
1305         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
1306         for Emacs.
1307         * build-aux/pmccabe2html: Make Makefile.am example code more
1308         cut-and-paste friendly.
1309
1310 2010-09-21  Simon Josefsson  <simon@josefsson.org>
1311
1312         * tests/test-net_if.c: New file.
1313         * modules/net_if-tests: New file.
1314
1315 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
1316
1317         pthread: add pthread_spin_destroy
1318         * lib/pthread.in.h (pthread_spin_destroy): New function.
1319
1320 2010-09-19  Bruno Haible  <bruno@clisp.org>
1321
1322         gnulib-tool: Fix --help output.
1323         * gnulib-tool (func_usage): Fix help message.
1324         Reported by Reuben Thomas <rrt@sc3d.org>.
1325
1326 2010-09-18  Jim Meyering  <meyering@redhat.com>
1327
1328         maint.mk: avoid unexpanded \n in two diagnostics
1329         * top/maint.mk (sc_prohibit_always_true_header_tests):
1330         Don't use a literal \n in a halt=... assignment.  It would not be
1331         expanded, and the two \n bytes would appear in the diagnostic output
1332         rather than the desired newline.  Use halt=$$(printf ... instead.
1333         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
1334
1335 2010-09-18  Bruno Haible  <bruno@clisp.org>
1336
1337         netinet_in: Doc tweak.
1338         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
1339         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
1340
1341 2010-09-18  Jim Meyering  <meyering@redhat.com>
1342
1343         init.sh: correct an outdated comment
1344         * tests/init.sh (create_exe_shims_):  s/function/alias/
1345
1346         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
1347         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
1348         a file named "*.exe" is removed between the glob expansion and the
1349         processing of that oddly named file.
1350
1351 2010-09-17  Eric Blake  <eblake@redhat.com>
1352
1353         mirbsd: add some more support
1354         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
1355         in BSD family.
1356         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
1357         devices as OpenBSD.
1358         * m4/host-os.m4 (mirbsd): Add MirBSD.
1359
1360         tests: fix unportable assumption on sys/wait.h
1361         * tests/test-sys_wait.c (main): Relax test.
1362         * tests/test-stdlib.c (main): Likewise.
1363
1364         init.sh: accomodate directory with no .exes
1365         * tests/init.sh: Accomodate directory containing only scripts.
1366
1367         tests: avoid compiler warning
1368         * tests/test-stdlib.c (main): Use the variable.
1369
1370         fdutimens, fdutimensat: update signature, again
1371         * lib/utimens.h (gl_futimens): Delete, and move signature...
1372         (fdutimens): ...here.
1373         (fdutimensat): Rearrange signature.
1374         (lutimensat): Rename variable for clarity.
1375         * lib/fdutimensat.c (fdutimensat): Update signature.
1376         * lib/utimens.c (fdutimens): Likewise.
1377         (gl_futimens): Delete.
1378         (utimens, lutimens): Update callers.
1379         * lib/futimens.c (futimens): Likewise.
1380         * tests/test-fdutimensat.c: Likewise.
1381         * tests/test-utimens.c: Likewise.
1382         * tests/test-futimens.h: Update comment.
1383         * NEWS: Mention this.
1384         Suggested by Paul Eggert.
1385
1386 2010-09-17  Bruno Haible  <bruno@clisp.org>
1387
1388         Take over the maintenance of some older macros from Autoconf.
1389         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
1390         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
1391         GNU Autoconf.
1392         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
1393         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
1394
1395 2010-09-17  Eric Blake  <eblake@redhat.com>
1396
1397         fdutimensat: drop atflag validation
1398         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
1399         with valid fd, to close a race scenario where futimens is
1400         unsupported and FILE was replaced by a symlink.
1401         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
1402         accordingly.
1403         Suggested by Paul Eggert.
1404
1405 2010-09-16  Bruno Haible  <bruno@clisp.org>
1406
1407         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
1408         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
1409
1410 2010-09-16  Bruno Haible  <bruno@clisp.org>
1411
1412         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
1413         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
1414         login_tty exists.
1415         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
1416
1417 2010-09-16  Bruno Haible  <bruno@clisp.org>
1418
1419         login_tty: Make the replacement code work on BSD systems.
1420         * lib/login_tty.c: Include <sys/ioctl.h>.
1421         (login_tty): Use ioctl TIOCSCTTY when available.
1422         * modules/login_tty (Depends-on): Add sys_ioctl.
1423         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
1424
1425 2010-09-16  Bruno Haible  <bruno@clisp.org>
1426
1427         login_tty: Stricter unit test.
1428         * modules/login_tty-tests (Depends-on): Add tcgetsid.
1429         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
1430         and tcgetsid() after login_tty.
1431         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
1432
1433 2010-09-16  Bruno Haible  <bruno@clisp.org>
1434
1435         New module 'tcgetsid'.
1436         * lib/tcgetsid.c: New file.
1437         * m4/tcgetsid.m4: New file.
1438         * modules/tcgetsid: New file.
1439         * modules/termios (Depends-on): Add c++defs, warn-on-use.
1440         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
1441         GNULIB_TCGETSID, HAVE_TCGETSID.
1442         * lib/termios.in.h: Include <sys/types.h>.
1443         (tcgetsid): New declaration.
1444         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
1445         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
1446         * doc/posix-functions/tcgetsid.texi: Mention the new module.
1447         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
1448
1449 2010-09-16  Bruno Haible  <bruno@clisp.org>
1450
1451         Tests for module 'termios'.
1452         * modules/termios-c++-tests: New file.
1453         * modules/termios-tests: New file.
1454         * tests/test-termios-c++.cc: New file.
1455         * tests/test-termios.c: New file.
1456
1457         New module 'termios'.
1458         * modules/termios: New file.
1459         * lib/termios.in.h: New file.
1460         * m4/termios_h.m4: New file.
1461         * doc/posix-headers/termios.texi: Mention the new module.
1462
1463 2010-09-16  Eric Blake  <eblake@redhat.com>
1464
1465         fdutimensat: add an atflag parameter
1466         * lib/fdutimensat.c (fdutimensat): Add new parameter.
1467         * lib/utimens.h (fdutimensat): Update prototype.
1468         * tests/test-fdutimensat.c: Adjust test to match.
1469         * NEWS: Document the change.
1470         Suggested by Paul Eggert.
1471
1472 2010-09-16  Bruno Haible  <bruno@clisp.org>
1473
1474         Fix typos in comments.
1475         * lib/striconveh.h: Fix typo in comment.
1476         * lib/login_tty.c (login_tty): Likewise.
1477
1478 2010-09-15  Bruno Haible  <bruno@clisp.org>
1479
1480         stdlib: clarify MirBSD WEXITSTATUS bug
1481         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
1482         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
1483
1484 2010-09-15  Eric Blake  <eblake@redhat.com>
1485
1486         stdlib: work around MirBSD WEXITSTATUS bug
1487         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
1488         * modules/stdlib (Depends-on): Add sys_wait.
1489         * tests/test-sys_wait.c (main): Enhance test.
1490         * tests/test-stdlib.c (main): Likewise.
1491         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
1492
1493         docs: mention MacOS issue with WEXITSTATUS(constant)
1494         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
1495         issue.
1496         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
1497
1498         strnlen: add tests
1499         * modules/strnlen-tests: New file.
1500         * tests/test-strnlen.c: Likewise.
1501
1502 2010-09-14  Bruno Haible  <bruno@clisp.org>
1503
1504         unistr/base: Avoid link errors when module 'libunistring' is also used.
1505         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
1506         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
1507         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
1508         Declare also when HAVE_LIBUNISTRING is set.
1509         Reported by Pádraig Brady <P@draigbrady.com>.
1510
1511 2010-09-14  Eric Blake  <eblake@redhat.com>
1512
1513         test-rawmemchr: make more robust
1514         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
1515         (Depends-on, configure.ac): Add needed prerequisites to use it.
1516         * modules/memchr-tests (Files, Depends-on, configure.ac):
1517         Likewise, to avoid implicit reliance on memchr module prereqs.
1518         * tests/test-memchr.c (main): Ensure proper masking.
1519         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
1520         reads.
1521
1522         memchr: detect glibc Alpha bug
1523         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
1524         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
1525         Alpha.
1526         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
1527         * tests/test-memchr.c (main): Enhance test.
1528         Reported by Nelson H. F. Beebe.
1529
1530 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
1531
1532         fts, getcwd, glob: audit for dirfd returning -1
1533         * lib/fts.c (opendir): Remove #define; no longer used.
1534         (opendirat): New arg PDIR_FD.  All callers changed.
1535         (fts_build, _opendir2): Use new opendirat to avoid the need for
1536         dirfd, or for checking whether dirfd returns a negative value.
1537         Don't use opendir; always use openat followed by fdopendir.
1538         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
1539         it.
1540         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
1541         returns -1 here.
1542         * modules/fts (Depends-on): Remove dirfd.
1543         * modules/getcwd (Depends-on): Likewise.
1544
1545 2010-09-13  Eric Blake  <eblake@redhat.com>
1546
1547         float: fix broken MirBSD header
1548         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
1549         * doc/posix-headers/float.texi (float.h): Document it.
1550
1551 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
1552
1553         fts: use O_NOFOLLOW to avoid race condition when opening a directory
1554         * lib/fts.c (opendirat): New arg extra_flags.
1555         (__opendir2): Use it to avoid following symlinks when opening
1556         a directory, if symlinks are not supposed to be followed.  See
1557         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
1558
1559         fdopendir: preserve argument fd before returning
1560         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
1561         (fdopendir_with_dup, fd_clone_opendir): New static functions.
1562         (fdopendir): Use them, arranging for FD to be open to the same
1563         directory that it was when it started.  (It might be temporarily
1564         closed while fdopendir is running, so this not thread- or
1565         signal-safe.)  Be careful to do the right thing even when file
1566         descriptors are scarce and dup fails with errno == EMFILE.  See
1567         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
1568
1569 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
1570
1571         regex: Pass the system regex if its only problem is 32-bit regoff_t.
1572         * NEWS: Document change.
1573         * m4/regex.m4: Disable test for regoff_t size.
1574
1575 2010-09-13  Jim Meyering  <meyering@redhat.com>
1576
1577         fts: don't operate on an invalid file descriptor after failed dup
1578         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
1579         negative file descriptor.
1580
1581 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
1582
1583         savedir: add streamsavedir, deprecate fdsavedir
1584         * NEWS: Mention deprecation of fdsavedir.
1585         * lib/savedir.c (streamsavedir): New extern function, whose name
1586         ends in "savedir" to be consistent with the others.  This differs
1587         from savedirstream in that it doesn't close its argument.  The
1588         next version of GNU tar will use this instead of fdsavedir, to
1589         avoid some race conditions and conserve file descriptors.
1590         (savedirstream): Reimplement as a wrapper around streamsavedir.
1591         (fdsavedir): Add a comment deprecating this function.  As far as
1592         I know, only GNU tar used it, and GNU tar doesn't need it any more.
1593         * lib/savedir.h (streamsavedir): New decl.
1594         (fdsavedir): Add a comment deprecating this.
1595
1596 2010-09-10  Bruno Haible  <bruno@clisp.org>
1597
1598         langinfo: Fix last commit.
1599         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
1600         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
1601         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
1602
1603 2010-09-10  Bruno Haible  <bruno@clisp.org>
1604
1605         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
1606         * lib/progreloc.c (O_EXEC): Define fallback.
1607
1608 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
1609
1610         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
1611         * NEWS: Document recent changes to fcntl-h.
1612         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
1613         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
1614         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
1615         Similarly for O_SEARCH; this last was already true, but not documented.
1616         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
1617         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
1618         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
1619         Likewise.
1620         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
1621         is zero, not whether it is defined.
1622         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
1623         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
1624         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
1625
1626 2010-09-10  Bruno Haible  <bruno@clisp.org>
1627
1628         langinfo, nl_langinfo: Fix for IRIX 5.3.
1629         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
1630         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
1631         HAVE_LANGINFO_YESEXPR.
1632         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
1633         HAVE_LANGINFO_YESEXPR.
1634         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
1635         HAVE_LANGINFO_T_FMT_AMPM is 0.
1636         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
1637         HAVE_LANGINFO_YESEXPR is 0.
1638         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
1639         NOEXPR.
1640         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
1641         * doc/posix-functions/nl_langinfo.texi: Likewise.
1642         Reported by Eric Blake.
1643
1644 2010-09-10  Bruno Haible  <bruno@clisp.org>
1645
1646         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
1647         * doc/glibc-functions/login_tty.texi: Mention the include file problem
1648         on FreeBSD 8.0 and OpenBSD 4.6.
1649         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
1650         * m4/pty_h.m4 (gl_PTY_H): Likewise.
1651         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
1652         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
1653         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
1654         ac_includes_default.
1655         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
1656
1657 2010-09-09  Eric Blake  <eblake@redhat.com>
1658
1659         strsignal: work around NetBSD bug
1660         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
1661         * lib/string.in.h (includes): Likewise.
1662         * doc/posix-functions/strsignal.texi (strsignal): Document the
1663         bug.
1664         Reported by Nelson H. F. Beebe.
1665
1666         gnulib-tool: work with NetBSD /bin/sh
1667         * gnulib-tool (func_cache_var, func_cache_lookup_module)
1668         (func_get_description, func_get_comment, func_get_status)
1669         (func_get_notice, func_get_applicability, func_get_filelist)
1670         (func_get_dependencies, func_get_autoconf_early_snippet)
1671         (func_get_autoconf_snippet, func_get_automake_snippet)
1672         (func_get_include_directive, func_get_link_directive)
1673         (func_get_license, func_get_maintainer, func_import): Avoid
1674         shell syntax errors from parsing syntax extensions.
1675
1676 2010-09-09  Bruno Haible  <bruno@clisp.org>
1677
1678         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
1679         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
1680         a reliable way to determine whether the 'alias' command works.
1681
1682 2010-09-08  Jim Meyering  <meyering@redhat.com>
1683
1684         init.sh: penalize a set-x-impaired shell; don't disqualify it
1685         * tests/init.sh: Too many shells corrupt application stderr when
1686         you set -x, so we can't afford to disqualify them, since at least
1687         on Irix-6.5, that would disqualify all bourne shells.
1688         Instead, use a two-pass approach.
1689         On the first pass, try to find a shell that meets the stricter
1690         condition that set -x does not corrupt stderr.
1691         If no shell meets the stricter condition, retest each candidate
1692         shell, but without that extra condition.  Finally, when
1693         VERBOSE=yes is requested and set -x might cause trouble, simply
1694         issue a warning and refrain from enabling debug output.
1695
1696 2010-09-08  Eric Blake  <eblake@redhat.com>
1697
1698         unsetenv: fix OpenBSD bug
1699         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
1700         * doc/posix-functions/unsetenv.texi (unsetenv): Update
1701         documentation.
1702         Reported by Jim Meyering.
1703
1704         strtod: work around IRIX 6.5 bug
1705         * lib/strtod.c (strtod): Reparse number on shorter string if
1706         exponent parse was invalid.
1707         * tests/test-strtod.c (main): Add check for "0x1p 2".
1708         Reported by Tom G. Christensen.
1709
1710         getopt: optimize previous patch
1711         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
1712         empty variable.  Speed up awk script.
1713         Reported by Paolo Bonzini.
1714
1715 2010-09-08  Jim Meyering  <meyering@redhat.com>
1716
1717         test.sh: disqualify shells for which set -x corrupts stderr
1718         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
1719         and OpenBSD 4.7.  They make it so with "set -x", environment settings
1720         appear in stderr output.  For example, this command:
1721             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
1722         prints "P=1" on those two systems:
1723
1724 2010-09-08  Bruno Haible  <bruno@clisp.org>
1725
1726         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
1727         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
1728         commands, because some shells ignore redirections when there is an
1729         error in the command lookup.
1730         Reported by Eric Blake.
1731
1732 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
1733
1734         * lib/regex.h: Fix a mention of `regex_compile' (should be
1735         `re_compile_pattern').
1736         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
1737         (re_set_registers): Correct name of parameter in comment.
1738
1739         * doc/regex.texi: Add documentation for missing syntax flags.
1740         Remove commented-out documentation of defunct syntax option
1741         RE_NO_EMPTY_ALTS.
1742         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
1743         Add documentation of re_set_registers.
1744         Document trick to re-use a pattern buffer by setting fastmap manually.
1745         Update documentation of struct re_pattern_buffer per public members.
1746         Uncomment documentation of equivalence class operators and
1747         collating symbol operators, since they are now implemented,
1748         Explain leftmost-longest matching in relation to alternatives.
1749         Tidy documentation of substring matching.
1750         Remove POSIX documentation, which is done better in
1751         glibc, and refer the reader there. Keep BSD API documentation, as
1752         that is not readily available elsewhere.
1753
1754 2010-09-07  Eric Blake  <eblake@redhat.com>
1755
1756         getopt: handle POSIXLY_CORRECT set but not exported
1757         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
1758         export state of POSIXLY_CORRECT, due to bash set -o posix.
1759         Reported by Dustin J. Mitchell.
1760
1761 2010-09-05  Bruno Haible  <bruno@clisp.org>
1762
1763         gnulib-tool: Highlight the changed options.
1764         * gnulib-tool (func_usage): Display the --import, --add-import,
1765         --remove-import explanations in bold font.
1766
1767 2010-09-06  Karl Berry  <karl@gnu.org>
1768
1769         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
1770
1771 2010-09-05  Bruno Haible  <bruno@clisp.org>
1772
1773         uniwidth/width: Update comment.
1774         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
1775         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
1776
1777 2010-09-05  Bruno Haible  <bruno@clisp.org>
1778
1779         isinf, isnan: Relax license.
1780         * modules/isinf (License): Change from GPL to LGPL, with consent from
1781         Ben Pfaff.
1782         * modules/isnan (License): Likewise.
1783         Requested by Ludovic Courtès.
1784
1785 2010-09-04  Bruno Haible  <bruno@clisp.org>
1786
1787         gnulib-tool: Help migration from --import to --add-import or --update.
1788         * gnulib-tool: Emit a verbose error message when --import is used
1789         without any module name.
1790
1791 2010-09-04  Bruno Haible  <bruno@clisp.org>
1792
1793         Update doc about gnulib-tool.
1794         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
1795         'gnulib-tool --update' in more detail.
1796         Reported by Eric Blake.
1797
1798 2010-09-04  Bruno Haible  <bruno@clisp.org>
1799
1800         gnulib-tool: Change --import. New options --add/remove-import.
1801         * gnulib-tool: New options --add-import, --remove-import.
1802         (func_usage): Document them.
1803         (have_associative): Define always.
1804         (func_import): In import mode, don't merge the specified settings with
1805         the cached settings. Implement remove-import mode.
1806         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
1807         Explain when to use them versus --import.
1808         (Simple update): Use --add-import instead of --import.
1809         * NEWS: Mention the change.
1810
1811 2010-09-04  Bruno Haible  <bruno@clisp.org>
1812
1813         * doc/gnulib-tool.texi (Initial import): Update paragraph about
1814         separate gnulib.mk.
1815
1816 2010-09-04  Bruno Haible  <bruno@clisp.org>
1817
1818         gnulib-tool: Don't talk about CVS any more.
1819         * gnulib-tool (func_usage, func_import): Write "version control"
1820         instead of CVS.
1821
1822 2010-09-04  Jim Meyering  <meyering@redhat.com>
1823
1824         maint.mk: avoid obscure sc_copyright_check failure in coreutils
1825         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
1826         false positives (whose names may be ill-chosen) when searching
1827         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
1828         would cause a false-positive.
1829
1830         avoid coreutils "make distcheck" failure
1831         Coreutils tests with an absolute build directory name that contains
1832         a space.  Not quoting this directory name caused a failure.
1833         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
1834         * tests/test-vc-list-files-cvs.sh: Likewise.
1835
1836 2010-09-04  Bruno Haible  <bruno@clisp.org>
1837
1838         gnulib-tool: Avoid error when run in a package without Makefile.am.
1839         * gnulib-tool: When collecting the m4dirs in a package that does not
1840         have a Makefile.am, eliminate those directories that contain no
1841         gnulib-cache.m4. Fix expression that counts these directories.
1842
1843 2010-09-04  Bruno Haible  <bruno@clisp.org>
1844
1845         update-copyright test: Improve output when perl is missing or too old.
1846         * tests/test-update-copyright.sh: Move test of Perl version down after
1847         the test whether Perl exists. Provide an explanation relating Perl's
1848         error message to Automake's SKIP: message.
1849
1850 2010-09-04  Bruno Haible  <bruno@clisp.org>
1851
1852         Don't augment PATH in TESTS_ENVIRONMENT.
1853         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
1854         set abs_aux_dir instead of augmenting PATH.
1855         * modules/vc-list-files-tests (Makefile.am): Likewise.
1856         * tests/test-update-copyright.sh: Augment PATH here.
1857         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
1858         path_prepend_.
1859         * tests/test-vc-list-files-git.sh: Likewise.
1860
1861 2010-09-04  Jim Meyering  <meyering@redhat.com>
1862
1863         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
1864         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
1865
1866 2010-09-04  Bruno Haible  <bruno@clisp.org>
1867
1868         strdup: Fix compilation error in C++ mode.
1869         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
1870         the macro.
1871
1872 2010-09-04  Bruno Haible  <bruno@clisp.org>
1873
1874         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
1875         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
1876         macro into a function.
1877         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
1878
1879 2010-09-04  Bruno Haible  <bruno@clisp.org>
1880
1881         Set PATH_SEPARATOR the same way autoconf does.
1882         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
1883         the value of PATH_SEPARATOR the same way autoconf-generated configure
1884         scripts do.
1885         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
1886         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
1887
1888 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
1889
1890         Set PATH_SEPARATOR the same way autoconf does.
1891         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
1892         the same way autoconf-generated configure scripts do.
1893         * posix-modules: Likewise.
1894
1895 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
1896
1897         hash: fix safe_hasher const typo
1898         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
1899         const; otherwise, there is a type error later.
1900
1901 2010-09-02  Jim Meyering  <meyering@redhat.com>
1902
1903         test-update-copyright.sh: require perl 5.8.0
1904         * tests/test-update-copyright.sh: Require 5.8.0,
1905         which Tom G. Christensen has confirmed is adequate,
1906         while 5.6.1 is not.
1907
1908 2010-09-02  Eric Blake  <eblake@redhat.com>
1909
1910         tests: init.sh improvements for re-exec'ing with zsh
1911         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
1912         -vx through shell re-exec.
1913         Reported by Tom G. Christensen.
1914
1915         wctype: fix typo in previous commit
1916         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
1917         Reported by Ludovic Courtès.
1918
1919 2010-09-02  Jim Meyering  <meyering@redhat.com>
1920
1921         test-update-copyright.sh: skip test if Perl is too old
1922         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
1923         Reported by Tom G. Christensen.
1924
1925 2010-09-02  Bruno Haible  <bruno@clisp.org>
1926
1927         wctype: Avoid compilation error on IRIX 6.5.30.
1928         * lib/wctype.in.h (iswblank): Declare with a replacement if
1929         REPLACE_ISWBLANK is set.
1930         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
1931         declared. Set REPLACE_ISWBLANK.
1932         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
1933         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
1934         * doc/posix-headers/wctype.texi: Likewise.
1935         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
1936
1937 2010-09-01  Bruno Haible  <bruno@clisp.org>
1938
1939         New module 'socketlib'.
1940         * modules/socketlib: New file.
1941         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
1942         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
1943         * modules/sockets (Depends-on): Add socketlib.
1944         Suggested by Sam Steingold <sds@gnu.org>.
1945
1946 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
1947
1948         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
1949
1950         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
1951         when one needs search access to a directory but not read access.
1952         On systems where it is available, it works in some cases where
1953         O_RDONLY does not, namely on directories that are searchable but
1954         not readable, and which need only to be searchable.  If O_SEARCH
1955         is not available, fall back to the traditional method of using
1956         O_RDONLY.
1957
1958         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
1959         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
1960         when opening a directory that needs only to be searchable.
1961         * lib/chdir-safer.c (chdir_no_follow): Likewise.
1962         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
1963         * lib/openat-proc.c (openat_proc_name): Likewise.
1964         * lib/openat.c (openat_needs_fchdir): Likewise.
1965         * lib/save-cwd.c (save_cwd): Likewise.
1966         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
1967
1968 2010-08-28  Bruno Haible  <bruno@clisp.org>
1969
1970         New module 'host-cpu-c-abi'.
1971         * modules/host-cpu-c-abi: New file.
1972         * m4/host-cpu-c-abi.m4: New file, based on part of
1973         clisp/src/m4/general.m4.
1974         Requested by Sam Steingold <sds@gnu.org>.
1975
1976 2010-08-31  Eric Blake  <eblake@redhat.com>
1977         and Jim Meyering  <meyering@redhat.com>
1978
1979         hash: factor, and guard against misbehaving hasher function
1980         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
1981         of table->hasher's return value.  Also protect against a hash value
1982         so large that adding it to table->bucket results in a NULL pointer.
1983         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
1984         Use it in place of open-coded check-and-abort.
1985
1986 2010-08-30  Bruno Haible  <bruno@clisp.org>
1987
1988         hash: silence spurious clang warning
1989         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
1990         Reported by Eric Blake.
1991
1992 2010-08-30  Eric Blake  <eblake@redhat.com>
1993
1994         strstr, memmem, strcasestr: avoid leaked shell message
1995         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
1996         FreeBSD.
1997         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
1998         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
1999
2000         tests: silence clang warning
2001         * tests/test-malloca.c (do_allocation): Avoid dead store.
2002
2003 2010-08-29  Bruno Haible  <bruno@clisp.org>
2004
2005         gettext: Fix recent mistake.
2006         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
2007
2008 2010-08-29  Bruno Haible  <bruno@clisp.org>
2009
2010         selinux-h: Offer a --without-selinux option.
2011         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
2012         --without-selinux was specified, skip all tests and define
2013         HAVE_SELINUX_SELINUX_H to 0.
2014         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
2015         set LIB_SELINUX to empty.
2016         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
2017         gl_LIBSELINUX. If --without-selinux was specified, replace
2018         selinux/context.h.
2019         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
2020
2021 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2022             Bruno Haible  <bruno@clisp.org>
2023
2024         Make the module 'realloc-gnu' work again on AIX and OSF/1.
2025         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
2026         of HAVE_REALLOC.
2027         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
2028         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
2029         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
2030         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
2031
2032 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2033             Bruno Haible  <bruno@clisp.org>
2034
2035         Make the module 'calloc-gnu' work again on AIX and OSF/1.
2036         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
2037         HAVE_CALLOC.
2038         * lib/xmalloc.c: Update accordingly.
2039         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
2040         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
2041         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
2042
2043 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2044             Bruno Haible  <bruno@clisp.org>
2045
2046         Make the module 'malloc-gnu' work again on AIX and OSF/1.
2047         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
2048         HAVE_MALLOC.
2049         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
2050         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
2051         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
2052
2053 2010-08-29  Bruno Haible  <bruno@clisp.org>
2054
2055         Update modules list.
2056         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
2057         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
2058         (String handling <string.h>): Add astrxfrm.
2059         (File system functions): Add readlinkat.
2060
2061 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2062
2063         Tests for module 'realloc-gnu'.
2064         * modules/realloc-gnu-tests: New file.
2065         * tests/test-realloc-gnu.c: New file.
2066
2067         Tests for module 'calloc-gnu'.
2068         * modules/calloc-gnu-tests: New file.
2069         * tests/test-calloc-gnu.c: New file.
2070
2071         Tests for module 'malloc-gnu'.
2072         * modules/malloc-gnu-tests: New file.
2073         * tests/test-malloc-gnu.c: New file.
2074
2075 2010-08-28  Bruno Haible  <bruno@clisp.org>
2076
2077         Rename module 'realloc' -> 'realloc-gnu'.
2078         * modules/realloc-gnu: New file, copied from modules/realloc.
2079         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
2080         obsolete.
2081         * modules/mgetgroups (Depends-on): Update.
2082         * doc/posix-functions/realloc.texi: Update.
2083         * NEWS: Mention the change.
2084
2085         Rename module 'calloc' -> 'calloc-gnu'.
2086         * modules/calloc-gnu: New file, copied from modules/calloc.
2087         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
2088         obsolete.
2089         * doc/posix-functions/calloc.texi: Update.
2090         * NEWS: Mention the change.
2091
2092         Rename module 'malloc' -> 'malloc-gnu'.
2093         * modules/malloc-gnu: New file, copied from modules/malloc.
2094         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
2095         obsolete.
2096         * modules/argp (Depends-on): Update.
2097         * modules/regex (Depends-on): Update.
2098         * doc/posix-functions/malloc.texi: Update.
2099         * NEWS: Mention the change.
2100
2101 2010-08-28  Eric Blake  <eblake@redhat.com>
2102
2103         pread, pwrite: add missing dependency
2104         * modules/pread (Depends-on): Add extensions.
2105         * modules/pwrite (Depends-on): Likewise.
2106
2107 2010-08-28  Bruno Haible  <bruno@clisp.org>
2108
2109         unistr/u*-strchr: Fix tests dependencies.
2110         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
2111         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
2112         Reported by Ian Beckwith <ianb@erislabs.net>.
2113
2114 2010-08-28  Bruno Haible  <bruno@clisp.org>
2115
2116         read-file: Don't occupy too much unused memory.
2117         * lib/read-file.c (fread_file): Shrink the buffer at the end.
2118
2119 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
2120             Eric Blake  <eblake@redhat.com>
2121             Bruno Haible  <bruno@clisp.org>
2122
2123         read-file: Avoid memory reallocations with regular files.
2124         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
2125         (fread_file): With regular files, use the remaining length as the
2126         initial buffer size.  Check against overflow.
2127         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
2128         sys_stat.
2129
2130 2010-08-28  Bruno Haible  <bruno@clisp.org>
2131
2132         ftello: Relax license.
2133         * modules/ftello (License): Relax to LGPLv2+.
2134         Reported by Eric Blake.
2135
2136 2010-08-28  Bruno Haible  <bruno@clisp.org>
2137
2138         Avoid relocwrapper link errors due to gnulib replacement functions.
2139         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
2140         function.
2141         Reported by Ben Pfaff <blp@cs.stanford.edu>.
2142
2143 2010-08-28  Bruno Haible  <bruno@clisp.org>
2144
2145         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
2146         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
2147         defined.
2148         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
2149         Suggested by Eric Blake.
2150
2151 2010-08-28  Bruno Haible  <bruno@clisp.org>
2152
2153         sys_socket, netdb: Ensure socklen_t gets defined.
2154         * modules/sys_socket (Depends-on): Add socklen.
2155         * modules/netdb (Depends-on): Likewise.
2156         * modules/getaddrinfo (Depends-on): Remove socklen.
2157         * modules/getsockopt (Depends-on): Likewise.
2158         * modules/setsockopt (Depends-on): Likewise.
2159         * tests/test-sys_socket.c: Check that socklen_t is defined.
2160         * tests/test-netdb.c: Likewise.
2161         * m4/socklen.m4: Update comments.
2162         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
2163
2164 2010-08-27  Eric Blake  <eblake@redhat.com>
2165
2166         login_tty: add missing dependency
2167         * modules/login_tty (Depends-on): Add pty.
2168
2169 2010-08-26  Eric Blake  <eblake@redhat.com>
2170
2171         lib-symbol-versions: fix m4 quoting
2172         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
2173         format for AC_LINK_IFELSE.
2174
2175         glob: fix compile test
2176         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
2177
2178         btowc: fix missing file
2179         * modules/btowc (Files): Also ship locale-fr.m4.
2180
2181         lseek: fix link test
2182         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
2183         AC_LINK_IFELSE.
2184
2185         include_next: silence autoconf 2.68 warning
2186         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
2187         AC_COMPILE_IFELSE as special.
2188         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
2189         autoconf < 2.68.
2190
2191         acl: fix compilation test
2192         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
2193         AC_COMPILE_IFELSE.
2194
2195 2010-08-26  Bruno Haible  <bruno@clisp.org>
2196
2197         Modernize AC_TRY_RUN invocations.
2198         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
2199         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
2200         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
2201         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
2202         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
2203         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
2204         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
2205         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
2206         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
2207         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
2208         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
2209         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
2210         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
2211         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
2212         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
2213         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
2214         gl_MBRLEN_NUL_RETVAL): Likewise.
2215         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
2216         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
2217         Likewise.
2218         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
2219         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
2220         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
2221         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
2222         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
2223         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
2224         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
2225         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
2226         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
2227         Likewise.
2228         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
2229         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
2230         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
2231         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
2232         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
2233         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
2234         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
2235         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
2236         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
2237         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
2238
2239 2010-08-26  Bruno Haible  <bruno@clisp.org>
2240
2241         Modernize AC_TRY_LINK invocations.
2242         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
2243         AC_TRY_LINK.
2244         * m4/argp.m4 (gl_ARGP): Likewise.
2245         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
2246         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
2247         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
2248         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
2249         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
2250         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
2251         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
2252         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
2253         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
2254         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
2255         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
2256         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
2257         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
2258         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
2259         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
2260         * m4/hostent.m4 (gl_HOSTENT): Likewise.
2261         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
2262         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
2263         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
2264         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
2265         Likewise.
2266         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
2267         Likewise.
2268         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
2269         Likewise.
2270         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
2271         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
2272         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
2273         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
2274         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
2275         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
2276         * m4/servent.m4 (gl_SERVENT): Likewise.
2277         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
2278         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
2279         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
2280         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
2281         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
2282         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
2283         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
2284         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
2285         * modules/tsearch-tests (configure.ac): Likewise.
2286
2287 2010-08-26  Bruno Haible  <bruno@clisp.org>
2288
2289         Modernize AC_TRY_COMPILE invocations.
2290         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
2291         AC_TRY_COMPILE.
2292         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
2293         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
2294         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
2295         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
2296         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
2297         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
2298         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
2299         * m4/lock.m4 (gl_LOCK): Likewise.
2300         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
2301         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
2302         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
2303         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
2304         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
2305         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
2306         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
2307         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
2308         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
2309         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
2310         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
2311         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
2312         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
2313         extraneous semicolon.
2314
2315 2010-08-26  Jim Meyering  <meyering@redhat.com>
2316
2317         stat-time: relax license LGPL
2318         * modules/stat-time (License): Change from GPL to LGPL,
2319         with consent from all contributors, for use in libguile.
2320         Requested by Ludovic Courtès.
2321
2322 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
2323
2324         poll: return immediately on POLLHUP.
2325         * lib/poll.c (poll): Always set timeout before wait_timeout is
2326         computed.
2327
2328 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2329
2330         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
2331         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
2332         rmdir ("dir/.//"), unlinkat.
2333
2334 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
2335
2336         stdbool: avoid spurious failure with modern xlc
2337         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
2338
2339 2010-08-24  Bruno Haible  <bruno@clisp.org>
2340
2341         getloadavg: simplify code
2342         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
2343         gl_have_func. Update comments.
2344
2345 2010-08-24  Eric Blake  <eblake@redhat.com>
2346
2347         getloadavg: don't define SVR4 on cygwin
2348         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
2349         only define SVR4 when -lkvm is required.
2350         Reported by Yaakov Selkowitz.
2351
2352 2010-08-24  Bruno Haible  <bruno@clisp.org>
2353
2354         priv-set: fix comment
2355         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
2356
2357 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
2358
2359         priv-set: fix comments
2360         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
2361         to match code, as suggested by David Bartley in:
2362         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
2363
2364 2010-08-23  Eric Blake  <eblake@redhat.com>
2365
2366         stdbool: avoid rejecting clang
2367         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
2368         * tests/test-stdbool.c: Enable more tests if using the system
2369         <stdbool.h> instead of the gnulib replacement.
2370         (main): Move xlc bug test to a runtime test for all compilers.
2371         Reported by Anders Kaseorg.
2372
2373         argz: fix shell quoting issue
2374         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
2375         Reported by Charles Wilson.
2376
2377 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
2378             Erik Faye-Lund <kusmabite@gmail.com>
2379
2380         poll, select: handle ERROR_BROKEN_PIPE.
2381         * lib/poll.c (win32_compute_revents): Return POLLHUP when
2382         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
2383         * lib/select.c (win32_compute_revents): Do not mark a pipe
2384         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
2385
2386 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
2387
2388         fts: allow compilation with C++
2389         * lib/fts_.h: Specify extern "C" linkage with C++.
2390
2391 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2392
2393         Fix gnulib-tool sed script de-commentation for AIX sed.
2394         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
2395         sed.
2396
2397 2010-08-17  Eric Blake  <eblake@redhat.com>
2398
2399         test-stddef: test for (some) offsetof bugs
2400         * tests/test-stddef.c: Enhance test to ensure correct type of
2401         offsetof.
2402         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
2403         that we are not fixing at this time.
2404
2405 2010-08-15  Bruno Haible  <bruno@clisp.org>
2406
2407         stpncpy: Allow stpncpy to be defined as a macro.
2408         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
2409         if it's already correctly declared.
2410         * lib/string.in.h (stpncpy): Undefine before redefining.
2411         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
2412
2413 2010-08-14  Bruno Haible  <bruno@clisp.org>
2414
2415         Rename module 'memxfrm' to 'amemxfrm'.
2416         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
2417         (amemxfrm): Renamed from memxfrm.
2418         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
2419         (amemxfrm): Renamed from memxfrm.
2420         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
2421         * NEWS: Mention the change.
2422         * MODULES.html.sh (String handling <string.h>): Update.
2423         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
2424         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
2425         * lib/unicase/u16-casexfrm.c: Likewise.
2426         * lib/unicase/u32-casexfrm.c: Likewise.
2427         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
2428         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
2429         * lib/uninorm/u16-normxfrm.c: Likewise.
2430         * lib/uninorm/u32-normxfrm.c: Likewise.
2431         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
2432         memxfrm.
2433         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
2434         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
2435         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
2436         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
2437         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
2438         Suggested by Paul Eggert.
2439
2440 2010-08-14  Bruno Haible  <bruno@clisp.org>
2441
2442         Tests for module 'astrxfrm'.
2443         * modules/astrxfrm-tests: New file.
2444         * tests/test-astrxfrm.c: New file.
2445
2446         New module 'astrxfrm'.
2447         * lib/astrxfrm.h: New file.
2448         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
2449         * modules/astrxfrm: New file.
2450
2451 2010-08-14  Reuben Thomas <rrt@sc3d.org>
2452
2453         regex: Tweak doc.
2454         * doc/regex.texi (Overview): Don't mention regex.c.
2455         (GNU Regular Expression Compiling): Likewise.
2456         (Match-end-of-line Operator): Mention 'not_eol'.
2457
2458 2010-08-14  Brian Gough  <bjg@gnu.org>
2459             Bruno Haible  <bruno@clisp.org>
2460
2461         git-merge-changelog: add doc relating to use with bzr and hg.
2462         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
2463
2464 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
2465
2466         pthread: fix pthread.h creation for srcdir != builddir
2467         * modules/pthread (Makefile.am): Fix the rule to work also in a
2468         non-srcdir build.
2469
2470 2010-08-13  Karl Berry  <karl@gnu.org>
2471
2472         * doc/regex.texi (Predefined Syntaxes): @smallexample.
2473         * doc/posix-*/*: force line break before @url of POSIX
2474         specifications.
2475         Suggested by Werner Lemberg.
2476
2477 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
2478
2479         strtod: fix const diagnostic
2480         * lib/strtod.c (strtod): Don't assign const char * to char *,
2481         as this elicits a warning from GCC when warnings are enabled.
2482
2483 2010-08-10  Pádraig Brady <P@draigbrady.com>
2484         and Eric Blake  <eblake@redhat.com>
2485
2486         copy-acl: ignore ENOTSUP on HP-UX
2487         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
2488         so that it is available for HP-UX.
2489         * lib/copy-acl.c (qcopy_acl): Use it.
2490         Reported by Patrick M. Callahan.
2491
2492 2010-08-10  Eric Blake  <eblake@redhat.com>
2493
2494         open, chown: relax license
2495         * modules/open (License): Change to LGPLv2+, with consent by all
2496         authors, for use in augeas.
2497         * modules/chown (License): Likewise.
2498         * modules/lchown (Likewise): Likewise.
2499         Requested by Adam Stokes.
2500
2501 2010-08-09  Karl Berry  <karl@gnu.org>
2502
2503         * build-aux/ar-lib: new file, import from Automake.
2504         * config/srclist.txt: autocheck for updates.
2505
2506 2010-08-09  Eric Blake  <eblake@redhat.com>
2507
2508         readlinkat: adjust client modules
2509         * modules/areadlinkat (Depends-on): Use readlinkat, not
2510         symlinkat.
2511         * modules/areadlinkat-with-size (Depends-on): Likewise.
2512
2513         mknod: be more vocal about danger of running tests as root
2514         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
2515         root, since that is just asking for problems.
2516         Suggested by Bruno Haible, based on a report by Rainer Tammer.
2517
2518         readlinkat: split into its own module
2519         * modules/symlinkat: Split readlinkat...
2520         * modules/readlinkat: ...into separate module.
2521         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
2522         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
2523         * lib/symlinkat.c (readlinkat): Move...
2524         * lib/readlinkat.c: ...into new file.
2525         * modules/symlinkat-tests: Split readlinkat test...
2526         * modules/readlinkat-tests: ...into separate module.
2527         * tests/test-symlinkat.c: Split...
2528         * tests/test-readlinkat.c: ...into new file.
2529         * NEWS: Document the split.
2530         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
2531         * lib/unistd.in.h (readlinkat): Likewise.
2532         Suggested by Bruno Haible.
2533
2534 2010-08-08  Bruno Haible  <bruno@clisp.org>
2535
2536         memxfrm: Speed up.
2537         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
2538         that usually only one call to strxfrm is necessary for each string
2539         part.
2540         Reported by Paul Eggert <eggert@cs.ucla.edu>.
2541
2542 2010-08-07  Karl Berry  <karl@gnu.org>
2543
2544         * doc/posix-headers/limits.texi,
2545         * doc/posix-functions/malloc.texi,
2546         * doc/posix-functions/strsignal.texi: missing @item.
2547         * doc/ld-version-script.texi: spurious leading i.
2548         * doc/regex.texi (Interval Operators): no commas inside @var.
2549
2550 2010-08-01  Bruno Haible  <bruno@clisp.org>
2551
2552         Integrate the regex documentation.
2553         * doc/gnulib.texi: Define 'cn' index.
2554         (Regular expressions): New a chapter that includes regex.texi and
2555         regexprops-generic.texi.
2556         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
2557         syntax.
2558
2559         Whitespace cleanup.
2560         * doc/regex.texi: Remove trailing spaces.
2561
2562         Add regex documentation.
2563         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
2564         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
2565         Written by Kathy A. Hargreaves and Karl Berry.
2566
2567 2010-08-01  Bruno Haible  <bruno@clisp.org>
2568
2569         link: Update documentation.
2570         * doc/posix-functions/link.texi: Update regarding Solaris.
2571
2572 2010-07-31  Bruno Haible  <bruno@clisp.org>
2573
2574         Update modules list.
2575         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
2576         (String handling <string.h>): Add memcmp2, memxfrm.
2577         (Container data structures): Add xlist, xsublist, xoset.
2578         (Core language properties): Add alignof, unused-parameter.
2579         (Process control, Numeric conversion functions <stdlib.h>): Renamed
2580         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
2581         (Unibyte characters <ctype.h>): New section.
2582         (String handling <string.h>): New section.
2583         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
2584         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
2585         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
2586         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
2587         tan, tanh, tanl, y0, y1, yn.
2588         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
2589         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
2590         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
2591         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
2592         unlockpt, vdprintf, vdprintf-posix.
2593         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
2594         (File system functions): Add concat-filename, sys_file, sys_ioctl,
2595         xconcat-filename.
2596         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
2597         getdtablesize, pipe2, pipe2-safer.
2598         (Security): New section.
2599         (Networking functions): Add accept4.
2600         (Signal handling): Add sigpipe.
2601         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
2602         mbmemcasecoll.
2603         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
2604         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
2605         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
2606         pipe-filter-ii.
2607         (Misc): Add argp-version-etc, login_tty, parse-duration.
2608
2609 2010-07-31  Bruno Haible  <bruno@clisp.org>
2610
2611         Improve doc in MODULES.html.
2612         * modules/linkat (Description): Add the word "function".
2613         * modules/mkfifo (Description): Likewise.
2614         * modules/mknod (Description): Likewise.
2615         * modules/remove (Description): Likewise.
2616         * modules/renameat (Description): Likewise.
2617         * modules/stat (Description): Likewise.
2618         * modules/symlink (Description): Likewise.
2619         * modules/unlink (Description): Likewise.
2620
2621 2010-07-31  Bruno Haible  <bruno@clisp.org>
2622
2623         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
2624         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
2625         option --enable/disable-c++ instead of --enable/disable-cxx.
2626         * NEWS: Mention the change.
2627
2628 2010-07-31  Bruno Haible  <bruno@clisp.org>
2629
2630         readlink, areadlink: Relax test a bit.
2631         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
2632         alternative to ENOTDIR.
2633         * tests/test-areadlink.h (test_areadlink): Likewise.
2634         Reported by Rainer Tammer.
2635
2636 2010-07-31  Bruno Haible  <bruno@clisp.org>
2637
2638         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
2639         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
2640         character, perform the search using U_STRCHR.
2641         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
2642         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
2643         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
2644         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
2645         Suggested by Paolo Bonzini.
2646
2647 2010-07-31  Bruno Haible  <bruno@clisp.org>
2648
2649         unistr/u*-strstr: Fix dependencies.
2650         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
2651         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
2652         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
2653
2654 2010-07-31  Bruno Haible  <bruno@clisp.org>
2655
2656         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
2657         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
2658         the beginning of the loop.
2659         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
2660         cases in 'switch' statement.
2661
2662         unistr/u8-strchr: Fix several bugs.
2663         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
2664         the string. When not found, return NULL, not a pointer near the end.
2665
2666         More tests for unistr/u8-strchr.
2667         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
2668         that the function does not read past the first occurrence of the byte
2669         being searched.
2670         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
2671         * tests/unistr/test-u16-strchr.c (main): New function.
2672         * tests/unistr/test-u32-strchr.c (main): New function.
2673
2674 2010-07-31  Bruno Haible  <bruno@clisp.org>
2675
2676         posix-modules: Ignore backup files of documentation files.
2677         * posix-modules: grep only through files named *.texi.
2678
2679 2010-07-31  Bruno Haible  <bruno@clisp.org>
2680
2681         symlinkat: Fix documentation.
2682         * doc/posix-functions/readlinkat.texi: Fix module name.
2683
2684 2010-07-31  Bruno Haible  <bruno@clisp.org>
2685
2686         fchownat: Replace also when chown has the trailing slash bug.
2687         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
2688         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
2689         introduced on 2010-04-10.
2690         Reported by Rainer Tammer.
2691
2692 2010-07-31  Bruno Haible  <bruno@clisp.org>
2693
2694         linkat: Work around AIX 7.1 bug.
2695         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
2696         whether linkat handles trailing slash correctly. If not, replace linkat
2697         and define LINKAT_TRAILING_SLASH_BUG.
2698         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
2699         check whether (fd1,file1) points to a directory if file1 or file2 ends
2700         in a slash. Code taken from lib/link.c.
2701         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
2702         Reported by Rainer Tammer.
2703
2704 2010-07-31  Bruno Haible  <bruno@clisp.org>
2705
2706         Correctly determine whether pow is available in libc on AIX 7 with xlc.
2707         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
2708         This disables an xlc optimization that was causing wrong test results.
2709         Reported by Rainer Tammer.
2710
2711 2010-07-31  Bruno Haible  <bruno@clisp.org>
2712
2713         iconv: Work around AIX 6.1..7.1 bug.
2714         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
2715         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
2716         cross-compiling, guess no on all versions of AIX.
2717         Reported by Rainer Tammer.
2718
2719 2010-07-31  Bruno Haible  <bruno@clisp.org>
2720
2721         readlink: Relax test a bit.
2722         * tests/test-readlink.h (test_readlink): Allow different errno value
2723         when readlink is called with a file name that ends in / and refers to
2724         a file.
2725         Suggested by Eric Blake.
2726         Reported by Rainer Tammer.
2727
2728 2010-07-31  Bruno Haible  <bruno@clisp.org>
2729
2730         copysign: Does not require -lm on glibc systems.
2731         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
2732         gl_COMMON_DOUBLE_MATHFUNC.
2733         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
2734
2735 2010-07-31  Bruno Haible  <bruno@clisp.org>
2736
2737         duplocale: Work around AIX 7.1 bug.
2738         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
2739         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
2740         * lib/duplocale.c (rpl_duplocale): Update comment.
2741         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
2742         Reported by Rainer Tammer.
2743
2744 2010-07-30  Bruno Haible  <bruno@clisp.org>
2745
2746         dirfd: Avoid link error on AIX 7.1.
2747         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
2748         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
2749         exist, set REPLACE_DIRFD.
2750         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
2751         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
2752         * doc/posix-functions/dirfd.texi: Update.
2753         Reported by Rainer Tammer.
2754
2755 2010-07-30  Eric Blake  <eblake@redhat.com>
2756
2757         strtod: next round of AIX fixes
2758         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
2759         exponent.
2760         * tests/test-strtod.c (main): Enhance tests.
2761         * doc/posix-functions/strtod.texi (strtod): Document next bug.
2762         Reported by Rainer Tammer.
2763
2764         futimens: fix configure check
2765         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
2766         Reported by Bruno Haible.
2767
2768 2010-07-30  Bruno Haible  <bruno@clisp.org>
2769
2770         getline: Update regarding AIX.
2771         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
2772         Reported by Rainer Tammer.
2773
2774 2010-07-30  Bruno Haible  <bruno@clisp.org>
2775
2776         wcwidth: Drop replacement on AIX 7.
2777         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
2778         AIX 7.
2779         Reported by Rainer Tammer.
2780
2781 2010-07-30  Bruno Haible  <bruno@clisp.org>
2782
2783         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
2784         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
2785         a 'char *'.
2786         Reported by Rainer Tammer.
2787
2788 2010-07-30  Bruno Haible  <bruno@clisp.org>
2789
2790         unlink: Update regarding AIX.
2791         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
2792         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
2793         Reported by Rainer Tammer.
2794
2795 2010-07-30  Bruno Haible  <bruno@clisp.org>
2796
2797         symlink: Update regarding AIX.
2798         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
2799         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
2800         Reported by Rainer Tammer.
2801
2802 2010-07-30  Bruno Haible  <bruno@clisp.org>
2803
2804         strndup: Update regarding AIX.
2805         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
2806         AIX 7.
2807         Reported by Rainer Tammer.
2808
2809 2010-07-30  Bruno Haible  <bruno@clisp.org>
2810
2811         stat: Update regarding AIX.
2812         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
2813         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
2814         Reported by Rainer Tammer.
2815
2816 2010-07-30  Bruno Haible  <bruno@clisp.org>
2817
2818         truncl: Fix autoconf test.
2819         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
2820         whether truncl works.
2821         Reported by Rainer Tammer.
2822
2823 2010-07-30  Bruno Haible  <bruno@clisp.org>
2824
2825         round: Update regarding AIX.
2826         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
2827         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
2828         Reported by Rainer Tammer.
2829
2830 2010-07-30  Bruno Haible  <bruno@clisp.org>
2831
2832         rename: Update regarding AIX.
2833         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
2834         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
2835         Reported by Rainer Tammer.
2836
2837 2010-07-30  Bruno Haible  <bruno@clisp.org>
2838
2839         printf.m4: Update regarding AIX.
2840         * m4/printf.m4: Update comments regarding AIX.
2841         Reported by Rainer Tammer.
2842
2843 2010-07-30  Bruno Haible  <bruno@clisp.org>
2844
2845         iconv: Update regarding AIX.
2846         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
2847         AIX 7.
2848         Reported by Rainer Tammer.
2849
2850 2010-07-30  Bruno Haible  <bruno@clisp.org>
2851
2852         getopt: Update regarding AIX.
2853         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
2854         no on AIX.
2855         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
2856         Reported by Rainer Tammer.
2857
2858 2010-07-30  Bruno Haible  <bruno@clisp.org>
2859
2860         ldexpl; Update regarding AIX.
2861         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
2862         on AIX 7.
2863         Reported by Rainer Tammer.
2864
2865 2010-07-30  Bruno Haible  <bruno@clisp.org>
2866
2867         frexpl: Update regarding AIX.
2868         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
2869         on AIX 7.
2870         Reported by Rainer Tammer.
2871
2872 2010-07-30  Bruno Haible  <bruno@clisp.org>
2873
2874         open, fopen: Update regarding AIX.
2875         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
2876         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
2877         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
2878         * doc/posix-functions/fopen.texi: Likewise.
2879         Reported by Rainer Tammer.
2880
2881 2010-07-30  Bruno Haible  <bruno@clisp.org>
2882
2883         chown: Update doc regarding AIX.
2884         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
2885         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
2886         Reported by Rainer Tammer.
2887
2888 2010-07-30  Eric Blake  <eblake@redhat.com>
2889
2890         strtod: fix bug in replacement function on AIX
2891         * lib/strtod.c (strtod): Special case broken "0x" parse in
2892         underlying strtod.
2893         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
2894         * doc/posix-functions/strtod.texi (strtod): Likewise.
2895         Reported by Rainer Tammer.
2896
2897 2010-07-30  Bruno Haible  <bruno@clisp.org>
2898
2899         mbrlen: Fix cross-compilation guess for AIX.
2900         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
2901         guess. Leftover from 2008-12-22.
2902
2903 2010-07-30  Bruno Haible  <bruno@clisp.org>
2904
2905         mbrtowc: Fix cross-compilation guess for AIX.
2906         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
2907         guess. Leftover from 2008-12-21.
2908
2909 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
2910
2911         init.sh: work around trap limitation of some shells
2912         * tests/init.sh (setup_): Move exit trap outside of shell function.
2913
2914 2010-07-29  Eric Blake  <eblake@redhat.com>
2915
2916         strtod: aid debugging
2917         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
2918         understanding why strtod is rejected.
2919
2920 2010-07-28  Bruno Haible  <bruno@clisp.org>
2921
2922         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
2923         * lib/unistr/u8-chr.c: Include <string.h>.
2924         * tests/unistr/test-u8-chr.c: Likewise.
2925         * tests/unistr/test-u16-chr.c: Likewise.
2926         * tests/unistr/test-u32-chr.c: Likewise.
2927         * tests/unistr/test-u8-strchr.c: Likewise.
2928         * tests/unistr/test-u16-strchr.c: Likewise.
2929         * tests/unistr/test-u32-strchr.c: Likewise.
2930         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
2931         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
2932         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
2933         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
2934
2935 2010-07-28  Bruno Haible  <bruno@clisp.org>
2936
2937         Use spaces for indentation, not tabs.
2938         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
2939
2940 2010-07-27  Bruno Haible  <bruno@clisp.org>
2941
2942         mbspcasecmp: Fix function specification.
2943         * lib/string.in.h (mbspcasecmp): Fix specification comment.
2944         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
2945         Reported by Eric Blake <eblake@redhat.com>.
2946
2947 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
2948
2949         timespec: use cast and not conditional, as truncation isn't possible
2950         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
2951         instead of a conditional.  Comment about the situation in more detail.
2952         This undoes most of the 2009-10-29 patch.
2953
2954 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
2955
2956         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
2957         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
2958         * lib/unistr/u8-strchr.c: Likewise.
2959         * modules/unistr/u8-chr: Depend on memchr.
2960
2961         unistr/u*-strchr: add tests
2962         * modules/unistr/u8-strchr-tests: New file.
2963         * modules/unistr/u16-strchr-tests: New file.
2964         * modules/unistr/u32-strchr-tests: New file.
2965         * tests/unistr/test-strchr.h: New file.
2966         * tests/unistr/test-u8-strchr.c: New file.
2967         * tests/unistr/test-u16-strchr.c: New file.
2968         * tests/unistr/test-u32-strchr.c: New file.
2969
2970         unistr/u*-chr: test multibyte sequences more
2971         * tests/unistr/test-chr.h: Do complete testing of the characters in the
2972         test vector.
2973         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
2974         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
2975         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
2976
2977         unistr/u*-chr: test multibyte sequences
2978         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
2979
2980         unistr/u*-chr: prepare for multibyte tests
2981         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
2982         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
2983         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
2984         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
2985         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
2986         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
2987
2988 2010-07-18  Bruno Haible  <bruno@clisp.org>
2989
2990         unistr/u8-strchr: Optimize non-ASCII argument case.
2991         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
2992         because the first byte often matches anyway.
2993         Reported by Pádraig Brady <P@draigbrady.com>.
2994
2995 2010-07-15  Karl Berry  <karl@gnu.org>
2996
2997         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
2998
2999 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
3000
3001         getcwd: on Solaris, work better if ancestors are inaccessible
3002         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
3003         buffer and size, try again with a large buffer.  This works better
3004         on Solaris, since its getcwd succeeds even if the path to the root
3005         is inaccessible, and this is helpful in common cases such as .zfs
3006         hidden directories.  Problem reported by J Chapman Flack in
3007         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
3008         Use system getcwd if it's declared, not merely if it's partly
3009         working; use the partly-working test only to avoid needless effort
3010         if the system getcwd fails.
3011         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
3012         comment that was already obsolete and is now even more obsolete.
3013         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
3014         now might call strdup.
3015
3016 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
3017
3018         pthread: Add enough so that coreutils/src/sort.c compiles.
3019         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
3020         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
3021         gnulib. Include <sched.h> and <time.h>, as per POSIX.
3022         Include <sys/types.h>, in case it defines pthread_t.
3023         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
3024         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
3025         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
3026         (pthread_rwlockattr_t, pthread_spinlock_t):
3027         New typedefs, if HAVE_PTHREAD_T is not defined.
3028         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
3029         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
3030         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
3031         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
3032         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
3033         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
3034         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
3035         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
3036         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
3037         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
3038         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
3039         New macros.
3040         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
3041         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
3042         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
3043         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
3044         (pthread_spin_unlock): New dummy functions.
3045         (pthread_create): Return EAGAIN; don't set errno.
3046         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
3047         require AC_C_INLINE.
3048         * modules/pthread (Depends-on): Add sched, time.
3049         (pthread.h): Use AM_V_GEN.
3050
3051 2010-07-13  Bruno Haible  <bruno@clisp.org>
3052
3053         striconveh: Don't malloc memory if the result buffer is sufficient.
3054         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
3055         buffer if its size is sufficient.
3056         Reported by Ludovic Courtès <ludo@gnu.org>.
3057
3058 2010-07-13  Bruno Haible  <bruno@clisp.org>
3059
3060         strtod: Add safety check.
3061         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
3062
3063 2010-07-12  Bruno Haible  <bruno@clisp.org>
3064
3065         Unify tests that set gl_cv_func_ldexpl_no_libm.
3066         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
3067         gl_FUNC_LDEXPL.
3068         (gl_FUNC_LDEXPL): Invoke it.
3069         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
3070
3071 2010-07-12  Bruno Haible  <bruno@clisp.org>
3072
3073         Unify tests that set gl_cv_func_ldexp_no_libm.
3074         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
3075         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
3076         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
3077         (configure.ac): Simply invoke gl_FUNC_LDEXP.
3078         * modules/strtod (Files): Add m4/ldexp.m4.
3079
3080 2010-07-12  Bruno Haible  <bruno@clisp.org>
3081
3082         Unify tests that set gl_cv_func_frexpl_no_libm.
3083         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
3084         gl_FUNC_FREXPL_NO_LIBM.
3085         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
3086         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
3087
3088 2010-07-12  Bruno Haible  <bruno@clisp.org>
3089
3090         Unify tests that set gl_cv_func_frexp_no_libm.
3091         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
3092         gl_FUNC_FREXP_NO_LIBM.
3093         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
3094         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
3095
3096 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
3097
3098         memcoll: clarify sizes versus lengths, document better, and tweak perf
3099         * lib/memcoll.c (strcoll_loop, memcoll0):
3100         Improve quality of descriptive comments.  Name variables
3101         consistently as to whether they are lengths (which do not include
3102         terminating null) versus sizes (which do).
3103         * lib/xmemcoll.c (xmemcoll0): Likewise.
3104         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
3105         returned when s1size == 0; this is easier to compile and saves
3106         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
3107
3108 2010-07-12  Bruno Haible  <bruno@clisp.org>
3109
3110         Tests for module '_Exit'.
3111         * modules/_Exit-tests: New file.
3112         * tests/test-_Exit.sh: New file.
3113         * tests/test-_Exit.c: New file.
3114
3115         New module '_Exit'.
3116         * lib/stdlib.in.h (__attribute__): New macro.
3117         (_Exit): New declaration.
3118         * lib/_Exit.c: New file.
3119         * m4/_Exit.m4: New file.
3120         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
3121         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
3122         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
3123         * modules/_Exit: New file.
3124         * tests/test-stdlib-c++.cc (_Exit): Check signature.
3125         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
3126
3127 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
3128
3129         strtod: make it more-accurate typically, and don't require libm
3130         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
3131         Include limits.h.  Don't include string.h.
3132         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
3133         (locale_isspace): New function, so that no casts are needed to
3134         check whether *s is a space.
3135         (ldexp): Provide an unused dummy if not available.
3136         (scale_radix_exp, parse_number, underlying_strtod): New functions.
3137         (strtod): Use them.  This implementation prefers to use the
3138         underlying strtod if available, falling back on our own code
3139         only to fix known bugs.  This is more likely to produce an
3140         accurate result.  Also, it avoids the use of libm functions.
3141         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
3142         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
3143         was absent, but it caused a test failure with coreutils.
3144         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
3145         with libm.
3146         * modules/strtod (Makefile.am, Link): libm is no longer needed.
3147         * modules/strtod-tests (Makefile.am): Likewise.
3148
3149 2010-07-11  Pádraig Brady  <P@draigBrady.com>
3150             Bruno Haible  <bruno@clisp.org>
3151
3152         unistr/u8-strchr: Optimize ASCII argument case.
3153         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
3154
3155 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
3156
3157         (x)memcoll: minor tweaks
3158         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
3159         is after the type that it qualifies.
3160         (memcoll0): Likewise.
3161         * lib/memcoll.h (memcoll0): Likewise.
3162         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
3163         * lib/xmemcoll.h (xmemcoll0): Likewise.
3164         * lib/memcoll.c (memcoll0): Correct the comment.  This function
3165         differs from memcoll in that the NUL byte is part of the argument.
3166         Omit the abort-checks, as performance is a real issue here.  Plus,
3167         the checks were wrong anyway (an off-by-one error).  Omit local
3168         variable 'diff', as it's a bit clearer that way.
3169         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
3170         no longer needed.
3171
3172 2010-07-08  Chen Guo <chenguo4@yahoo.com>
3173
3174         (x)memcoll: speedup when input is known to be NUL delimited
3175         * lib/memcoll.c: Include stdlib.
3176         (memcoll0) New function.
3177         (strcoll_loop) New function, refactored for use in both memcoll
3178         and memcoll0.
3179         * lib/memcoll.h: Add prototype for memcoll0.
3180         * lib/xmemcoll.c: (xmemcoll0) New function.
3181         (collate_error) New function, refactored for use in both xmemcoll
3182         and xmemcoll0.
3183         * lib/xmemcoll.h: Add prototype for xmemcoll0.
3184         * m4/memcoll.m4: add inline invocation.
3185
3186 2010-07-06  Pádraig Brady  <P@draigBrady.com>
3187
3188         * build-aux/bootstrap: Remove any local translations
3189         from the translation project synchronization directory,
3190         so that local only translations are not distributed.
3191
3192 2010-07-04  Bruno Haible  <bruno@clisp.org>
3193
3194         fsusage: Clarify which code applies to which platforms.
3195         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
3196         platform.
3197         * lib/fsusage.c (get_fs_usage): Likewise.
3198
3199 2010-07-04  Bruno Haible  <bruno@clisp.org>
3200
3201         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
3202         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
3203         Reported by Martin Lambers <marlam@marlam.de>.
3204
3205 2010-07-04  Jim Meyering  <meyering@redhat.com>
3206
3207         hash: once again explicitly disallow insertion of NULL
3208         * lib/hash.c (hash_insert0): Reinstate just-removed test:
3209         inserting a NULL pointer cannot work with these functions.
3210         Add a comment with details.
3211         This reverts part of the 2010-07-01 commit, 5bef1a35
3212         "hash: extend module to deal with non-pointer keys".
3213
3214 2010-07-01  Bruno Haible  <bruno@clisp.org>
3215
3216         stdbool: Update doc.
3217         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
3218         Info from Christian Weisgerber <naddy@mips.inka.de>.
3219
3220 2010-07-01  Jim Meyering  <meyering@redhat.com>
3221
3222         hash: extend module to deal with non-pointer keys
3223         * lib/hash.c (hash_insert0): New interface, much like hash_insert
3224         but that allows insertion of non-pointer entries.
3225         Do not disallow an ENTRY value of NULL.
3226         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
3227         * lib/hash.h (hash_insert0): Declare.
3228
3229 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
3230
3231         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
3232         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
3233         not present (i.e. with autoconf 2.59 and when using gettextize, not
3234         gnulib), require AC_GNU_SOURCE instead.
3235
3236 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
3237
3238         idpriv-drop: Fix tests.
3239         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
3240         not to the test-idpriv-droptemp program.
3241
3242 2010-06-29  Bruno Haible  <bruno@clisp.org>
3243
3244         string: Fix syntax error with g++ 2.96.
3245         * lib/string.in.h (__pure__): Remove definition.
3246         (_GL_ATTRIBUTE_PURE): New macro.
3247         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
3248         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
3249         Reported by Christian Weisgerber <naddy@mips.inka.de>.
3250
3251 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
3252
3253         unitypes: Fix bug introduced on 2010-05-18.
3254         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
3255
3256 2010-06-22  Eric Blake  <eblake@redhat.com>
3257
3258         memmem: slight optimization
3259         * lib/str-two-way.h (critical_factorization): Update comments.
3260         Reduce work during factorization phase.
3261         Reported by Carlos Bueno <carlos@bueno.org>.
3262
3263 2010-06-21  Bruno Haible  <bruno@clisp.org>
3264
3265         Fix HAVE_CALLOC_POSIX misnomer.
3266         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
3267         !HAVE_CALLOC_POSIX.
3268         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
3269         HAVE_CALLOC_POSIX.
3270         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
3271         instead of HAVE_CALLOC_POSIX.
3272         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
3273         HAVE_CALLOC_POSIX.
3274
3275         Use modern idiom for calloc() replacement.
3276         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
3277         AC_FUNC_CALLOC.
3278         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
3279         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
3280         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
3281         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
3282         (gl_REPLACE_CALLOC): New macro.
3283
3284 2010-06-21  Bruno Haible  <bruno@clisp.org>
3285
3286         Fix HAVE_REALLOC_POSIX misnomer.
3287         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
3288         !HAVE_REALLOC_POSIX.
3289         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
3290         HAVE_REALLOC_POSIX.
3291         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
3292         instead of HAVE_REALLOC_POSIX.
3293         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
3294         HAVE_REALLOC_POSIX.
3295
3296         Use modern idiom for realloc() replacement.
3297         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
3298         AC_FUNC_REALLOC.
3299         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
3300         Autoconf's AC_FUNC_REALLOC.
3301         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
3302         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
3303         (gl_REPLACE_REALLOC): New macro.
3304         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
3305
3306 2010-06-21  Bruno Haible  <bruno@clisp.org>
3307
3308         Fix HAVE_MALLOC_POSIX misnomer.
3309         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
3310         !HAVE_MALLOC_POSIX.
3311         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
3312         HAVE_MALLOC_POSIX.
3313         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
3314         instead of HAVE_MALLOC_POSIX.
3315         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
3316         HAVE_MALLOC_POSIX.
3317
3318         Use modern idiom for malloc() replacement.
3319         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
3320         AC_FUNC_MALLOC.
3321         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
3322         Autoconf's AC_FUNC_MALLOC.
3323         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
3324         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
3325         (gl_REPLACE_MALLOC): New macro.
3326         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
3327
3328 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
3329
3330         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
3331         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
3332         This macro takes 3 arguments, not 4.
3333
3334 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
3335
3336         ipv6: fix detection under mingw
3337         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
3338         in6_addr.
3339
3340 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
3341
3342         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
3343         that strtod() works when cross-compiling to a glibc version known
3344         to work.
3345
3346 2010-06-15  Bruno Haible  <bruno@clisp.org>
3347
3348         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
3349
3350 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
3351
3352         select: Correct timeout.
3353         * lib/select.c (rpl_select): Compute wait_timeout correctly.
3354
3355 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
3356
3357         git-version-gen: init shell var to avoid env var influence
3358         * build-aux/git-version-gen (v): Init shell var to empty.
3359
3360 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
3361
3362         priv-set: Don't assume that priv.h exists merely because getppriv does.
3363         See Jan Andersen's bug report about AIX 5L in
3364         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
3365         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
3366         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
3367         * lib/priv-set.h: Likewise.
3368         * tests/test-priv-set.c: Likewise.
3369
3370 2010-06-13  Bruno Haible  <bruno@clisp.org>
3371
3372         relocatable: Make it easier to test whether to install wrappers.
3373         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
3374         RELOCATABLE_VIA_WRAPPER.
3375
3376 2010-06-13  Bruno Haible  <bruno@clisp.org>
3377
3378         gnulib-tool: Display specified modules and dependencies differently.
3379         * gnulib-tool (func_show_module_list): New function.
3380         (func_import, func_create_testdir): Invoke it.
3381         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
3382
3383 2010-06-13  Bruno Haible  <bruno@clisp.org>
3384
3385         gnulib-tool: Align code of func_import and func_create_testdir.
3386         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
3387         specified_modules.
3388
3389 2010-06-12  Jim Meyering  <meyering@redhat.com>
3390
3391         test-inttostr: avoid spurious failure on Solaris 9
3392         * tests/test-inttostr.c (main): Skip the test when snprintf fails
3393         to accept "%ju".  Reported by Bruno Haible.
3394
3395 2010-06-11  Jim Meyering  <meyering@redhat.com>
3396
3397         test-sys_socket: mark variables as used more readably
3398         * tests/test-sys_socket.c (main): Mark otherwise unused variables
3399         as "used" explicitly via (void) statement casts.  This is more
3400         readable than using them in an artificial return expression.
3401         Suggestion from Bruno Haible.
3402
3403 2010-06-11  Bruno Haible  <bruno@clisp.org>
3404
3405         Avoid some more warnings from "gcc -Wwrite-strings".
3406         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
3407         to 'const char *'.
3408         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
3409         * tests/test-c-strcasestr.c (main): Likewise.
3410         * tests/test-mbscasestr1.c (main): Likewise.
3411         * tests/test-mbscasestr2.c (main): Likewise.
3412         * tests/test-memmem.c (main): Likewise.
3413         * tests/test-strstr.c (main): Likewise.
3414         * tests/test-strcasestr.c (main): Likewise.
3415
3416 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3417
3418         init.sh: change framework_failure_ to fail with status 99, not 1
3419         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
3420         automake's parallel-tests rule that this is an unexpected failure,
3421         even if the test is listed in XFAIL_TESTS.
3422
3423 2010-06-11  Jim Meyering  <meyering@redhat.com>
3424
3425         test-inttostr: avoid warnings about 4-6KB literal strings
3426         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
3427         Include "macros.h", for its definition of ASSERT.
3428         (CK): s/assert/ASSERT/
3429         * modules/inttostr-tests (Files): Add macros.h.
3430
3431         init.sh: don't use $ME_ or skip_ before they are defined
3432         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
3433         their first uses.  Also hoist their companions: warn_, fail_,
3434         framework_failure_, $stderr_fileno.  Prompted by a patch from
3435         Stefano Lattarini.
3436
3437         test-sys_socket: avoid set-but-not-used warnings from gcc
3438         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
3439         avoid warning about set-but-not-used variables.
3440
3441         test-xvasprintf: avoid 'const' discard warnings
3442         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
3443         "const" when assigning from literal strings.
3444         (test_xasprintf): Add "void" in function argument list to placate
3445         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
3446
3447         tests: avoid compilation warnings in argmatch and exclude tests...
3448         in packages that define ARGMATCH_DIE_DECL, like coreutils.
3449         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
3450         Since it always exits, declare with the "noreturn" attribute.
3451         * tests/test-argmatch.c: Likewise.
3452
3453         tests: avoid 'const' discard warnings in mbsstr tests
3454         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
3455         * tests/test-mbsstr2.c (main): Likewise.
3456
3457         test-verify: avoid warning from gcc's -Wmissing-declarations
3458         * tests/test-verify.c (function): Declare to be static.
3459
3460         test-inttostr.c: include <string.h> for use of strcmp
3461         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
3462
3463         test-linkat: avoid failed assertion on "other" architectures
3464         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
3465         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
3466         sparc: https://bugs.launchpad.net/bugs/591968
3467
3468 2010-06-11  Jim Meyering  <meyering@redhat.com>
3469
3470         printf.m4: avoid autoconf's "Expanded Before Required" warning
3471         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
3472         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
3473         autoconf warning.
3474
3475 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
3476
3477         Replacement header templates are now named with ".in", not "_".
3478         * doc/gnulib-intro.texi: Correct.
3479
3480 2010-06-10  Jim Meyering  <meyering@redhat.com>
3481
3482         inttostr-tests: depend on snprintf, not snprintf-posix
3483         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
3484         snprintf-posix, to avoid this aclocal failure:
3485           missing file gnulib-tests/vasnprintf.c
3486           configure.ac:45: error: expected source file, required through \
3487           AC_LIBSOURCES, not found
3488
3489 2010-06-10  Jim Meyering  <meyering@redhat.com>
3490
3491         inttostr: add a new function, inttostr, and tests
3492         The namesake function was not available.  The existence of the
3493         template file, inttostr.c makes its addition nontrivial.
3494         * lib/anytostr.c: Rename from inttostr.c.
3495         (anytostr): Rename from inttostr.
3496         * lib/inttostr.c: New file.
3497         * modules/inttostr (Files): Add anytostr.c.
3498         (Makefile.am): Set lib_SOURCES instead of ...
3499         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
3500         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
3501         * lib/offtostr.c: Likewise.
3502         * lib/uinttostr.c: Likewise.
3503         * lib/umaxtostr.c: Likewise.
3504         * modules/inttostr-tests: New file.
3505         * tests/test-inttostr.c: New file.  Test these functions.
3506
3507 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
3508             Bruno Haible  <bruno@clisp.org>
3509
3510         Add "Extending Gnulib" chapter to manual.
3511         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
3512         chapter.
3513         (Extending Gnulib): New chapter.
3514         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
3515         chapter.
3516
3517 2010-06-09  Bruno Haible  <bruno@clisp.org>
3518
3519         Avoid relocwrapper link errors due to gnulib replacement functions.
3520         * lib/areadlink.c: Use the system's malloc, realloc functions.
3521         (areadlink): Set errno to ENOMEM explicitly.
3522         * modules/areadlink (Depends-on): Remove malloc-posix.
3523         Reported by Ben Pfaff <blp@cs.stanford.edu>.
3524
3525 2010-06-09  Bruno Haible  <bruno@clisp.org>
3526
3527         Avoid relocwrapper link errors due to gnulib replacement functions.
3528         * lib/canonicalize-lgpl.c: Use the system's malloc function.
3529         * lib/malloca.c: Likewise.
3530         * lib/relocatable.c: Likewise.
3531         * lib/progreloc.c: Use the system's malloc, sprintf functions.
3532         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
3533         * lib/setenv.c: Use the system's malloc, realloc functions.
3534         * lib/strerror.c: Use the system's sprintf function.
3535         Reported by Ben Pfaff <blp@cs.stanford.edu>.
3536
3537 2010-06-04  Bruno Haible  <bruno@clisp.org>
3538
3539         Prefer documented low-level autoconf macro names.
3540         * m4/lib-link.m4: Use m4_translit instead of translit.
3541         * m4/environ.m4: Likewise.
3542         * m4/mathfunc.m4: Likewise.
3543         * m4/onceonly.m4: Likewise.
3544         * m4/stdint.m4: Likewise.
3545         Suggested by Eric Blake.
3546
3547 2010-06-04  Martin Lambers  <marlam@marlam.de>
3548             Bruno Haible  <bruno@clisp.org>
3549
3550         havelib: Allow library names with '+' characters.
3551         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
3552         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
3553
3554 2010-06-09  Bruno Haible  <bruno@clisp.org>
3555
3556         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
3557         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
3558         realloc failed.
3559
3560 2010-06-08  Peter Simons  <simons@cryp.to>
3561
3562         maint.mk: make the news-check rule more configurable
3563         * top/maint.mk (news-check-lines-spec) New variable.
3564         (news-check): Use "sed -n 1,10p" in place of "head".
3565
3566 2010-06-07  Jim Meyering  <meyering@redhat.com>
3567
3568         do-release-commit-and-tag: fix typo in --help
3569         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
3570
3571         regex: avoid new dead-code warning with gcc-4.6.0
3572         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
3573         if-block containing a while-loop.  It's been unused for at least
3574         5 years.
3575
3576 2010-06-05  Bruno Haible  <bruno@clisp.org>
3577
3578         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
3579         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
3580
3581 2010-06-04  Bruno Haible  <bruno@clisp.org>
3582
3583         Update to GNU gettext 0.18.1.
3584         * modules/gettext (configure.ac): Require gettext infrastructure from
3585         version 0.18.1.
3586
3587 2010-06-03  Bruno Haible  <bruno@clisp.org>
3588
3589         Don't use AC_LIBOBJ with file names in subdirectories.
3590         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
3591         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
3592         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
3593         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
3594         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
3595         gl_LIBUNISTRING_LIBSOURCE.
3596         (Makefile.am): Augment lib_SOURCES here, conditionally.
3597         * NEWS: Drop requirement for Automake option 'subdir-objects'.
3598
3599 2010-06-03  Bruno Haible  <bruno@clisp.org>
3600
3601         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
3602         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
3603         expansion does not end with a newline.
3604         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
3605         unnecessary newline.
3606
3607 2010-06-03  Bruno Haible  <bruno@clisp.org>
3608
3609         Reduce dependencies.
3610         * tests/test-quotearg.h: New file, extracted from
3611         tests/test-quotearg.c.
3612         * tests/test-quotearg-simple.c: New file, extracted from
3613         tests/test-quotearg.c.
3614         * tests/test-quotearg.c: Don't include <ctype.h>.
3615         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
3616         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
3617         use_quote_double_quotes, use_quotearg_colon): Moved to
3618         tests/test-quotearg.h.
3619         (results_g, flag_results, custom_quotes, custom_results): Moved
3620         to tests/test-quotearg-simple.c.
3621         (main): Moved the part that does not depend on gettext to
3622         tests/test-quotearg-simple.c. Return 77 if the test cannot be
3623         performed.
3624         * modules/quotearg-simple: New file.
3625         * modules/quotearg-simple-tests: New file.
3626         * modules/quotearg (Depends-on): Add quotearg-simple.
3627         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
3628         (Files): Add tests/test-quotearg.h.
3629         Reported by Paolo Bonzini.
3630
3631 2010-06-03  Bruno Haible  <bruno@clisp.org>
3632
3633         Reduce dependencies.
3634         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
3635
3636 2010-06-03  Bruno Haible  <bruno@clisp.org>
3637
3638         time: Undefine more broken macros.
3639         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
3640         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
3641         Reported by Eric Blake.
3642
3643 2010-06-03  Bruno Haible  <bruno@clisp.org>
3644
3645         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
3646         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
3647         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
3648         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
3649         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
3650         Reported by Ludovic Courtès <ludo@gnu.org>.
3651
3652 2010-06-02  Eric Blake  <eblake@redhat.com>
3653
3654         time: work with mingw + pthreads-win32 library
3655         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
3656         if timespec is defined only in pthread.h.
3657         * modules/time (Makefile.am): Substitute it.
3658         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
3659         <pthread.h>, when needed.
3660         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
3661         from the library.
3662
3663 2010-05-31  Bruno Haible  <bruno@clisp.org>
3664
3665         Avoid expanding two macros in the wrong order.
3666         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
3667         gl_LIBUNISTRING if it is defined.
3668         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
3669         autoconf >= 2.64.
3670         Reported by Ludovic Courtès <ludo@gnu.org>.
3671
3672 2010-05-27  Jim Meyering  <meyering@redhat.com>
3673
3674         maint.mk: also prohibit "#undef" of always-defined symbols
3675         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
3676         Allow more than one space before the symbol name.
3677         (sc_prohibit_always-defined_macros): Use grep's -E, now that
3678         the regexp uses alternation.
3679
3680 2010-05-26  Eric Blake  <eblake@redhat.com>
3681
3682         maint.mk: avoid echo -e
3683         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
3684         Convert all uses of echo -* to printf.
3685         Reported by Matthias Bolte.
3686
3687 2010-05-25  Bruno Haible  <bruno@clisp.org>
3688
3689         Update to GNU gettext 0.18, part 2.
3690         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
3691         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
3692
3693 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3694
3695         Add missing include in test-pwrite.c.
3696         * tests/test-pwrite.c: Include string.h, for strcmp.
3697
3698 2010-05-24  Bruno Haible  <bruno@clisp.org>
3699
3700         * NEWS: Mention requirement for Automake option 'subdir-objects'.
3701
3702 2010-05-24  Bruno Haible  <bruno@clisp.org>
3703
3704         Don't use conversion with transliteration in u{8,16,32}_strcoll.
3705         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
3706         iconveh_error argument.
3707         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
3708         U_STRCONV_TO_LOCALE.
3709         * lib/unistr/u16-strcoll.c: Likewise.
3710         * lib/unistr/u32-strcoll.c: Likewise.
3711         * modules/unistr/u8-strcoll (Depends-on): Add
3712         uniconv/u8-strconv-to-enc, localcharset. Remove
3713         uniconv/u8-strconv-to-locale.
3714         (configure.ac): Bump version number.
3715         * modules/unistr/u16-strcoll (Depends-on): Add
3716         uniconv/u16-strconv-to-enc, localcharset. Remove
3717         uniconv/u16-strconv-to-locale.
3718         (configure.ac): Bump version number.
3719         * modules/unistr/u32-strcoll (Depends-on): Add
3720         uniconv/u32-strconv-to-enc, localcharset. Remove
3721         uniconv/u32-strconv-to-locale.
3722         (configure.ac): Bump version number.
3723
3724 2010-05-24  Bruno Haible  <bruno@clisp.org>
3725
3726         Avoid a test failure on NetBSD 5.0.
3727         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
3728         an iconv() bug.
3729
3730 2010-05-24  Bruno Haible  <bruno@clisp.org>
3731
3732         Adjust #include directive style.
3733         * modules/regex (Includes): Recommend to write <regex.h>.
3734
3735 2010-05-24  Bruno Haible  <bruno@clisp.org>
3736
3737         regex: Don't require alloca.
3738         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
3739         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
3740         only inside if (0).
3741
3742 2010-05-23  Jim Meyering  <meyering@redhat.com>
3743
3744         test-renameat.c: include <sys/stat.h>
3745         * tests/test-renameat.c: Include <sys/stat.h>; required for
3746         definition of S_IS* macros.
3747
3748 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
3749
3750         Update maintainer documentation for 'relocatable-prog' module.
3751         * doc/relocatable-maint.texi: Update.
3752         Comments by Bruno Haible.
3753
3754 2010-05-23  Bruno Haible  <bruno@clisp.org>
3755
3756         git-merge-changelog: Enable --split-merged-entry by default.
3757         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
3758         (usage): Don't mention this option any more.
3759         Reported by Ralf Wildenhues.
3760
3761 2010-05-23  Jim Meyering  <meyering@redhat.com>
3762
3763         test-pwrite: do not leave behind a test file named "out"
3764         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
3765         The trivial-looking use of init.sh is really necessary.
3766         It ensures that the temporary file, "out", is created in
3767         a temporary directory, and removed upon termination.
3768         * tests/test-pwrite.sh: Re-add file.
3769         * modules/pwrite-tests: Reference it.
3770
3771 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3772
3773         Fix output redirection buglet in init.sh.
3774         * tests/init.sh: Fix redirection of stderr.
3775
3776 2010-05-20  Simon Josefsson  <simon@josefsson.org>
3777
3778         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
3779
3780 2010-05-17  Simon Josefsson  <simon@josefsson.org>
3781
3782         * modules/valgrind-tests: New file.
3783         * m4/valgrind-tests.m4: New file.
3784         * doc/valgrind-tests.texi: New file.
3785         * doc/gnulib.texi (Running self-tests under valgrind): New
3786         section.
3787
3788 2010-05-19  Bruno Haible  <bruno@clisp.org>
3789
3790         Clean up dead code in recent commit.
3791         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
3792         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
3793         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
3794         Suggested by Paolo Bonzini.
3795
3796 2010-05-19  Bruno Haible  <bruno@clisp.org>
3797
3798         Avoid valgrind error reports from libunistring.
3799         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
3800         * modules/libunistring (Files): Add it.
3801         * modules/libunistring-optional (Files): Likewise.
3802
3803 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
3804             Bruno Haible  <bruno@clisp.org>
3805
3806         New module 'libunistring-optional'.
3807         * modules/libunistring-optional: New file.
3808         * m4/libunistring-base.m4: New file.
3809         * m4/libunistring-optional.m4: New file.
3810         * lib/unicase.in.h: Renamed from lib/unicase.h.
3811         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
3812         * lib/unictype.in.h: Renamed from lib/unictype.h.
3813         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
3814         * lib/uniname.in.h: Renamed from lib/uniname.h.
3815         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
3816         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
3817         * lib/unistr.in.h: Renamed from lib/unistr.h.
3818         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
3819         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
3820         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
3821         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
3822         gl_LIBUNISTRING. If the library was found, determine the installed
3823         version and set LIBUNISTRING_VERSION.
3824         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
3825         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
3826         handle a configuration option --with-included-libunistring.
3827         * modules/libunistring (Files): Add m4/absolute-header.m4.
3828         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
3829         Add m4/libunistring-base.m4.
3830         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
3831         (Makefile.am): Build unicase.h from unicase.in.h.
3832         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
3833         Add m4/libunistring-base.m4.
3834         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
3835         (Makefile.am): Build uniconv.h from uniconv.in.h.
3836         * modules/unictype/base (Files): Use unictype.in.h instead of
3837         unictype.h. Add m4/libunistring-base.m4.
3838         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
3839         (Makefile.am): Build unictype.h from unictype.in.h.
3840         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
3841         Add m4/libunistring-base.m4.
3842         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
3843         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
3844         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
3845         Add m4/libunistring-base.m4.
3846         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
3847         (Makefile.am): Build uniname.h from uniname.in.h.
3848         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
3849         Add m4/libunistring-base.m4.
3850         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
3851         (Makefile.am): Build uninorm.h from uninorm.in.h.
3852         * modules/unistdio/base (Files): Use unistdio.in.h instead of
3853         unistdio.h. Add m4/libunistring-base.m4.
3854         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
3855         (Makefile.am): Build unistdio.h from unistdio.in.h.
3856         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
3857         Add m4/libunistring-base.m4.
3858         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
3859         (Makefile.am): Build unistr.h from unistr.in.h.
3860         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
3861         Add m4/libunistring-base.m4.
3862         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
3863         (Makefile.am): Build unitypes.h from unitypes.in.h.
3864         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
3865         Add m4/libunistring-base.m4.
3866         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
3867         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
3868         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
3869         uniwidth.h. Add m4/libunistring-base.m4.
3870         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
3871         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
3872         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
3873         instead of augmenting lib_SOURCES.
3874         * modules/unicase/empty-suffix-context: Likewise.
3875         * modules/unicase/locale-language: Likewise.
3876         * modules/unicase/tolower: Likewise.
3877         * modules/unicase/totitle: Likewise.
3878         * modules/unicase/toupper: Likewise.
3879         * modules/unicase/u8-casecmp: Likewise.
3880         * modules/unicase/u8-casecoll: Likewise.
3881         * modules/unicase/u8-casefold: Likewise.
3882         * modules/unicase/u8-casexfrm: Likewise.
3883         * modules/unicase/u8-ct-casefold: Likewise.
3884         * modules/unicase/u8-ct-tolower: Likewise.
3885         * modules/unicase/u8-ct-totitle: Likewise.
3886         * modules/unicase/u8-ct-toupper: Likewise.
3887         * modules/unicase/u8-is-cased: Likewise.
3888         * modules/unicase/u8-is-casefolded: Likewise.
3889         * modules/unicase/u8-is-lowercase: Likewise.
3890         * modules/unicase/u8-is-titlecase: Likewise.
3891         * modules/unicase/u8-is-uppercase: Likewise.
3892         * modules/unicase/u8-prefix-context: Likewise.
3893         * modules/unicase/u8-suffix-context: Likewise.
3894         * modules/unicase/u8-tolower: Likewise.
3895         * modules/unicase/u8-totitle: Likewise.
3896         * modules/unicase/u8-toupper: Likewise.
3897         * modules/unicase/u16-casecmp: Likewise.
3898         * modules/unicase/u16-casecoll: Likewise.
3899         * modules/unicase/u16-casefold: Likewise.
3900         * modules/unicase/u16-casexfrm: Likewise.
3901         * modules/unicase/u16-ct-casefold: Likewise.
3902         * modules/unicase/u16-ct-tolower: Likewise.
3903         * modules/unicase/u16-ct-totitle: Likewise.
3904         * modules/unicase/u16-ct-toupper: Likewise.
3905         * modules/unicase/u16-is-cased: Likewise.
3906         * modules/unicase/u16-is-casefolded: Likewise.
3907         * modules/unicase/u16-is-lowercase: Likewise.
3908         * modules/unicase/u16-is-titlecase: Likewise.
3909         * modules/unicase/u16-is-uppercase: Likewise.
3910         * modules/unicase/u16-prefix-context: Likewise.
3911         * modules/unicase/u16-suffix-context: Likewise.
3912         * modules/unicase/u16-tolower: Likewise.
3913         * modules/unicase/u16-totitle: Likewise.
3914         * modules/unicase/u16-toupper: Likewise.
3915         * modules/unicase/u32-casecmp: Likewise.
3916         * modules/unicase/u32-casecoll: Likewise.
3917         * modules/unicase/u32-casefold: Likewise.
3918         * modules/unicase/u32-casexfrm: Likewise.
3919         * modules/unicase/u32-ct-casefold: Likewise.
3920         * modules/unicase/u32-ct-tolower: Likewise.
3921         * modules/unicase/u32-ct-totitle: Likewise.
3922         * modules/unicase/u32-ct-toupper: Likewise.
3923         * modules/unicase/u32-is-cased: Likewise.
3924         * modules/unicase/u32-is-casefolded: Likewise.
3925         * modules/unicase/u32-is-lowercase: Likewise.
3926         * modules/unicase/u32-is-titlecase: Likewise.
3927         * modules/unicase/u32-is-uppercase: Likewise.
3928         * modules/unicase/u32-prefix-context: Likewise.
3929         * modules/unicase/u32-suffix-context: Likewise.
3930         * modules/unicase/u32-tolower: Likewise.
3931         * modules/unicase/u32-totitle: Likewise.
3932         * modules/unicase/u32-toupper: Likewise.
3933         * modules/unicase/ulc-casecmp: Likewise.
3934         * modules/unicase/ulc-casecoll: Likewise.
3935         * modules/unicase/ulc-casexfrm: Likewise.
3936         * modules/uniconv/u8-conv-from-enc: Likewise.
3937         * modules/uniconv/u8-conv-to-enc: Likewise.
3938         * modules/uniconv/u8-strconv-from-enc: Likewise.
3939         * modules/uniconv/u8-strconv-from-locale: Likewise.
3940         * modules/uniconv/u8-strconv-to-enc: Likewise.
3941         * modules/uniconv/u8-strconv-to-locale: Likewise.
3942         * modules/uniconv/u16-conv-from-enc: Likewise.
3943         * modules/uniconv/u16-conv-to-enc: Likewise.
3944         * modules/uniconv/u16-strconv-from-enc: Likewise.
3945         * modules/uniconv/u16-strconv-from-locale: Likewise.
3946         * modules/uniconv/u16-strconv-to-enc: Likewise.
3947         * modules/uniconv/u16-strconv-to-locale: Likewise.
3948         * modules/uniconv/u32-conv-from-enc: Likewise.
3949         * modules/uniconv/u32-conv-to-enc: Likewise.
3950         * modules/uniconv/u32-strconv-from-enc: Likewise.
3951         * modules/uniconv/u32-strconv-from-locale: Likewise.
3952         * modules/uniconv/u32-strconv-to-enc: Likewise.
3953         * modules/uniconv/u32-strconv-to-locale: Likewise.
3954         * modules/unictype/bidicategory-byname: Likewise.
3955         * modules/unictype/bidicategory-name: Likewise.
3956         * modules/unictype/bidicategory-of: Likewise.
3957         * modules/unictype/bidicategory-test: Likewise.
3958         * modules/unictype/block-list: Likewise.
3959         * modules/unictype/block-test: Likewise.
3960         * modules/unictype/category-C: Likewise.
3961         * modules/unictype/category-Cc: Likewise.
3962         * modules/unictype/category-Cf: Likewise.
3963         * modules/unictype/category-Cn: Likewise.
3964         * modules/unictype/category-Co: Likewise.
3965         * modules/unictype/category-Cs: Likewise.
3966         * modules/unictype/category-L: Likewise.
3967         * modules/unictype/category-Ll: Likewise.
3968         * modules/unictype/category-Lm: Likewise.
3969         * modules/unictype/category-Lo: Likewise.
3970         * modules/unictype/category-Lt: Likewise.
3971         * modules/unictype/category-Lu: Likewise.
3972         * modules/unictype/category-M: Likewise.
3973         * modules/unictype/category-Mc: Likewise.
3974         * modules/unictype/category-Me: Likewise.
3975         * modules/unictype/category-Mn: Likewise.
3976         * modules/unictype/category-N: Likewise.
3977         * modules/unictype/category-Nd: Likewise.
3978         * modules/unictype/category-Nl: Likewise.
3979         * modules/unictype/category-No: Likewise.
3980         * modules/unictype/category-P: Likewise.
3981         * modules/unictype/category-Pc: Likewise.
3982         * modules/unictype/category-Pd: Likewise.
3983         * modules/unictype/category-Pe: Likewise.
3984         * modules/unictype/category-Pf: Likewise.
3985         * modules/unictype/category-Pi: Likewise.
3986         * modules/unictype/category-Po: Likewise.
3987         * modules/unictype/category-Ps: Likewise.
3988         * modules/unictype/category-S: Likewise.
3989         * modules/unictype/category-Sc: Likewise.
3990         * modules/unictype/category-Sk: Likewise.
3991         * modules/unictype/category-Sm: Likewise.
3992         * modules/unictype/category-So: Likewise.
3993         * modules/unictype/category-Z: Likewise.
3994         * modules/unictype/category-Zl: Likewise.
3995         * modules/unictype/category-Zp: Likewise.
3996         * modules/unictype/category-Zs: Likewise.
3997         * modules/unictype/category-and: Likewise.
3998         * modules/unictype/category-and-not: Likewise.
3999         * modules/unictype/category-byname: Likewise.
4000         * modules/unictype/category-name: Likewise.
4001         * modules/unictype/category-none: Likewise.
4002         * modules/unictype/category-of: Likewise.
4003         * modules/unictype/category-or: Likewise.
4004         * modules/unictype/category-test: Likewise.
4005         * modules/unictype/combining-class: Likewise.
4006         * modules/unictype/ctype-alnum: Likewise.
4007         * modules/unictype/ctype-alpha: Likewise.
4008         * modules/unictype/ctype-blank: Likewise.
4009         * modules/unictype/ctype-cntrl: Likewise.
4010         * modules/unictype/ctype-digit: Likewise.
4011         * modules/unictype/ctype-graph: Likewise.
4012         * modules/unictype/ctype-lower: Likewise.
4013         * modules/unictype/ctype-print: Likewise.
4014         * modules/unictype/ctype-punct: Likewise.
4015         * modules/unictype/ctype-space: Likewise.
4016         * modules/unictype/ctype-upper: Likewise.
4017         * modules/unictype/ctype-xdigit: Likewise.
4018         * modules/unictype/decimal-digit: Likewise.
4019         * modules/unictype/digit: Likewise.
4020         * modules/unictype/mirror: Likewise.
4021         * modules/unictype/numeric: Likewise.
4022         * modules/unictype/property-alphabetic: Likewise.
4023         * modules/unictype/property-ascii-hex-digit: Likewise.
4024         * modules/unictype/property-bidi-arabic-digit: Likewise.
4025         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
4026         * modules/unictype/property-bidi-block-separator: Likewise.
4027         * modules/unictype/property-bidi-boundary-neutral: Likewise.
4028         * modules/unictype/property-bidi-common-separator: Likewise.
4029         * modules/unictype/property-bidi-control: Likewise.
4030         * modules/unictype/property-bidi-embedding-or-override: Likewise.
4031         * modules/unictype/property-bidi-eur-num-separator: Likewise.
4032         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
4033         * modules/unictype/property-bidi-european-digit: Likewise.
4034         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
4035         * modules/unictype/property-bidi-left-to-right: Likewise.
4036         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
4037         * modules/unictype/property-bidi-other-neutral: Likewise.
4038         * modules/unictype/property-bidi-pdf: Likewise.
4039         * modules/unictype/property-bidi-segment-separator: Likewise.
4040         * modules/unictype/property-bidi-whitespace: Likewise.
4041         * modules/unictype/property-byname: Likewise.
4042         * modules/unictype/property-combining: Likewise.
4043         * modules/unictype/property-composite: Likewise.
4044         * modules/unictype/property-currency-symbol: Likewise.
4045         * modules/unictype/property-dash: Likewise.
4046         * modules/unictype/property-decimal-digit: Likewise.
4047         * modules/unictype/property-default-ignorable-code-point: Likewise.
4048         * modules/unictype/property-deprecated: Likewise.
4049         * modules/unictype/property-diacritic: Likewise.
4050         * modules/unictype/property-extender: Likewise.
4051         * modules/unictype/property-format-control: Likewise.
4052         * modules/unictype/property-grapheme-base: Likewise.
4053         * modules/unictype/property-grapheme-extend: Likewise.
4054         * modules/unictype/property-grapheme-link: Likewise.
4055         * modules/unictype/property-hex-digit: Likewise.
4056         * modules/unictype/property-hyphen: Likewise.
4057         * modules/unictype/property-id-continue: Likewise.
4058         * modules/unictype/property-id-start: Likewise.
4059         * modules/unictype/property-ideographic: Likewise.
4060         * modules/unictype/property-ids-binary-operator: Likewise.
4061         * modules/unictype/property-ids-trinary-operator: Likewise.
4062         * modules/unictype/property-ignorable-control: Likewise.
4063         * modules/unictype/property-iso-control: Likewise.
4064         * modules/unictype/property-join-control: Likewise.
4065         * modules/unictype/property-left-of-pair: Likewise.
4066         * modules/unictype/property-line-separator: Likewise.
4067         * modules/unictype/property-logical-order-exception: Likewise.
4068         * modules/unictype/property-lowercase: Likewise.
4069         * modules/unictype/property-math: Likewise.
4070         * modules/unictype/property-non-break: Likewise.
4071         * modules/unictype/property-not-a-character: Likewise.
4072         * modules/unictype/property-numeric: Likewise.
4073         * modules/unictype/property-other-alphabetic: Likewise.
4074         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
4075         * modules/unictype/property-other-grapheme-extend: Likewise.
4076         * modules/unictype/property-other-id-continue: Likewise.
4077         * modules/unictype/property-other-id-start: Likewise.
4078         * modules/unictype/property-other-lowercase: Likewise.
4079         * modules/unictype/property-other-math: Likewise.
4080         * modules/unictype/property-other-uppercase: Likewise.
4081         * modules/unictype/property-paired-punctuation: Likewise.
4082         * modules/unictype/property-paragraph-separator: Likewise.
4083         * modules/unictype/property-pattern-syntax: Likewise.
4084         * modules/unictype/property-pattern-white-space: Likewise.
4085         * modules/unictype/property-private-use: Likewise.
4086         * modules/unictype/property-punctuation: Likewise.
4087         * modules/unictype/property-quotation-mark: Likewise.
4088         * modules/unictype/property-radical: Likewise.
4089         * modules/unictype/property-sentence-terminal: Likewise.
4090         * modules/unictype/property-soft-dotted: Likewise.
4091         * modules/unictype/property-space: Likewise.
4092         * modules/unictype/property-terminal-punctuation: Likewise.
4093         * modules/unictype/property-test: Likewise.
4094         * modules/unictype/property-titlecase: Likewise.
4095         * modules/unictype/property-unassigned-code-value: Likewise.
4096         * modules/unictype/property-unified-ideograph: Likewise.
4097         * modules/unictype/property-uppercase: Likewise.
4098         * modules/unictype/property-variation-selector: Likewise.
4099         * modules/unictype/property-white-space: Likewise.
4100         * modules/unictype/property-xid-continue: Likewise.
4101         * modules/unictype/property-xid-start: Likewise.
4102         * modules/unictype/property-zero-width: Likewise.
4103         * modules/unictype/scripts: Likewise.
4104         * modules/unictype/syntax-c-ident: Likewise.
4105         * modules/unictype/syntax-c-whitespace: Likewise.
4106         * modules/unictype/syntax-java-ident: Likewise.
4107         * modules/unictype/syntax-java-whitespace: Likewise.
4108         * modules/unilbrk/u8-possible-linebreaks: Likewise.
4109         * modules/unilbrk/u8-width-linebreaks: Likewise.
4110         * modules/unilbrk/u16-possible-linebreaks: Likewise.
4111         * modules/unilbrk/u16-width-linebreaks: Likewise.
4112         * modules/unilbrk/u32-possible-linebreaks: Likewise.
4113         * modules/unilbrk/u32-width-linebreaks: Likewise.
4114         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
4115         * modules/unilbrk/ulc-width-linebreaks: Likewise.
4116         * modules/uniname/uniname: Likewise.
4117         * modules/uninorm/canonical-decomposition: Likewise.
4118         * modules/uninorm/composition: Likewise.
4119         * modules/uninorm/decomposing-form: Likewise.
4120         * modules/uninorm/decomposition: Likewise.
4121         * modules/uninorm/filter: Likewise.
4122         * modules/uninorm/nfc: Likewise.
4123         * modules/uninorm/nfd: Likewise.
4124         * modules/uninorm/nfkc: Likewise.
4125         * modules/uninorm/nfkd: Likewise.
4126         * modules/uninorm/u8-normalize: Likewise.
4127         * modules/uninorm/u8-normcmp: Likewise.
4128         * modules/uninorm/u8-normcoll: Likewise.
4129         * modules/uninorm/u8-normxfrm: Likewise.
4130         * modules/uninorm/u16-normalize: Likewise.
4131         * modules/uninorm/u16-normcmp: Likewise.
4132         * modules/uninorm/u16-normcoll: Likewise.
4133         * modules/uninorm/u16-normxfrm: Likewise.
4134         * modules/uninorm/u32-normalize: Likewise.
4135         * modules/uninorm/u32-normcmp: Likewise.
4136         * modules/uninorm/u32-normcoll: Likewise.
4137         * modules/uninorm/u32-normxfrm: Likewise.
4138         * modules/unistdio/u8-asnprintf: Likewise.
4139         * modules/unistdio/u8-asprintf: Likewise.
4140         * modules/unistdio/u8-snprintf: Likewise.
4141         * modules/unistdio/u8-sprintf: Likewise.
4142         * modules/unistdio/u8-u8-asnprintf: Likewise.
4143         * modules/unistdio/u8-u8-asprintf: Likewise.
4144         * modules/unistdio/u8-u8-snprintf: Likewise.
4145         * modules/unistdio/u8-u8-sprintf: Likewise.
4146         * modules/unistdio/u8-u8-vasnprintf: Likewise.
4147         * modules/unistdio/u8-u8-vasprintf: Likewise.
4148         * modules/unistdio/u8-u8-vsnprintf: Likewise.
4149         * modules/unistdio/u8-u8-vsprintf: Likewise.
4150         * modules/unistdio/u8-vasnprintf: Likewise.
4151         * modules/unistdio/u8-vasprintf: Likewise.
4152         * modules/unistdio/u8-vsnprintf: Likewise.
4153         * modules/unistdio/u8-vsprintf: Likewise.
4154         * modules/unistdio/u16-asnprintf: Likewise.
4155         * modules/unistdio/u16-asprintf: Likewise.
4156         * modules/unistdio/u16-snprintf: Likewise.
4157         * modules/unistdio/u16-sprintf: Likewise.
4158         * modules/unistdio/u16-u16-asnprintf: Likewise.
4159         * modules/unistdio/u16-u16-asprintf: Likewise.
4160         * modules/unistdio/u16-u16-snprintf: Likewise.
4161         * modules/unistdio/u16-u16-sprintf: Likewise.
4162         * modules/unistdio/u16-u16-vasnprintf: Likewise.
4163         * modules/unistdio/u16-u16-vasprintf: Likewise.
4164         * modules/unistdio/u16-u16-vsnprintf: Likewise.
4165         * modules/unistdio/u16-u16-vsprintf: Likewise.
4166         * modules/unistdio/u16-vasnprintf: Likewise.
4167         * modules/unistdio/u16-vasprintf: Likewise.
4168         * modules/unistdio/u16-vsnprintf: Likewise.
4169         * modules/unistdio/u16-vsprintf: Likewise.
4170         * modules/unistdio/u32-asnprintf: Likewise.
4171         * modules/unistdio/u32-asprintf: Likewise.
4172         * modules/unistdio/u32-snprintf: Likewise.
4173         * modules/unistdio/u32-sprintf: Likewise.
4174         * modules/unistdio/u32-u32-asnprintf: Likewise.
4175         * modules/unistdio/u32-u32-asprintf: Likewise.
4176         * modules/unistdio/u32-u32-snprintf: Likewise.
4177         * modules/unistdio/u32-u32-sprintf: Likewise.
4178         * modules/unistdio/u32-u32-vasnprintf: Likewise.
4179         * modules/unistdio/u32-u32-vasprintf: Likewise.
4180         * modules/unistdio/u32-u32-vsnprintf: Likewise.
4181         * modules/unistdio/u32-u32-vsprintf: Likewise.
4182         * modules/unistdio/u32-vasnprintf: Likewise.
4183         * modules/unistdio/u32-vasprintf: Likewise.
4184         * modules/unistdio/u32-vsnprintf: Likewise.
4185         * modules/unistdio/u32-vsprintf: Likewise.
4186         * modules/unistdio/ulc-asnprintf: Likewise.
4187         * modules/unistdio/ulc-asprintf: Likewise.
4188         * modules/unistdio/ulc-fprintf: Likewise.
4189         * modules/unistdio/ulc-snprintf: Likewise.
4190         * modules/unistdio/ulc-sprintf: Likewise.
4191         * modules/unistdio/ulc-vasnprintf: Likewise.
4192         * modules/unistdio/ulc-vasprintf: Likewise.
4193         * modules/unistdio/ulc-vfprintf: Likewise.
4194         * modules/unistdio/ulc-vsnprintf: Likewise.
4195         * modules/unistdio/ulc-vsprintf: Likewise.
4196         * modules/unistr/u8-check: Likewise.
4197         * modules/unistr/u8-chr: Likewise.
4198         * modules/unistr/u8-cmp: Likewise.
4199         * modules/unistr/u8-cmp2: Likewise.
4200         * modules/unistr/u8-cpy: Likewise.
4201         * modules/unistr/u8-cpy-alloc: Likewise.
4202         * modules/unistr/u8-endswith: Likewise.
4203         * modules/unistr/u8-mblen: Likewise.
4204         * modules/unistr/u8-mbsnlen: Likewise.
4205         * modules/unistr/u8-mbtouc: Likewise.
4206         * modules/unistr/u8-mbtouc-unsafe: Likewise.
4207         * modules/unistr/u8-mbtoucr: Likewise.
4208         * modules/unistr/u8-move: Likewise.
4209         * modules/unistr/u8-next: Likewise.
4210         * modules/unistr/u8-prev: Likewise.
4211         * modules/unistr/u8-set: Likewise.
4212         * modules/unistr/u8-startswith: Likewise.
4213         * modules/unistr/u8-stpcpy: Likewise.
4214         * modules/unistr/u8-stpncpy: Likewise.
4215         * modules/unistr/u8-strcat: Likewise.
4216         * modules/unistr/u8-strchr: Likewise.
4217         * modules/unistr/u8-strcmp: Likewise.
4218         * modules/unistr/u8-strcoll: Likewise.
4219         * modules/unistr/u8-strcpy: Likewise.
4220         * modules/unistr/u8-strcspn: Likewise.
4221         * modules/unistr/u8-strdup: Likewise.
4222         * modules/unistr/u8-strlen: Likewise.
4223         * modules/unistr/u8-strmblen: Likewise.
4224         * modules/unistr/u8-strmbtouc: Likewise.
4225         * modules/unistr/u8-strncat: Likewise.
4226         * modules/unistr/u8-strncmp: Likewise.
4227         * modules/unistr/u8-strncpy: Likewise.
4228         * modules/unistr/u8-strnlen: Likewise.
4229         * modules/unistr/u8-strpbrk: Likewise.
4230         * modules/unistr/u8-strrchr: Likewise.
4231         * modules/unistr/u8-strspn: Likewise.
4232         * modules/unistr/u8-strstr: Likewise.
4233         * modules/unistr/u8-strtok: Likewise.
4234         * modules/unistr/u8-to-u16: Likewise.
4235         * modules/unistr/u8-to-u32: Likewise.
4236         * modules/unistr/u8-uctomb: Likewise.
4237         * modules/unistr/u16-check: Likewise.
4238         * modules/unistr/u16-chr: Likewise.
4239         * modules/unistr/u16-cmp: Likewise.
4240         * modules/unistr/u16-cmp2: Likewise.
4241         * modules/unistr/u16-cpy: Likewise.
4242         * modules/unistr/u16-cpy-alloc: Likewise.
4243         * modules/unistr/u16-endswith: Likewise.
4244         * modules/unistr/u16-mblen: Likewise.
4245         * modules/unistr/u16-mbsnlen: Likewise.
4246         * modules/unistr/u16-mbtouc: Likewise.
4247         * modules/unistr/u16-mbtouc-unsafe: Likewise.
4248         * modules/unistr/u16-mbtoucr: Likewise.
4249         * modules/unistr/u16-move: Likewise.
4250         * modules/unistr/u16-next: Likewise.
4251         * modules/unistr/u16-prev: Likewise.
4252         * modules/unistr/u16-set: Likewise.
4253         * modules/unistr/u16-startswith: Likewise.
4254         * modules/unistr/u16-stpcpy: Likewise.
4255         * modules/unistr/u16-stpncpy: Likewise.
4256         * modules/unistr/u16-strcat: Likewise.
4257         * modules/unistr/u16-strchr: Likewise.
4258         * modules/unistr/u16-strcmp: Likewise.
4259         * modules/unistr/u16-strcoll: Likewise.
4260         * modules/unistr/u16-strcpy: Likewise.
4261         * modules/unistr/u16-strcspn: Likewise.
4262         * modules/unistr/u16-strdup: Likewise.
4263         * modules/unistr/u16-strlen: Likewise.
4264         * modules/unistr/u16-strmblen: Likewise.
4265         * modules/unistr/u16-strmbtouc: Likewise.
4266         * modules/unistr/u16-strncat: Likewise.
4267         * modules/unistr/u16-strncmp: Likewise.
4268         * modules/unistr/u16-strncpy: Likewise.
4269         * modules/unistr/u16-strnlen: Likewise.
4270         * modules/unistr/u16-strpbrk: Likewise.
4271         * modules/unistr/u16-strrchr: Likewise.
4272         * modules/unistr/u16-strspn: Likewise.
4273         * modules/unistr/u16-strstr: Likewise.
4274         * modules/unistr/u16-strtok: Likewise.
4275         * modules/unistr/u16-to-u32: Likewise.
4276         * modules/unistr/u16-to-u8: Likewise.
4277         * modules/unistr/u16-uctomb: Likewise.
4278         * modules/unistr/u32-check: Likewise.
4279         * modules/unistr/u32-chr: Likewise.
4280         * modules/unistr/u32-cmp: Likewise.
4281         * modules/unistr/u32-cmp2: Likewise.
4282         * modules/unistr/u32-cpy: Likewise.
4283         * modules/unistr/u32-cpy-alloc: Likewise.
4284         * modules/unistr/u32-endswith: Likewise.
4285         * modules/unistr/u32-mblen: Likewise.
4286         * modules/unistr/u32-mbsnlen: Likewise.
4287         * modules/unistr/u32-mbtouc: Likewise.
4288         * modules/unistr/u32-mbtouc-unsafe: Likewise.
4289         * modules/unistr/u32-mbtoucr: Likewise.
4290         * modules/unistr/u32-move: Likewise.
4291         * modules/unistr/u32-next: Likewise.
4292         * modules/unistr/u32-prev: Likewise.
4293         * modules/unistr/u32-set: Likewise.
4294         * modules/unistr/u32-startswith: Likewise.
4295         * modules/unistr/u32-stpcpy: Likewise.
4296         * modules/unistr/u32-stpncpy: Likewise.
4297         * modules/unistr/u32-strcat: Likewise.
4298         * modules/unistr/u32-strchr: Likewise.
4299         * modules/unistr/u32-strcmp: Likewise.
4300         * modules/unistr/u32-strcoll: Likewise.
4301         * modules/unistr/u32-strcpy: Likewise.
4302         * modules/unistr/u32-strcspn: Likewise.
4303         * modules/unistr/u32-strdup: Likewise.
4304         * modules/unistr/u32-strlen: Likewise.
4305         * modules/unistr/u32-strmblen: Likewise.
4306         * modules/unistr/u32-strmbtouc: Likewise.
4307         * modules/unistr/u32-strncat: Likewise.
4308         * modules/unistr/u32-strncmp: Likewise.
4309         * modules/unistr/u32-strncpy: Likewise.
4310         * modules/unistr/u32-strnlen: Likewise.
4311         * modules/unistr/u32-strpbrk: Likewise.
4312         * modules/unistr/u32-strrchr: Likewise.
4313         * modules/unistr/u32-strspn: Likewise.
4314         * modules/unistr/u32-strstr: Likewise.
4315         * modules/unistr/u32-strtok: Likewise.
4316         * modules/unistr/u32-to-u16: Likewise.
4317         * modules/unistr/u32-to-u8: Likewise.
4318         * modules/unistr/u32-uctomb: Likewise.
4319         * modules/uniwbrk/u8-wordbreaks: Likewise.
4320         * modules/uniwbrk/u16-wordbreaks: Likewise.
4321         * modules/uniwbrk/u32-wordbreaks: Likewise.
4322         * modules/uniwbrk/ulc-wordbreaks: Likewise.
4323         * modules/uniwbrk/wordbreak-property: Likewise.
4324         * modules/uniwidth/u8-strwidth: Likewise.
4325         * modules/uniwidth/u8-width: Likewise.
4326         * modules/uniwidth/u16-strwidth: Likewise.
4327         * modules/uniwidth/u16-width: Likewise.
4328         * modules/uniwidth/u32-strwidth: Likewise.
4329         * modules/uniwidth/u32-width: Likewise.
4330         * modules/uniwidth/width: Likewise.
4331         * modules/unicase/cased-tests (Makefile.am): Link all test programs
4332         with $(LIBUNISTRING).
4333         * modules/unicase/ignorable-tests: Likewise.
4334         * modules/unicase/locale-language-tests: Likewise.
4335         * modules/unicase/tolower-tests: Likewise.
4336         * modules/unicase/totitle-tests: Likewise.
4337         * modules/unicase/toupper-tests: Likewise.
4338         * modules/unicase/u8-casecmp-tests: Likewise.
4339         * modules/unicase/u8-casecoll-tests: Likewise.
4340         * modules/unicase/u8-casefold-tests: Likewise.
4341         * modules/unicase/u8-is-cased-tests: Likewise.
4342         * modules/unicase/u8-is-casefolded-tests: Likewise.
4343         * modules/unicase/u8-is-lowercase-tests: Likewise.
4344         * modules/unicase/u8-is-titlecase-tests: Likewise.
4345         * modules/unicase/u8-is-uppercase-tests: Likewise.
4346         * modules/unicase/u8-tolower-tests: Likewise.
4347         * modules/unicase/u8-totitle-tests: Likewise.
4348         * modules/unicase/u8-toupper-tests: Likewise.
4349         * modules/unicase/u16-casecmp-tests: Likewise.
4350         * modules/unicase/u16-casecoll-tests: Likewise.
4351         * modules/unicase/u16-casefold-tests: Likewise.
4352         * modules/unicase/u16-is-cased-tests: Likewise.
4353         * modules/unicase/u16-is-casefolded-tests: Likewise.
4354         * modules/unicase/u16-is-lowercase-tests: Likewise.
4355         * modules/unicase/u16-is-titlecase-tests: Likewise.
4356         * modules/unicase/u16-is-uppercase-tests: Likewise.
4357         * modules/unicase/u16-tolower-tests: Likewise.
4358         * modules/unicase/u16-totitle-tests: Likewise.
4359         * modules/unicase/u16-toupper-tests: Likewise.
4360         * modules/unicase/u32-casecmp-tests: Likewise.
4361         * modules/unicase/u32-casecoll-tests: Likewise.
4362         * modules/unicase/u32-casefold-tests: Likewise.
4363         * modules/unicase/u32-is-cased-tests: Likewise.
4364         * modules/unicase/u32-is-casefolded-tests: Likewise.
4365         * modules/unicase/u32-is-lowercase-tests: Likewise.
4366         * modules/unicase/u32-is-titlecase-tests: Likewise.
4367         * modules/unicase/u32-is-uppercase-tests: Likewise.
4368         * modules/unicase/u32-tolower-tests: Likewise.
4369         * modules/unicase/u32-totitle-tests: Likewise.
4370         * modules/unicase/u32-toupper-tests: Likewise.
4371         * modules/unicase/ulc-casecmp-tests: Likewise.
4372         * modules/unicase/ulc-casecoll-tests: Likewise.
4373         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
4374         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
4375         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
4376         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
4377         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
4378         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
4379         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
4380         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
4381         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
4382         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
4383         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
4384         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
4385         * modules/unictype/bidicategory-byname-tests: Likewise.
4386         * modules/unictype/bidicategory-name-tests: Likewise.
4387         * modules/unictype/bidicategory-of-tests: Likewise.
4388         * modules/unictype/bidicategory-test-tests: Likewise.
4389         * modules/unictype/block-list-tests: Likewise.
4390         * modules/unictype/block-of-tests: Likewise.
4391         * modules/unictype/block-test-tests: Likewise.
4392         * modules/unictype/category-C-tests: Likewise.
4393         * modules/unictype/category-Cc-tests: Likewise.
4394         * modules/unictype/category-Cf-tests: Likewise.
4395         * modules/unictype/category-Cn-tests: Likewise.
4396         * modules/unictype/category-Co-tests: Likewise.
4397         * modules/unictype/category-Cs-tests: Likewise.
4398         * modules/unictype/category-L-tests: Likewise.
4399         * modules/unictype/category-Ll-tests: Likewise.
4400         * modules/unictype/category-Lm-tests: Likewise.
4401         * modules/unictype/category-Lo-tests: Likewise.
4402         * modules/unictype/category-Lt-tests: Likewise.
4403         * modules/unictype/category-Lu-tests: Likewise.
4404         * modules/unictype/category-M-tests: Likewise.
4405         * modules/unictype/category-Mc-tests: Likewise.
4406         * modules/unictype/category-Me-tests: Likewise.
4407         * modules/unictype/category-Mn-tests: Likewise.
4408         * modules/unictype/category-N-tests: Likewise.
4409         * modules/unictype/category-Nd-tests: Likewise.
4410         * modules/unictype/category-Nl-tests: Likewise.
4411         * modules/unictype/category-No-tests: Likewise.
4412         * modules/unictype/category-P-tests: Likewise.
4413         * modules/unictype/category-Pc-tests: Likewise.
4414         * modules/unictype/category-Pd-tests: Likewise.
4415         * modules/unictype/category-Pe-tests: Likewise.
4416         * modules/unictype/category-Pf-tests: Likewise.
4417         * modules/unictype/category-Pi-tests: Likewise.
4418         * modules/unictype/category-Po-tests: Likewise.
4419         * modules/unictype/category-Ps-tests: Likewise.
4420         * modules/unictype/category-S-tests: Likewise.
4421         * modules/unictype/category-Sc-tests: Likewise.
4422         * modules/unictype/category-Sk-tests: Likewise.
4423         * modules/unictype/category-Sm-tests: Likewise.
4424         * modules/unictype/category-So-tests: Likewise.
4425         * modules/unictype/category-Z-tests: Likewise.
4426         * modules/unictype/category-Zl-tests: Likewise.
4427         * modules/unictype/category-Zp-tests: Likewise.
4428         * modules/unictype/category-Zs-tests: Likewise.
4429         * modules/unictype/category-and-not-tests: Likewise.
4430         * modules/unictype/category-and-tests: Likewise.
4431         * modules/unictype/category-byname-tests: Likewise.
4432         * modules/unictype/category-name-tests: Likewise.
4433         * modules/unictype/category-none-tests: Likewise.
4434         * modules/unictype/category-of-tests: Likewise.
4435         * modules/unictype/category-or-tests: Likewise.
4436         * modules/unictype/category-test-withtable-tests: Likewise.
4437         * modules/unictype/combining-class-tests: Likewise.
4438         * modules/unictype/ctype-alnum-tests: Likewise.
4439         * modules/unictype/ctype-alpha-tests: Likewise.
4440         * modules/unictype/ctype-blank-tests: Likewise.
4441         * modules/unictype/ctype-cntrl-tests: Likewise.
4442         * modules/unictype/ctype-digit-tests: Likewise.
4443         * modules/unictype/ctype-graph-tests: Likewise.
4444         * modules/unictype/ctype-lower-tests: Likewise.
4445         * modules/unictype/ctype-print-tests: Likewise.
4446         * modules/unictype/ctype-punct-tests: Likewise.
4447         * modules/unictype/ctype-space-tests: Likewise.
4448         * modules/unictype/ctype-upper-tests: Likewise.
4449         * modules/unictype/ctype-xdigit-tests: Likewise.
4450         * modules/unictype/decimal-digit-tests: Likewise.
4451         * modules/unictype/digit-tests: Likewise.
4452         * modules/unictype/mirror-tests: Likewise.
4453         * modules/unictype/numeric-tests: Likewise.
4454         * modules/unictype/property-alphabetic-tests: Likewise.
4455         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
4456         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
4457         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
4458         * modules/unictype/property-bidi-block-separator-tests: Likewise.
4459         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
4460         * modules/unictype/property-bidi-common-separator-tests: Likewise.
4461         * modules/unictype/property-bidi-control-tests: Likewise.
4462         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
4463         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
4464         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
4465         * modules/unictype/property-bidi-european-digit-tests: Likewise.
4466         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
4467         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
4468         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
4469         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
4470         * modules/unictype/property-bidi-pdf-tests: Likewise.
4471         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
4472         * modules/unictype/property-bidi-whitespace-tests: Likewise.
4473         * modules/unictype/property-byname-tests: Likewise.
4474         * modules/unictype/property-combining-tests: Likewise.
4475         * modules/unictype/property-composite-tests: Likewise.
4476         * modules/unictype/property-currency-symbol-tests: Likewise.
4477         * modules/unictype/property-dash-tests: Likewise.
4478         * modules/unictype/property-decimal-digit-tests: Likewise.
4479         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
4480         * modules/unictype/property-deprecated-tests: Likewise.
4481         * modules/unictype/property-diacritic-tests: Likewise.
4482         * modules/unictype/property-extender-tests: Likewise.
4483         * modules/unictype/property-format-control-tests: Likewise.
4484         * modules/unictype/property-grapheme-base-tests: Likewise.
4485         * modules/unictype/property-grapheme-extend-tests: Likewise.
4486         * modules/unictype/property-grapheme-link-tests: Likewise.
4487         * modules/unictype/property-hex-digit-tests: Likewise.
4488         * modules/unictype/property-hyphen-tests: Likewise.
4489         * modules/unictype/property-id-continue-tests: Likewise.
4490         * modules/unictype/property-id-start-tests: Likewise.
4491         * modules/unictype/property-ideographic-tests: Likewise.
4492         * modules/unictype/property-ids-binary-operator-tests: Likewise.
4493         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
4494         * modules/unictype/property-ignorable-control-tests: Likewise.
4495         * modules/unictype/property-iso-control-tests: Likewise.
4496         * modules/unictype/property-join-control-tests: Likewise.
4497         * modules/unictype/property-left-of-pair-tests: Likewise.
4498         * modules/unictype/property-line-separator-tests: Likewise.
4499         * modules/unictype/property-logical-order-exception-tests: Likewise.
4500         * modules/unictype/property-lowercase-tests: Likewise.
4501         * modules/unictype/property-math-tests: Likewise.
4502         * modules/unictype/property-non-break-tests: Likewise.
4503         * modules/unictype/property-not-a-character-tests: Likewise.
4504         * modules/unictype/property-numeric-tests: Likewise.
4505         * modules/unictype/property-other-alphabetic-tests: Likewise.
4506         * modules/unictype/property-other-default-ignorable-code-point-tests:
4507         Likewise.
4508         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
4509         * modules/unictype/property-other-id-continue-tests: Likewise.
4510         * modules/unictype/property-other-id-start-tests: Likewise.
4511         * modules/unictype/property-other-lowercase-tests: Likewise.
4512         * modules/unictype/property-other-math-tests: Likewise.
4513         * modules/unictype/property-other-uppercase-tests: Likewise.
4514         * modules/unictype/property-paired-punctuation-tests: Likewise.
4515         * modules/unictype/property-paragraph-separator-tests: Likewise.
4516         * modules/unictype/property-pattern-syntax-tests: Likewise.
4517         * modules/unictype/property-pattern-white-space-tests: Likewise.
4518         * modules/unictype/property-private-use-tests: Likewise.
4519         * modules/unictype/property-punctuation-tests: Likewise.
4520         * modules/unictype/property-quotation-mark-tests: Likewise.
4521         * modules/unictype/property-radical-tests: Likewise.
4522         * modules/unictype/property-sentence-terminal-tests: Likewise.
4523         * modules/unictype/property-soft-dotted-tests: Likewise.
4524         * modules/unictype/property-space-tests: Likewise.
4525         * modules/unictype/property-terminal-punctuation-tests: Likewise.
4526         * modules/unictype/property-test-tests: Likewise.
4527         * modules/unictype/property-titlecase-tests: Likewise.
4528         * modules/unictype/property-unassigned-code-value-tests: Likewise.
4529         * modules/unictype/property-unified-ideograph-tests: Likewise.
4530         * modules/unictype/property-uppercase-tests: Likewise.
4531         * modules/unictype/property-variation-selector-tests: Likewise.
4532         * modules/unictype/property-white-space-tests: Likewise.
4533         * modules/unictype/property-xid-continue-tests: Likewise.
4534         * modules/unictype/property-xid-start-tests: Likewise.
4535         * modules/unictype/property-zero-width-tests: Likewise.
4536         * modules/unictype/scripts-tests: Likewise.
4537         * modules/unictype/syntax-c-ident-tests: Likewise.
4538         * modules/unictype/syntax-c-whitespace-tests: Likewise.
4539         * modules/unictype/syntax-java-ident-tests: Likewise.
4540         * modules/unictype/syntax-java-whitespace-tests: Likewise.
4541         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
4542         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
4543         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
4544         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
4545         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
4546         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
4547         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
4548         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
4549         * modules/uniname/uniname-tests: Likewise.
4550         * modules/uninorm/canonical-decomposition-tests: Likewise.
4551         * modules/uninorm/compat-decomposition-tests: Likewise.
4552         * modules/uninorm/composition-tests: Likewise.
4553         * modules/uninorm/decomposing-form-tests: Likewise.
4554         * modules/uninorm/decomposition-tests: Likewise.
4555         * modules/uninorm/filter-tests: Likewise.
4556         * modules/uninorm/nfc-tests: Likewise.
4557         * modules/uninorm/nfd-tests: Likewise.
4558         * modules/uninorm/nfkc-tests: Likewise.
4559         * modules/uninorm/nfkd-tests: Likewise.
4560         * modules/uninorm/u8-normcmp-tests: Likewise.
4561         * modules/uninorm/u8-normcoll-tests: Likewise.
4562         * modules/uninorm/u16-normcmp-tests: Likewise.
4563         * modules/uninorm/u16-normcoll-tests: Likewise.
4564         * modules/uninorm/u32-normcmp-tests: Likewise.
4565         * modules/uninorm/u32-normcoll-tests: Likewise.
4566         * modules/unistdio/u8-asnprintf-tests: Likewise.
4567         * modules/unistdio/u8-vasnprintf-tests: Likewise.
4568         * modules/unistdio/u8-vasprintf-tests: Likewise.
4569         * modules/unistdio/u8-vsnprintf-tests: Likewise.
4570         * modules/unistdio/u8-vsprintf-tests: Likewise.
4571         * modules/unistdio/u16-asnprintf-tests: Likewise.
4572         * modules/unistdio/u16-vasnprintf-tests: Likewise.
4573         * modules/unistdio/u16-vasprintf-tests: Likewise.
4574         * modules/unistdio/u16-vsnprintf-tests: Likewise.
4575         * modules/unistdio/u16-vsprintf-tests: Likewise.
4576         * modules/unistdio/u32-asnprintf-tests: Likewise.
4577         * modules/unistdio/u32-vasnprintf-tests: Likewise.
4578         * modules/unistdio/u32-vasprintf-tests: Likewise.
4579         * modules/unistdio/u32-vsnprintf-tests: Likewise.
4580         * modules/unistdio/u32-vsprintf-tests: Likewise.
4581         * modules/unistdio/ulc-asnprintf-tests: Likewise.
4582         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
4583         * modules/unistdio/ulc-vasprintf-tests: Likewise.
4584         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
4585         * modules/unistdio/ulc-vsprintf-tests: Likewise.
4586         * modules/unistr/u8-check-tests: Likewise.
4587         * modules/unistr/u8-chr-tests: Likewise.
4588         * modules/unistr/u8-cmp-tests: Likewise.
4589         * modules/unistr/u8-cmp2-tests: Likewise.
4590         * modules/unistr/u8-cpy-alloc-tests: Likewise.
4591         * modules/unistr/u8-cpy-tests: Likewise.
4592         * modules/unistr/u8-mblen-tests: Likewise.
4593         * modules/unistr/u8-mbsnlen-tests: Likewise.
4594         * modules/unistr/u8-mbtouc-tests: Likewise.
4595         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
4596         * modules/unistr/u8-mbtoucr-tests: Likewise.
4597         * modules/unistr/u8-move-tests: Likewise.
4598         * modules/unistr/u8-next-tests: Likewise.
4599         * modules/unistr/u8-prev-tests: Likewise.
4600         * modules/unistr/u8-set-tests: Likewise.
4601         * modules/unistr/u8-stpcpy-tests: Likewise.
4602         * modules/unistr/u8-stpncpy-tests: Likewise.
4603         * modules/unistr/u8-strcat-tests: Likewise.
4604         * modules/unistr/u8-strcmp-tests: Likewise.
4605         * modules/unistr/u8-strcoll-tests: Likewise.
4606         * modules/unistr/u8-strcpy-tests: Likewise.
4607         * modules/unistr/u8-strdup-tests: Likewise.
4608         * modules/unistr/u8-strlen-tests: Likewise.
4609         * modules/unistr/u8-strmblen-tests: Likewise.
4610         * modules/unistr/u8-strmbtouc-tests: Likewise.
4611         * modules/unistr/u8-strncat-tests: Likewise.
4612         * modules/unistr/u8-strncmp-tests: Likewise.
4613         * modules/unistr/u8-strncpy-tests: Likewise.
4614         * modules/unistr/u8-strnlen-tests: Likewise.
4615         * modules/unistr/u8-to-u16-tests: Likewise.
4616         * modules/unistr/u8-to-u32-tests: Likewise.
4617         * modules/unistr/u8-uctomb-tests: Likewise.
4618         * modules/unistr/u16-check-tests: Likewise.
4619         * modules/unistr/u16-chr-tests: Likewise.
4620         * modules/unistr/u16-cmp-tests: Likewise.
4621         * modules/unistr/u16-cmp2-tests: Likewise.
4622         * modules/unistr/u16-cpy-alloc-tests: Likewise.
4623         * modules/unistr/u16-cpy-tests: Likewise.
4624         * modules/unistr/u16-mblen-tests: Likewise.
4625         * modules/unistr/u16-mbsnlen-tests: Likewise.
4626         * modules/unistr/u16-mbtouc-tests: Likewise.
4627         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
4628         * modules/unistr/u16-mbtoucr-tests: Likewise.
4629         * modules/unistr/u16-move-tests: Likewise.
4630         * modules/unistr/u16-next-tests: Likewise.
4631         * modules/unistr/u16-prev-tests: Likewise.
4632         * modules/unistr/u16-set-tests: Likewise.
4633         * modules/unistr/u16-stpcpy-tests: Likewise.
4634         * modules/unistr/u16-stpncpy-tests: Likewise.
4635         * modules/unistr/u16-strcat-tests: Likewise.
4636         * modules/unistr/u16-strcmp-tests: Likewise.
4637         * modules/unistr/u16-strcoll-tests: Likewise.
4638         * modules/unistr/u16-strcpy-tests: Likewise.
4639         * modules/unistr/u16-strdup-tests: Likewise.
4640         * modules/unistr/u16-strlen-tests: Likewise.
4641         * modules/unistr/u16-strmblen-tests: Likewise.
4642         * modules/unistr/u16-strmbtouc-tests: Likewise.
4643         * modules/unistr/u16-strncat-tests: Likewise.
4644         * modules/unistr/u16-strncmp-tests: Likewise.
4645         * modules/unistr/u16-strncpy-tests: Likewise.
4646         * modules/unistr/u16-strnlen-tests: Likewise.
4647         * modules/unistr/u16-to-u32-tests: Likewise.
4648         * modules/unistr/u16-to-u8-tests: Likewise.
4649         * modules/unistr/u16-uctomb-tests: Likewise.
4650         * modules/unistr/u32-check-tests: Likewise.
4651         * modules/unistr/u32-chr-tests: Likewise.
4652         * modules/unistr/u32-cmp-tests: Likewise.
4653         * modules/unistr/u32-cmp2-tests: Likewise.
4654         * modules/unistr/u32-cpy-alloc-tests: Likewise.
4655         * modules/unistr/u32-cpy-tests: Likewise.
4656         * modules/unistr/u32-mblen-tests: Likewise.
4657         * modules/unistr/u32-mbsnlen-tests: Likewise.
4658         * modules/unistr/u32-mbtouc-tests: Likewise.
4659         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
4660         * modules/unistr/u32-mbtoucr-tests: Likewise.
4661         * modules/unistr/u32-move-tests: Likewise.
4662         * modules/unistr/u32-next-tests: Likewise.
4663         * modules/unistr/u32-prev-tests: Likewise.
4664         * modules/unistr/u32-set-tests: Likewise.
4665         * modules/unistr/u32-stpcpy-tests: Likewise.
4666         * modules/unistr/u32-stpncpy-tests: Likewise.
4667         * modules/unistr/u32-strcat-tests: Likewise.
4668         * modules/unistr/u32-strcmp-tests: Likewise.
4669         * modules/unistr/u32-strcoll-tests: Likewise.
4670         * modules/unistr/u32-strcpy-tests: Likewise.
4671         * modules/unistr/u32-strdup-tests: Likewise.
4672         * modules/unistr/u32-strlen-tests: Likewise.
4673         * modules/unistr/u32-strmblen-tests: Likewise.
4674         * modules/unistr/u32-strmbtouc-tests: Likewise.
4675         * modules/unistr/u32-strncat-tests: Likewise.
4676         * modules/unistr/u32-strncmp-tests: Likewise.
4677         * modules/unistr/u32-strncpy-tests: Likewise.
4678         * modules/unistr/u32-strnlen-tests: Likewise.
4679         * modules/unistr/u32-to-u16-tests: Likewise.
4680         * modules/unistr/u32-to-u8-tests: Likewise.
4681         * modules/unistr/u32-uctomb-tests: Likewise.
4682         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
4683         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
4684         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
4685         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
4686         * modules/uniwidth/u8-strwidth-tests: Likewise.
4687         * modules/uniwidth/u8-width-tests: Likewise.
4688         * modules/uniwidth/u16-strwidth-tests: Likewise.
4689         * modules/uniwidth/u16-width-tests: Likewise.
4690         * modules/uniwidth/u32-strwidth-tests: Likewise.
4691         * modules/uniwidth/u32-width-tests: Likewise.
4692         * modules/uniwidth/width-tests: Likewise.
4693
4694 2010-05-18  Richard Jones  <rjones@redhat.com>
4695
4696         doc: users.txt: list hivex
4697         * users.txt: Add hivex.
4698
4699 2010-05-18  Richard Jones  <rjones@redhat.com>
4700
4701         doc: users.txt: list febootstrap
4702         * users.txt: Add febootstrap.
4703
4704 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
4705
4706         bootstrap: fix an error when gnulib is not used as a git submodule
4707         * build-aux/bootstrap (gnulib_path): If its length is zero then
4708         assign "gnulib" to it.
4709         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
4710
4711 2010-05-16  Bruno Haible  <bruno@clisp.org>
4712
4713         Avoid autoconf warnings about AM_ICONV.
4714         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
4715         2.64.
4716
4717 2010-05-16  Bruno Haible  <bruno@clisp.org>
4718
4719         absolute-header: Make the macro usable in more situations.
4720         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
4721         from gl_ABSOLUTE_HEADER.
4722         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
4723
4724 2010-05-16  James Youngman  <jay@gnu.org>
4725
4726         doc: update users.txt
4727         * users.txt: Add CSSC.
4728
4729 2010-05-16  Jim Meyering  <meyering@redhat.com>
4730
4731         init.sh: fix an error in the previous change; add more comments
4732         * tests/init.sh: Compare exit code in loop against 9, not 2.
4733         Patch by Bruno Haible.
4734         Make the two tests more similar by adding an empty "then" clause.
4735         Add comments.
4736
4737         init.sh: avoid unnecessary shell re-exec
4738         * tests/init.sh: Improve the re-exec-required check to first test the
4739         current shell.  If it passes the test, do not search for a shell that
4740         does pass, and do not re-exec.  This test is particularly contorted to
4741         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
4742         of $(...) evokes a syntax error and causes immediate shell exit with
4743         status 2.  Bruno Haible reported that the re-exec made it impossible
4744         to single-step through any init.sh-using script.
4745
4746 2010-05-16  Bruno Haible  <bruno@clisp.org>
4747
4748         Fix collision between gnulib's and libintl's printf replacements.
4749         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
4750         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
4751         (printf): When using GNU C, map the __printf__ function to rpl_printf
4752         via __asm__. When not using GNU C, define rpl_printf instead of
4753         __printf__.
4754         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
4755         commit.
4756         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
4757         commit.
4758         * m4/asm-underscore.m4: New file.
4759         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
4760         * modules/stdio (Files): Add m4/asm-underscore.m4.
4761         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
4762         Reported by Ben Pfaff.
4763
4764 2010-05-16  Bruno Haible  <bruno@clisp.org>
4765
4766         verify: Avoid skipping the test on openSUSE 11.0.
4767         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
4768
4769 2010-05-13  Bruno Haible  <bruno@clisp.org>
4770
4771         Avoid useless warnings from G++.
4772         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
4773         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
4774         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
4775
4776 2010-05-11  Jim Meyering  <meyering@redhat.com>
4777
4778         maint.mk: tweak preceding change
4779         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
4780         regexps tighter by anchoring at EOL, and make the new group "shy"
4781         for slightly decreased overhead.
4782
4783 2010-05-11  Eric Blake  <eblake@redhat.com>
4784
4785         maint.mk: gnulib doesn't guarantee NSIG
4786         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
4787
4788 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
4789
4790         test-pwrite.c: Remove unused variable declaration.
4791         * tests/test-pwrite.c (main): Remove read_buf declaration.
4792
4793         Remove useless test-pwrite.sh file.
4794         * tests/test-pwrite.sh: Delete file.
4795         * modules/pwrite-tests: Remove references.
4796         Reported by Bruno Haible.
4797
4798 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
4799
4800         init.sh: fix a typo
4801         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
4802
4803 2010-05-10  Jim Meyering  <meyering@redhat.com>
4804
4805         maint.mk: avoid using a temporary file in the always-defined-macros check
4806         * top/maint.mk (.re-defmac): Remove rule.
4807         (gl_trap_): Remove definition.
4808         (sc_prohibit_always-defined_macros): Rewrite not to create and
4809         depend on a temporary file.  Instead, depend on GNU grep's ability
4810         to read a list of regular expressions from stdin when given "-f -".
4811
4812 2010-05-09  Bruno Haible  <bruno@clisp.org>
4813
4814         Update to GNU gettext 0.18, part 1.
4815         * m4/gettext.m4: Update to GNU gettext 0.18.
4816         * m4/intl.m4: Likewise.
4817         * m4/po.m4: Likewise.
4818         * modules/gettext (Files): Add m4/fcntl-o.m4.
4819         (configure.ac): Require gettext infrastructure from version 0.18.
4820
4821 2010-05-09  Jim Meyering  <meyering@redhat.com>
4822
4823         init.sh: enable MALLOC_PERTURB_
4824         * tests/init.sh: Enable glibc's malloc-perturbing option.
4825
4826         maint.mk: improve sc_cross_check_PATH_usage_in_tests
4827         With my recent change in init.sh from the two-line form:
4828             -#   : ${srcdir=.}
4829             -#   . "$srcdir/init.sh"; path_prepend_ .
4830             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
4831         I noticed that using the one-line form would cause this test
4832         to fail with a false-positive, or to stop working altogether,
4833         depending on whether help-version changed or all the tests did.
4834         * top/maint.mk (_hv_regex): Remove this definition.
4835         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
4836         (_hv_regex_strong): Use a stronger regex to check for conformance.
4837         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
4838         Give a separate diagnostic for lack of conforming use.
4839
4840         maint.mk: prohibit definition of symbols defined by gnulib
4841         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
4842         definition of symbols defined by gnulib.
4843
4844 2010-05-09  Bruno Haible  <bruno@clisp.org>
4845
4846         acl: Avoid test failure on Cygwin-hosted mingw.
4847         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
4848
4849 2010-05-09  Bruno Haible  <bruno@clisp.org>
4850
4851         error: Use system's fcntl function.
4852         * lib/error.c (fcntl): Undefine.
4853
4854 2010-05-09  Jim Meyering  <meyering@redhat.com>
4855
4856         verify: adjust formatting to be more consistent
4857         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
4858         argument-list '('s, and after one comma.
4859
4860 2010-05-09  Bruno Haible  <bruno@clisp.org>
4861
4862         error: More reliable output on mingw.
4863         * lib/error.c: Include <windows.h>.
4864         (is_open): New function.
4865         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
4866         defined.
4867
4868 2010-05-09  Bruno Haible  <bruno@clisp.org>
4869
4870         vasnprintf: Fix syntax errors in libintl build on mingw.
4871         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
4872         pad_ourselves and prec_ourselves after use.
4873
4874 2010-05-08  Bruno Haible  <bruno@clisp.org>
4875
4876         * lib/config.charset: Update comments for Cygwin 1.7.
4877         * lib/localcharset.c: Likewise.
4878
4879 2010-05-07  Jim Meyering  <meyering@redhat.com>
4880
4881         init.sh: improve comments
4882         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
4883         . "${srcdir=.}/init.sh"; path_prepend_ .
4884         Add a note about path_prepend_ and the alternative of using
4885         TESTS_ENVIRONMENT.
4886
4887 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
4888
4889         exclude: Unescape hashed patterns in wildcard mode.
4890         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
4891         to the hash list.
4892         * tests/test-exclude8.sh: New test case.
4893         * modules/exclude-tests: Add new test.
4894
4895 2010-05-05  Eric Blake  <eblake@redhat.com>
4896
4897         verify: automate tests
4898         * modules/verify-tests: New module.
4899         * tests/test-verify.sh: New file.
4900         * tests/test-verify.c: Guard each negative test with a unique id.
4901         Also avoid warning about unused left hand of comma expressions.
4902
4903 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
4904
4905         Further improvements to verify.h, suggested by Eric Blake.
4906         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
4907         the GL_* versions, to avoid collision with OpenGL.
4908         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
4909         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
4910         than testing merely whether it's defined.
4911
4912         Modify verify.h to pacify gcc -Wredundant_decls.
4913         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
4914         These use the prefix "GL_" since they're likely to be useful elsewhere.
4915         We may need to break them out into a different .h file.
4916         (__COUNTER__): Define to 0 if the compiler doesn't support it.
4917         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
4918         of verify_function__.
4919
4920 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
4921
4922         Tests for module pwrite.
4923         * modules/pwrite-tests: New file.
4924         * tests/test-pwrite.sh: New file.
4925         * tests/test-pwrite.c: New file.
4926
4927         New module pwrite.
4928         * lib/unistd.in.h (pwrite): New declaration.
4929         * lib/pwrite.c: New file, from glibc with modifications.
4930         * m4/pwrite.m4: New file.
4931         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
4932         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
4933         REPLACE_PWRITE.
4934         * modules/pwrite: New file.
4935         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
4936         REPLACE_PWRITE.
4937         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
4938         * doc/posix-functions/pwrite.texi: Mention the new module.
4939
4940 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
4941
4942         pread: Update documentation.
4943         * doc/posix-functions/pread.texi: Mention the 'pread' module.
4944
4945 2010-05-04  Eric Blake  <eblake@redhat.com>
4946
4947         docs: update cygwin progress
4948         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
4949         this bug.
4950         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
4951         Added in cygwin 1.7.2.
4952         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
4953         Likewise.
4954         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
4955         Likewise.
4956         * doc/glibc-functions/dup3.texi (dup3): Likewise.
4957         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
4958         * doc/glibc-functions/accept4.texi (accept4): Likewise.
4959         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
4960         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
4961         Mention nproc module.
4962         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
4963         bug in cygwin 1.7.5 addition.
4964         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
4965         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
4966         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
4967         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
4968         1.7.5.
4969         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
4970         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
4971         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
4972         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
4973         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
4974         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
4975         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
4976         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
4977         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
4978         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
4979         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
4980         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
4981         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
4982         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
4983         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
4984         Likewise.
4985         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
4986         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
4987         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
4988         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
4989         Likewise.
4990         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
4991         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
4992         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
4993         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
4994         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
4995         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
4996         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
4997         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
4998         Likewise.
4999         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
5000         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
5001         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
5002         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
5003         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
5004         Likewise.
5005         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
5006         Likewise.
5007         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
5008         Likewise.
5009         * doc/glibc-functions/xdrrec_endofrecord.texi
5010         (xdrrec_endofrecord): Likewise.
5011         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
5012         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
5013         Likewise.
5014         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
5015         Likewise.
5016
5017 2010-05-04  Jim Meyering  <meyering@redhat.com>
5018
5019         gendocs.sh: make its "-s FILE" option more useful
5020         * build-aux/gendocs.sh: When honoring the -s FILE option, update
5021         $PACKAGE to reflect the probably-different basename of "FILE".
5022
5023 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
5024
5025         bootstrap: don't ignore download_po_files failure
5026         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
5027         failure.
5028
5029 2010-05-03  Jim Meyering  <meyering@redhat.com>
5030
5031         maint.mk: allow to pass options to gendocs.sh
5032         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
5033         (gendocs_options_): New overridable variable.
5034
5035         gnu-web-doc-update: don't ignore configure or build failure
5036         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
5037
5038         announce-gen: backslash-escape '@'s in --help output
5039         * build-aux/announce-gen: Fix syntax errors.
5040
5041         maint.mk, announce-gen: allow project-specific announcement mail headers
5042         * top/maint.mk (translation_project_): Define default.
5043         (announcement_Cc_, announcement_mail_headers_): Likewise.
5044         (announcement): Invoke announce-gen with new --mail-headers option.
5045         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
5046
5047         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
5048         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
5049         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
5050         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
5051         line in the "err2" output file when running "make check" in verbose
5052         mode (i.e., with set -x enabled).
5053
5054 2010-05-03  Bruno Haible  <bruno@clisp.org>
5055
5056         wctob: Fix for weird platforms.
5057         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
5058         argument value.
5059
5060 2010-05-03  Jim Meyering  <meyering@redhat.com>
5061
5062         maint.mk: prohibit unwarranted use of <strings.h>
5063         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
5064         strings.h in a file that does not also use strcasecmp, strncasecmp,
5065         ffs or ffsll.
5066
5067         maint.mk: remove obsolete comments
5068         * top/maint.mk: Remove stale, commented-out rules.
5069
5070 2010-05-02  Bruno Haible  <bruno@clisp.org>
5071
5072         wcwidth: Declare also when it's aliased.
5073         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
5074         macro.
5075
5076 2010-05-02  Bruno Haible  <bruno@clisp.org>
5077
5078         Fix regression from 2010-04-25.
5079         * gnulib-tool (func_modules_transitive_closure): Check the status of
5080         all modules, not only of the tests that are of the form foo-tests where
5081         foo is a module.
5082
5083 2010-05-02  Bruno Haible  <bruno@clisp.org>
5084
5085         wctob: Work around nasty Cygwin 1.7.2 bug.
5086         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
5087         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
5088
5089 2010-05-01  Bruno Haible  <bruno@clisp.org>
5090
5091         fpurge: Sharper test.
5092         * tests/test-fpurge.c (main): Add one more ftell check.
5093         * modules/fpurge-tests (Depends-on): Add ftell.
5094         Suggested by Eric Blake.
5095
5096 2010-05-01  Bruno Haible  <bruno@clisp.org>
5097
5098         ftello: Another test.
5099         * tests/test-ftello3.c: New file.
5100         * modules/ftello-tests (Files): Add it.
5101         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
5102         MOSTLYCLEANFILES.
5103
5104         ftell: Another test.
5105         * tests/test-ftell3.c: New file.
5106         * modules/ftell-tests (Files): Add it.
5107         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
5108         MOSTLYCLEANFILES.
5109
5110 2010-05-01  Bruno Haible  <bruno@clisp.org>
5111
5112         ftell, ftello: Work around Solaris bug.
5113         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
5114         * lib/ftello.c: Include stdio-impl.h.
5115         (ftello): On Solaris, when _IOWRT is set, compute the result without
5116         looking at _IOREAD.
5117         * modules/ftello (Files): Add lib/stdio-impl.h.
5118         * doc/posix-functions/ftell.texi: Mention Solaris bug.
5119         * doc/posix-functions/ftello.texi: Likewise.
5120         Reported by Eric Blake.
5121
5122 2010-05-01  Bruno Haible  <bruno@clisp.org>
5123
5124         freading: Adapt to special meaning of _IOREAD flag on Solaris.
5125         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
5126         the _IOWRT flag is also set.
5127
5128 2010-05-01  Bruno Haible  <bruno@clisp.org>
5129
5130         Fix doc about a HP-UX stdio bug.
5131         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
5132         * doc/posix-functions/ftello.texi: Likewise.
5133
5134 2010-05-01  Bruno Haible  <bruno@clisp.org>
5135
5136         lseek test: Fix failure on Solaris.
5137         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
5138         output.
5139
5140 2010-04-30  Jim Meyering  <meyering@redhat.com>
5141
5142         bootstrap: don't ignore failure to generate po*/Makevars
5143         * build-aux/bootstrap (with_gettext): Don't ignore failure
5144         to create po/Makevars or runtime-po/Makevars.
5145
5146 2010-04-29  Eric Blake  <eblake@redhat.com>
5147
5148         headers: relax license to LGPLv2+
5149         * modules/fcntl-h (License): Relax license.
5150         * modules/getopt-posix (License): Likewise.
5151         * modules/locale (License): Likewise.
5152         * modules/math (License): Likewise.
5153         * modules/pty (License): Likewise.
5154         * modules/sched (License): Likewise.
5155         * modules/search (License): Likewise.
5156         * modules/spawn (License): Likewise.
5157         * modules/stdarg (License): Likewise.
5158         * modules/sysexits (License): Likewise.
5159
5160 2010-04-29  Jim Meyering  <meyering@redhat.com>
5161
5162         inttypes: relax license to LGPLv2+
5163         * modules/inttypes (License): Relax license.
5164
5165 2010-04-29  Simon Josefsson  <simon@josefsson.org>
5166
5167         * top/maint.mk (indent): Run twice to produce idempotent results.
5168
5169 2010-04-28  Bruno Haible  <bruno@clisp.org>
5170
5171         getdate: Generate getdate.c in the source directory.
5172         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
5173         MOSTLYCLEANFILES.
5174         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
5175
5176 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
5177
5178         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
5179         is not declared as a const *; avoid warnings in that case.
5180
5181 2010-04-28  Eric Blake  <eblake@redhat.com>
5182
5183         canonicalize-lgpl: avoid compiler warning
5184         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
5185         declaration' / 'extraneous semicolon' warning with some compilers.
5186         Reported by Andreas Gruenbacher.
5187
5188 2010-04-28  Jim Meyering  <meyering@redhat.com>
5189
5190         init.sh: ensure a more reliable exit status when exiting via trap
5191         * tests/init.sh (setup_): Don't rely on $? in signal handler.
5192         Inspired by patches from Dmitry V. Levin.
5193         Also trap on signal 3 (SIGQUIT).
5194
5195 2010-04-27  Bruno Haible  <bruno@clisp.org>
5196
5197         Update doc about utimes().
5198         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
5199         'utimens' module.
5200         Reported by Andreas Gruenbacher <agruen@suse.de>.
5201
5202 2010-04-27  Eric Blake  <eblake@redhat.com>
5203
5204         full-read, full-write: relax license
5205         * modules/full-read (License): Drop to LGPLv2+.
5206         * modules/full-write (License): Likewise.
5207         * modules/safe-read (License): Likewise.
5208         * modules/safe-write (License): Likewise.
5209
5210         pthread: mention library for linking
5211         * modules/pthread (Link): Mention $(LIB_PTHREAD).
5212
5213 2010-04-27  Jim Meyering  <meyering@redhat.com>
5214
5215         maint.mk: fix a bug introduced in last change
5216         * top/maint.mk (gl_assured_headers_): Now that all names are on
5217         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
5218         is not anchored to end of word, it should be adequate.
5219
5220         maint.mk: avoid side-effect in latest syntax-check
5221         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
5222         to run commands via $(shell...), and hence to incur cost only when
5223         the new rule is actually run.
5224
5225         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
5226         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
5227         and use that to create a regexp used to detect all #if HAVE_..._H uses.
5228         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
5229         (gl_assured_headers_, az_, AZ_): Define.
5230         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
5231
5232 2010-04-26  Jim Meyering  <jim@meyering.net>
5233             Bruno Haible  <bruno@clisp.org>
5234
5235         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
5236         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
5237         Prompted by an exchange with Gilles Espinasse.
5238
5239 2010-04-26  Jim Meyering  <meyering@redhat.com>
5240
5241         git-version-gen: aesthetic tweak
5242         * build-aux/git-version-gen: Use "$nl" rather than a literal,
5243         so that the command remains on a single line.
5244
5245 2010-04-26  Eric Blake  <eblake@redhat.com>
5246
5247         git-version-gen: allow use on EBCDIC hosts
5248         * build-aux/git-version-gen (dirty): Use literal rather than tying
5249         ourselves to ascii.
5250         Reported by Steve Goetze.
5251
5252 2010-04-25  Bruno Haible  <bruno@clisp.org>
5253
5254         netdb: Add support for GNULIB_POSIXCHECK.
5255         * lib/netdb.in.h: Include warn-on-use.h.
5256         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
5257         functions are used when GNULIB_POSIXCHECK is defined and the
5258         getaddrinfo module is not in use.
5259         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
5260         freeaddrinfo, gai_strerror, getnameinfo are declared.
5261         * modules/netdb (Depends-on): Add warn-on-use.
5262         (Makefile.am): Include warn-on-use.h in netdb.h.
5263
5264 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
5265
5266         build: avoid "make check" failure without .git/ directory
5267         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
5268         there is no .git/ directory.
5269
5270 2010-04-25  Bruno Haible  <bruno@clisp.org>
5271
5272         ptsname: Fix misuse of ttyname_r.
5273         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
5274         of errno.
5275
5276 2010-04-25  Bruno Haible  <bruno@clisp.org>
5277
5278         ttyname_r: Make it work on Solaris 10.
5279         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
5280         if the system function has the POSIX declaration. Test whether the
5281         function fails if the buffer is less than 128 bytes large.
5282         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
5283         system's ttyname_r function. Provide a reasonably large buffer.
5284         * modules/ttyname_r (Depends-on): Add extensions.
5285         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
5286
5287 2010-04-25  Bruno Haible  <bruno@clisp.org>
5288
5289         Use the 'extensions' module for some more functions on Solaris.
5290         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
5291         module.
5292         * doc/posix-functions/ctime_r.texi: Likewise.
5293         * doc/posix-functions/getgrgid_r.texi: Likewise.
5294         * doc/posix-functions/getgrnam_r.texi: Likewise.
5295         * doc/posix-functions/getpwnam_r.texi: Likewise.
5296         * doc/posix-functions/getpwuid_r.texi: Likewise.
5297         * doc/posix-functions/readdir_r.texi: Likewise.
5298         * doc/posix-functions/sigwait.texi: Likewise.
5299         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
5300         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
5301
5302 2010-04-25  Bruno Haible  <bruno@clisp.org>
5303
5304         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
5305         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
5306         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
5307         * lib/ttyname_r.c: Include <limits.h>.
5308         (ttyname_r): Define using the system's ttyname_r function, if it exists
5309         and not on Solaris.
5310         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
5311         set.
5312         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
5313         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
5314         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
5315         Reported by Simon Josefsson.
5316
5317 2010-04-25  Bruno Haible  <bruno@clisp.org>
5318
5319         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
5320         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
5321         * doc/posix-functions/ctime_r.texi: Likewise.
5322         * doc/posix-functions/getgrgid_r.texi: Likewise.
5323         * doc/posix-functions/getgrnam_r.texi: Likewise.
5324         * doc/posix-functions/getlogin_r.texi: Likewise.
5325         * doc/posix-functions/getpwnam_r.texi: Likewise.
5326         * doc/posix-functions/getpwuid_r.texi: Likewise.
5327         * doc/posix-functions/readdir_r.texi: Likewise.
5328         * doc/posix-functions/sigwait.texi: Likewise.
5329         * doc/posix-functions/ttyname_r.texi: Likewise.
5330         Reported by Simon Josefsson.
5331
5332 2010-04-25  Bruno Haible  <bruno@clisp.org>
5333
5334         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
5335         * gnulib-tool (func_usage): Document that --with-*-tests options apply
5336         also to --create-testdir.
5337         (func_acceptable): Don't consider the status of *-tests modules here.
5338         (func_modules_transitive_closure): Consider it here, before including a
5339         test module.
5340         (func_import, func_create_testdir): Set inc_all_direct_tests,
5341         inc_all_indirect_tests.
5342         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
5343         --create-testdir and --create-megatestdir.
5344
5345 2010-04-25  Bruno Haible  <bruno@clisp.org>
5346
5347         gnulib-tool: Add --without-*-tests options.
5348         * gnulib-tool (func_usage): Document the --without-*-tests options.
5349         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
5350         excl_unportable_tests): New variables.
5351         Fail if they are specified with --import or --update.
5352         (func_acceptable): Respect the excl_*_tests variables.
5353         (func_import): Set the excl_*_tests variables to empty.
5354
5355 2010-04-25  Simon Josefsson  <simon@josefsson.org>
5356             Bruno Haible  <bruno@clisp.org>
5357
5358         Work around a MacOS X 10.4 bug with openpty.
5359         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
5360         * tests/test-openpty.c (main): Close the master side explicitly.
5361
5362 2010-04-25  Bruno Haible  <bruno@clisp.org>
5363
5364         strnlen: Fix a C++ test error on MacOS X and Solaris.
5365         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
5366         the function is not declared.
5367         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
5368         Simon Josefsson.
5369
5370 2010-04-24  Bruno Haible  <bruno@clisp.org>
5371
5372         Avoid a gcc warning.
5373         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
5374         of correct type for %08lx directive.
5375         Reported by Eric Blake.
5376
5377 2010-04-24  Bruno Haible  <bruno@clisp.org>
5378
5379         vasnprintf: Correct errno value in case of out-of-memory.
5380         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
5381         or sprintf. Use the errno value from SNPRINTF or sprintf.
5382         Reported by Ian Beckwith <ianb@erislabs.net>.
5383
5384 2010-04-24  Bruno Haible  <bruno@clisp.org>
5385
5386         ansi-c++-opt: Find correct compiler when cross-compiling.
5387         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
5388         AC_CHECK_PROGS.
5389         Reported by Simon Josefsson.
5390
5391 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
5392
5393         vc-list-files: Add support for subversion
5394         * build-aux/vc-list-files: Use "svn list" to generate the list of
5395         files controlled by subversion.
5396
5397 2010-04-23  Jim Meyering  <meyering@redhat.com>
5398
5399         vc-list-files tests: convert to use init.sh
5400         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
5401         path_prepend_.
5402         Use Exit, not exit.
5403         Use skip_ rather than open coding it.
5404         Remove trap set-up and compare definitions.
5405         * tests/test-vc-list-files-git.sh: Likewise.
5406         * modules/vc-list-files-tests (Files): Add tests/init.sh.
5407
5408 2010-04-22  Simon Josefsson  <simon@josefsson.org>
5409
5410         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
5411         backup files.
5412
5413 2010-04-21  Simon Josefsson  <simon@josefsson.org>
5414
5415         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
5416
5417 2010-04-20  Eric Blake  <eblake@redhat.com>
5418
5419         tests: be robust to ignored SIGPIPE
5420         * tests/test-select-in.sh: Consume all output.
5421         * tests/test-lseek.sh: Check correct exit status, while avoiding
5422         EPIPE.
5423
5424 2010-04-20  Simon Josefsson  <simon@josefsson.org>
5425             Bruno Haible  <bruno@clisp.org>
5426
5427         visibility: Don't use -fvisibility if it leads to a warning.
5428         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
5429         yes, don't pretend that visibility works if it leads to a warning.
5430         Reported by Mike Gran <spk121@yahoo.com>.
5431
5432 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
5433
5434         * build-aux/bootstrap: Use "git -h" for testing for supported options
5435         instead of "git --help".  The short-form option only shows a summary,
5436         and doesn't layout the full man page.  Grep for the full option name
5437         in the summary, too.
5438
5439 2010-04-19  Bruno Haible  <bruno@clisp.org>
5440
5441         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
5442         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
5443         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
5444         mention of RELOCATABLE_STRIP.
5445         Reported by Sylvain Beucler <beuc@beuc.net>.
5446
5447 2010-04-19  Bruno Haible  <bruno@clisp.org>
5448
5449         * lib/diffseq.h: Fix typo in comment.
5450         Reported by Eric Blake.
5451
5452 2010-04-19  Bruno Haible  <bruno@clisp.org>
5453
5454         ioctl: Move autoconf macro to a .m4 file.
5455         * m4/ioctl.m4: New file, extracted from modules/ioctl.
5456         * modules/ioctl (Files): Add it.
5457         (configure.ac): Simply invoke gl_FUNC_IOCTL.
5458         Reported by Ian Beckwith <ianb@erislabs.net>.
5459
5460 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
5461             Bruno Haible  <bruno@clisp.org>
5462
5463         diffseq: Accommodate use-case with abstract arrays.
5464         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
5465         is not defined.
5466         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
5467         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
5468
5469 2010-04-18  Bruno Haible  <bruno@clisp.org>
5470
5471         * doc/posix-headers/stdbool.texi: More precise wording.
5472
5473 2010-04-17  Jim Meyering  <meyering@redhat.com>
5474
5475         maint.mk: use gnu-style indentation in an embedded perl script
5476         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
5477         Rename variable: s/two/last_two_bytes/
5478
5479 2010-04-16  Eric Blake  <eblake@redhat.com>
5480
5481         test-stdbool: skip test that fails with Solaris CC
5482         * tests/test-stdbool.c (f): Skip test that causes compilation
5483         error under buggy C++ compiler.
5484         * lib/stdbool.in.h: Document the limitation.
5485         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
5486
5487         setenv: allow compilation with C++
5488         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
5489         register keyword.
5490
5491         stdint: allow test to pass with C++
5492         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
5493
5494         getopt: allow compilation with C++
5495         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
5496         struct.
5497         * lib/getopt.c (_getopt_internal_r): Use correct type.
5498         Reported by Dagobert Michelson, via Joel E. Denny.
5499
5500 2010-04-16  Bruno Haible  <bruno@clisp.org>
5501
5502         Override netdb.h always.
5503         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
5504         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
5505         Reported by Ludovic Courtès <ludo@gnu.org>.
5506
5507 2010-04-15  Bruno Haible  <bruno@clisp.org>
5508
5509         openpty: Fix mistake from 2010-03-21.
5510         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
5511         Reported by Simon Josefsson.
5512
5513 2010-04-15  Eric Blake  <eblake@redhat.com>
5514
5515         test-forkpty: fix expected signature
5516         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
5517         Reported by Simon Josefsson.
5518
5519 2010-04-15  Jim Meyering  <meyering@redhat.com>
5520
5521         maint.mk: texinfo_suffix_re_: correct the default regexp
5522         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
5523
5524         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
5525         make it configurable via texinfo_suffix_re_.
5526
5527 2010-04-14  Eric Blake  <eblake@redhat.com>
5528
5529         strtok_r: relax license to LGPLv2+
5530         * modules/strtok_r (License): Relax license.
5531         Reported by Matthias Bolte.
5532
5533 2010-04-14  Simon Josefsson  <simon@josefsson.org>
5534
5535         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
5536         version 1.4.4 by default instead of requiring the libgcrypt
5537         version used during build.  This makes it possible to use the
5538         application with older but still binary compatible libgcrypt
5539         versions.
5540
5541 2010-04-13  Eric Blake  <eblake@redhat.com>
5542
5543         getopt-gnu: match recent glibc fixes and posix ruling
5544         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
5545         '+' handling, when requesting extensions.
5546         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
5547         'W;' handling.
5548         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
5549         * doc/posix-functions/getopt.texi (getopt): Document this.
5550         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
5551         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
5552         Likewise.
5553
5554         getopt: merge bug fixes from glibc
5555         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
5556         diagnostics.  Honor '+:' correctly.  Reject ';'.
5557
5558         getopt-posix: detect MacOS bug
5559         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
5560         optind when missing a required argument.
5561         * doc/posix-functions/getopt.texi (getopt): Document the bug.
5562         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
5563         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
5564         Likewise.
5565
5566         getopt-posix: avoid spurious failure on Solaris
5567         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
5568         an indicator that setting optind=1 is sufficient for reset.
5569
5570         getopt-posix: avoid spurious failure on FreeBSD
5571         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
5572         in POSIX mode, since the m4 test uses it.
5573
5574         gnulib-tool: silence warning on BSD sh
5575         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
5576
5577 2010-04-13  Jim Meyering  <meyering@redhat.com>
5578
5579         doc: users.txt: GNU patch now uses gnulib
5580         * users.txt: Add patch.
5581
5582 2010-04-12  Jim Meyering  <meyering@redhat.com>
5583
5584         maint.mk: generate more concise timing data for syntax-check rules
5585         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
5586         " done" from each line that reports a syntax-check test duration.
5587
5588 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
5589
5590         git-version-gen: use "git update-index..." rather than "git status"
5591         * build-aux/git-version-gen: Use git update-index --refresh, not
5592         "git status".  With some versions of git, "git status" would fail
5593         to update the index and result in an unwarranted "-dirty" suffix.
5594
5595 2010-04-11  Jim Meyering  <meyering@redhat.com>
5596
5597         openat: correct formatting (no semantic change)
5598         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
5599         Suggested by Bruno Haible.
5600
5601 2010-04-11  Bruno Haible  <bruno@clisp.org>
5602
5603         Stricter declaration checking in testdirs.
5604         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
5605         If for_tests is true, augment AM_CPPFLAGS to define
5606         GNULIB_STRICT_CHECKING.
5607         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
5608         GNULIB_STRICT_CHECKING is defined, verify that the function is
5609         declared.
5610
5611 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
5612             Bruno Haible  <bruno@clisp.org>
5613
5614         libunistring: Improve configure output.
5615         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
5616         Don't say "consider installing GNU libunistring" when checking again
5617         with libiconv.
5618
5619 2010-04-11  Bruno Haible  <bruno@clisp.org>
5620
5621         libunistring: Correct value of $LTLIBUNISTRING.
5622         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
5623         correct the value of $LTLIBUNISTRING.
5624
5625 2010-04-11  Bruno Haible  <bruno@clisp.org>
5626
5627         havelib: Add static libraries to LIBS in the right order.
5628         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
5629         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
5630
5631 2010-04-11  Bruno Haible  <bruno@clisp.org>
5632
5633         libunistring: Detect libunistring also when it depends on libiconv.
5634         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
5635         the second AC_LIB_HAVE_LINKFLAGS invocation.
5636
5637 2010-04-11  James Youngman  <jay@gnu.org>
5638
5639         close-stream: declare local scalars to be "const"
5640         * lib/close-stream.c (close_stream): Make boolean variables const
5641         to document the fact that we set but do not change them.
5642
5643 2010-04-11  Bruno Haible  <bruno@clisp.org>
5644
5645         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
5646
5647 2010-04-11  Jim Meyering  <meyering@redhat.com>
5648
5649         maint.mk: don't include dist-check.mk
5650         * top/maint.mk: Remove bogus include directive.
5651
5652         maint.mk: improve empty-line-at-EOF check
5653         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
5654         solution, rather than tail+Perl-based one.  The latter would read
5655         a few kilobytes from the end of each file, and did not handle empty
5656         files properly.
5657
5658         maint.mk: print the elapsed time for each syntax-check rule
5659         * top/maint.mk (sc_m_rules_): Save start time in a file.
5660         (sc_z_rules_): New rules: remove temp file and print elapsed time.
5661         (local-check): Interpose the .z rules
5662
5663 2010-04-11  Jim Meyering  <meyering@redhat.com>
5664
5665         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
5666         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
5667         empty file with one that ends in an empty line.
5668
5669 2010-04-10  Bruno Haible  <bruno@clisp.org>
5670
5671         mkdir: Make it work on mingw64.
5672         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
5673         * lib/mkdir.c: Update comment.
5674         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
5675
5676 2010-04-10  Bruno Haible  <bruno@clisp.org>
5677
5678         Don't override improved macro from newer autoconf.
5679         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
5680         autoconf >= 2.62.
5681         Reported by Joel E. Denny <jdenny@clemson.edu>.
5682
5683 2010-04-10  Jim Meyering  <meyering@redhat.com>
5684
5685         maint.mk: new syntax-check rule: prohibit empty lines at end of file
5686         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
5687
5688         maint.mk: correct a diagnostic
5689         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
5690         in diagnostic; now use $prohibit.
5691
5692 2010-04-10  Bruno Haible  <address@hidden>
5693
5694         fchownat: Fix a C++ test error on Solaris 8.
5695         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
5696         the function does not exist.
5697
5698 2010-04-10  Bruno Haible  <bruno@clisp.org>
5699
5700         vasnprintf: Add more tests.
5701         * tests/test-vasnprintf-posix.c: Include <errno.h>.
5702         (test_function): Test converting an invalid wide string.
5703
5704         vasnprintf: Correct handling of unconvertible wide string arguments.
5705         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
5706         VASNPRINTF.
5707         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
5708         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
5709         smaller than the expected maximum need for the directive. Set errno to
5710         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
5711         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
5712         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
5713         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
5714         * modules/vasnprintf (Files): Add m4/printf.m4.
5715         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
5716
5717 2010-04-10  Bruno Haible  <bruno@clisp.org>
5718
5719         vasnprintf: Fix crash in %ls directive.
5720         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
5721         string is passed as argument to %ls, with no precision and no width.
5722         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
5723
5724 2010-04-10  Bruno Haible  <bruno@clisp.org>
5725
5726         vasnprintf: Fix multiple test failures on mingw.
5727         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
5728         _snprintf, or snwprintf, not _snwprintf.
5729
5730 2010-04-10  Bruno Haible  <bruno@clisp.org>
5731
5732         write: Fix a C++ test error on mingw.
5733         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
5734
5735 2010-04-10  Bruno Haible  <bruno@clisp.org>
5736
5737         vasnprintf test: Reduce code duplication.
5738         * tests/test-vasnprintf.c (test_function): New function, extracted from
5739         test_vasnprintf.
5740         (test_vasnprintf, test_asnprintf): Invoke it.
5741
5742 2010-04-10  Bruno Haible  <bruno@clisp.org>
5743
5744         strnlen: Fix warning in C++ mode on MacOS X.
5745         * lib/string.in.h (strnlen): Use the modern idiom.
5746         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
5747         defining strnlen as a macro already in <config.h>.
5748         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
5749         REPLACE_STRNLEN.
5750         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
5751         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
5752
5753 2010-04-08  James Youngman  <jay@gnu.org>
5754
5755         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
5756         the example.
5757
5758 2010-04-09  Jim Meyering  <meyering@redhat.com>
5759
5760         maint.mk: print better diagnostic when there is no $(_hv_file)
5761         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
5762         announce that when $(_hv_file) (aka help-version) does not exist.
5763
5764         init.sh: run tr in the "C" locale to avoid multibyte interpretation
5765         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
5766         not try to interpret its random input bytes.  Jarno Rajahalme reported
5767         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
5768         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
5769         (mktempd_): Likewise, just in case.
5770
5771         ftruncate: add two years to projected module removal date: 2012
5772         * m4/ftruncate.m4: Adjust comments.
5773
5774         ftruncate: mark module as obsolete; even MinGW provides it, now
5775         * modules/ftruncate (Status): Obsolete.
5776         (Notice): Say that.
5777         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
5778         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
5779
5780 2010-04-08  Bruno Haible  <bruno@clisp.org>
5781
5782         Fix side effects from tests-related modules.
5783         * modules/dprintf-posix (Comment): New section.
5784         * modules/fprintf-posix (Comment): Likewise.
5785         * modules/obstack-printf-posix (Comment): Likewise.
5786         * modules/printf-posix (Comment): Likewise.
5787         * modules/snprintf-posix (Comment): Likewise.
5788         * modules/sprintf-posix (Comment): Likewise.
5789         * modules/vasnprintf-posix (Comment): Likewise.
5790         * modules/vasprintf-posix (Comment): Likewise.
5791         * modules/vdprintf-posix (Comment): Likewise.
5792         * modules/vfprintf-posix (Comment): Likewise.
5793         * modules/vprintf-posix (Comment): Likewise.
5794         * modules/vsnprintf-posix (Comment): Likewise.
5795         * modules/vsprintf-posix (Comment): Likewise.
5796         * modules/xprintf-posix (Comment): Likewise.
5797         * modules/xvasprintf-posix (Comment): Likewise.
5798         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
5799         * modules/floorf-tests (Depends-on): Likewise.
5800         * modules/round-tests (Depends-on): Likewise.
5801         * modules/roundf-tests (Depends-on): Likewise.
5802         * modules/trunc-tests (Depends-on): Likewise.
5803         * modules/truncf-tests (Depends-on): Likewise.
5804         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
5805         'fprintf-posix' module is not present.
5806         * tests/test-floorf2.c (check): Likewise.
5807         * tests/test-trunc2.c (check): Likewise.
5808         * tests/test-truncf2.c (check): Likewise.
5809         * tests/test-round2.c (equal): Likewise.
5810         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
5811
5812 2010-04-07  Karl Berry  <karl@gnu.org>
5813
5814         * config/srclist.txt,
5815         * config/srclistvars.sh,
5816         * config/srclist-update: doc fixes.
5817
5818 2010-04-07  Jim Meyering  <meyering@redhat.com>
5819
5820         maint.mk: add a PATH crosschecking syntax-check rule
5821         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
5822         Useful if you use a test like the one in help-version (coreutils,
5823         diffutils, grep, gzip) that ensures $(VERSION) matches what is
5824         printed by prog --version.
5825
5826 2010-04-06  Bruno Haible  <bruno@clisp.org>
5827
5828         Fix link error on mingw.
5829         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
5830         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
5831
5832 2010-04-06  Bruno Haible  <bruno@clisp.org>
5833
5834         Assume rmdir exists.
5835         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
5836
5837 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
5838
5839         doc: update users.txt
5840         * users.txt: Add gcal.
5841
5842 2010-04-06  Jim Meyering  <meyering@redhat.com>
5843
5844         init.sh: simply unset TMPDIR rather than risking env -i
5845         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
5846         although it probably works fine on all Unix-based systems, some
5847         systems (Cygwin?) cannot tolerate a totally cleared environment.
5848         Suggestion from Eric Blake.
5849
5850 2010-04-06  Jim Meyering  <meyering@redhat.com>
5851
5852         init.sh: portability fix: use env's POSIX-specified -i option not -u
5853         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
5854         than unportable env -u.  Solaris 5.11's env lacks support for -u.
5855
5856 2010-04-05  Bruno Haible  <bruno@clisp.org>
5857
5858         btowc: Work around Cygwin 1.7.2 bug.
5859         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
5860         does not map NUL to 0.
5861         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
5862
5863 2010-04-05  Bruno Haible  <bruno@clisp.org>
5864
5865         Make the multithread modules work on Cygwin 1.7.2.
5866         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
5867         imported symbols can be declared weak, so that it returns "no" on
5868         Cygwin 1.7.2.
5869
5870 2010-04-05  Bruno Haible  <bruno@clisp.org>
5871
5872         Use the module 'strncat'.
5873         * modules/unistr/u8-strncat (Depends-on): Add strncat.
5874
5875         Tests for module 'strncat'.
5876         * modules/strncat-tests: New file.
5877         * tests/test-strncat.c: New file.
5878
5879         New module 'strncat'.
5880         * lib/string.in.h (strncat): New declaration.
5881         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
5882         * m4/strncat.m4: New file, based on m4/memchr.m4.
5883         * modules/strncat: New file.
5884         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
5885         is declared.
5886         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
5887         REPLACE_STRNCAT.
5888         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
5889         REPLACE_STRNCAT.
5890         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
5891         module.
5892         * tests/test-string-c++.cc: Check signature of strncat.
5893
5894 2010-04-05  Jim Meyering  <meyering@redhat.com>
5895
5896         xstrtoumax-tests: convert to use init.sh
5897         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
5898         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
5899         Use Exit, not exit.
5900         Remove uses of $EXEEXT and "./" to run a program in the current dir.
5901
5902         xstrtoimax-tests: convert to use init.sh
5903         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
5904         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
5905         Use Exit, not exit.
5906         Remove uses of $EXEEXT and "./" to run a program in the current dir.
5907
5908 2010-04-05  Bruno Haible  <bruno@clisp.org>
5909
5910         sys_socket: Avoid #define replacements in C++ mode.
5911         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
5912         warning to the function if possible, rather than #defining the symbol
5913         to a dysfunctional alias.
5914
5915 2010-04-05  Bruno Haible  <bruno@clisp.org>
5916
5917         fseeko: Fix C++ test error on mingw.
5918         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
5919         gl_FUNC_FSEEKO.
5920         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
5921         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
5922         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
5923         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
5924
5925 2010-04-05  Bruno Haible  <bruno@clisp.org>
5926
5927         duplocale: Improve test output.
5928         * tests/test-duplocale.c (main): Print reason for skipped test.
5929
5930 2010-04-05  Bruno Haible  <bruno@clisp.org>
5931
5932         Assume rmdir exists.
5933         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
5934         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
5935
5936 2010-04-05  Bruno Haible  <bruno@clisp.org>
5937
5938         Fix link error on Solaris 8 with cc.
5939         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
5940
5941 2010-04-05  Bruno Haible  <bruno@clisp.org>
5942
5943         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
5944         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
5945
5946 2010-04-05  Bruno Haible  <bruno@clisp.org>
5947
5948         vasprintf: Update documentation.
5949         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
5950
5951 2010-04-05  Bruno Haible  <bruno@clisp.org>
5952
5953         ptsname: Improve test.
5954         * tests/test-ptsname.c (main): Also try the various master names of BSD
5955         systems.
5956
5957 2010-04-05  Bruno Haible  <bruno@clisp.org>
5958
5959         memchr: Avoid a possible C++ test error.
5960         * lib/string.in.h (memchr): Provide declaration if function is missing.
5961         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
5962         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
5963         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
5964         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
5965
5966 2010-04-05  Bruno Haible  <bruno@clisp.org>
5967
5968         strtok_r: Improve idiom.
5969         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
5970         AC_LIBOBJ is used.
5971
5972 2010-04-05  Bruno Haible  <bruno@clisp.org>
5973
5974         strdup: Improve idiom.
5975         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
5976         AC_LIBOBJ is used.
5977         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
5978         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
5979         when AC_LIBOBJ is used.
5980
5981 2010-04-05  Bruno Haible  <bruno@clisp.org>
5982
5983         mbsinit, mbrtowc, wcrtomb: Improve idioms.
5984         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
5985         don't set REPLACE_MBSINIT to 1.
5986         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
5987         don't set REPLACE_MBRTOWC to 1.
5988         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
5989         exist, don't set REPLACE_MBSRTOWCS to 1.
5990         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
5991         exist, don't set REPLACE_MBSNRTOWCS to 1.
5992         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
5993         don't set REPLACE_WCRTOMB to 1.
5994         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
5995         exist, don't set REPLACE_WCSRTOMBS to 1.
5996         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
5997         exist, don't set REPLACE_WCSNRTOMBS to 1.
5998
5999 2010-04-05  Bruno Haible  <bruno@clisp.org>
6000
6001         ldexpl: Improve idiom.
6002         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
6003         make sure to set HAVE_DECL_LDEXPL to 0.
6004
6005 2010-04-05  Jim Meyering  <meyering@redhat.com>
6006
6007         xstrtol-tests: convert to use init.sh
6008         * modules/xstrtol-tests (Files): Add tests/init.sh.
6009         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
6010         Use Exit, not exit.
6011         Remove uses of $EXEEXT and "./" to run a program in the current dir.
6012
6013         atexit-tests: convert to use init.sh
6014         * modules/atexit-tests (Files): Add tests/init.sh.
6015         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
6016         Use Exit, not exit.
6017         Remove uses of $EXEEXT and "./" to run a program in the current dir.
6018
6019         init.sh: fix typo
6020         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
6021
6022         init.sh: make it easier for a test script to write to the tty, ...
6023         when using automake's parallel-tests mode.
6024         * tests/init.sh (stderr_fileno_): Define overridable variable.
6025         (warn_): New function, to use it.
6026         (fail_, skip_, framework_failure_): Use warn_.
6027
6028 2010-04-04  Bruno Haible  <bruno@clisp.org>
6029
6030         btowc: Avoid warning.
6031         * lib/btowc.c: Include <stdlib.h>.
6032         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
6033
6034 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
6035             Bruno Haible  <bruno@clisp.org>
6036
6037         wchar: Port to NetBSD 1.5.
6038         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
6039         * lib/wctype.in.h (WEOF): Likewise.
6040
6041 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
6042             Bruno Haible  <bruno@clisp.org>
6043
6044         Port extended stdio to NetBSD 1.5.
6045         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
6046         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
6047         older.
6048
6049 2010-04-04  Bruno Haible  <bruno@clisp.org>
6050
6051         string: Remove unused substitution.
6052         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
6053         HAVE_DECL_STRERROR.
6054         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
6055
6056 2010-04-04  Bruno Haible  <bruno@clisp.org>
6057
6058         strtod: Avoid a possible C++ test error.
6059         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
6060         set REPLACE_STRTOD.
6061
6062 2010-04-04  Bruno Haible  <bruno@clisp.org>
6063
6064         strerror: Update documentation.
6065         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
6066
6067 2010-04-04  Bruno Haible  <bruno@clisp.org>
6068
6069         stdio: Fix some C++ test errors on Solaris 8 with GCC.
6070         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
6071         _GL_CXXALIAS_SYS_CAST.
6072
6073 2010-04-04  Bruno Haible  <bruno@clisp.org>
6074
6075         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
6076         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
6077         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
6078         REPLACE_FREXPL to 1.
6079         * doc/posix-functions/frexpl.texi: Update documentation.
6080
6081 2010-04-04  Bruno Haible  <bruno@clisp.org>
6082
6083         math: Fix some C++ test errors on Solaris 8 and Cygwin.
6084         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
6085
6086 2010-04-04  Bruno Haible  <bruno@clisp.org>
6087
6088         Implement nanosleep for native Windows.
6089         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
6090
6091 2010-04-04  Bruno Haible  <bruno@clisp.org>
6092
6093         math: Fix some C++ test errors on Solaris 8.
6094         * lib/math.in.h (truncf, trunc): Use simpler idiom.
6095
6096 2010-04-04  Bruno Haible  <bruno@clisp.org>
6097
6098         math: Fix some C++ test errors on Cygwin.
6099         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
6100         truncl): Provide declaration if the system does not have it.
6101         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
6102         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
6103         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
6104         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
6105         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
6106         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
6107         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
6108         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
6109         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
6110         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
6111         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
6112         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
6113         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
6114         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
6115         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
6116         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
6117         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
6118         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
6119         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
6120         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
6121         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
6122         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
6123
6124 2010-04-04  Bruno Haible  <bruno@clisp.org>
6125
6126         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
6127         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
6128         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
6129         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
6130         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
6131         * m4/isinf.m4 (gl_ISINF): Likewise.
6132         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
6133
6134 2010-04-04  Bruno Haible  <bruno@clisp.org>
6135
6136         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
6137         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
6138
6139 2010-04-04  Bruno Haible  <bruno@clisp.org>
6140
6141         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
6142         * modules/tmpfile (configure.ac): Update.
6143
6144         tmpfile: Fix C++ test error on mingw.
6145         * lib/stdio.in.h (tmpfile): New declaration.
6146         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
6147         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
6148         * modules/tmpfile (Depends-on): Add stdio.
6149         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
6150         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
6151         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
6152         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
6153         REPLACE_TMPFILE.
6154         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
6155
6156 2010-04-04  Bruno Haible  <bruno@clisp.org>
6157
6158         ioctl: Fix C++ test error on mingw.
6159         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
6160         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
6161         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
6162
6163 2010-04-03  Bruno Haible  <bruno@clisp.org>
6164
6165         wcwidth: Fix C++ test error on mingw.
6166         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
6167         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
6168         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
6169
6170 2010-04-03  Bruno Haible  <bruno@clisp.org>
6171
6172         nanosleep: Fix C++ test error on mingw.
6173         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
6174         * lib/time.in.h (nanosleep): Use modern idiom.
6175         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
6176         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
6177         REPLACE_NANOSLEEP to 1.
6178         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
6179         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
6180
6181 2010-04-03  Bruno Haible  <bruno@clisp.org>
6182
6183         strptime: Fix C++ test error on mingw.
6184         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
6185         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
6186         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
6187         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
6188         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
6189         not REPLACE_STRPTIME.
6190         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
6191         REPLACE_STRPTIME.
6192
6193 2010-04-03  Bruno Haible  <bruno@clisp.org>
6194
6195         timegm: Fix C++ test error on mingw.
6196         * lib/time.in.h (timegm): Use modern idiom.
6197         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
6198         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
6199         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
6200         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
6201
6202 2010-04-03  Bruno Haible  <bruno@clisp.org>
6203
6204         timegm: Assume declaration if function exists.
6205         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
6206         if it exists. Don't clobber ac_cv_func_timegm.
6207
6208 2010-04-03  Bruno Haible  <bruno@clisp.org>
6209
6210         time_r: Fix C++ test error on mingw.
6211         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
6212         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
6213         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
6214         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
6215         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
6216
6217 2010-04-03  Bruno Haible  <bruno@clisp.org>
6218
6219         time_r: Minor updates.
6220         * modules/time_r (Description): Mention the provided functions.
6221         * lib/time_r.c: Don't include <string.h>.
6222         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
6223         * doc/posix-functions/localtime_r.texi: Likewise.
6224
6225 2010-04-03  Bruno Haible  <bruno@clisp.org>
6226
6227         time: Fix regression introduced on 2010-03-08.
6228         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
6229         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
6230
6231 2010-04-03  Jim Meyering  <meyering@redhat.com>
6232
6233         maint.mk: don't silently disable project-specific syntax-check rules
6234         * top/maint.mk (_prohibit_regexp): Define, to help people realize
6235         that they need to convert their project-specific syntax-check rules
6236         to use the new _sc_search_regexp.
6237
6238 2010-04-03  Bruno Haible  <bruno@clisp.org>
6239
6240         fchdir: Fix regression introduced on 2010-03-08.
6241         * lib/unistd.in.h (fchdir): Fix declaration.
6242         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
6243         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
6244         REPLACE_FCHDIR.
6245         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
6246         REPLACE_FCHDIR.
6247
6248 2010-04-03  Bruno Haible  <bruno@clisp.org>
6249
6250         getpagesize: Fix C++ test error on mingw.
6251         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
6252         system does not declare the function.
6253         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
6254         declared.
6255         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
6256         HAVE_DECL_GETPAGESIZE.
6257         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
6258
6259 2010-04-03  Bruno Haible  <bruno@clisp.org>
6260
6261         stdio: Make C++ tests work on mingw.
6262         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
6263         does not declare the function.
6264
6265 2010-04-03  Bruno Haible  <bruno@clisp.org>
6266
6267         ftello: Fix C++ test error on mingw.
6268         * lib/stdio.in.h (ftello): Use modern idiom.
6269         * lib/ftello.c (ftello): Renamed from rpl_ftello.
6270         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
6271         is missing and that it needs to be replaced.
6272         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
6273         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
6274         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
6275
6276 2010-04-03  Bruno Haible  <bruno@clisp.org>
6277
6278         fseeko: Fix C++ test error on mingw.
6279         * lib/stdio.in.h (fseeko): Use modern idiom.
6280         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
6281         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
6282         is missing and that it needs to be replaced.
6283         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
6284         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
6285         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
6286
6287 2010-04-03  Bruno Haible  <bruno@clisp.org>
6288
6289         mkstemp: Fix C++ test error on mingw.
6290         * lib/stdlib.in.h (mkstemp): Use modern idiom.
6291         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
6292         function is missing and that it needs to be replaced.
6293         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
6294         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
6295
6296 2010-04-03  Bruno Haible  <bruno@clisp.org>
6297
6298         stpncpy: Fix C++ test error on mingw.
6299         * lib/string.in.h (stpncpy): Use modern idiom.
6300         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
6301         function is missing and that it needs to be replaced.
6302         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
6303         REPLACE_STPNCPY.
6304         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
6305
6306 2010-04-03  Bruno Haible  <bruno@clisp.org>
6307
6308         sys_stat: Fix C++ test error on mingw.
6309         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
6310         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
6311
6312 2010-04-03  Bruno Haible  <bruno@clisp.org>
6313
6314         pty: Update doc.
6315         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
6316
6317 2010-04-03  Bruno Haible  <bruno@clisp.org>
6318
6319         unistd: Fix C++ test error on mingw.
6320         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
6321
6322 2010-04-03  Bruno Haible  <bruno@clisp.org>
6323
6324         Update doc regarding mingw.
6325         * doc/glibc-functions/openpty.texi: Update regarding mingw.
6326         * doc/glibc-functions/login_tty.texi: Likewise.
6327         * doc/glibc-functions/forkpty.texi: Likewise.
6328
6329 2010-04-03  Bruno Haible  <bruno@clisp.org>
6330
6331         stdlib: Avoid compilation failure of c-strtold on mingw.
6332         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
6333
6334 2010-04-03  Bruno Haible  <bruno@clisp.org>
6335
6336         locale: Make C++ tests work on Cygwin and mingw.
6337         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
6338         cannot provide the function.
6339         Reported by Simon Josefsson.
6340
6341 2010-04-03  Bruno Haible  <bruno@clisp.org>
6342
6343         localename: Port to MacOS X 10.6.
6344         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
6345         memory layout of the locales in MacOS X 10.6 as well.
6346         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
6347
6348 2010-04-02  Bruno Haible  <bruno@clisp.org>
6349
6350         gnulib-tool: Ensure that long-running tests are executed last.
6351         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
6352         running tests after the one for the other tests.
6353
6354 2010-04-02  Bruno Haible  <bruno@clisp.org>
6355
6356         gnulib-tool: Ensure the tests in the main directory are executed first.
6357         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
6358         start with the current directory.
6359
6360 2010-04-02  Bruno Haible  <bruno@clisp.org>
6361
6362         Tests for module 'havelib', moved here from GNU gettext.
6363         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
6364         modifications.
6365         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
6366         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
6367         with modifications.
6368         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
6369         modifications.
6370         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
6371         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
6372         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
6373         with modifications.
6374         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
6375         with modifications.
6376         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
6377         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
6378         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
6379         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
6380         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
6381         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
6382         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
6383         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
6384         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
6385         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
6386         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
6387         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
6388         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
6389         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
6390         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
6391         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
6392         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
6393         with modifications.
6394         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
6395         with modifications.
6396         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
6397         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
6398         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
6399         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
6400         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
6401         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
6402         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
6403         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
6404         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
6405         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
6406         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
6407         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
6408         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
6409         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
6410         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
6411         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
6412         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
6413         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
6414         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
6415         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
6416         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
6417         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
6418         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
6419         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
6420         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
6421         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
6422         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
6423         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
6424         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
6425         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
6426         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
6427         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
6428         * tests/havelib/rpathx/rpathx.c: New file, from
6429         gettext/autoconf-lib-link.
6430         * tests/havelib/rpathx/Makefile.am: New file, from
6431         gettext/autoconf-lib-link.
6432         * tests/havelib/rpathx/configure.ac: New file, from
6433         gettext/autoconf-lib-link with modifications.
6434         * tests/havelib/rpathy/rpathy.c: New file, from
6435         gettext/autoconf-lib-link.
6436         * tests/havelib/rpathy/Makefile.am: New file, from
6437         gettext/autoconf-lib-link.
6438         * tests/havelib/rpathy/configure.ac: New file, from
6439         gettext/autoconf-lib-link with modifications.
6440         * tests/havelib/rpathz/rpathz.c: New file, from
6441         gettext/autoconf-lib-link.
6442         * tests/havelib/rpathz/Makefile.am: New file, from
6443         gettext/autoconf-lib-link.
6444         * tests/havelib/rpathz/configure.ac: New file, from
6445         gettext/autoconf-lib-link with modifications.
6446         * tests/havelib/rpathlx/usex.c: New file, from
6447         gettext/autoconf-lib-link.
6448         * tests/havelib/rpathlx/Makefile.am: New file, from
6449         gettext/autoconf-lib-link.
6450         * tests/havelib/rpathlx/configure.ac: New file, from
6451         gettext/autoconf-lib-link with modifications.
6452         * tests/havelib/rpathly/usey.c: New file, from
6453         gettext/autoconf-lib-link.
6454         * tests/havelib/rpathly/Makefile.am: New file, from
6455         gettext/autoconf-lib-link.
6456         * tests/havelib/rpathly/configure.ac: New file, from
6457         gettext/autoconf-lib-link with modifications.
6458         * tests/havelib/rpathlz/usez.c: New file, from
6459         gettext/autoconf-lib-link.
6460         * tests/havelib/rpathlz/Makefile.am: New file, from
6461         gettext/autoconf-lib-link.
6462         * tests/havelib/rpathlz/configure.ac: New file, from
6463         gettext/autoconf-lib-link with modifications.
6464         * tests/havelib/rpathlyx/usey.c: New file, from
6465         gettext/autoconf-lib-link.
6466         * tests/havelib/rpathlyx/Makefile.am: New file, from
6467         gettext/autoconf-lib-link.
6468         * tests/havelib/rpathlyx/configure.ac: New file, from
6469         gettext/autoconf-lib-link with modifications.
6470         * tests/havelib/rpathlzyx/usez.c: New file, from
6471         gettext/autoconf-lib-link.
6472         * tests/havelib/rpathlzyx/Makefile.am: New file, from
6473         gettext/autoconf-lib-link.
6474         * tests/havelib/rpathlzyx/configure.ac: New file, from
6475         gettext/autoconf-lib-link with modifications.
6476         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
6477         with modifications.
6478
6479 2010-04-02  Bruno Haible  <bruno@clisp.org>
6480
6481         gnulib-tool: Create distributed built sources also for the tests.
6482         * gnulib-tool (func_create_testdir): Also generate distributed built
6483         sources in the tests directory.
6484
6485 2010-04-02  Bruno Haible  <bruno@clisp.org>
6486
6487         gnulib-tool: Obey user's environment variables.
6488         * gnulib-tool (func_create_testdir): When creating built sources,
6489         respect the environment variables for autoconf, automake, etc. given by
6490         the user.
6491
6492 2010-04-02  Bruno Haible  <bruno@clisp.org>
6493
6494         gnulib-tool: Provide the value of --m4-base to modules.
6495         * gnulib-tool (func_import, func_create_testdir): Emit a definition
6496         of gl_m4_base.
6497
6498 2010-04-02  Eric Blake  <eblake@redhat.com>
6499
6500         maint.mk: fix some fallout
6501         * NEWS: Document the incompatible change, and its effect on cfg.mk.
6502         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
6503
6504 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
6505
6506         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
6507         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
6508         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
6509         (sc_cast_of_x_alloc_return_value): Likewise.
6510         (sc_cast_of_alloca_return_value): Likewise.
6511         (sc_space_tab): Likewise.
6512         (sc_prohibit_atoi_atof): Likewise.
6513         (sc_prohibit_magic_number_exit): Likewise.
6514         (sc_error_exit_success): Likewise.
6515         (sc_file_system): Likewise.
6516         (sc_prohibit_have_config_h): Likewise.
6517         (sc_require_config_h): Likewise.
6518         (sc_prohibit_HAVE_MBRTOWC): Likewise.
6519         (sc_obsolete_symbols): Likewise.
6520         (sc_changelog): Likewise.
6521         (sc_program_name): Likewise.
6522         (sc_the_the): Likewise.
6523         (sc_trailing_blank): Likewise.
6524         (sc_two_space_separator_in_usage): Likewise.
6525         (sc_useless_cpp_parens): Likewise.
6526         (sc_GPL_version): Likewise.
6527         (sc_GFDL_version): Likewise.
6528         (sc_texinfo_acronym): Likewise.
6529         (sc_prohibit_cvs_keyword): Likewise.
6530         (sc_prohibit_stat_st_blocks): Likewise.
6531         (sc_prohibit_S_IS_definition): Likewise.
6532         (sc_redundant_const): Likewise.
6533         (sc_makefile_TAB_only_indentation): Likewise.
6534         (sc_m4_quote_check): Likewise.
6535         (sc_makefile_path_separator_check): Likewise.
6536         (sc_copyright_check): Likewise.
6537         (sc_Wundef_boolean): Likewise.
6538         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
6539
6540         maint.mk: match 0 or more whitespace-before-function-call '('
6541         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
6542         that have zero or two-and-more spaces between the function name
6543         and the open parenthesis.
6544         (sc_error_message_warn_fatal): Likewise.
6545         (sc_error_message_uppercase): Likewise.
6546         (sc_error_message_period): Likewise.
6547
6548 2010-03-31  Eric Blake  <eblake@redhat.com>
6549
6550         maint.mk: check for [ as well as test
6551         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
6552         Based on a libvirt report by Matthias Bolte.
6553
6554         gnumakefile: don't squelch _version output
6555         * top/GNUmakefile (_version): Create one-shot dependency rather
6556         than using $(shell) when version must be regenerated.
6557         (_autoreconf): Run verbosely, by default.
6558
6559         sys_time: avoid compiler warnings
6560         * lib/sys_time.in.h (includes): Ensure gcc pragma is
6561         unconditional, fixing regression from 2010-03-29.
6562         Reported by Simon Josefsson.
6563
6564 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
6565
6566         maint.mk: s/_header_without_use/_sc_header_without_use/
6567         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
6568         (sc_prohibit_assert_without_use): Use the new name.
6569         (sc_prohibit_close_stream_without_use): Likewise.
6570         (sc_prohibit_getopt_without_use): Likewise.
6571         (sc_prohibit_quotearg_without_use): Likewise.
6572         (sc_prohibit_quote_without_use): Likewise.
6573         (sc_prohibit_long_options_without_use): Likewise.
6574         (sc_prohibit_inttostr_without_use): Likewise.
6575         (sc_prohibit_ignore_value_without_use): Likewise.
6576         (sc_prohibit_error_without_use): Likewise.
6577         (sc_prohibit_xalloc_without_use): Likewise.
6578         (sc_prohibit_hash_without_use): Likewise.
6579         (sc_prohibit_hash_pjw_without_use): Likewise.
6580         (sc_prohibit_safe_read_without_use): Likewise.
6581         (sc_prohibit_argmatch_without_use): Likewise.
6582         (sc_prohibit_canonicalize_without_use): Likewise.
6583         (sc_prohibit_root_dev_ino_without_use): Likewise.
6584         (sc_prohibit_openat_without_use): Likewise.
6585         (sc_prohibit_c_ctype_without_use): Likewise.
6586         (sc_prohibit_signal_without_use): Likewise.
6587         (sc_prohibit_intprops_without_use): Likewise.
6588
6589 2010-03-30  Eric Blake  <eblake@redhat.com>
6590
6591         maint: improve module indicators
6592         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
6593         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
6594         columns, and avoid extra macro expansion.
6595
6596         fdopendir: work around FreeBSD bug
6597         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
6598         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
6599         * modules/dirent (Makefile.am): Substitute it.
6600         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
6601         declaration.
6602         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
6603         fix.
6604         Reported by Christian Weisgerber <naddy@mips.inka.de>.
6605
6606 2010-03-29  Bruno Haible  <bruno@clisp.org>
6607
6608         Emit #pragma system_header after the inclusion guard, not before.
6609         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
6610         guard that spans the entire file, not before. This enables an
6611         optimization in GCC's preprocessor.
6612         * lib/ctype.in.h: Likewise.
6613         * lib/dirent.in.h: Likewise.
6614         * lib/errno.in.h: Likewise.
6615         * lib/float.in.h: Likewise.
6616         * lib/getopt.in.h: Likewise.
6617         * lib/iconv.in.h: Likewise.
6618         * lib/langinfo.in.h: Likewise.
6619         * lib/locale.in.h: Likewise.
6620         * lib/math.in.h: Likewise.
6621         * lib/netdb.in.h: Likewise.
6622         * lib/netinet_in.in.h: Likewise.
6623         * lib/pty.in.h: Likewise.
6624         * lib/sched.in.h: Likewise.
6625         * lib/se-selinux.in.h: Likewise.
6626         * lib/search.in.h: Likewise.
6627         * lib/spawn.in.h: Likewise.
6628         * lib/stdarg.in.h: Likewise.
6629         * lib/stdint.in.h: Likewise.
6630         * lib/string.in.h: Likewise.
6631         * lib/strings.in.h: Likewise.
6632         * lib/sys_file.in.h: Likewise.
6633         * lib/sys_ioctl.in.h: Likewise.
6634         * lib/sys_time.in.h: Likewise.
6635         * lib/sys_times.in.h: Likewise.
6636         * lib/sys_utsname.in.h: Likewise.
6637         * lib/sys_wait.in.h: Likewise.
6638         * lib/sysexits.in.h: Likewise.
6639         * lib/wctype.in.h: Likewise.
6640
6641 2010-03-28  James Youngman  <jay@gnu.org>
6642
6643         save-cwd: don't leak a file descriptor when the caller execs.
6644         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
6645         saved file descriptor.
6646         * modules/save-cwd (Depends-on): Depend on cloexec.
6647
6648 2010-03-29  Bruno Haible  <bruno@clisp.org>
6649
6650         Remove vestiges of fts-lgpl module.
6651         * lib/fts_.h: Assume GNULIB_FTS is 1.
6652         * lib/fts.c: Likewise.
6653         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
6654
6655 2010-03-28  Bruno Haible  <bruno@clisp.org>
6656
6657         Fix definition of tests witness macro.
6658         * gnulib-tool (func_import): Fix definition of witness macro.
6659
6660 2010-03-28  Bruno Haible  <bruno@clisp.org>
6661
6662         Fix ioctl's protoype on glibc systems.
6663         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
6664         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
6665         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
6666         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
6667         signature. If not, arrange to replace the ioctl function.
6668         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
6669         REPLACE_IOCTL.
6670         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
6671         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
6672         Reported by Ludovic Courtès <ludo@gnu.org>.
6673
6674 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
6675
6676         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
6677         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
6678         made it so grep -r --include=GLOB* ... did not work.
6679
6680 2010-03-26  Jim Meyering  <meyering@redhat.com>
6681             Eric Blake  <eblake@redhat.com>
6682
6683         maint.mk: prohibit use of test's -o and -a operators
6684         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
6685
6686 2010-03-28  Bruno Haible  <bruno@clisp.org>
6687
6688         Remove unused GNULIB_XYZ macro definitions.
6689         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
6690         invocation.
6691
6692 2010-03-28  Bruno Haible  <bruno@clisp.org>
6693
6694         Mark privileged tests modules.
6695         * modules/idpriv-drop-tests (Status): New section.
6696         * modules/idpriv-droptemp-tests (Status): New section.
6697
6698 2010-03-28  Bruno Haible  <bruno@clisp.org>
6699
6700         Split C++ tests into separate tests modules.
6701         * modules/dirent-c++-tests: New file, extracted from
6702         modules/dirent-tests.
6703         * modules/dirent-tests: Depend on it.
6704         * modules/fcntl-h-c++-tests: New file, extracted from
6705         modules/fcntl-h-tests.
6706         * modules/fcntl-h-tests: Depend on it.
6707         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
6708         * modules/glob-tests: Depend on it.
6709         * modules/iconv-h-c++-tests: New file, extracted from
6710         modules/iconv-h-tests.
6711         * modules/iconv-h-tests: Depend on it.
6712         * modules/langinfo-c++-tests: New file, extracted from
6713         modules/langinfo-tests.
6714         * modules/langinfo-tests: Depend on it.
6715         * modules/locale-c++-tests: New file, extracted from
6716         modules/locale-tests.
6717         * modules/locale-tests: Depend on it.
6718         * modules/math-c++-tests: New file, extracted from modules/math-tests.
6719         * modules/math-tests: Depend on it.
6720         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
6721         * modules/pty-tests: Depend on it.
6722         * modules/search-c++-tests: New file, extracted from
6723         modules/search-tests.
6724         * modules/search-tests: Depend on it.
6725         * modules/signal-c++-tests: New file, extracted from
6726         modules/signal-tests.
6727         * modules/signal-tests: Depend on it.
6728         * modules/spawn-c++-tests: New file, extracted from
6729         modules/spawn-tests.
6730         * modules/spawn-tests: Depend on it.
6731         * modules/stdio-c++-tests: New file, extracted from
6732         modules/stdio-tests.
6733         * modules/stdio-tests: Depend on it.
6734         * modules/stdlib-c++-tests: New file, extracted from
6735         modules/stdlib-tests.
6736         * modules/stdlib-tests: Depend on it.
6737         * modules/string-c++-tests: New file, extracted from
6738         modules/string-tests.
6739         * modules/string-tests: Depend on it.
6740         * modules/sys_ioctl-c++-tests: New file, extracted from
6741         modules/sys_ioctl-tests.
6742         * modules/sys_ioctl-tests: Depend on it.
6743         * modules/sys_select-c++-tests: New file, extracted from
6744         modules/sys_select-tests.
6745         * modules/sys_select-tests: Depend on it.
6746         * modules/sys_socket-c++-tests: New file, extracted from
6747         modules/sys_socket-tests.
6748         * modules/sys_socket-tests: Depend on it.
6749         * modules/sys_stat-c++-tests: New file, extracted from
6750         modules/sys_stat-tests.
6751         * modules/sys_stat-tests: Depend on it.
6752         * modules/sys_time-c++-tests: New file, extracted from
6753         modules/sys_time-tests.
6754         * modules/sys_time-tests: Depend on it.
6755         * modules/time-c++-tests: New file, extracted from modules/time-tests.
6756         * modules/time-tests: Depend on it.
6757         * modules/unistd-c++-tests: New file, extracted from
6758         modules/unistd-tests.
6759         * modules/unistd-tests: Depend on it.
6760         * modules/wchar-c++-tests: New file, extracted from
6761         modules/wchar-tests.
6762         * modules/wchar-tests: Depend on it.
6763         * modules/wctype-c++-tests: New file, extracted from
6764         modules/wctype-tests.
6765         * modules/wctype-tests: Depend on it.
6766         Reported by Simon Josefsson.
6767
6768 2010-03-28  Bruno Haible  <bruno@clisp.org>
6769
6770         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
6771         * gnulib-tool (func_exists_module): New function, extracted from
6772         func_verify_module.
6773         (func_verify_module): Use it.
6774         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
6775         'foo' only if 'foo' exists.
6776         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
6777         module.
6778
6779 2010-03-28  Bruno Haible  <bruno@clisp.org>
6780
6781         gnulib-tool: Add support for special categories of tests.
6782         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
6783         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
6784         (func_usage): Document them.
6785         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
6786         inc_unportable_tests, inc_all_tests): New variables.
6787         (func_acceptable): Consider these variables.
6788         (func_modules_transitive_closure): Make it work when the 'Status' field
6789         consists of multiple words.
6790         (func_import): Store and restore the values of inc_cxx_tests,
6791         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
6792         inc_all_tests in gnulib-comp.m4.
6793         (func_create_testdir): Set inc_all_tests to true.
6794         * doc/gnulib.texi (Extra tests modules): New section.
6795         Suggested by Jim Meyering.
6796
6797 2010-03-28  Bruno Haible  <bruno@clisp.org>
6798
6799         ansi-c++-opt: Allow turning off the C++ build by default.
6800         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
6801         gl_CXX_CHOICE_DEFAULT_NO is defined.
6802         Requested by Eric Blake.
6803
6804 2010-03-28  Bruno Haible  <bruno@clisp.org>
6805
6806         unistd: Avoid #define replacements in C++ mode.
6807         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
6808         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
6809         setsockopt, shutdown, select): In C++, attach a warning to the function
6810         if possible, rather than #defining the symbol to a dysfunctional alias.
6811         Reported by John W. Eaton <jwe@gnu.org>.
6812
6813 2010-03-28  Bruno Haible  <bruno@clisp.org>
6814
6815         Fix link errors on mingw.
6816         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
6817         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
6818         $(LIBSOCKET).
6819         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
6820         $(LIBSOCKET).
6821
6822 2010-03-28  Bruno Haible  <bruno@clisp.org>
6823             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6824
6825         lib-ignore: Determine different options for different compilers.
6826         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
6827         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
6828         Add comments.
6829         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
6830         * NEWS: Mention the change.
6831
6832 2010-03-27  Bruno Haible  <bruno@clisp.org>
6833
6834         Remove unused GNULIB_XYZ macro definitions.
6835         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
6836         * modules/fseek (configure.ac): Likewise.
6837         * modules/ioctl (configure.ac): Likewise.
6838         * modules/open (configure.ac): Likewise.
6839         * modules/stdlib-safer (configure.ac): Likewise.
6840
6841 2010-03-27  Bruno Haible  <bruno@clisp.org>
6842
6843         Add a remark about certain modules.
6844         * modules/malloc (Comment): New section.
6845         * modules/realloc (Comment): Likewise.
6846         * modules/sigpipe (Comment): Likewise.
6847
6848 2010-03-27  Bruno Haible  <bruno@clisp.org>
6849
6850         Resolve conflict between the two kinds of module indicators.
6851         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
6852         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
6853         * modules/canonicalize (configure.ac): Invoke
6854         gl_MODULE_INDICATOR_FOR_TESTS.
6855         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
6856         GNULIB_XYZ.
6857         * tests/test-dirent-c++.cc: Likewise.
6858         * tests/test-dirent-safer.c: Likewise.
6859         * tests/test-dup2.c: Likewise.
6860         * tests/test-fchdir.c: Likewise.
6861         * tests/test-fcntl-h-c++.cc: Likewise.
6862         * tests/test-getopt.c: Likewise.
6863         * tests/test-getopt.h: Likewise.
6864         * tests/test-langinfo-c++.cc: Likewise.
6865         * tests/test-locale-c++.cc: Likewise.
6866         * tests/test-math-c++.cc: Likewise.
6867         * tests/test-pty-c++.cc: Likewise.
6868         * tests/test-search-c++.cc: Likewise.
6869         * tests/test-signal-c++.cc: Likewise.
6870         * tests/test-spawn-c++.cc: Likewise.
6871         * tests/test-stdio-c++.cc: Likewise.
6872         * tests/test-stdlib-c++.cc: Likewise.
6873         * tests/test-string-c++.cc: Likewise.
6874         * tests/test-sys_ioctl-c++.cc: Likewise.
6875         * tests/test-sys_select-c++.cc: Likewise.
6876         * tests/test-sys_socket-c++.cc: Likewise.
6877         * tests/test-sys_stat-c++.cc: Likewise.
6878         * tests/test-sys_time-c++.cc: Likewise.
6879         * tests/test-time-c++.cc: Likewise.
6880         * tests/test-unistd-c++.cc: Likewise.
6881         * tests/test-wchar-c++.cc: Likewise.
6882         * tests/uninorm/test-u8-nfc.c: Likewise.
6883         * tests/uninorm/test-u8-nfd.c: Likewise.
6884         * tests/uninorm/test-u8-nfkc.c: Likewise.
6885         * tests/uninorm/test-u8-nfkd.c: Likewise.
6886         * tests/uninorm/test-u16-nfc.c: Likewise.
6887         * tests/uninorm/test-u16-nfd.c: Likewise.
6888         * tests/uninorm/test-u16-nfkc.c: Likewise.
6889         * tests/uninorm/test-u16-nfkd.c: Likewise.
6890         * tests/uninorm/test-u32-nfc.c: Likewise.
6891         * tests/uninorm/test-u32-nfc-big.c: Likewise.
6892         * tests/uninorm/test-u32-nfd.c: Likewise.
6893         * tests/uninorm/test-u32-nfd-big.c: Likewise.
6894         * tests/uninorm/test-u32-nfkc.c: Likewise.
6895         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
6896         * tests/uninorm/test-u32-nfkd.c: Likewise.
6897         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
6898         * tests/uninorm/test-u32-normalize-big.c: Likewise.
6899
6900 2010-03-27  Bruno Haible  <bruno@clisp.org>
6901
6902         Distinguish two kinds of module indicators.
6903         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
6904         gl_MODULE_INDICATOR.
6905         (gl_MODULE_INDICATOR): New macro.
6906         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
6907         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
6908         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
6909         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
6910         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
6911         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
6912         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
6913         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
6914         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
6915         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
6916         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
6917         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
6918         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
6919         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
6920         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
6921         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
6922         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
6923         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
6924         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
6925         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
6926         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
6927         * modules/cloexec (configure.ac): Likewise.
6928         * modules/getopt-gnu (configure.ac): Likewise.
6929         * modules/uninorm/u8-normalize (configure.ac): Likewise.
6930         * modules/uninorm/u16-normalize (configure.ac): Likewise.
6931         * modules/uninorm/u32-normalize (configure.ac): Likewise.
6932         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
6933
6934 2010-03-27  Bruno Haible  <bruno@clisp.org>
6935
6936         New module description field 'Comment'.
6937         * gnulib-tool: New option --extract-comment.
6938         (func_usage): Document it.
6939         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
6940         (func_get_comment): New function.
6941         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
6942
6943 2010-03-27  Bruno Haible  <bruno@clisp.org>
6944
6945         Addendum to 2010-02-07 commit.
6946         * gnulib-tool (func_usage): Document --extract-applicability option.
6947
6948 2010-03-27  Bruno Haible  <bruno@clisp.org>
6949
6950         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
6951         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
6952         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
6953         rather than link errors.
6954
6955 2010-03-27  Bruno Haible  <bruno@clisp.org>
6956
6957         Avoid side effects from tests-related modules on the compilation of lib.
6958         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
6959         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
6960         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
6961         parameter. Emit into AM_CPPFLAGS a definition of the designated C
6962         macro.
6963         (func_import): Define a witness macro. Assign it a value that depends
6964         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
6965         tests-related modules.
6966         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
6967         Reported by Jim Meyering.
6968
6969 2010-03-27  Bruno Haible  <bruno@clisp.org>
6970
6971         Factorize common .m4 code.
6972         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
6973         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
6974         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
6975         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
6976         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
6977         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
6978         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
6979         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
6980         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
6981         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
6982         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
6983         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
6984         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
6985         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
6986         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
6987         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
6988         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
6989         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
6990         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
6991         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
6992         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
6993         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
6994         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
6995         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
6996         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
6997         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
6998         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
6999         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
7000         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
7001         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
7002         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
7003         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
7004
7005 2010-03-27  Bruno Haible  <bruno@clisp.org>
7006
7007         Fix a compilation error on Cygwin with g++ >= 4.3.
7008         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
7009         if it is undefined or if we alias it to chmod.
7010         (lstat): Don't warn about the use of this function if it is undefined
7011         or if we alias it to stat.
7012         Reported by Simon Josefsson.
7013
7014 2010-03-27  Bruno Haible  <bruno@clisp.org>
7015
7016         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
7017         * modules/getlogin (configure.ac): Update.
7018
7019         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
7020         * modules/getlogin_r (configure.ac): Update.
7021
7022         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
7023         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
7024         * modules/inet_ntop (configure.ac): Update.
7025
7026         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
7027         * modules/inet_pton (configure.ac): Update.
7028
7029         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
7030         * modules/mbslen (configure.ac): Update.
7031
7032         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
7033         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
7034         * modules/forkpty (configure.ac): Update.
7035         * modules/openpty (configure.ac): Update.
7036
7037 2010-03-26  Simon Josefsson  <simon@josefsson.org>
7038
7039         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
7040         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
7041
7042 2010-03-25  Eric Blake  <eblake@redhat.com>
7043
7044         maint: use pragma consistently across replacement headers
7045         * lib/ctype.in.h (system_header): Hoist for consistent placement.
7046         * lib/dirent.in.h (system_header): Likewise.
7047         * lib/errno.in.h (system_header): Likewise.
7048         * lib/float.in.h (system_header): Likewise.
7049         * lib/getopt.in.h (system_header): Likewise.
7050         * lib/iconv.in.h (system_header): Likewise.
7051         * lib/inttypes.in.h (system_header): Likewise.
7052         * lib/langinfo.in.h (system_header): Likewise.
7053         * lib/locale.in.h (system_header): Likewise.
7054         * lib/math.in.h (system_header): Likewise.
7055         * lib/netdb.in.h (system_header): Likewise.
7056         * lib/netinet_in.in.h (system_header): Likewise.
7057         * lib/pty.in.h (system_header): Likewise.
7058         * lib/sched.in.h (system_header): Likewise.
7059         * lib/se-selinux.in.h (system_header): Likewise.
7060         * lib/search.in.h (system_header): Likewise.
7061         * lib/spawn.in.h (system_header): Likewise.
7062         * lib/stdarg.in.h (system_header): Likewise.
7063         * lib/stdint.in.h (system_header): Likewise.
7064         * lib/string.in.h (system_header): Likewise.
7065         * lib/strings.in.h (system_header): Likewise.
7066         * lib/sys_file.in.h (system_header): Likewise.
7067         * lib/sys_ioctl.in.h (system_header): Likewise.
7068         * lib/sys_socket.in.h (system_header): Likewise.
7069         * lib/sys_times.in.h (system_header): Likewise.
7070         * lib/sys_utsname.in.h (system_header): Likewise.
7071         * lib/sys_wait.in.h (system_header): Likewise.
7072         * lib/sysexits.in.h (system_header): Likewise.
7073         * lib/unistd.in.h (system_header): Likewise.
7074         * lib/wctype.in.h (system_header): Likewise.
7075
7076         arpa/inet: fix mingw compilation warning
7077         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
7078         Reported by Matthew Bolte.
7079
7080 2010-03-25  Bruno Haible  <bruno@clisp.org>
7081
7082         Avoid collision between gnulib wrapper and libintl wrapper.
7083         * lib/printf.c (printf): Don't define if a printf wrapper is already
7084         defined in intl/printf.c.
7085         Reported by Michel Boaventura <michel@michelboaventura.com>.
7086
7087 2010-03-25  Bruno Haible  <bruno@clisp.org>
7088
7089         Use ANSI C.
7090         * lib/readutmp.h (getutent): Provide ANSI C prototype.
7091
7092 2010-03-25  Bruno Haible  <bruno@clisp.org>
7093
7094         Minor formatting changes.
7095         * lib/acosl.c: Insert space before function argument list.
7096         * lib/argz.c: Likewise.
7097         * lib/asinl.c: Likewise.
7098         * lib/expl.c: Likewise.
7099         * lib/gen-uni-tables.c: Likewise.
7100         * lib/gettext.h: Likewise.
7101         * lib/glthread/lock.h: Likewise.
7102         * lib/tanl.c: Likewise.
7103         * lib/uniname/uniname.c: Likewise.
7104         * tests/test-idpriv-drop.c: Likewise.
7105         * tests/test-idpriv-droptemp.c: Likewise.
7106         * tests/test-lock.c: Likewise.
7107         * tests/test-tls.c: Likewise.
7108         * lib/argp-help.c: Insert space before function-like macro argument
7109         list.
7110         * lib/memcmp.c: Likewise.
7111         * tests/test-base64.c: Likewise.
7112         * lib/localename.c: Insert space before sizeof's argument list.
7113         * lib/safe-alloc.h: Likewise.
7114         * lib/file-set.h: Insert space before macro argument list.
7115         * tests/test-argp.c: Likewise.
7116         * lib/argp-namefrob.h: Insert space before function parameter list.
7117         * lib/getaddrinfo.c: Likewise.
7118         * lib/netdb.in.h: Likewise.
7119         * lib/parse-duration.h: Likewise.
7120         * lib/parse-duration.c: Likewise.
7121         * lib/poll.c: Likewise.
7122         * lib/select.c: Likewise.
7123         * lib/trim.h: Likewise.
7124         * tests/test-usleep.c: Likewise.
7125         * lib/ldexpl.c: Insert space before function parameter list and before
7126         function argument list.
7127         * lib/logl.c: Likewise.
7128         * lib/sqrtl.c: Likewise.
7129         * lib/trim.c: Likewise.
7130         * lib/cosl.c: Use GNU style indentation. Insert space before function
7131         argument list.
7132         * lib/sinl.c: Likewise.
7133         * lib/tsearch.c: Insert space after 'for'.
7134         Reported by Jim Meyering.
7135
7136 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
7137
7138         * maint.mk (sc_Wundef_boolean): Check for the presence of the
7139         config header before grepping, as it's not present before
7140         autoreconf/configure are run.  Reported by Simon Josefsson.
7141
7142 2010-03-23  Bruno Haible  <bruno@clisp.org>
7143
7144         pt_chown: Make it work with automake < 1.11.
7145         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
7146         Reported by Simon Josefsson.
7147
7148 2010-03-23  Bruno Haible  <bruno@clisp.org>
7149
7150         pt_chown: Don't depend on GPLed modules.
7151         * lib/pt_chown.c: Don't include idpriv.h.
7152         (main): Don't drop privileges.
7153         * modules/pt_chown (Depends-on): Remove idpriv-drop.
7154         Reported by Simon Josefsson.
7155
7156 2010-03-24  Simon Josefsson  <simon@josefsson.org>
7157
7158         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
7159         suggestions from karl@freefriends.org (Karl Berry).
7160
7161 2010-03-22  Eric Blake  <eblake@redhat.com>
7162
7163         gethostname: further tweaks
7164         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
7165         are overriding gethostname.
7166         Suggested by Bruno Haible.
7167
7168 2010-03-21  Bruno Haible  <bruno@clisp.org>
7169
7170         Fix comments.
7171         * lib/forkpty.c (rpl_forkpty): Fix comment.
7172         * lib/openpty.c (rpl_openpty): Likewise.
7173         Reported by Eric Blake.
7174
7175 2010-03-22  Eric Blake  <eblake@redhat.com>
7176
7177         gethostname: fix build on mingw
7178         * lib/unistd.in.h (includes): Work around fact that mingw
7179         <winsock2.h> re-includes <unistd.h>, by avoiding any
7180         redeclarations if we are being included by <winsock2.h>.
7181         Reported by Matthias Bolte.
7182
7183 2010-03-21  Bruno Haible  <bruno@clisp.org>
7184
7185         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
7186         * lib/forkpty.c (forkpty): New replacement function, from glibc with
7187         modifications.
7188         * lib/pty.in.h (forkpty): Update declaration. Add comments.
7189         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
7190         provide the replacement.
7191         * modules/forkpty (Depends-on): Add openpty, login_tty.
7192         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
7193         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
7194         * doc/glibc-functions/forkpty.texi: More supported platforms.
7195         * config/srclist.txt: Add forkpty.c (commented).
7196
7197 2010-03-21  Bruno Haible  <bruno@clisp.org>
7198
7199         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
7200         (Makefile.am): Verify that PTY_LIB is defined.
7201
7202         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
7203
7204 2010-03-21  Bruno Haible  <bruno@clisp.org>
7205
7206         Tests for module 'login_tty'.
7207         * modules/login_tty-tests: New file.
7208         * tests/test-login_tty.c: New file.
7209
7210         New module 'login_tty'.
7211         * lib/login_tty.c: New file.
7212         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
7213         * modules/login_tty: New file.
7214         * doc/glibc-functions/login_tty.texi: Mention the new module.
7215
7216 2010-03-21  Bruno Haible  <bruno@clisp.org>
7217
7218         login_tty: Documentation.
7219         * doc/glibc-functions/login_tty.texi: New file.
7220         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
7221
7222 2010-03-21  Bruno Haible  <bruno@clisp.org>
7223
7224         pty: Consistent macro naming.
7225         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
7226         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
7227         * modules/pty (configure.ac): Update.
7228
7229 2010-03-21  Bruno Haible  <bruno@clisp.org>
7230
7231         Tests for openpty: Make stricter.
7232         * tests/test-openpty.c (main): Add test of canonical processing and
7233         erase.
7234         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
7235
7236         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
7237         * lib/openpty.c (openpty): New replacement function.
7238         * lib/pty.in.h: Include <termios.h>.
7239         (openpty): Update declaration. Add comments.
7240         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
7241         is not declared, arrange to provide the replacement. Check for _getpty
7242         and posix_openpt.
7243         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
7244         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
7245         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
7246         * modules/pty-tests (test_pty_c___LDADD): New variable.
7247         * doc/glibc-functions/openpty.texi: More supported platforms.
7248
7249 2010-03-21  Bruno Haible  <bruno@clisp.org>
7250
7251         setenv: Tweaks.
7252         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
7253         the test program.
7254         * doc/posix-functions/setenv.texi: Update platforms list.
7255
7256 2010-03-21  Bruno Haible  <bruno@clisp.org>
7257
7258         New module 'unlockpt'.
7259         * lib/unlockpt.c: New file, from glibc with modifications.
7260         * m4/unlockpt.m4: New file.
7261         * modules/unlockpt: New file.
7262         * lib/stdlib.in.h (unlockpt): New declaration.
7263         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
7264         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
7265         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
7266         HAVE_UNLOCKPT.
7267         * doc/posix-functions/unlockpt.texi: Mention the new module.
7268         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
7269         * config/srclist.txt: Add unlockpt.c (commented).
7270
7271 2010-03-21  Jim Meyering  <meyering@redhat.com>
7272
7273         maint.mk: prohibit inclusion of "intprops.h" without use
7274         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
7275
7276 2010-03-21  Bruno Haible  <bruno@clisp.org>
7277
7278         New module 'grantpt'.
7279         * lib/grantpt.c: New file, from glibc with modifications.
7280         * m4/grantpt.m4: New file.
7281         * modules/grantpt: New file.
7282         * lib/stdlib.in.h (grantpt): New declaration.
7283         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
7284         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
7285         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
7286         HAVE_GRANTPT.
7287         * doc/posix-functions/grantpt.texi: Mention the new module.
7288         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
7289         * config/srclist.txt: Add grantpt.c (commented).
7290
7291 2010-03-21  Bruno Haible  <bruno@clisp.org>
7292
7293         New module 'pt_chown'.
7294         * lib/pt_chown.c: New file, from glibc with modifications.
7295         * lib/pty-private.h: New file, from glibc with modifications.
7296         * modules/pt_chown: New file.
7297         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
7298
7299 2010-03-21  Bruno Haible  <bruno@clisp.org>
7300
7301         Tests for module 'ptsname'.
7302         * modules/ptsname-tests: New file.
7303         * tests/test-ptsname.c: New file.
7304
7305         New module 'ptsname'.
7306         * lib/ptsname.c: New file, from glibc with modifications.
7307         * m4/ptsname.m4: New file.
7308         * modules/ptsname: New file.
7309         * lib/stdlib.in.h (ptsname): New declaration.
7310         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
7311         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
7312         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
7313         HAVE_PTSNAME.
7314         * doc/posix-functions/ptsname.texi: Mention the new module.
7315         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
7316         * config/srclist.txt: Add ptsname.c (commented).
7317
7318 2010-03-21  Bruno Haible  <bruno@clisp.org>
7319
7320         Tests for module 'ttyname_r'.
7321         * modules/ttyname_r-tests: New file.
7322         * tests/test-ttyname_r.c: New file.
7323
7324         New module 'ttyname_r'.
7325         * lib/ttyname_r.c: New file.
7326         * m4/ttyname_r.m4: New file.
7327         * modules/ttyname_r: New file.
7328         * lib/unistd.in.h (ttyname_r): New declaration.
7329         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
7330         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
7331         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
7332         HAVE_TTYNAME_R.
7333         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
7334         * doc/posix-functions/ttyname_r.texi: Mention the new module.
7335
7336 2010-03-20  Bruno Haible  <bruno@clisp.org>
7337
7338         signal: Undefine macro definitions in C++ mode.
7339         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
7340         sigfillset): Undefine macro definitions from the system header in C++
7341         mode.
7342         Reported by John W. Eaton <jwe@gnu.org>.
7343
7344 2010-03-20  Bruno Haible  <bruno@clisp.org>
7345
7346         Ensure no #include statements inside extern "C" { ... }.
7347         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
7348         contain #include statements.
7349         * lib/time.in.h: Likewise.
7350
7351 2010-03-20  Bruno Haible  <bruno@clisp.org>
7352
7353         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
7354         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
7355         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
7356         Reported by John W. Eaton <jwe@gnu.org>.
7357
7358 2010-03-20  Bruno Haible  <bruno@clisp.org>
7359
7360         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
7361         Reported by Jim Meyering.
7362
7363 2010-03-20  Bruno Haible  <bruno@clisp.org>
7364
7365         pipe: Set errno upon failure.
7366         * lib/pipe.h: Specify that when -1 is returned, errno is set.
7367         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
7368         errno value in error message.
7369
7370 2010-03-20  Bruno Haible  <bruno@clisp.org>
7371             Jim Meyering  <meyering@redhat.com>
7372
7373         lchown: Avoid "unused variable" warning.
7374         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
7375
7376 2010-03-20  Bruno Haible  <bruno@clisp.org>
7377
7378         Work around unlink() bug on MacOS X 10.5.6.
7379         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
7380         attempting to unlink a parent directory.
7381         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
7382         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
7383         activate for the replacement function.
7384         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
7385
7386 2010-03-20  Bruno Haible  <bruno@clisp.org>
7387
7388         Fix link errors on Solaris 8.
7389         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
7390         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
7391
7392 2010-03-19  Jim Meyering  <meyering@redhat.com>
7393
7394         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
7395         The _LIBC implementation of build_range_exp correctly honors the
7396         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
7397         However, the non-_LIBC implementation would ignore that syntax-bit
7398         flag and return REG_ERANGE unconditionally.
7399         This change makes it honor that flag.
7400         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
7401         Make two pointer parameters "const".
7402         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
7403         (parse_bracket_exp): Update caller.
7404
7405         regex.m4: correct the reversed range endpoint ([b-a]) test
7406         * m4/regex.m4: When requiring that [b-a] evoke failure,
7407         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
7408         test pass once again for x86-based systems.
7409
7410 2010-03-19  Bruno Haible  <bruno@clisp.org>
7411
7412         scandir: Fix link error on Solaris 8.
7413         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
7414         macros.
7415
7416 2010-03-19  Bruno Haible  <bruno@clisp.org>
7417
7418         getusershell: Fix documentation.
7419         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
7420         module.
7421         * doc/glibc-functions/setusershell.texi: Likewise.
7422
7423         getusershell: Provide declaration, missing on Solaris 9.
7424         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
7425         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
7426         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
7427         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
7428         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
7429         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
7430         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
7431         HAVE_GETUSERSHELL.
7432         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
7433
7434 2010-03-19  Bruno Haible  <bruno@clisp.org>
7435
7436         wctype: Provide iswblank function.
7437         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
7438         exists and is fine.
7439         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
7440         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
7441         * tests/test-wctype.c (main): Re-enable the iswblank tests.
7442         * doc/posix-functions/iswblank.texi: Update.
7443
7444 2010-03-19  Bruno Haible  <bruno@clisp.org>
7445
7446         Tests of module 'pty' in C++ mode.
7447         * modules/pty-tests: New file.
7448         * tests/test-pty-c++.cc: New file.
7449         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
7450
7451 2010-03-19  Eric Blake  <eblake@redhat.com>
7452
7453         logb: fix documentation
7454         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
7455         1.5 declaration bug.
7456
7457         forkpty, openpty: prefer glibc's const-safe prototype
7458         * lib/forkpty.c (rpl_forkpty): New file.
7459         * lib/openpty.c (rpl_openpty): Likewise.
7460         * modules/forkpty (Files): Distribute it.
7461         * modules/openpty (Files): Likewise.
7462         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
7463         check...
7464         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
7465         replacement for for non-const BSD signature.
7466         * modules/pty (Makefile.am): Substitute witnesses.
7467         * lib/pty.in.h (forkpty, openpty): Declare replacements.
7468         * tests/test-forkpty.c: Update signature check.
7469         * tests/test-openpty.c: Likewise.
7470         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
7471         * doc/glibc-functions/openpty.texi (openpty): Likewise.
7472
7473         forkpty, openpty: split functions into new modules
7474         * modules/pty (Makefile.am): Substitute new witnesses.
7475         (Libraries): Move library detection...
7476         * modules/forkpty: ...into new module.
7477         * modules/openpty: Another new module.
7478         * modules/pty-tests: Rename and split...
7479         * modules/forkpty-tests: ...to this...
7480         * modules/openpty-tests: ...and this.
7481         * tests/test-pty.c: Rename and split...
7482         * tests/test-forkpty.c: ...to this...
7483         * tests/test-openpty.c: ...and this.
7484         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
7485         (gl_PTY): Split library searching...
7486         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
7487         (gl_FORKPTY, gl_OPENPTY): New macros.
7488         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
7489         * NEWS: Mention the split.
7490         * MODULES.html.sh (Misc): Document the modules.
7491         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
7492         * doc/glibc-functions/openpty.texi (openpty): Likewise.
7493
7494         pty: improve replacement header
7495         * lib/pty.in.h: New file.
7496         * modules/pty (Files): Ship it.
7497         (Makefile.am): Always build replacement.
7498         * m4/pty.m4: Rename...
7499         * m4/pty_h.m4: ...to this.
7500         (gl_PTY): Modernize setting of witness macros; update check of
7501         forkpty to take proper advantage of cache.
7502         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
7503
7504         getopt: avoid compiler warning
7505         * lib/getopt.c (attribute_hidden): Remove unused macro.
7506
7507 2010-03-18  Bruno Haible  <bruno@clisp.org>
7508
7509         Fix link errors on Solaris 8.
7510         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
7511         * modules/search-tests (test_search_c___LDADD): Likewise.
7512         * modules/signal-tests (test_signal_c___LDADD): Likewise.
7513         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
7514         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
7515         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
7516         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
7517         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
7518         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
7519
7520 2010-03-18  Bruno Haible  <bruno@clisp.org>
7521
7522         Fix bug introduced on 2010-03-14.
7523         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
7524         (gl_SPAWN_H): Require it.
7525         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
7526         Reported by Simon Josefsson.
7527
7528 2010-03-18  Bruno Haible  <bruno@clisp.org>
7529
7530         Fix typo introduced on 2009-12-31.
7531         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
7532         posix_spawn_file_actions_adddup2.
7533
7534 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
7535         and Eric Blake  <eblake@redhat.com>
7536
7537         test-vc-list-files-git: make more robust
7538         * tests/test-vc-list-files-git.sh: Unset problematic environment
7539         variables.  Chain commands together.
7540
7541 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
7542
7543         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
7544         `AC_CHECK_DECL' invocation.
7545
7546 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
7547
7548         * lib/inttostr.c (inttostr): Make sure the invocation of verify
7549         appears before executable statements. Suggested by Petr Sumbera
7550         <Petr.Sumbera@Sun.COM>.
7551
7552 2010-03-14  Bruno Haible  <bruno@clisp.org>
7553
7554         * tests/test-flock.c (test_exclusive): Comment out a test that causes
7555         portability problems. Instead use a simpler test.
7556         (main): Check that invalid arguments are rejected only on Linux.
7557
7558 2010-03-14  Bruno Haible  <bruno@clisp.org>
7559
7560         Fix bug introduced on 2009-12-31.
7561         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
7562         gl_PREREQ_SYS_H_WINSOCK2 always.
7563         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
7564         SYS_SOCKET_H variable.
7565         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
7566         Update comments.
7567         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
7568         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
7569         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
7570         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
7571         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
7572
7573 2010-03-14  Bruno Haible  <bruno@clisp.org>
7574
7575         Fix values returned by sinl, cosl.
7576         * lib/trigl.h: Add specification comments.
7577         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
7578         that combines the values from the precomputed table with the values of
7579         the Chebyshev polynomials.
7580
7581 2010-03-14  Bruno Haible  <bruno@clisp.org>
7582
7583         Fix compilation error when modules 'posix_spawn[p]' are not used.
7584         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
7585         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
7586
7587 2010-03-14  Bruno Haible  <bruno@clisp.org>
7588
7589         Fix compilation error on mingw when module 'time_r' is not used.
7590         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
7591         is 1.
7592         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
7593         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
7594         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
7595         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
7596
7597 2010-03-14  Bruno Haible  <bruno@clisp.org>
7598
7599         Fix compilation error with Sun C.
7600         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
7601         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
7602         instead of GCC specific ULONG_LONG_MAX.
7603         * lib/xstrtoll.c: Likewise.
7604         * lib/xstrtoull.c: Likewise.
7605
7606 2010-03-13  Bruno Haible  <bruno@clisp.org>
7607
7608         Allow the user to disable C++ code and tests.
7609         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
7610         (gl_PROG_ANSI_CXX): Require it.
7611
7612 2010-03-13  Bruno Haible  <bruno@clisp.org>
7613
7614         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
7615         cases.
7616
7617 2010-03-13  Bruno Haible  <bruno@clisp.org>
7618
7619         Test that gnulib does not break the standard C++ headers.
7620         * tests/test-locale-c++2.cc: New file.
7621         * modules/locale-tests (Files): Add it.
7622         (Makefile.am): Compile it for test-locale-c++.
7623         * tests/test-math-c++2.cc: New file.
7624         * modules/math-tests (Files): Add it.
7625         (Makefile.am): Compile it for test-math-c++.
7626         * tests/test-signal-c++2.cc: New file.
7627         * modules/signal-tests (Files): Add it.
7628         (Makefile.am): Compile it for test-signal-c++.
7629         * tests/test-stdio-c++2.cc: New file.
7630         * modules/stdio-tests (Files): Add it.
7631         (Makefile.am): Compile it for test-stdio-c++.
7632         * tests/test-stdlib-c++2.cc: New file.
7633         * modules/stdlib-tests (Files): Add it.
7634         (Makefile.am): Compile it for test-stdlib-c++.
7635         * tests/test-string-c++2.cc: New file.
7636         * modules/string-tests (Files): Add it.
7637         (Makefile.am): Compile it for test-string-c++.
7638         * tests/test-time-c++2.cc: New file.
7639         * modules/time-tests (Files): Add it.
7640         (Makefile.am): Compile it for test-time-c++.
7641         Reported by John W. Eaton <jwe@gnu.org>.
7642
7643 2010-03-13  Bruno Haible  <bruno@clisp.org>
7644
7645         * gnulib-tool (func_usage): Clarify which options are available for
7646         --create-testdir and --create-megatestdir.
7647
7648 2010-03-13  Bruno Haible  <bruno@clisp.org>
7649
7650         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
7651         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
7652         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
7653         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
7654         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
7655         when appropriate.
7656         Reported by Jim Meyering.
7657
7658 2010-03-12  Simon Josefsson  <simon@josefsson.org>
7659
7660         * gnulib-tool (func_import): Explain origin of code.
7661
7662 2010-03-12  Bruno Haible  <bruno@clisp.org>
7663
7664         Fix problem with automake's definition of CXXLINK.
7665         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
7666         Reported by Simon Josefsson and Ludovic Courtès.
7667
7668 2010-03-12  Bruno Haible  <bruno@clisp.org>
7669
7670         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
7671         stable releases.
7672
7673 2010-03-11  Bruno Haible  <bruno@clisp.org>
7674
7675         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
7676         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
7677         whether the system provides one variant or multiple variants of the
7678         function.
7679         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
7680         C++ compilers.
7681         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
7682         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
7683         Reported by Jim Meyering.
7684
7685 2010-03-09  Simon Josefsson  <simon@josefsson.org>
7686
7687         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
7688
7689 2010-03-08  Bruno Haible  <bruno@clisp.org>
7690
7691         gnulib-tool: Add support for --libtool in --create-testdir.
7692         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
7693         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
7694
7695 2010-03-08  Eric Blake  <eblake@redhat.com>
7696
7697         gnulib-tool.texi: mention possibility of git submodule
7698         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
7699         submodules.
7700         * doc/.gitignore: Ignore another generated file.
7701
7702 2010-03-08  Karl Berry  <karl@gnu.org>
7703
7704         * doc/gnulib-tool.texi (VCS Issues): Mention third option
7705         of committing gnulib files while skipping others.
7706
7707 2010-03-07  Bruno Haible  <bruno@clisp.org>
7708
7709         Tests of module 'wctype' in C++ mode.
7710         * tests/test-wctype-c++.cc: New file.
7711         * modules/wctype-tests (Files): Add it and tests/signature.h.
7712         (Depends-on): Add ansi-c++-opt.
7713         (Makefile.am): Arrange to compile and run test-wctype-c++.
7714
7715         Tests of module 'wchar' in C++ mode.
7716         * tests/test-wchar-c++.cc: New file.
7717         * modules/wchar-tests (Files): Add it and tests/signature.h.
7718         (Depends-on): Add ansi-c++-opt.
7719         (Makefile.am): Arrange to compile and run test-wchar-c++.
7720         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
7721         gl_MODULE_INDICATOR.
7722
7723         Tests of module 'unistd' in C++ mode.
7724         * tests/test-unistd-c++.cc: New file.
7725         * modules/unistd-tests (Files): Add it and tests/signature.h.
7726         (Depends-on): Add ansi-c++-opt.
7727         (Makefile.am): Arrange to compile and run test-unistd-c++.
7728         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
7729         gl_MODULE_INDICATOR.
7730
7731         Tests of module 'time' in C++ mode.
7732         * tests/test-time-c++.cc: New file.
7733         * modules/time-tests (Files): Add it and tests/signature.h.
7734         (Depends-on): Add ansi-c++-opt.
7735         (Makefile.am): Arrange to compile and run test-time-c++.
7736         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
7737
7738         Tests of module 'sys_time' in C++ mode.
7739         * tests/test-sys_time-c++.cc: New file.
7740         * modules/sys_time-tests (Files): Add it and tests/signature.h.
7741         (Depends-on): Add ansi-c++-opt.
7742         (Makefile.am): Arrange to compile and run test-sys_time-c++.
7743         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
7744         gl_MODULE_INDICATOR.
7745
7746         Tests of module 'sys_stat' in C++ mode.
7747         * tests/test-sys_stat-c++.cc: New file.
7748         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
7749         (Depends-on): Add ansi-c++-opt.
7750         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
7751         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
7752         gl_MODULE_INDICATOR.
7753
7754         Tests of module 'sys_socket' in C++ mode.
7755         * tests/test-sys_socket-c++.cc: New file.
7756         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
7757         (Depends-on): Add ansi-c++-opt.
7758         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
7759         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
7760         gl_MODULE_INDICATOR.
7761
7762         Tests of module 'sys_select' in C++ mode.
7763         * tests/test-sys_select-c++.cc: New file.
7764         * modules/sys_select-tests (Files): Add it and tests/signature.h.
7765         (Depends-on): Add ansi-c++-opt.
7766         (Makefile.am): Arrange to compile and run test-sys_select-c++.
7767         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
7768         gl_MODULE_INDICATOR.
7769
7770         Tests of module 'sys_ioctl' in C++ mode.
7771         * tests/test-sys_ioctl-c++.cc: New file.
7772         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
7773         (Depends-on): Add ansi-c++-opt.
7774         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
7775         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
7776         gl_MODULE_INDICATOR.
7777
7778         Tests of module 'string' in C++ mode.
7779         * tests/test-string-c++.cc: New file.
7780         * modules/string-tests (Files): Add it and tests/signature.h.
7781         (Depends-on): Add ansi-c++-opt.
7782         (Makefile.am): Arrange to compile and run test-string-c++.
7783         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
7784         gl_MODULE_INDICATOR.
7785
7786         Tests of module 'stdlib' in C++ mode.
7787         * tests/test-stdlib-c++.cc: New file.
7788         * modules/stdlib-tests (Files): Add it and tests/signature.h.
7789         (Depends-on): Add ansi-c++-opt.
7790         (Makefile.am): Arrange to compile and run test-stdlib-c++.
7791         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
7792         gl_MODULE_INDICATOR.
7793
7794         Tests of module 'stdio' in C++ mode.
7795         * tests/test-stdio-c++.cc: New file.
7796         * modules/stdio-tests (Files): Add it and tests/signature.h.
7797         (Depends-on): Add ansi-c++-opt.
7798         (Makefile.am): Arrange to compile and run test-stdio-c++.
7799         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
7800         gl_MODULE_INDICATOR.
7801
7802         Tests of module 'spawn' in C++ mode.
7803         * tests/test-spawn-c++.cc: New file.
7804         * modules/spawn-tests (Files): Add it and tests/signature.h.
7805         (Depends-on): Add ansi-c++-opt.
7806         (Makefile.am): Arrange to compile and run test-spawn-c++.
7807         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
7808         gl_MODULE_INDICATOR.
7809
7810         Tests of module 'signal' in C++ mode.
7811         * tests/test-signal-c++.cc: New file.
7812         * modules/signal-tests (Files): Add it and tests/signature.h.
7813         (Depends-on): Add ansi-c++-opt.
7814         (Makefile.am): Arrange to compile and run test-signal-c++.
7815         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
7816         gl_MODULE_INDICATOR.
7817
7818         Tests of module 'search' in C++ mode.
7819         * tests/test-search-c++.cc: New file.
7820         * modules/search-tests (Files): Add it and tests/signature.h.
7821         (Depends-on): Add ansi-c++-opt.
7822         (Makefile.am): Arrange to compile and run test-search-c++.
7823         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
7824         gl_MODULE_INDICATOR.
7825
7826         Tests of module 'math' in C++ mode.
7827         * tests/test-math-c++.cc: New file.
7828         * modules/math-tests (Files): Add it and tests/signature.h.
7829         (Depends-on): Add ansi-c++-opt.
7830         (Makefile.am): Arrange to compile and run test-math-c++.
7831         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
7832
7833         Tests of module 'locale' in C++ mode.
7834         * tests/test-locale-c++.cc: New file.
7835         * modules/locale-tests (Files): Add it and tests/signature.h.
7836         (Depends-on): Add ansi-c++-opt.
7837         (Makefile.am): Arrange to compile and run test-locale-c++.
7838         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
7839         gl_MODULE_INDICATOR.
7840
7841         Tests of module 'langinfo' in C++ mode.
7842         * tests/test-langinfo-c++.cc: New file.
7843         * modules/langinfo-tests (Files): Add it and tests/signature.h.
7844         (Depends-on): Add ansi-c++-opt.
7845         (Makefile.am): Arrange to compile and run test-langinfo-c++.
7846         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
7847         gl_MODULE_INDICATOR.
7848
7849         Tests of module 'iconv-h' in C++ mode.
7850         * tests/test-iconv-h-c++.cc: New file.
7851         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
7852         (Depends-on): Add ansi-c++-opt.
7853         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
7854
7855         Tests of module 'glob' in C++ mode.
7856         * tests/test-glob-c++.cc: New file.
7857         * modules/glob-tests (Files): Add it.
7858         (Depends-on): Add ansi-c++-opt.
7859         (Makefile.am): Arrange to compile and run test-glob-c++.
7860
7861         Tests of module 'fcntl-h' in C++ mode.
7862         * tests/test-fcntl-h-c++.cc: New file.
7863         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
7864         (Depends-on): Add ansi-c++-opt.
7865         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
7866         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
7867         gl_MODULE_INDICATOR.
7868
7869         Tests of module 'dirent' in C++ mode.
7870         * tests/test-dirent-c++.cc: New file.
7871         * modules/dirent-tests (Files): Add it and tests/signature.h.
7872         (Depends-on): Add ansi-c++-opt.
7873         (Makefile.am): Arrange to compile and run test-dirent-c++.
7874         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
7875         gl_MODULE_INDICATOR.
7876
7877         New module 'ansi-c++-opt'.
7878         * modules/ansi-c++-opt: New file.
7879         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
7880
7881         Document C++ namespace mode.
7882         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
7883
7884         wctype: Avoid #define replacements in C++ mode.
7885         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
7886         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
7887         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
7888         In C++, define a namespaced alias symbol.
7889         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
7890         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
7891         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
7892         rule.
7893
7894         wchar: Avoid #define replacements in C++ mode.
7895         * lib/wchar.in.h: Include c++defs.h.
7896         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
7897         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
7898         symbol.
7899         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
7900         * modules/wchar (Depends-on): Add c++defs.
7901         (Makefile.am): Update wchar.h rule.
7902
7903         unistd: Avoid #define replacements in C++ mode.
7904         * lib/unistd.in.h: Include c++defs.h.
7905         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
7906         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
7907         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
7908         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
7909         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
7910         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
7911         symbol.
7912         (environ): Update.
7913         * modules/unistd (Depends-on): Add c++defs.
7914         (Makefile.am): Update unistd.h rule.
7915
7916         time: Avoid #define replacements in C++ mode.
7917         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
7918         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
7919         define a namespaced alias symbol.
7920         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
7921         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
7922         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
7923         * modules/time (Depends-on): Add c++defs, warn-on-use.
7924         (Makefile.am): Update time.h rule.
7925         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
7926         * modules/nanosleep (configure.ac): Likewise.
7927         * modules/strptime (configure.ac): Likewise.
7928         * modules/timegm (configure.ac): Likewise.
7929
7930         sys_time: Avoid #define replacements in C++ mode.
7931         * lib/sys_time.in.h: Include c++defs.h.
7932         (gettimeofday): In C++, define a namespaced alias symbol.
7933         * modules/sys_time (Depends-on): Add c++defs.
7934         (Makefile.am): Update sys/time.h rule.
7935
7936         sys_stat: Avoid #define replacements in C++ mode.
7937         * lib/sys_stat.in.h: Include c++defs.h.
7938         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
7939         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
7940         namespaced alias symbol.
7941         In C++, define a namespaced alias symbol.
7942         * modules/sys_stat (Depends-on): Add c++defs.
7943         (Makefile.am): Update sys/stat.h rule.
7944
7945         sys_socket: Avoid #define replacements in C++ mode.
7946         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
7947         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
7948         definitions also when the system has a <sys/socket.h>.
7949         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
7950         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
7951         In C++, define a namespaced alias symbol.
7952         * modules/sys_socket (Depends-on): Add c++defs.
7953         (Makefile.am): Update sys/socket.h rule.
7954
7955         sys_select: Avoid #define replacements in C++ mode.
7956         * lib/sys_select.in.h: Include c++defs.h. Enable the function
7957         definitions also when the system has a <sys/select.h>.
7958         (select): In C++, define a namespaced alias symbol.
7959         * modules/sys_select (Depends-on): Add c++defs.
7960         (Makefile.am): Update sys/select.h rule.
7961
7962         sys_ioctl: Avoid #define replacements in C++ mode.
7963         * lib/sys_ioctl.in.h: Include c++defs.h.
7964         (ioctl): In C++, define a namespaced alias symbol.
7965         * modules/sys_ioctl (Depends-on): Add c++defs.
7966         (Makefile.am): Update sys/ioctl.h rule.
7967
7968         string: Avoid #define replacements in C++ mode.
7969         * lib/string.in.h: Include c++defs.h.
7970         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
7971         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
7972         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
7973         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
7974         strsignal, strverscmp): In C++, define a namespaced alias symbol.
7975         * modules/string (Depends-on): Add c++defs.
7976         (Makefile.am): Update string.h rule.
7977
7978         stdlib: Avoid #define replacements in C++ mode.
7979         * lib/stdlib.in.h: Include c++defs.h.
7980         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
7981         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
7982         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
7983         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
7984         symbol.
7985         * modules/stdlib (Depends-on): Add c++defs.
7986         (Makefile.am): Update stdlib.h rule.
7987
7988         stdio: Avoid #define replacements in C++ mode.
7989         * lib/stdio.in.h: Include c++defs.h.
7990         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
7991         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
7992         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
7993         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
7994         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
7995         namespaced alias symbol.
7996         * modules/stdio (Depends-on): Add c++defs.
7997         (Makefile.am): Update stdio.h rule.
7998
7999         spawn: Avoid #define replacements in C++ mode.
8000         * lib/spawn.in.h: Include c++defs.h.
8001         (posix_spawn, posix_spawnp, posix_spawnattr_init,
8002         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
8003         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
8004         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
8005         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
8006         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
8007         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
8008         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
8009         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
8010         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
8011         In C++, define a namespaced alias symbol.
8012         * modules/spawn (Depends-on): Add c++defs.
8013         (Makefile.am): Update spawn.h rule.
8014
8015         signal: Avoid #define replacements in C++ mode.
8016         * lib/signal.in.h: Include c++defs.h.
8017         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
8018         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
8019         namespaced alias symbol.
8020         * modules/signal (Depends-on): Add c++defs.
8021         (Makefile.am): Update signal.h rule.
8022
8023         search: Avoid #define replacements in C++ mode.
8024         * lib/search.in.h: Include c++defs.h.
8025         (_gl_search_compar_fn, _gl_search_action_fn): New types.
8026         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
8027         symbol.
8028         * modules/search (Depends-on): Add c++defs.
8029         (Makefile.am): Update search.h rule.
8030
8031         math: Avoid #define replacements in C++ mode.
8032         * lib/math.in.h: Include c++defs.h.
8033         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
8034         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
8035         trunc, truncl): In C++, define a namespaced alias symbol.
8036         * modules/math (Depends-on): Add c++defs.
8037         (Makefile.am): Update math.h rule.
8038
8039         locale: Avoid #define replacements in C++ mode.
8040         * lib/locale.in.h: Include c++defs.h.
8041         (duplocale): In C++, define a namespaced alias symbol.
8042         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
8043         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
8044         * modules/locale (Depends-on): Add c++defs.
8045         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
8046
8047         langinfo: Avoid #define replacements in C++ mode.
8048         * lib/langinfo.in.h: Include c++defs.h.
8049         (nl_langinfo): In C++, define a namespaced alias symbol.
8050         * modules/langinfo (Depends-on): Add c++defs.
8051         (Makefile.am): Update langinfo.h rule.
8052
8053         iconv-h: Avoid #define replacements in C++ mode.
8054         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
8055         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
8056         symbol.
8057         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
8058         whenever iconv is present.
8059         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
8060         (Makefile.am): Update iconv.h rule.
8061
8062         glob: Avoid #define replacements in C++ mode.
8063         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
8064         (_gl_glob_errfunc_fn): New type.
8065         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
8066         symbol.
8067         * modules/glob (Depends-on): Add c++defs, warn-on-use.
8068         (Makefile.am): Update glob.h rule.
8069
8070         fcntl-h: Avoid #define replacements in C++ mode.
8071         * lib/fcntl.in.h: Include c++defs.h.
8072         (fcntl, open, openat): In C++, define a namespaced alias symbol.
8073         * modules/fcntl-h (Depends-on): Add c++defs.
8074         (Makefile.am): Update fcntl.h rule.
8075
8076         dirent: Avoid #define replacements in C++ mode.
8077         * lib/dirent.in.h: Include c++defs.h.
8078         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
8079         namespaced alias symbol.
8080         (dirfd): Update declaration.
8081         * modules/dirent (Depends-on): Add c++defs.
8082         (Makefile.am): Update dirent.h rule.
8083
8084         ctype: Make it usable in C++ code.
8085         * lib/ctype.in.h: Include c++defs.h.
8086         (isblank): Declare as extern "C".
8087         * modules/ctype (Depends-on): Add c++defs.
8088         (Makefile.am): Update ctype.h rule.
8089
8090         New module 'c++defs'.
8091         * modules/c++defs: New file.
8092         * build-aux/c++defs.h: New file.
8093         Reported by John W. Eaton <jwe@gnu.org>.
8094
8095 2010-03-07  Bruno Haible  <bruno@clisp.org>
8096
8097         logb: Provide missing declaration for Cygwin.
8098         * lib/math.in.h (logb): New declaration.
8099         * m4/logb.m4: New file.
8100         * modules/logb (Files): Add m4/logb.m4.
8101         (Depends-on): Add math.
8102         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
8103         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
8104         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
8105         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
8106         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
8107
8108 2010-03-07  Bruno Haible  <bruno@clisp.org>
8109
8110         Fix test-cond link error.
8111         * tests/test-cond.c: Include <stdio.h>.
8112
8113 2010-03-07  Bruno Haible  <bruno@clisp.org>
8114
8115         Fix test-dirent-safer link error.
8116         * modules/dirent-safer-tests (Makefile.am): Define
8117         test_dirent_safer_LDADD.
8118
8119 2010-03-07  Bruno Haible  <bruno@clisp.org>
8120
8121         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
8122         among default module list.
8123
8124 2010-03-07  Bruno Haible  <bruno@clisp.org>
8125
8126         Fix link error on platforms with GNU libiconv.
8127         * modules/unistr/u8-strcoll-tests (Makefile): Define
8128         test_u8_strcoll_LDADD.
8129         * modules/unistr/u16-strcoll-tests (Makefile): Define
8130         test_u16_strcoll_LDADD.
8131         * modules/unistr/u32-strcoll-tests (Makefile): Define
8132         test_u32_strcoll_LDADD.
8133
8134 2010-03-07  Bruno Haible  <bruno@clisp.org>
8135
8136         Use POSIX declarations for socket functions.
8137         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
8138         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
8139         rpl_sendto): Change declaration to match POSIX.
8140         * lib/connect.c (rpl_connect): Likewise.
8141         * lib/accept.c (rpl_accept): Likewise.
8142         * lib/bind.c (rpl_bind): Likewise.
8143         * lib/getpeername.c (rpl_getpeername): Likewise.
8144         * lib/getsockname.c (rpl_getsockname): Likewise.
8145         * lib/recv.c (rpl_recv): Likewise.
8146         * lib/send.c (rpl_send): Likewise.
8147         * lib/recvfrom.c (rpl_recvfrom): Likewise.
8148         * lib/sendto.c (rpl_sendto): Likewise.
8149
8150 2010-03-06  Bruno Haible  <bruno@clisp.org>
8151
8152         Clarify access, euidaccess, faccessat.
8153         * doc/posix-functions/faccessat.texi: Mention security problem under
8154         "Other problems", not "Portability problems".
8155         * doc/posix-functions/access.texi: Likewise. Mention a related security
8156         problem.
8157         * doc/glibc-functions/euidaccess.texi: Mention security problems.
8158         * lib/euidaccess.c: Add comments about platforms.
8159         * lib/unistd.in.h (access, euidaccess): Add warnings.
8160
8161 2010-03-07  Bruno Haible  <bruno@clisp.org>
8162
8163         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
8164         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
8165         (POSIX_SPAWN_SETSCHEDULER): Likewise.
8166         (POSIX_SPAWN_USEVFORK): Define in a way that works when
8167         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
8168         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
8169         declare when POSIX_SPAWN_SETSCHEDULER is zero.
8170         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
8171         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
8172         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
8173         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
8174         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
8175         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
8176         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
8177         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
8178         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
8179         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
8180         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
8181         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
8182         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
8183         Likewise.
8184         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
8185         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
8186         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
8187         Likewise.
8188         * tests/test-spawn.c (main): Make it work when
8189         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
8190
8191 2010-03-07  Bruno Haible  <bruno@clisp.org>
8192
8193         Fix incorrect Makefile.am generation in German locale.
8194         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
8195         Execute sed command with character range in C locale.
8196
8197 2010-03-06  Bruno Haible  <bruno@clisp.org>
8198
8199         Tests for module 'iconv-h'.
8200         * modules/iconv-h-tests: New file.
8201         * tests/test-iconv-h.c: New file.
8202
8203         New module 'iconv-h'.
8204         * modules/iconv-h: New file.
8205         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
8206         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
8207         (configure.ac): Remove gl_ICONV_H.
8208         (Makefile.am): Remove rule for iconv.h.
8209
8210 2010-03-06  Bruno Haible  <bruno@clisp.org>
8211
8212         More consistent naming of *.m4 files.
8213         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
8214         * modules/wctype (Files): Update.
8215
8216         More consistent naming of *.m4 files.
8217         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
8218         * modules/wchar (Files): Update.
8219
8220 2010-03-06  Jim Meyering  <meyering@redhat.com>
8221
8222         euidaccess: relax license to LGPLv2+
8223         * modules/euidaccess (License): Relax to LGPLv2+.
8224
8225 2010-03-06  Bruno Haible  <bruno@clisp.org>
8226
8227         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
8228         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
8229         (Makefile.am): Augment lib_SOURCES instead.
8230
8231 2010-03-04  Jim Meyering  <meyering@redhat.com>
8232
8233         utime: remove obsolete module
8234         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
8235         unnecessary for years, and has been marked as obsolete for 10 months.
8236         * modules/utime: Remove file.
8237         * lib/utime.c: Remove file.
8238         * m4/utime.m4: Remove file.
8239         * m4/utimes-null.m4: Remove file.
8240         * doc/posix-functions/utime.texi (utime): Remove reference to
8241         the module.  Move the sole "fixed by gnulib" item into the
8242         "problems not fixed by Gnulib" list.
8243         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
8244
8245 2010-03-05  Simon Josefsson  <simon@josefsson.org>
8246
8247         * modules/exit (License): Relax license to LGPLv2+.
8248         (Status): Mark as obsolete.
8249         * NEWS: Mention deprecated 'exit' module.
8250         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
8251         of now obsolete 'exit'.
8252
8253 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8254
8255         fts-lgpl: remove unused module
8256         * modules/fts-lgpl: Remove.
8257         * MODULES.html.sh (func_all_modules): Adjust.
8258         * check-module (find_included_lib_files): Adjust.
8259         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
8260
8261 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
8262
8263         copy-acl: enhance Solaris ACL error handling
8264         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
8265         * lib/set-mode-acl.c (qset_acl): Likewise.
8266
8267 2010-03-02  Bruno Haible  <bruno@clisp.org>
8268
8269         spawn: Don't override the system defined values on FreeBSD 8.
8270         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
8271         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
8272         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
8273         if HAVE_POSIX_SPAWN is 1.
8274         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
8275
8276 2010-03-01  Bruno Haible  <bruno@clisp.org>
8277
8278         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
8279         regarding Automake.
8280
8281 2010-02-25  Bruno Haible  <bruno@clisp.org>
8282
8283         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
8284         * gnulib-tool: Define 'echo' as a function only before the ksh alias
8285         setting, not afterwards.
8286         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
8287
8288 2010-02-24  Eric Blake  <eblake@redhat.com>
8289
8290         bootstrap, git-version-gen: use timestamp
8291         * build-aux/git-version-gen (scriptversion): Force UTC.
8292         * build-aux/bootstrap (scriptversion): New variable.
8293
8294         bootstrap: allow older git
8295         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
8296         older than 1.6.4.  Requested by the libvirt project.
8297
8298 2010-02-23  Eric Blake  <eblake@redhat.com>
8299
8300         warn-on-use: work with old autoconf
8301         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
8302         AS_VAR semantics of autoconf 2.60.
8303         Reported by Bruno Haible.
8304
8305         bootstrap: improve some comments
8306         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
8307         clarification comments.
8308
8309         gettimeofday: provide correct function
8310         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
8311         when replacement is declared, otherwise provide gettimeofday.
8312         Reported by Michael Goffioul.
8313
8314 2010-02-23  Jim Meyering  <meyering@redhat.com>
8315
8316         lib-ignore: relax license to "unlimited", not LGPLv2+
8317         * modules/lib-ignore (License): Relax to "unlimited".
8318
8319 2010-02-23  Jim Meyering  <meyering@redhat.com>
8320
8321         lib-ignore: relax license to LGPLv2+
8322         * modules/lib-ignore (License): Relax to LGPLv2+.
8323
8324 2010-02-22  Eric Blake  <eblake@redhat.com>
8325
8326         lseek: avoid bash 3.2 broken pipe bug
8327         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
8328         warning from bash 3.2.
8329         Reported by Ben Pfaff, with analysis from Bruno Haible.
8330
8331         bootstrap: support non-FSF copyright holder
8332         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
8333         bootstrap.conf override of COPYRIGHT_HOLDER.
8334         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
8335
8336         bootstrap: interoperate with gettext 0.14.1
8337         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
8338
8339         bootstrap: allow for alternate submodule location
8340         * build-aux/bootstrap (gnulib_path): New variable; use instead of
8341         hardcoding submodule location.
8342         (gnulib_mk): Allow direct use of Makefile.am.
8343
8344         bootstrap: use GNULIB_SRCDIR to reduce disk usage
8345         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
8346         rather than reconfiguring where the submodule points.
8347
8348         gettimeofday: restore support for platforms that lack function
8349         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
8350         replacement if function is missing.
8351         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
8352         * modules/sys_time (Makefile.am): Substitute it.
8353         * lib/sys_time.in.h (gettimeofday): Check it.
8354         Reported by Michael Goffioul.
8355
8356 2010-02-21  Bruno Haible  <bruno@clisp.org>
8357
8358         * lib/stdio.in.h (obstack_printf): Fix typo.
8359
8360 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
8361
8362         vc-list-files: use bzr ls's -R option
8363         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
8364         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
8365
8366 2010-02-21  Jim Meyering  <meyering@redhat.com>
8367
8368         init.sh: fix EXEEXT shims to work also for names like test-prog
8369         * tests/init.sh: Re-exec a better shell, when needed.
8370         If the current shell lacks support for posix $(...), an init.sh-using
8371         test will now try to find a shell that supports that.  If EXEEXT is
8372         nonempty, we also require support for hyphen-in-alias-name and shell
8373         substitutions like ${var#glob}.  Failure to find such a shell results
8374         in a skipped test.
8375
8376 2010-02-21  Bruno Haible  <bruno@clisp.org>
8377
8378         Really work around around "broken pipe" error message from bash 3.2.
8379         * gnulib-tool (func_reset_sigpipe): Remove function.
8380         (echo): In bash 3.2, define to a function that uses printf.
8381         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
8382
8383 2010-02-20  Bruno Haible  <bruno@clisp.org>
8384
8385         Restore support for automake 1.9.6 with autoconf 2.61.
8386         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
8387         Reported by James Youngman <jay@gnu.org>.
8388
8389 2010-02-20  Bruno Haible  <bruno@clisp.org>
8390
8391         Improve *printf warning condition.
8392         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
8393         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
8394         and the function is overridden due to SIGPIPE emulation.
8395
8396 2010-02-20  Bruno Haible  <bruno@clisp.org>
8397
8398         * lib/stdio.in.h: Tweak comments.
8399
8400 2010-02-19  Bruno Haible  <bruno@clisp.org>
8401
8402         Make it easier to find modules. New gnulib-tool option '--find'.
8403         * gnulib-tool: New option --find.
8404         (func_usage): Document it.
8405         (func_sanitize_modulelist): New function, extracted from
8406         func_all_modules.
8407         (func_all_modules): Invoke it.
8408         * doc/gnulib-tool.texi (Which modules?): New node.
8409
8410 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
8411
8412         * lib/sys_select.in.h: Provide select replacement even if
8413         sys/select.h exists on a system, for Interix.
8414
8415 2010-02-18  Jim Meyering  <meyering@redhat.com>
8416
8417         init.sh: don't use $(...) just yet
8418         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
8419         to accommodate e.g., Solaris' /bin/sh.
8420
8421 2010-02-17  Bruno Haible  <bruno@clisp.org>
8422
8423         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
8424         Reported by Ludovic Courtès <ludo@gnu.org>.
8425
8426 2010-02-16  Simon Josefsson  <simon@josefsson.org>
8427
8428         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
8429         linking with -lintl.
8430
8431 2010-02-17  Simon Josefsson  <simon@josefsson.org>
8432
8433         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
8434         if not provided by the system's netdb.h.  Reported by
8435         ludo@gnu.org (Ludovic Courtès).
8436
8437 2010-02-15  Jim Meyering  <meyering@redhat.com>
8438
8439         init.sh: improve portability and efficiency
8440         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
8441         "dummy" in a for loop.
8442         Use '!', not '^' to select the complement of a character set used
8443         in a "case" statement.
8444         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
8445         Suggestions from Eric Blake.
8446
8447         init.sh: automatically accommodate programs with the .exe suffix
8448         Automatically arrange for an invocation of "prog" to execute the
8449         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
8450         may use the simpler "prog", yet still work when built on a system
8451         that requires specifying the added suffix.
8452         Do this by constructing a function named "prog" that invokes
8453         "prog.exe" for each .exe file in selected directories.
8454         * tests/init.sh (find_exe_basenames_): New function.
8455         (create_exe_shim_functions_): New function.
8456         (path_prepend_): Use it.
8457
8458         maint.mk: mark syntax-check sc_*.m rules as .PHONY
8459         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
8460         "make -t syntax-check" doesn't create a ton of sc_*.m files.
8461
8462 2010-02-14  Jim Meyering  <meyering@redhat.com>
8463
8464         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
8465         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
8466         (sc_prohibit_hash_pjw_without_use): New rule.
8467
8468         maint.mk: allow the default upload destination dir to be overridden
8469         * top/maint.mk (upload_dest_dir_): Define with a default that
8470         preserves the status quo.
8471         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
8472         Reported by Peter Simons.
8473
8474         maint.mk: prohibit inclusion of "hash.h" without_use
8475         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
8476
8477 2010-02-10  Jim Meyering  <meyering@redhat.com>
8478
8479         maint.mk: prohibit inclusion of "ignore-value.h" without_use
8480         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
8481
8482 2010-02-09  Eric Blake  <ebb9@byu.net>
8483         and Bruno Haible  <bruno@clisp.org>
8484
8485         obstack-printf-posix: ensure declaration
8486         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
8487         extracted from gl_FUNC_OBSTACK_PRINTF.
8488         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
8489         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
8490         Likewise.
8491         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
8492         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
8493         0.
8494
8495 2010-02-08  Bruno Haible  <bruno@clisp.org>
8496
8497         gnulib-tool: Fix typo in 2010-02-07 commit.
8498         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
8499         Reported by Eric Blake.
8500
8501 2010-02-07  Bruno Haible  <bruno@clisp.org>
8502
8503         gnulib-tool: Fix up caching patches.
8504         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
8505         option --no-cache. Use associative arrays when supported by the shell.
8506         (sed_comments): New variable.
8507         (modcache): Renamed from do_cache.
8508         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
8509         abbreviate unnecessarily.
8510         (have_associative): New variable.
8511         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
8512         way also for ksh and zsh.
8513         (func_init_sed_convert_to_cache_statements): New function, extracted
8514         from func_cache_lookup_module. Add support for associative arrays.
8515         Don't set the c_MODULE_cached variable here. Ignore all lines before
8516         the first field header. Remove only the final newline, not all trailing
8517         newlines. Support empty fields correctly. Limit the use of 'eval' to
8518         assignments.
8519         (func_get_description, func_get_status, func_get_notice,
8520         func_get_applicability, func_get_filelist, func_get_dependencies,
8521         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
8522         func_get_automake_snippet, func_get_include_directive,
8523         func_get_link_directive, func_get_license, func_get_maintainer):
8524         Update documentation. List the unoptimized code first. Add support for
8525         associative arrays. Limit the use of 'eval' to assignments.
8526         (func_get_applicability): Undo stylistic pessimisations.
8527         (func_get_automake_snippet, func_get_include_directive): Reduce code
8528         duplication.
8529         (func_modules_transitive_closure, func_modules_add_dummy,
8530         func_modules_notice, func_modules_to_filelist, func_add_file,
8531         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
8532         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
8533         func_create_testdir, func_create_megatestdir): Update documentation.
8534
8535 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8536
8537         * gnulib-tool (func_cache_lookup_module): Store the module name
8538         belonging to the cache variable; error out if two different
8539         module names map to the same cache variable name.
8540
8541 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8542
8543         gnulib-tool: Make caching optional.
8544         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
8545         Update matching short versions of --no-changelog.
8546         (func_usage): Update.
8547         (sed_extract_cache_prog): Renamed from ...
8548         (sed_extract_prog): ... this; revert to old extraction script.
8549         (func_get_description, func_get_status)
8550         (func_get_notice, func_get_applicability, func_get_filelist)
8551         (func_get_dependencies, func_get_autoconf_early_snippet)
8552         (func_get_autoconf_snippet, func_get_automake_snippet)
8553         (func_get_include_directive, func_get_link_directive)
8554         (func_get_license, func_get_maintainer): If $do_cache is false,
8555         use old, non-caching extraction scripts.
8556         Suggestion by Bruno Haible.
8557
8558 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8559
8560         gnulib-tool: cache module metainformation.
8561         * gnulib-tool (sed_extract_prog): Match newline before each
8562         header, and rewrite header to a shell variable suffix.
8563         (func_cache_var, func_cache_lookup_module): New functions,
8564         to turn a module name into a cache variable prefix, and to
8565         look up and cache module metainformation.
8566         (func_get_description, func_get_status)
8567         (func_get_notice, func_get_applicability, func_get_filelist)
8568         (func_get_dependencies, func_get_autoconf_early_snippet)
8569         (func_get_autoconf_snippet, func_get_automake_snippet)
8570         (func_get_include_directive, func_get_link_directive)
8571         (func_get_license, func_get_maintainer): Use
8572         func_cache_lookup_module.
8573
8574 2010-02-07  Bruno Haible  <bruno@clisp.org>
8575
8576         fnctl: Fix missing dependency.
8577         * modules/fcntl (Depends-on): Add getdtablesize.
8578         Reported by John W. Eaton <jwe@gnu.org>.
8579
8580 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
8581
8582         Argp: fix recognition of short alias options.
8583
8584         * lib/argp-parse.c (convert_options): Fix improper use of
8585         `|' between character values.
8586         * tests/test-argp.c (group1_option): New alias option
8587         --read (-r).
8588         (group1_parser): Special handling for 'r'.
8589         (test15): New test case.
8590         (test_fun): Add test15.
8591         * tests/test-argp-2.sh: Update expected --help and --usage
8592         outputs.
8593
8594 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
8595
8596         * tests/test-argp.c: Fix indentation.
8597
8598 2010-02-04  Eric Blake  <ebb9@byu.net>
8599
8600         gettimeofday: expose type of second argument
8601         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
8602         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
8603         * tests/test-gettimeofday.c: Use it to silence warning.
8604         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
8605         the issue.
8606
8607 2010-02-03  Jim Meyering  <meyering@redhat.com>
8608
8609         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
8610         * lib/regcomp.c (TYPE_SIGNED): Define.
8611         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
8612
8613         regcomp.c: avoid a new -Wshadow warning
8614         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
8615
8616 2010-02-01  Jim Meyering  <meyering@redhat.com>
8617
8618         removing useless parentheses in cpp #define directives
8619         For motivation, see commit c0221df4, "define STREQ(a,b)
8620         consistently, removing useless parentheses"
8621         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
8622         * lib/mountlist.c (MNT_IGNORE): Likewise.
8623         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
8624
8625 2010-02-01  Eric Blake  <ebb9@byu.net>
8626
8627         sys_time: use link-warning
8628         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
8629         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
8630         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
8631         * modules/sys_time (Depends-on): Add warn-on-use.
8632         (Makefile.am): Always build replacement.
8633         (configure.ac): Update substitutions.
8634         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
8635         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
8636         bother with SYS_TIME_H.
8637         * modules/gettimeofday (configure.ac): Declare indicator.
8638         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
8639         in use.
8640
8641         closein-tests: silence compiler warning
8642         * tests/test-closein.c (main): Ignore fread result.
8643         * modules/closein-tests (Depends-on): Add ignore-value.
8644
8645         tests: silence warning about system return
8646         * tests/test-areadlink-with-size.c (main): Ignore system result.
8647         * tests/test-areadlink.c (main): Likewise.
8648         * tests/test-areadlinkat-with-size.c (main): Likewise.
8649         * tests/test-areadlinkat.c (main): Likewise.
8650         * tests/test-canonicalize-lgpl.c (main): Likewise.
8651         * tests/test-canonicalize.c (main): Likewise.
8652         * tests/test-chown.c (main): Likewise.
8653         * tests/test-fchownat.c (main): Likewise.
8654         * tests/test-fdutimensat.c (main): Likewise.
8655         * tests/test-fstatat.c (main): Likewise.
8656         * tests/test-futimens.c (main): Likewise.
8657         * tests/test-lchown.c (main): Likewise.
8658         * tests/test-link.c (main): Likewise.
8659         * tests/test-linkat.c (main): Likewise.
8660         * tests/test-lstat.c (main): Likewise.
8661         * tests/test-mkdir.c (main): Likewise.
8662         * tests/test-mkdirat.c (main): Likewise.
8663         * tests/test-mkfifo.c (main): Likewise.
8664         * tests/test-mkfifoat.c (main): Likewise.
8665         * tests/test-mknod.c (main): Likewise.
8666         * tests/test-readlink.c (main): Likewise.
8667         * tests/test-remove.c (main): Likewise.
8668         * tests/test-rename.c (main): Likewise.
8669         * tests/test-renameat.c (main): Likewise.
8670         * tests/test-rmdir.c (main): Likewise.
8671         * tests/test-symlink.c (main): Likewise.
8672         * tests/test-symlinkat.c (main): Likewise.
8673         * tests/test-unlink.c (main): Likewise.
8674         * tests/test-unlinkat.c (main): Likewise.
8675         * tests/test-utimens.c (main): Likewise.
8676         * tests/test-utimensat.c (main): Likewise.
8677         * modules/areadlink-tests (Depends-on): Add ignore-value.
8678         * modules/areadlink-with-size-tests (Depends-on): Likewise.
8679         * modules/areadlinkat-tests (Depends-on): Likewise.
8680         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
8681         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
8682         * modules/canonicalize-tests (Depends-on): Likewise.
8683         * modules/chown-tests (Depends-on): Likewise.
8684         * modules/fdutimensat-tests (Depends-on): Likewise.
8685         * modules/futimens-tests (Depends-on): Likewise.
8686         * modules/lchown-tests (Depends-on): Likewise.
8687         * modules/link-tests (Depends-on): Likewise.
8688         * modules/linkat-tests (Depends-on): Likewise.
8689         * modules/lstat-tests (Depends-on): Likewise.
8690         * modules/mkdir-tests (Depends-on): Likewise.
8691         * modules/mkfifo-tests (Depends-on): Likewise.
8692         * modules/mkfifoat-tests (Depends-on): Likewise.
8693         * modules/mknod-tests (Depends-on): Likewise.
8694         * modules/openat-tests (Depends-on): Likewise.
8695         * modules/readlink-tests (Depends-on): Likewise.
8696         * modules/remove-tests (Depends-on): Likewise.
8697         * modules/rename-tests (Depends-on): Likewise.
8698         * modules/renameat-tests (Depends-on): Likewise.
8699         * modules/rmdir-tests (Depends-on): Likewise.
8700         * modules/symlink-tests (Depends-on): Likewise.
8701         * modules/symlinkat-tests (Depends-on): Likewise.
8702         * modules/unlink-tests (Depends-on): Likewise.
8703         * modules/utimens-tests (Depends-on): Likewise.
8704         * modules/utimensat-tests (Depends-on): Likewise.
8705
8706 2010-01-31  Bruno Haible  <bruno@clisp.org>
8707
8708         Perform the same test for many <math.h> functions.
8709         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
8710         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
8711         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
8712         of gl_MATHFUNC.
8713         * modules/acos (configure.ac): Likewise.
8714         * modules/asin (configure.ac): Likewise.
8715         * modules/atan (configure.ac): Likewise.
8716         * modules/atan2 (configure.ac): Likewise.
8717         * modules/cbrt (configure.ac): Likewise.
8718         * modules/copysign (configure.ac): Likewise.
8719         * modules/cos (configure.ac): Likewise.
8720         * modules/cosh (configure.ac): Likewise.
8721         * modules/erf (configure.ac): Likewise.
8722         * modules/erfc (configure.ac): Likewise.
8723         * modules/exp (configure.ac): Likewise.
8724         * modules/fmod (configure.ac): Likewise.
8725         * modules/hypot (configure.ac): Likewise.
8726         * modules/j0 (configure.ac): Likewise.
8727         * modules/j1 (configure.ac): Likewise.
8728         * modules/jn (configure.ac): Likewise.
8729         * modules/lgamma (configure.ac): Likewise.
8730         * modules/log (configure.ac): Likewise.
8731         * modules/log10 (configure.ac): Likewise.
8732         * modules/log1p (configure.ac): Likewise.
8733         * modules/pow (configure.ac): Likewise.
8734         * modules/remainder (configure.ac): Likewise.
8735         * modules/sin (configure.ac): Likewise.
8736         * modules/sinh (configure.ac): Likewise.
8737         * modules/tan (configure.ac): Likewise.
8738         * modules/tanh (configure.ac): Likewise.
8739         * modules/y0 (configure.ac): Likewise.
8740         * modules/y1 (configure.ac): Likewise.
8741         * modules/yn (configure.ac): Likewise.
8742         Suggested by Paolo Bonzini.
8743
8744 2010-01-31  Bruno Haible  <bruno@clisp.org>
8745
8746         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
8747
8748 2010-01-31  Bruno Haible  <bruno@clisp.org>
8749
8750         Work around getdelim() bug on FreeBSD 8.0.
8751         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
8752         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
8753         not work.
8754         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
8755         is 1.
8756         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
8757         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
8758         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
8759         a non-zero size.
8760         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
8761
8762 2010-01-31  Bruno Haible  <bruno@clisp.org>
8763
8764         Work around getline() bug on FreeBSD 8.0.
8765         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
8766         and a non-zero size.
8767         * tests/test-getline.c (main): Likewise.
8768         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
8769         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
8770
8771 2010-01-28  Eric Blake  <ebb9@byu.net>
8772
8773         regex: fix build failure
8774         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
8775         platforms.
8776
8777 2010-01-28  Jim Meyering  <meyering@redhat.com>
8778
8779         regex: do not ignore memory allocation failure
8780         * lib/regex_internal.c (create_cd_newstate): Detect
8781         re_node_set_init_copy failure.   Extracted from glibc commit
8782         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
8783
8784         regex: sync more white-space changes from libc
8785         * lib/regex_internal.c: White-space only changes.
8786         * lib/regexec.c: Likewise.
8787
8788         regex: add many uses of __attribute_warn_unused_result__
8789         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
8790         * lib/regexec.c: Likewise.
8791         Extracted from a messy glibc commit.
8792
8793         regcomp.c: spelling and merge-artifact from glibc
8794         * lib/regcomp.c: Merge remainder of glibc's
8795         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
8796
8797         regcomp.c: sync white-space changes from glibc
8798         * lib/regcomp.c: Merge to accommodate white space
8799         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
8800
8801         regcomp.c: do not ignore internal return values
8802         * lib/regcomp.c: Do not ignore internal return values.
8803         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
8804         but without its white-space changes and spelling fixes.
8805
8806         regex_internal.h: define __attribute_warn_unused_result__
8807         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
8808
8809         maint: add a syntax-check rule to check for vulnerable Makefile.in
8810         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
8811
8812 2010-01-27  Jim Meyering  <meyering@redhat.com>
8813
8814         ncftpput-ftp: clean up spaces
8815         * build-aux/ncftpput-ftp: Make Copyright line consistent.
8816         Remove trailing blanks.
8817
8818 2010-01-27  Simon Josefsson  <simon@josefsson.org>
8819
8820         * build-aux/git-version-gen: Fix copyright statement.
8821         * build-aux/gnupload: Likewise.
8822         * tests/test-arcfour.c: Likewise.
8823         * tests/test-arctwo.c: Likewise.
8824         * tests/test-count-one-bits.c: Likewise.
8825         * tests/test-crc.c: Likewise.
8826         * tests/test-des.c: Likewise.
8827         * tests/test-gc-arcfour.c: Likewise.
8828         * tests/test-gc-arctwo.c: Likewise.
8829         * tests/test-gc-des.c: Likewise.
8830         * tests/test-gc-hmac-md5.c: Likewise.
8831         * tests/test-gc-hmac-sha1.c: Likewise.
8832         * tests/test-gc-md2.c: Likewise.
8833         * tests/test-gc-md4.c: Likewise.
8834         * tests/test-gc-md5.c: Likewise.
8835         * tests/test-gc-pbkdf2-sha1.c: Likewise.
8836         * tests/test-gc-rijndael.c: Likewise.
8837         * tests/test-gc-sha1.c: Likewise.
8838         * tests/test-gc.c: Likewise.
8839         * tests/test-gethostname.c: Likewise.
8840         * tests/test-gettimeofday.c: Likewise.
8841         * tests/test-hash.c: Likewise.
8842         * tests/test-hmac-md5.c: Likewise.
8843         * tests/test-hmac-sha1.c: Likewise.
8844         * tests/test-md2.c: Likewise.
8845         * tests/test-md4.c: Likewise.
8846         * tests/test-md5.c: Likewise.
8847         * tests/test-memchr.c: Likewise.
8848         * tests/test-memchr2.c: Likewise.
8849         * tests/test-memcmp.c: Likewise.
8850         * tests/test-memmem.c: Likewise.
8851         * tests/test-memrchr.c: Likewise.
8852         * tests/test-rawmemchr.c: Likewise.
8853         * tests/test-read-file.c: Likewise.
8854         * tests/test-rijndael.c: Likewise.
8855         * tests/test-sockets.c: Likewise.
8856         * tests/test-strchrnul.c: Likewise.
8857         * tests/test-strstr.c: Likewise.
8858         * tests/test-strtod.c: Likewise.
8859         * build-aux/ncftpput-ftp: Likewise.
8860
8861 2010-01-26  Eric Blake  <ebb9@byu.net>
8862
8863         ignore-value: update recommended header name
8864         * modules/ignore-value (Include): Only use <> for headers that
8865         exist in glibc.
8866
8867 2010-01-26  Jim Meyering  <meyering@redhat.com>
8868
8869         test-userspec.c: avoid compiler warnings
8870         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
8871         and "initialization discards qualifiers..." warnings.
8872         Put the first "uid" in its own scope, and make char* members "const".
8873
8874 2010-01-25  Bruno Haible  <bruno@clisp.org>
8875
8876         gnulib-tool: Make warning diagnostics consistent.
8877         * gnulib-tool (func_warning): New function.
8878         Use it everywhere where gnulib-tool produces output to stderr and it is
8879         not a fatal error.
8880
8881 2010-01-25  Bruno Haible  <bruno@clisp.org>
8882
8883         Fix test dependencies.
8884         * modules/xstrtol-tests (Depends-on): Add inttypes.
8885         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
8886
8887 2010-01-25 Pádraig Brady <P@draigBrady.com>
8888
8889         syntax-check: detect incorrect boolean macro values in config.h
8890         * modules/maintainer-makefile (configure.ac): Parameterize the location
8891         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
8892         The logic is from Eric Blake and the location indicated by Jim Meyering.
8893         Note the more natural CONFIG_HEADER name is prohibited by automake
8894         for backwards compatibility reasons.
8895         * top/maint.mk (sc_Wundef_boolean): New rule.
8896
8897 2010-01-25  Jim Meyering  <meyering@redhat.com>
8898
8899         bootstrap: detect MacOS 10.6's shasum, too
8900         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
8901         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
8902
8903 2010-01-23  Jim Meyering  <meyering@redhat.com>
8904
8905         xstrtoll: new module
8906         * modules/xstrtoll: New file.
8907         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
8908         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
8909         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
8910         ./configure fails if you use this module and lack "long long".
8911         * modules/xstrtoll-tests: New module.
8912         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
8913         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
8914         new init.sh-based test framework.
8915
8916 2010-01-24  Bruno Haible  <bruno@clisp.org>
8917
8918         Tests for module 'yn'.
8919         * modules/yn-tests: New file.
8920         * tests/test-yn.c: New file.
8921
8922         Tests for module 'y1'.
8923         * modules/y1-tests: New file.
8924         * tests/test-y1.c: New file.
8925
8926         Tests for module 'y0'.
8927         * modules/y0-tests: New file.
8928         * tests/test-y0.c: New file.
8929
8930         Tests for module 'tanh'.
8931         * modules/tanh-tests: New file.
8932         * tests/test-tanh.c: New file.
8933
8934         Tests for module 'tan'.
8935         * modules/tan-tests: New file.
8936         * tests/test-tan.c: New file.
8937
8938         Tests for module 'sqrt'.
8939         * modules/sqrt-tests: New file.
8940         * tests/test-sqrt.c: New file.
8941
8942         Tests for module 'sinh'.
8943         * modules/sinh-tests: New file.
8944         * tests/test-sinh.c: New file.
8945
8946         Tests for module 'sin'.
8947         * modules/sin-tests: New file.
8948         * tests/test-sin.c: New file.
8949
8950         Tests for module 'rint'.
8951         * modules/rint-tests: New file.
8952         * tests/test-rint.c: New file.
8953
8954         Tests for module 'remainder'.
8955         * modules/remainder-tests: New file.
8956         * tests/test-remainder.c: New file.
8957
8958         Tests for module 'pow'.
8959         * modules/pow-tests: New file.
8960         * tests/test-pow.c: New file.
8961
8962         Tests for module 'nextafter'.
8963         * modules/nextafter-tests: New file.
8964         * tests/test-nextafter.c: New file.
8965
8966         Tests for module 'modf'.
8967         * modules/modf-tests: New file.
8968         * tests/test-modf.c: New file.
8969
8970         Tests for module 'logb'.
8971         * modules/logb-tests: New file.
8972         * tests/test-logb.c: New file.
8973
8974         Tests for module 'log1p'.
8975         * modules/log1p-tests: New file.
8976         * tests/test-log1p.c: New file.
8977
8978         Tests for module 'log10'.
8979         * modules/log10-tests: New file.
8980         * tests/test-log10.c: New file.
8981
8982         Tests for module 'log'.
8983         * modules/log-tests: New file.
8984         * tests/test-log.c: New file.
8985
8986         Tests for module 'lgamma'.
8987         * modules/lgamma-tests: New file.
8988         * tests/test-lgamma.c: New file.
8989
8990         Tests for module 'ldexp'.
8991         * modules/ldexp-tests: New file.
8992         * tests/test-ldexp.c: New file.
8993
8994         Tests for module 'jn'.
8995         * modules/jn-tests: New file.
8996         * tests/test-jn.c: New file.
8997
8998         Tests for module 'j1'.
8999         * modules/j1-tests: New file.
9000         * tests/test-j1.c: New file.
9001
9002         Tests for module 'j0'.
9003         * modules/j0-tests: New file.
9004         * tests/test-j0.c: New file.
9005
9006         Tests for module 'hypot'.
9007         * modules/hypot-tests: New file.
9008         * tests/test-hypot.c: New file.
9009
9010         Tests for module 'fmod'.
9011         * modules/fmod-tests: New file.
9012         * tests/test-fmod.c: New file.
9013
9014         Tests for module 'fabs'.
9015         * modules/fabs-tests: New file.
9016         * tests/test-fabs.c: New file.
9017
9018         Tests for module 'exp'.
9019         * modules/exp-tests: New file.
9020         * tests/test-exp.c: New file.
9021
9022         Tests for module 'erfc'.
9023         * modules/erfc-tests: New file.
9024         * tests/test-erfc.c: New file.
9025
9026         Tests for module 'erf'.
9027         * modules/erf-tests: New file.
9028         * tests/test-erf.c: New file.
9029
9030         Tests for module 'cosh'.
9031         * modules/cosh-tests: New file.
9032         * tests/test-cosh.c: New file.
9033
9034         Tests for module 'cos'.
9035         * modules/cos-tests: New file.
9036         * tests/test-cos.c: New file.
9037
9038         Tests for module 'copysign'.
9039         * modules/copysign-tests: New file.
9040         * tests/test-copysign.c: New file.
9041
9042         Tests for module 'cbrt'.
9043         * modules/cbrt-tests: New file.
9044         * tests/test-cbrt.c: New file.
9045
9046         Tests for module 'atan2'.
9047         * modules/atan2-tests: New file.
9048         * tests/test-atan2.c: New file.
9049
9050         Tests for module 'atan'.
9051         * modules/atan-tests: New file.
9052         * tests/test-atan.c: New file.
9053
9054         Tests for module 'asin'.
9055         * modules/asin-tests: New file.
9056         * tests/test-asin.c: New file.
9057
9058         Tests for module 'acos'.
9059         * modules/acos-tests: New file.
9060         * tests/test-acos.c: New file.
9061
9062 2010-01-24  Bruno Haible  <bruno@clisp.org>
9063
9064         Fix tests for common <math.h> functions.
9065         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
9066         code snippet that references the function pointer, rather than merely
9067         calling the function. Substitute the FUNC_LIBM variable.
9068         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
9069         * modules/acos (configure.ac): Likewise.
9070         * modules/asin (configure.ac): Likewise.
9071         * modules/atan (configure.ac): Likewise.
9072         * modules/atan2 (configure.ac): Likewise.
9073         * modules/cbrt (configure.ac): Likewise.
9074         * modules/copysign (configure.ac): Likewise.
9075         * modules/cos (configure.ac): Likewise.
9076         * modules/cosh (configure.ac): Likewise.
9077         * modules/erf (configure.ac): Likewise.
9078         * modules/erfc (configure.ac): Likewise.
9079         * modules/exp (configure.ac): Likewise.
9080         * modules/fabs (configure.ac): Likewise.
9081         * modules/fmod (configure.ac): Likewise.
9082         * modules/hypot (configure.ac): Likewise.
9083         * modules/j0 (configure.ac): Likewise.
9084         * modules/j1 (configure.ac): Likewise.
9085         * modules/jn (configure.ac): Likewise.
9086         * modules/ldexp (configure.ac): Likewise.
9087         * modules/lgamma (configure.ac): Likewise.
9088         * modules/log (configure.ac): Likewise.
9089         * modules/log10 (configure.ac): Likewise.
9090         * modules/log1p (configure.ac): Likewise.
9091         * modules/logb (configure.ac): Likewise.
9092         * modules/modf (configure.ac): Likewise.
9093         * modules/nextafter (configure.ac): Likewise.
9094         * modules/pow (configure.ac): Likewise.
9095         * modules/remainder (configure.ac): Likewise.
9096         * modules/rint (configure.ac): Likewise.
9097         * modules/sin (configure.ac): Likewise.
9098         * modules/sinh (configure.ac): Likewise.
9099         * modules/tan (configure.ac): Likewise.
9100         * modules/tanh (configure.ac): Likewise.
9101         * modules/y0 (configure.ac): Likewise.
9102         * modules/y1 (configure.ac): Likewise.
9103         * modules/yn (configure.ac): Likewise.
9104
9105 2010-01-24  Bruno Haible  <bruno@clisp.org>
9106
9107         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
9108         * tests/test-acosl.c (x): New variable.
9109         (main): Store argument in x and fetch it from x.
9110         * tests/test-asinl.c (x): New variable.
9111         (main): Store argument in x and fetch it from x.
9112         * tests/test-atanl.c (x): New variable.
9113         (main): Store argument in x and fetch it from x.
9114         * tests/test-cosl.c (x): New variable.
9115         (main): Store argument in x and fetch it from x.
9116         * tests/test-expl.c (x): New variable.
9117         (main): Store argument in x and fetch it from x.
9118         * tests/test-logl.c (x): New variable.
9119         (main): Store argument in x and fetch it from x.
9120         * tests/test-sinl.c (x): New variable.
9121         (main): Store argument in x and fetch it from x.
9122         * tests/test-sqrtl.c (x): New variable.
9123         (main): Store argument in x and fetch it from x.
9124         * tests/test-tanl.c (x): New variable.
9125         (main): Store argument in x and fetch it from x.
9126
9127 2010-01-24  Bruno Haible  <bruno@clisp.org>
9128
9129         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
9130         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
9131         assignments to the initial TESTS_ENVIRONMENT.
9132         * doc/gnulib.texi (Unit test modules): Document it.
9133         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
9134         TESTS_ENVIRONMENT.
9135         * modules/btowc-tests (Makefile.am): Likewise.
9136         * modules/c-stack-tests (Makefile.am): Likewise.
9137         * modules/c-strcase-tests (Makefile.am): Likewise.
9138         * modules/copy-file-tests (Makefile.am): Likewise.
9139         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
9140         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
9141         * modules/mbrtowc-tests (Makefile.am): Likewise.
9142         * modules/mbscasecmp-tests (Makefile.am): Likewise.
9143         * modules/mbscasestr-tests (Makefile.am): Likewise.
9144         * modules/mbschr-tests (Makefile.am): Likewise.
9145         * modules/mbscspn-tests (Makefile.am): Likewise.
9146         * modules/mbsinit-tests (Makefile.am): Likewise.
9147         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
9148         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
9149         * modules/mbspbrk-tests (Makefile.am): Likewise.
9150         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
9151         * modules/mbsrchr-tests (Makefile.am): Likewise.
9152         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
9153         * modules/mbsspn-tests (Makefile.am): Likewise.
9154         * modules/mbsstr-tests (Makefile.am): Likewise.
9155         * modules/nl_langinfo-tests (Makefile.am): Likewise.
9156         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
9157         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
9158         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
9159         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
9160         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
9161         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
9162         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
9163         * modules/wcrtomb-tests (Makefile.am): Likewise.
9164         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
9165         * modules/wcsrtombs-tests (Makefile.am): Likewise.
9166         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
9167         assignments from TESTS_ENVIRONMENT.
9168         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
9169         augmentation.
9170         * modules/argp-version-etc-tests (Makefile.am): Likewise.
9171         * modules/atexit-tests (Makefile.am): Likewise.
9172         * modules/binary-io-tests (Makefile.am): Likewise.
9173         * modules/closein-tests (Makefile.am): Likewise.
9174         * modules/dprintf-posix-tests (Makefile.am): Likewise.
9175         * modules/exclude-tests (Makefile.am): Likewise.
9176         * modules/fflush-tests (Makefile.am): Likewise.
9177         * modules/fpending-tests (Makefile.am): Likewise.
9178         * modules/fprintf-posix-tests (Makefile.am): Likewise.
9179         * modules/freadahead-tests (Makefile.am): Likewise.
9180         * modules/freadptr-tests (Makefile.am): Likewise.
9181         * modules/freadseek-tests (Makefile.am): Likewise.
9182         * modules/fseek-tests (Makefile.am): Likewise.
9183         * modules/fseeko-tests (Makefile.am): Likewise.
9184         * modules/ftell-tests (Makefile.am): Likewise.
9185         * modules/ftello-tests (Makefile.am): Likewise.
9186         * modules/idpriv-drop-tests (Makefile.am): Likewise.
9187         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
9188         * modules/lseek-tests (Makefile.am): Likewise.
9189         * modules/parse-duration-tests (Makefile.am): Likewise.
9190         * modules/perror-tests (Makefile.am): Likewise.
9191         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
9192         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
9193         * modules/pipe-tests (Makefile.am): Likewise.
9194         * modules/pread-tests (Makefile.am): Likewise.
9195         * modules/printf-posix-tests (Makefile.am): Likewise.
9196         * modules/select-tests (Makefile.am): Likewise.
9197         * modules/sigpipe-tests (Makefile.am): Likewise.
9198         * modules/tsearch-tests (Makefile.am): Likewise.
9199         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
9200         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
9201         * modules/uniname/uniname-tests (Makefile.am): Likewise.
9202         * modules/uniwidth/width-tests (Makefile.am): Likewise.
9203         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
9204         * modules/version-etc-tests (Makefile.am): Likewise.
9205         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
9206         * modules/vprintf-posix-tests (Makefile.am): Likewise.
9207         * modules/xalloc-die-tests (Makefile.am): Likewise.
9208         * modules/xprintf-posix-tests (Makefile.am): Likewise.
9209         * modules/xstrtoimax-tests (Makefile.am): Likewise.
9210         * modules/xstrtol-tests (Makefile.am): Likewise.
9211         * modules/xstrtoumax-tests (Makefile.am): Likewise.
9212         * modules/yesno-tests (Makefile.am): Likewise.
9213         Suggested by Jim Meyering.
9214
9215 2010-01-24  Bruno Haible  <bruno@clisp.org>
9216
9217         More documentation.
9218         * doc/gnulib.texi (Writing modules): New chapter.
9219         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
9220         the new chapter.
9221
9222 2010-01-24  Jim Meyering  <meyering@redhat.com>
9223
9224         maint.mk: do not prepend "./" after filtering
9225         * top/maint.mk (_prepend_srcdir_prefix): New variable
9226         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
9227         "./" when $(srcdir) is ".".
9228
9229         define STREQ(a,b) consistently, removing useless parentheses
9230         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
9231         since the only risk is that "a" or "b" contains an unparenthesized
9232         comma, but if either did that, STREQ would have 3 or more arguments.
9233         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
9234         * lib/fts.c (STREQ): Remove unnecessary parentheses.
9235         * lib/hash-triple.c (STREQ): Likewise.
9236         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
9237         * lib/getugroups.c (STREQ): Likewise.
9238
9239 2010-01-23  Jim Meyering  <meyering@redhat.com>
9240
9241         maint.mk: fix syntax-check in a non-srcdir build directory
9242         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
9243         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
9244
9245 2010-01-22  Jim Meyering  <meyering@redhat.com>
9246
9247         userspec: add unit tests
9248         * tests/test-userspec.c: New file.
9249         * modules/userspec-tests: Likewise.
9250
9251 2010-01-21  Jim Meyering  <meyering@redhat.com>
9252
9253         maint.mk: handle source file names containing "." robustly
9254         * top/maint.mk (_dot_escaped_srcdir): Define.
9255         (VC_LIST): Use it in LHS of sed substitution.
9256
9257 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
9258
9259         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
9260         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
9261         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
9262         from a non-srcdir build.
9263
9264 2010-01-20  Eric Blake  <ebb9@byu.net>
9265
9266         warn-on-use: use instead of link-warning
9267         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
9268         * modules/unistd (Depends-on, Makefile.am): Likewise.
9269         * modules/arpa_inet (Depends-on): Replace link-warning with
9270         warn-on-use.
9271         (Makefile.am): Update rules accordingly.
9272         * modules/ctype (Depends-on, Makefile.am): Likewise.
9273         * modules/dirent (Depends-on, Makefile.am): Likewise.
9274         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
9275         * modules/inttypes (Depends-on, Makefile.am): Likewise.
9276         * modules/langinfo (Depends-on, Makefile.am): Likewise.
9277         * modules/locale (Depends-on, Makefile.am): Likewise.
9278         * modules/math (Depends-on, Makefile.am): Likewise.
9279         * modules/search (Depends-on, Makefile.am): Likewise.
9280         * modules/signal (Depends-on, Makefile.am): Likewise.
9281         * modules/spawn (Depends-on, Makefile.am): Likewise.
9282         * modules/stdlib (Depends-on, Makefile.am): Likewise.
9283         * modules/string (Depends-on, Makefile.am): Likewise.
9284         * modules/strings (Depends-on, Makefile.am): Likewise.
9285         * modules/sys_file (Depends-on, Makefile.am): Likewise.
9286         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
9287         * modules/sys_select (Depends-on, Makefile.am): Likewise.
9288         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
9289         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
9290         * modules/sys_times (Depends-on, Makefile.am): Likewise.
9291         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
9292         * modules/wchar (Depends-on, Makefile.am): Likewise.
9293         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
9294         should be poisoned.
9295         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
9296         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
9297         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
9298         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
9299         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
9300         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
9301         * m4/math_h.m4 (gl_MATH_H): Likewise.
9302         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
9303         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
9304         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
9305         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
9306         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
9307         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
9308         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
9309         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
9310         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
9311         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
9312         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
9313         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
9314         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
9315         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
9316         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
9317         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
9318         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
9319         GL_LINK_WARNING.
9320         * lib/ctype.in.h: Likewise.
9321         * lib/dirent.in.h: Likewise.
9322         * lib/fcntl.in.h: Likewise.
9323         * lib/inttypes.in.h: Likewise.
9324         * lib/langinfo.in.h: Likewise.
9325         * lib/locale.in.h: Likewise.
9326         * lib/math.in.h: Likewise.
9327         * lib/search.in.h: Likewise.
9328         * lib/signal.in.h: Likewise.
9329         * lib/spawn.in.h: Likewise.
9330         * lib/stdio.in.h: Likewise.
9331         * lib/stdlib.in.h: Likewise.
9332         * lib/string.in.h: Likewise.
9333         * lib/strings.in.h: Likewise.
9334         * lib/sys_file.in.h: Likewise.
9335         * lib/sys_ioctl.in.h: Likewise.
9336         * lib/sys_select.in.h: Likewise.
9337         * lib/sys_socket.in.h: Likewise.
9338         * lib/sys_stat.in.h: Likewise.
9339         * lib/sys_times.in.h: Likewise.
9340         * lib/sys_utsname.in.h: Likewise.
9341         * lib/unistd.in.h: Likewise.
9342         * lib/wchar.in.h: Likewise.
9343
9344 2010-01-20  Bruno Haible  <bruno@clisp.org>
9345
9346         Avoid duplicate -lm.
9347         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
9348         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
9349         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
9350         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
9351         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
9352         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
9353         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
9354         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
9355         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
9356         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
9357         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
9358         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
9359         Reported by Paolo Bonzini.
9360
9361 2010-01-19  Bruno Haible  <bruno@clisp.org>
9362
9363         langinfo, nl_langinfo: Relicense under LGPLv2+.
9364         * modules/langinfo (License): Change to LGPLv2+.
9365         * modules/nl_langinfo (License): Likewise.
9366         Patch by David Lutterkort <lutter@redhat.com>.
9367
9368 2010-01-19  Bruno Haible  <bruno@clisp.org>
9369
9370         Avoid compilation error with cc on OSF/1 5.1.
9371         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
9372         statement, not before.
9373         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
9374
9375 2010-01-18  Bruno Haible  <bruno@clisp.org>
9376
9377         Avoid a link error due to the __printf__ symbol.
9378         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
9379         and 2.6.x.
9380         (__format__, __printf__): Remove definitions.
9381         * lib/argp-fmtstream.h: Likewise.
9382         * lib/argp.h: Likewise.
9383         * lib/error.h: Likewise.
9384         * lib/vasnprintf.h: Likewise.
9385         * lib/xprintf.h: Likewise.
9386         * lib/xvasprintf.h: Likewise.
9387         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
9388
9389 2010-01-18  Bruno Haible  <bruno@clisp.org>
9390
9391         Tests for module 'tanl'.
9392         * modules/tanl-tests: New file.
9393         * tests/test-tanl.c: New file.
9394
9395         Tests for module 'sqrtl'.
9396         * modules/sqrtl-tests: New file.
9397         * tests/test-sqrtl.c: New file.
9398
9399         Tests for module 'sinl'.
9400         * modules/sinl-tests: New file.
9401         * tests/test-sinl.c: New file.
9402
9403         Tests for module 'logl'.
9404         * modules/logl-tests: New file.
9405         * tests/test-logl.c: New file.
9406
9407         Tests for module 'expl'.
9408         * modules/expl-tests: New file.
9409         * tests/test-expl.c: New file.
9410
9411         Tests for module 'cosl'.
9412         * modules/cosl-tests: New file.
9413         * tests/test-cosl.c: New file.
9414
9415         Tests for module 'atanl'.
9416         * modules/atanl-tests: New file.
9417         * tests/test-atanl.c: New file.
9418
9419         Tests for module 'asinl'.
9420         * modules/asinl-tests: New file.
9421         * tests/test-asinl.c: New file.
9422
9423         Tests for module 'acosl'.
9424         * modules/acosl-tests: New file.
9425         * tests/test-acosl.c: New file.
9426
9427         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
9428         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
9429         tanl): Use the standard gnulib idiom.
9430         * lib/cosl.c: Don't include trigl.c and sincosl.c.
9431         * lib/sinl.c: Likewise.
9432         * lib/tanl.c: Don't include trigl.c.
9433         (kernel_tanl): Make static.
9434         * lib/sincosl.c: Include trigl.h first.
9435         * lib/trigl.c: Likewise.
9436         * m4/acosl.m4: New file.
9437         * m4/asinl.m4: New file.
9438         * m4/atanl.m4: New file.
9439         * m4/cosl.m4: New file.
9440         * m4/expl.m4: New file.
9441         * m4/logl.m4: New file.
9442         * m4/sinl.m4: New file.
9443         * m4/sqrtl.m4: New file.
9444         * m4/tanl.m4: New file.
9445         * m4/mathl.m4: Remove file.
9446         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
9447         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
9448         Don't initialize GNULIB_MATHL.
9449         * modules/acosl: New file.
9450         * modules/asinl: New file.
9451         * modules/atanl: New file.
9452         * modules/cosl: New file.
9453         * modules/expl: New file.
9454         * modules/logl: New file.
9455         * modules/sinl: New file.
9456         * modules/sqrtl: New file.
9457         * modules/tanl: New file.
9458         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
9459         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
9460         substitute GNULIB_MATHL.
9461         * modules/mathl: Rewritten.
9462         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
9463         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
9464         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
9465         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
9466         * doc/posix-functions/expl.texi: Mention the 'expl' module.
9467         * doc/posix-functions/logl.texi: Mention the 'logl' module.
9468         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
9469         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
9470         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
9471
9472 2010-01-18  Bruno Haible  <bruno@clisp.org>
9473
9474         sqrt: Make gl_FUNC_SQRT requirable.
9475         * m4/sqrt.m4: New file.
9476         * modules/sqrt (Files): Add it.
9477         (configure.ac): Invoke gl_FUNC_SQRT.
9478
9479 2010-01-18  Bruno Haible  <bruno@clisp.org>
9480
9481         New modules for common <math.h> functions.
9482         * m4/mathfunc.m4: New file.
9483         * modules/acos: New file.
9484         * modules/asin: New file.
9485         * modules/atan: New file.
9486         * modules/atan2: New file.
9487         * modules/cbrt: New file.
9488         * modules/copysign: New file.
9489         * modules/cos: New file.
9490         * modules/cosh: New file.
9491         * modules/erf: New file.
9492         * modules/erfc: New file.
9493         * modules/exp: New file.
9494         * modules/fabs: New file.
9495         * modules/fmod: New file.
9496         * modules/hypot: New file.
9497         * modules/j0: New file.
9498         * modules/j1: New file.
9499         * modules/jn: New file.
9500         * modules/ldexp: New file.
9501         * modules/lgamma: New file.
9502         * modules/log: New file.
9503         * modules/log10: New file.
9504         * modules/log1p: New file.
9505         * modules/logb: New file.
9506         * modules/modf: New file.
9507         * modules/nextafter: New file.
9508         * modules/pow: New file.
9509         * modules/remainder: New file.
9510         * modules/rint: New file.
9511         * modules/sin: New file.
9512         * modules/sinh: New file.
9513         * modules/sqrt: New file.
9514         * modules/tan: New file.
9515         * modules/tanh: New file.
9516         * modules/y0: New file.
9517         * modules/y1: New file.
9518         * modules/yn: New file.
9519         * doc/posix-functions/acos.texi: Mention the 'acos' module.
9520         * doc/posix-functions/asin.texi: Mention the 'asin' module.
9521         * doc/posix-functions/atan.texi: Mention the 'atan' module.
9522         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
9523         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
9524         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
9525         * doc/posix-functions/cos.texi: Mention the 'cos' module.
9526         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
9527         * doc/posix-functions/erf.texi: Mention the 'erf' module.
9528         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
9529         * doc/posix-functions/exp.texi: Mention the 'exp' module.
9530         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
9531         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
9532         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
9533         * doc/posix-functions/j0.texi: Mention the 'j0' module.
9534         * doc/posix-functions/j1.texi: Mention the 'j1' module.
9535         * doc/posix-functions/jn.texi: Mention the 'jn' module.
9536         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
9537         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
9538         * doc/posix-functions/log.texi: Mention the 'log' module.
9539         * doc/posix-functions/log10.texi: Mention the 'log10' module.
9540         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
9541         * doc/posix-functions/logb.texi: Mention the 'logb' module.
9542         * doc/posix-functions/modf.texi: Mention the 'modf' module.
9543         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
9544         * doc/posix-functions/pow.texi: Mention the 'pow' module.
9545         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
9546         * doc/posix-functions/rint.texi: Mention the 'rint' module.
9547         * doc/posix-functions/sin.texi: Mention the 'sin' module.
9548         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
9549         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
9550         * doc/posix-functions/tan.texi: Mention the 'tan' module.
9551         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
9552         * doc/posix-functions/y0.texi: Mention the 'y0' module.
9553         * doc/posix-functions/y1.texi: Mention the 'y1' module.
9554         * doc/posix-functions/yn.texi: Mention the 'yn' module.
9555
9556 2010-01-18  Jim Meyering  <meyering@redhat.com>
9557
9558         ignore-value: relax license to LGPLv2+
9559         * modules/ignore-value (License): Relax to LGPLv2+.
9560
9561         getdate: don't leak when TZ contains two or more '"'s
9562         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
9563         double quote in TZ after the first one.
9564
9565         readtokens: do not leak internal token_lengths buffer
9566         * lib/readtokens.c (readtokens): Free the local, lengths,
9567         when the supplied "token_lengths" parameter is NULL.
9568
9569 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9570
9571         Fix a couple of missing LIBTHREAD link failures on AIX.
9572         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
9573         $(LIBTHREAD).
9574         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
9575
9576         Link test-poll against INET_PTON_LIB.
9577         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
9578         for inet_pton on Solaris 10.
9579
9580 2010-01-17  Bruno Haible  <bruno@clisp.org>
9581
9582         unistdio/*-sprintf: Fix typo in module description.
9583         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
9584         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
9585         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
9586         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
9587         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
9588         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
9589         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
9590         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
9591
9592 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9593
9594         gnulib-tool: fix filelist for AIX, HP-UX ksh.
9595         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
9596         variables in shell case patterns, for AIX and HP-UX ksh.
9597
9598         Split large sed scripts, for HP-UX sed.
9599         * modules/stdio: Split sed scripts around 50 sed commands,
9600         to avoid HP-UX limit of 99 commands, in the near future.
9601         * modules/string: Likewise.
9602         * modules/unistd: Likewise.
9603
9604         gnulib-tool: avoid writing in the current directory.
9605         * gnulib-tool (func_emit_lib_Makefile_am)
9606         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
9607         not in the current directory, so concurrent gnulib-tool
9608         instances do not interfere.
9609
9610 2010-01-16  Jim Meyering  <meyering@redhat.com>
9611
9612         doc: update users.txt
9613         * users.txt: Add grep.
9614         (diffutils, gzip): Update URLs.
9615
9616 2010-01-12  Bruno Haible  <bruno@clisp.org>
9617
9618         posix_spawn: Avoid test failure on Cygwin.
9619         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
9620         characters.
9621         Reported by Simon Josefsson.
9622
9623 2010-01-12  Bruno Haible  <bruno@clisp.org>
9624
9625         * tests/test-cond.c (main): When skipping the test, show the reason.
9626
9627 2010-01-12  Simon Josefsson  <simon@josefsson.org>
9628
9629         * lib/striconv.c (str_cd_iconv): Avoid if before free.
9630
9631 2010-01-12  Simon Josefsson  <simon@josefsson.org>
9632
9633         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
9634         VC_LIST_ALWAYS_EXCLUDE_REGEX.
9635
9636 2010-01-12  Eric Blake  <ebb9@byu.net>
9637
9638         build: guarantee AS_VAR_IF
9639         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
9640         (gl_AS_VAR_IF): Move...
9641         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
9642         Reported by Simon Josefsson.
9643
9644 2010-01-12  Simon Josefsson  <simon@josefsson.org>
9645
9646         * lib/stdio.in.h: Fix typo.
9647
9648 2010-01-12  Simon Josefsson  <simon@josefsson.org>
9649
9650         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
9651         libgpg-error.
9652
9653 2010-01-12  Simon Josefsson  <simon@josefsson.org>
9654
9655         * tests/test-xalloc-die.sh: Use $EXEEXT.
9656
9657 2010-01-12  Simon Josefsson  <simon@josefsson.org>
9658             Bruno Haible  <bruno@clisp.org>
9659
9660         getlogin, getlogin_r: Avoid test failure.
9661         * tests/test-getlogin.c: Include <stdio.h>.
9662         (main): Skip the test when the function fails because stdin is not a
9663         tty.
9664         * tests/test-getlogin_r.c: Include <stdio.h>.
9665         (main): Skip the test when the function fails because stdin is not a
9666         tty.
9667
9668 2010-01-11  Eric Blake  <ebb9@byu.net>
9669
9670         tests: avoid more large file warnings
9671         * tests/test-fflush.c: Avoid warning about ftell use.
9672         * tests/test-fseek.c: Avoid warning about fseek use.
9673
9674 2010-01-10  Bruno Haible  <bruno@clisp.org>
9675
9676         nproc: Work better on Linux when /proc and /sys are not mounted.
9677         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
9678         as lower bound when, on glibc/Linux systems,
9679         sysconf (_SC_NPROCESSORS_CONF) returns 1.
9680         Suggested by Pádraig Brady <P@draigbrady.com>.
9681         Reported by Dmitry V. Levin <ldv@altlinux.org>.
9682
9683         nproc: Refactor.
9684         * lib/nproc.c (num_processors_via_affinity_mask): New function,
9685         extracted from num_processors.
9686         (num_processors): Call it.
9687
9688 2010-01-11  Jim Meyering  <meyering@redhat.com>
9689
9690         utimecmp: avoid new warning from upcoming gcc-4.5.0
9691         * lib/utimecmp.c (BILLION): Define using #define rather than an
9692         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
9693
9694 2010-01-11  Eric Blake  <ebb9@byu.net>
9695
9696         math: add portability warnings for classification macros
9697         * modules/math (Depends-on): Add warn-on-use.
9698         (Makefile.am): Provide new substitutions.
9699         * m4/math_h.m4 (gl_MATH_H): Require inline.
9700         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
9701         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
9702         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
9703         implement warnings.
9704
9705         unistd: warn on use of environ without module
9706         * modules/unistd (Depends-on): Add warn-on-use.
9707         (Makefile.am): Provide new substitutions.
9708         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
9709         * lib/unistd.in.h (environ): Wrap with a warning helper function.
9710
9711         stdio: warn on suspicious uses
9712         * modules/stdio (Depends-on): Add warn-on-use.
9713         (Makefile.am): Provide new substitutions.
9714         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
9715         fseeko.
9716         * lib/stdio.in.h (gets): Always warn on use.
9717         (fseek, ftell): Adjust when warnings are issued, and honor
9718         _GL_NO_LARGE_FILES as a way to silence the warning.
9719         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
9720         any warning about large file offsets.
9721         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
9722         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
9723         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
9724         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
9725         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
9726         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
9727         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
9728         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
9729
9730         warn-on-use: new module
9731         * modules/warn-on-use: New file.
9732         * build-aux/warn-on-use.h: Likewise.
9733         * m4/warn-on-use.m4: Likewise.
9734         * MODULES.html.sh (Support for building): Mention it.
9735
9736 2010-01-10  Bruno Haible  <bruno@clisp.org>
9737
9738         Tests for module 'unistr/u32-strdup'.
9739         * modules/unistr/u32-strdup-tests: New file.
9740         * tests/unistr/test-u32-strdup.c: New file.
9741
9742         Tests for module 'unistr/u16-strdup'.
9743         * modules/unistr/u16-strdup-tests: New file.
9744         * tests/unistr/test-u16-strdup.c: New file.
9745
9746         Tests for module 'unistr/u8-strdup'.
9747         * modules/unistr/u8-strdup-tests: New file.
9748         * tests/unistr/test-u8-strdup.c: New file.
9749         * tests/unistr/test-strdup.h: New file.
9750
9751         Tests for module 'unistr/u32-strncmp'.
9752         * modules/unistr/u32-strncmp-tests: New file.
9753         * tests/unistr/test-u32-strncmp.c: New file.
9754
9755         Tests for module 'unistr/u16-strncmp'.
9756         * modules/unistr/u16-strncmp-tests: New file.
9757         * tests/unistr/test-u16-strncmp.c: New file.
9758
9759         Tests for module 'unistr/u8-strncmp'.
9760         * modules/unistr/u8-strncmp-tests: New file.
9761         * tests/unistr/test-u8-strncmp.c: New file.
9762         * tests/unistr/test-strncmp.h: New file.
9763
9764         Tests for module 'unistr/u32-strcoll'.
9765         * modules/unistr/u32-strcoll-tests: New file.
9766         * tests/unistr/test-u32-strcoll.c: New file.
9767
9768         Tests for module 'unistr/u16-strcoll'.
9769         * modules/unistr/u16-strcoll-tests: New file.
9770         * tests/unistr/test-u16-strcoll.c: New file.
9771
9772         Tests for module 'unistr/u8-strcoll'.
9773         * modules/unistr/u8-strcoll-tests: New file.
9774         * tests/unistr/test-u8-strcoll.c: New file.
9775
9776         Tests for module 'unistr/u32-strcmp'.
9777         * modules/unistr/u32-strcmp-tests: New file.
9778         * tests/unistr/test-u32-strcmp.c: New file.
9779         * tests/unistr/test-u32-strcmp.h: New file.
9780
9781         Tests for module 'unistr/u16-strcmp'.
9782         * modules/unistr/u16-strcmp-tests: New file.
9783         * tests/unistr/test-u16-strcmp.c: New file.
9784         * tests/unistr/test-u16-strcmp.h: New file.
9785
9786         Tests for module 'unistr/u8-strcmp'.
9787         * modules/unistr/u8-strcmp-tests: New file.
9788         * tests/unistr/test-u8-strcmp.c: New file.
9789         * tests/unistr/test-u8-strcmp.h: New file.
9790         * tests/unistr/test-strcmp.h: New file.
9791
9792         Tests for module 'unistr/u32-strncat'.
9793         * modules/unistr/u32-strncat-tests: New file.
9794         * tests/unistr/test-u32-strncat.c: New file.
9795
9796         Tests for module 'unistr/u16-strncat'.
9797         * modules/unistr/u16-strncat-tests: New file.
9798         * tests/unistr/test-u16-strncat.c: New file.
9799
9800         Tests for module 'unistr/u8-strncat'.
9801         * modules/unistr/u8-strncat-tests: New file.
9802         * tests/unistr/test-u8-strncat.c: New file.
9803         * tests/unistr/test-strncat.h: New file.
9804
9805         Tests for module 'unistr/u32-strcat'.
9806         * modules/unistr/u32-strcat-tests: New file.
9807         * tests/unistr/test-u32-strcat.c: New file.
9808
9809         Tests for module 'unistr/u16-strcat'.
9810         * modules/unistr/u16-strcat-tests: New file.
9811         * tests/unistr/test-u16-strcat.c: New file.
9812
9813         Tests for module 'unistr/u8-strcat'.
9814         * modules/unistr/u8-strcat-tests: New file.
9815         * tests/unistr/test-u8-strcat.c: New file.
9816         * tests/unistr/test-strcat.h: New file.
9817
9818         Tests for module 'unistr/u32-stpncpy'.
9819         * modules/unistr/u32-stpncpy-tests: New file.
9820         * tests/unistr/test-u32-stpncpy.c: New file.
9821
9822         Tests for module 'unistr/u16-stpncpy'.
9823         * modules/unistr/u16-stpncpy-tests: New file.
9824         * tests/unistr/test-u16-stpncpy.c: New file.
9825
9826         Tests for module 'unistr/u8-stpncpy'.
9827         * modules/unistr/u8-stpncpy-tests: New file.
9828         * tests/unistr/test-u8-stpncpy.c: New file.
9829         * tests/unistr/test-stpncpy.h: New file.
9830
9831         Tests for module 'unistr/u32-strncpy'.
9832         * modules/unistr/u32-strncpy-tests: New file.
9833         * tests/unistr/test-u32-strncpy.c: New file.
9834
9835         Tests for module 'unistr/u16-strncpy'.
9836         * modules/unistr/u16-strncpy-tests: New file.
9837         * tests/unistr/test-u16-strncpy.c: New file.
9838
9839         Tests for module 'unistr/u8-strncpy'.
9840         * modules/unistr/u8-strncpy-tests: New file.
9841         * tests/unistr/test-u8-strncpy.c: New file.
9842         * tests/unistr/test-strncpy.h: New file.
9843
9844         Tests for module 'unistr/u32-stpcpy'.
9845         * modules/unistr/u32-stpcpy-tests: New file.
9846         * tests/unistr/test-u32-stpcpy.c: New file.
9847
9848         Tests for module 'unistr/u16-stpcpy'.
9849         * modules/unistr/u16-stpcpy-tests: New file.
9850         * tests/unistr/test-u16-stpcpy.c: New file.
9851
9852         Tests for module 'unistr/u8-stpcpy'.
9853         * modules/unistr/u8-stpcpy-tests: New file.
9854         * tests/unistr/test-u8-stpcpy.c: New file.
9855         * tests/unistr/test-stpcpy.h: New file.
9856
9857         Tests for module 'unistr/u32-strcpy'.
9858         * modules/unistr/u32-strcpy-tests: New file.
9859         * tests/unistr/test-u32-strcpy.c: New file.
9860
9861         Tests for module 'unistr/u16-strcpy'.
9862         * modules/unistr/u16-strcpy-tests: New file.
9863         * tests/unistr/test-u16-strcpy.c: New file.
9864
9865         Tests for module 'unistr/u8-strcpy'.
9866         * modules/unistr/u8-strcpy-tests: New file.
9867         * tests/unistr/test-u8-strcpy.c: New file.
9868         * tests/unistr/test-strcpy.h: New file.
9869
9870         Tests for module 'unistr/u32-strnlen'.
9871         * modules/unistr/u32-strnlen-tests: New file.
9872         * tests/unistr/test-u32-strnlen.c: New file.
9873
9874         Tests for module 'unistr/u16-strnlen'.
9875         * modules/unistr/u16-strnlen-tests: New file.
9876         * tests/unistr/test-u16-strnlen.c: New file.
9877
9878         Tests for module 'unistr/u8-strnlen'.
9879         * modules/unistr/u8-strnlen-tests: New file.
9880         * tests/unistr/test-u8-strnlen.c: New file.
9881         * tests/unistr/test-strnlen.h: New file.
9882
9883         Tests for module 'unistr/u32-strlen'.
9884         * modules/unistr/u32-strlen-tests: New file.
9885         * tests/unistr/test-u32-strlen.c: New file.
9886
9887         Tests for module 'unistr/u16-strlen'.
9888         * modules/unistr/u16-strlen-tests: New file.
9889         * tests/unistr/test-u16-strlen.c: New file.
9890
9891         Tests for module 'unistr/u8-strlen'.
9892         * modules/unistr/u8-strlen-tests: New file.
9893         * tests/unistr/test-u8-strlen.c: New file.
9894
9895         Tests for module 'unistr/u32-prev'.
9896         * modules/unistr/u32-prev-tests: New file.
9897         * tests/unistr/test-u32-prev.c: New file.
9898
9899         Tests for module 'unistr/u16-prev'.
9900         * modules/unistr/u16-prev-tests: New file.
9901         * tests/unistr/test-u16-prev.c: New file.
9902
9903         Tests for module 'unistr/u8-prev'.
9904         * modules/unistr/u8-prev-tests: New file.
9905         * tests/unistr/test-u8-prev.c: New file.
9906
9907         Tests for module 'unistr/u32-next'.
9908         * modules/unistr/u32-next-tests: New file.
9909         * tests/unistr/test-u32-next.c: New file.
9910
9911         Tests for module 'unistr/u16-next'.
9912         * modules/unistr/u16-next-tests: New file.
9913         * tests/unistr/test-u16-next.c: New file.
9914
9915         Tests for module 'unistr/u8-next'.
9916         * modules/unistr/u8-next-tests: New file.
9917         * tests/unistr/test-u8-next.c: New file.
9918
9919         Tests for module 'unistr/u32-strmbtouc'.
9920         * modules/unistr/u32-strmbtouc-tests: New file.
9921         * tests/unistr/test-u32-strmbtouc.c: New file.
9922
9923         Tests for module 'unistr/u16-strmbtouc'.
9924         * modules/unistr/u16-strmbtouc-tests: New file.
9925         * tests/unistr/test-u16-strmbtouc.c: New file.
9926
9927         Tests for module 'unistr/u8-strmbtouc'.
9928         * modules/unistr/u8-strmbtouc-tests: New file.
9929         * tests/unistr/test-u8-strmbtouc.c: New file.
9930
9931         Tests for module 'unistr/u32-strmblen'.
9932         * modules/unistr/u32-strmblen-tests: New file.
9933         * tests/unistr/test-u32-strmblen.c: New file.
9934
9935         Tests for module 'unistr/u16-strmblen'.
9936         * modules/unistr/u16-strmblen-tests: New file.
9937         * tests/unistr/test-u16-strmblen.c: New file.
9938
9939         Tests for module 'unistr/u8-strmblen'.
9940         * modules/unistr/u8-strmblen-tests: New file.
9941         * tests/unistr/test-u8-strmblen.c: New file.
9942
9943         Tests for module 'unistr/u32-cpy-alloc'.
9944         * modules/unistr/u32-cpy-alloc-tests: New file.
9945         * tests/unistr/test-u32-cpy-alloc.c: New file.
9946
9947         Tests for module 'unistr/u16-cpy-alloc'.
9948         * modules/unistr/u16-cpy-alloc-tests: New file.
9949         * tests/unistr/test-u16-cpy-alloc.c: New file.
9950
9951         Tests for module 'unistr/u8-cpy-alloc'.
9952         * modules/unistr/u8-cpy-alloc-tests: New file.
9953         * tests/unistr/test-u8-cpy-alloc.c: New file.
9954         * tests/unistr/test-cpy-alloc.h: New file.
9955
9956         Tests for module 'unistr/u32-mbsnlen'.
9957         * modules/unistr/u32-mbsnlen-tests: New file.
9958         * tests/unistr/test-u32-mbsnlen.c: New file.
9959
9960         Tests for module 'unistr/u16-mbsnlen'.
9961         * modules/unistr/u16-mbsnlen-tests: New file.
9962         * tests/unistr/test-u16-mbsnlen.c: New file.
9963
9964         Tests for module 'unistr/u8-mbsnlen'.
9965         * modules/unistr/u8-mbsnlen-tests: New file.
9966         * tests/unistr/test-u8-mbsnlen.c: New file.
9967
9968         Tests for module 'unistr/u32-chr'.
9969         * modules/unistr/u32-chr-tests: New file.
9970         * tests/unistr/test-u32-chr.c: New file.
9971
9972         Tests for module 'unistr/u16-chr'.
9973         * modules/unistr/u16-chr-tests: New file.
9974         * tests/unistr/test-u16-chr.c: New file.
9975
9976         Tests for module 'unistr/u8-chr'.
9977         * modules/unistr/u8-chr-tests: New file.
9978         * tests/unistr/test-u8-chr.c: New file.
9979         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
9980
9981         Tests for module 'unistr/u32-cmp2'.
9982         * modules/unistr/u32-cmp2-tests: New file.
9983         * tests/unistr/test-u32-cmp2.c: New file.
9984
9985         Tests for module 'unistr/u16-cmp2'.
9986         * modules/unistr/u16-cmp2-tests: New file.
9987         * tests/unistr/test-u16-cmp2.c: New file.
9988
9989         Tests for module 'unistr/u8-cmp2'.
9990         * modules/unistr/u8-cmp2-tests: New file.
9991         * tests/unistr/test-u8-cmp2.c: New file.
9992         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
9993
9994         Tests for module 'unistr/u32-cmp'.
9995         * modules/unistr/u32-cmp-tests: New file.
9996         * tests/unistr/test-u32-cmp.c: New file.
9997
9998         Tests for module 'unistr/u16-cmp'.
9999         * modules/unistr/u16-cmp-tests: New file.
10000         * tests/unistr/test-u16-cmp.c: New file.
10001
10002         Tests for module 'unistr/u8-cmp'.
10003         * modules/unistr/u8-cmp-tests: New file.
10004         * tests/unistr/test-u8-cmp.c: New file.
10005         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
10006
10007         Tests for module 'unistr/u32-set'.
10008         * modules/unistr/u32-set-tests: New file.
10009         * tests/unistr/test-u32-set.c: New file.
10010
10011         Tests for module 'unistr/u16-set'.
10012         * modules/unistr/u16-set-tests: New file.
10013         * tests/unistr/test-u16-set.c: New file.
10014
10015         Tests for module 'unistr/u8-set'.
10016         * modules/unistr/u8-set-tests: New file.
10017         * tests/unistr/test-u8-set.c: New file.
10018         * tests/unistr/test-set.h: New file.
10019
10020         Tests for module 'unistr/u32-move'.
10021         * modules/unistr/u32-move-tests: New file.
10022         * tests/unistr/test-u32-move.c: New file.
10023
10024         Tests for module 'unistr/u16-move'.
10025         * modules/unistr/u16-move-tests: New file.
10026         * tests/unistr/test-u16-move.c: New file.
10027
10028         Tests for module 'unistr/u8-move'.
10029         * modules/unistr/u8-move-tests: New file.
10030         * tests/unistr/test-u8-move.c: New file.
10031         * tests/unistr/test-move.h: New file.
10032
10033         Tests for module 'unistr/u32-cpy'.
10034         * modules/unistr/u32-cpy-tests: New file.
10035         * tests/unistr/test-u32-cpy.c: New file.
10036
10037         Tests for module 'unistr/u16-cpy'.
10038         * modules/unistr/u16-cpy-tests: New file.
10039         * tests/unistr/test-u16-cpy.c: New file.
10040
10041         Tests for module 'unistr/u8-cpy'.
10042         * modules/unistr/u8-cpy-tests: New file.
10043         * tests/unistr/test-u8-cpy.c: New file.
10044         * tests/unistr/test-cpy.h: New file.
10045
10046 2010-01-09  Bruno Haible  <bruno@clisp.org>
10047
10048         Tests for module 'unistr/u32-uctomb'.
10049         * modules/unistr/u32-uctomb-tests: New file.
10050         * tests/unistr/test-u32-uctomb.c: New file.
10051
10052         Tests for module 'unistr/u16-uctomb'.
10053         * modules/unistr/u16-uctomb-tests: New file.
10054         * tests/unistr/test-u16-uctomb.c: New file.
10055
10056         Tests for module 'unistr/u8-uctomb'.
10057         * modules/unistr/u8-uctomb-tests: New file.
10058         * tests/unistr/test-u8-uctomb.c: New file.
10059
10060         Tests for module 'unistr/u32-mbtoucr'.
10061         * modules/unistr/u32-mbtoucr-tests: New file.
10062         * tests/unistr/test-u32-mbtoucr.c: New file.
10063
10064         Tests for module 'unistr/u16-mbtoucr'.
10065         * modules/unistr/u16-mbtoucr-tests: New file.
10066         * tests/unistr/test-u16-mbtoucr.c: New file.
10067
10068         Tests for module 'unistr/u8-mbtoucr'.
10069         * modules/unistr/u8-mbtoucr-tests: New file.
10070         * tests/unistr/test-u8-mbtoucr.c: New file.
10071
10072         Tests for module 'unistr/u32-mbtouc'.
10073         * modules/unistr/u32-mbtouc-tests: New file.
10074         * tests/unistr/test-u32-mbtouc.c: New file.
10075
10076         Tests for module 'unistr/u16-mbtouc'.
10077         * modules/unistr/u16-mbtouc-tests: New file.
10078         * tests/unistr/test-u16-mbtouc.c: New file.
10079
10080         Tests for module 'unistr/u8-mbtouc'.
10081         * modules/unistr/u8-mbtouc-tests: New file.
10082         * tests/unistr/test-u8-mbtouc.c: New file.
10083
10084         Tests for module 'unistr/u32-mbtouc-unsafe'.
10085         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
10086         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
10087         * tests/unistr/test-u32-mbtouc.h: New file.
10088
10089         Tests for module 'unistr/u16-mbtouc-unsafe'.
10090         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
10091         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
10092         * tests/unistr/test-u16-mbtouc.h: New file.
10093
10094         Tests for module 'unistr/u8-mbtouc-unsafe'.
10095         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
10096         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
10097         * tests/unistr/test-u8-mbtouc.h: New file.
10098
10099         Tests for module 'unistr/u32-mblen'.
10100         * modules/unistr/u32-mblen-tests: New file.
10101         * tests/unistr/test-u32-mblen.c: New file.
10102
10103         Tests for module 'unistr/u16-mblen'.
10104         * modules/unistr/u16-mblen-tests: New file.
10105         * tests/unistr/test-u16-mblen.c: New file.
10106
10107         Tests for module 'unistr/u8-mblen'.
10108         * modules/unistr/u8-mblen-tests: New file.
10109         * tests/unistr/test-u8-mblen.c: New file.
10110
10111         Tests for module 'unistr/u32-to-u16'.
10112         * modules/unistr/u32-to-u16-tests: New file.
10113         * tests/unistr/test-u32-to-u16.c: New file.
10114
10115         Tests for module 'unistr/u32-to-u8'.
10116         * modules/unistr/u32-to-u8-tests: New file.
10117         * tests/unistr/test-u32-to-u8.c: New file.
10118
10119         Tests for module 'unistr/u16-to-u32'.
10120         * modules/unistr/u16-to-u32-tests: New file.
10121         * tests/unistr/test-u16-to-u32.c: New file.
10122
10123         Tests for module 'unistr/u16-to-u8'.
10124         * modules/unistr/u16-to-u8-tests: New file.
10125         * tests/unistr/test-u16-to-u8.c: New file.
10126
10127         Tests for module 'unistr/u8-to-u32'.
10128         * modules/unistr/u8-to-u32-tests: New file.
10129         * tests/unistr/test-u8-to-u32.c: New file.
10130
10131         Tests for module 'unistr/u8-to-u16'.
10132         * modules/unistr/u8-to-u16-tests: New file.
10133         * tests/unistr/test-u8-to-u16.c: New file.
10134
10135         Tests for module 'unistr/u32-check'.
10136         * modules/unistr/u32-check-tests: New file.
10137         * tests/unistr/test-u32-check.c: New file.
10138
10139         Tests for module 'unistr/u16-check'.
10140         * modules/unistr/u16-check-tests: New file.
10141         * tests/unistr/test-u16-check.c: New file.
10142
10143         Tests for module 'unistr/u8-check'.
10144         * modules/unistr/u8-check-tests: New file.
10145         * tests/unistr/test-u8-check.c: New file.
10146
10147         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
10148         (category_equals): New function.
10149         (main): Add more tests.
10150         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
10151
10152         * tests/unictype/test-bidi_byname.c (main): Add more tests.
10153
10154 2010-01-10  Bruno Haible  <bruno@clisp.org>
10155
10156         unistr/u*-strcoll: Try harder to distinguish different strings.
10157         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
10158         compare s1 and s2 to see if they are different.
10159
10160 2010-01-10  Bruno Haible  <bruno@clisp.org>
10161
10162         unistr/u*-stpncpy: Fix the return value.
10163         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
10164         description of the return value consistent with stpncpy in glibc.
10165         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
10166         written non-NUL unit.
10167
10168 2010-01-10  Bruno Haible  <bruno@clisp.org>
10169
10170         unistr/u*-next: Add missing dependencies.
10171         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
10172         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
10173         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
10174
10175 2010-01-10  Bruno Haible  <bruno@clisp.org>
10176
10177         unistr/u8-mbsnlen: Fix return value for incomplete character.
10178         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
10179         u8_mblen.
10180         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
10181         Remove unistr/u8-mblen.
10182         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
10183         u16_mblen.
10184         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
10185         Remove unistr/u16-mblen.
10186
10187 2010-01-10  Bruno Haible  <bruno@clisp.org>
10188
10189         wchar: Fix compilation error when <wchar.h> is used from coreutils.
10190         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
10191         Reported by Brian Gough <bjg@gnu.org> and
10192         Chris Clayton <chris2553@googlemail.com> via
10193         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
10194
10195 2010-01-09  Bruno Haible  <bruno@clisp.org>
10196
10197         unistr/u16-to-u32: Reject invalid input.
10198         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
10199         u16_mbtouc.
10200         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
10201         Remove unistr/u16-mbtouc.
10202
10203         unistr/u16-to-u8: Reject invalid input.
10204         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
10205         u16_mbtouc.
10206         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
10207         Remove unistr/u16-mbtouc.
10208
10209         unistr/u8-to-u32: Reject invalid input.
10210         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
10211         u8_mbtouc.
10212         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
10213         Remove unistr/u8-mbtouc.
10214
10215         unistr/u8-to-u16: Reject invalid input.
10216         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
10217         u8_mbtouc.
10218         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
10219         Remove unistr/u8-mbtouc.
10220
10221 2010-01-09  Bruno Haible  <bruno@clisp.org>
10222
10223         Tests for module 'getlogin'.
10224         * modules/getlogin-tests: New file.
10225         * tests/test-getlogin.c: New file.
10226
10227         New module 'getlogin'.
10228         * lib/unistd.in.h (getlogin): New declaration.
10229         * lib/getlogin.c: New file.
10230         * m4/getlogin.m4: New file.
10231         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
10232         HAVE_GETLOGIN.
10233         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
10234         HAVE_GETLOGIN.
10235         * modules/getlogin: New file.
10236         * doc/posix-functions/getlogin.texi: Mention the new module.
10237         Reported by John W. Eaton <jwe@gnu.org>.
10238
10239 2010-01-09  Bruno Haible  <bruno@clisp.org>
10240
10241         getlogin_r: Support for native Windows.
10242         * lib/getlogin_r.c: Include <windows.h>
10243         (getlogin_r): Implement for native Windows.
10244         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
10245         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
10246         via John W. Eaton <jwe@gnu.org>.
10247
10248 2010-01-09  Bruno Haible  <bruno@clisp.org>
10249
10250         getlogin_r: Small fixes.
10251         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
10252         succeeds.
10253         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
10254         before testing whether getlogin_r is declared. No need to set
10255         HAVE_DECL_GETLOGIN_R to 1.
10256         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
10257
10258 2010-01-09  Bruno Haible  <bruno@clisp.org>
10259
10260         * lib/unistd.in.h (getlogin_r): Add comment.
10261
10262 2010-01-09  Bruno Haible  <bruno@clisp.org>
10263
10264         Tests for module 'getlogin_r'.
10265         * modules/getlogin_r-tests: New file.
10266         * tests/test-getlogin_r.c: New file.
10267
10268 2010-01-09  Jim Meyering  <meyering@redhat.com>
10269
10270         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
10271         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
10272         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
10273
10274 2010-01-08  Simon Josefsson  <simon@josefsson.org>
10275
10276         * lib/dup2.c (rpl_dup2): Improve comment.
10277
10278 2010-01-08  Eric Blake  <ebb9@byu.net>
10279
10280         maint.mk: allow packages to add makefile @@ exceptions
10281         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
10282         (sc_makefile_check): Rename...
10283         (sc_makefile_at_at_check): ...to this, and use hook.
10284
10285         dup2: work around mingw bug
10286         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
10287         Reported by Simon Josefsson.
10288
10289 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
10290
10291         glob: Fix C++ compilation.
10292         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
10293         C++.
10294
10295 2010-01-07  Bruno Haible  <bruno@clisp.org>
10296
10297         Fix indentation of wctype.in.h, broken since 2007-01-06.
10298         * lib/wctype.in.h: Fix indentation of preprocessor directives.
10299
10300 2010-01-07  Bruno Haible  <bruno@clisp.org>
10301
10302         mbslen: Avoid collision with system function.
10303         * lib/string.in.h [MirBSD]: Include <wchar.h>.
10304         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
10305         * m4/mbslen.m4: New file.
10306         * modules/mbslen (Files): Add it.
10307         (configure.ac): Invoke gl_MBSLEN.
10308         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
10309         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
10310         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
10311         via Ian Beckwith <ianb@erislabs.net>.
10312
10313 2010-01-07  Bruno Haible  <bruno@clisp.org>
10314
10315         dirent: Document the last fix.
10316         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
10317
10318 2010-01-07  Bruno Haible  <bruno@clisp.org>
10319
10320         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
10321         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
10322         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
10323         va_list are defined.
10324         * doc/posix-headers/stdio.texi: Document the bug of missing types.
10325         Reported by Eric Blake.
10326
10327 2010-01-07  Bruno Haible  <bruno@clisp.org>
10328
10329         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
10330         * modules/xlist (Depends-on): Add 'list',
10331         * modules/xoset (Depends-on): Add 'oset'.
10332         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
10333
10334 2010-01-07  Bruno Haible  <bruno@clisp.org>
10335
10336         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
10337         * doc/posix-functions/strncasecmp.texi: Likewise.
10338
10339 2010-01-07  Bruno Haible  <bruno@clisp.org>
10340
10341         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
10342
10343 2010-01-07  John W. Eaton  <jwe@octave.org>
10344
10345         wctype: allow C++ use
10346         * lib/wctype.in.h: Add extern "C" block for C++.
10347
10348 2010-01-06  Eric Blake  <ebb9@byu.net>
10349
10350         maint.mk: detect incorrect GFDL usage
10351         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
10352
10353 2010-01-06  Jim Meyering  <meyering@redhat.com>
10354         and Eric Blake  <ebb9@byu.net>
10355
10356         maint.mk: ignore multi-line copyright in NEWS
10357         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
10358
10359 2010-01-06  Eric Blake  <ebb9@byu.net>
10360
10361         select: add missing dependency
10362         * modules/select-tests (Depends-on): Move sockets dependency...
10363         * modules/select (Depends-on): ...here.
10364         Reported by Ian Beckwith.
10365
10366         doc: regenerate INSTALL
10367         * doc/INSTALL: Reflect recent autoconf update.
10368         * doc/INSTALL.ISO: Likewise.
10369         * doc/INSTALL.UTF-8: Likewise.
10370
10371         pread: fix compilation on glibc
10372         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
10373         Reported by Ralf Wildenhues.
10374
10375         dirent: fix test failure
10376         * lib/dirent.in.h (includes): Guarantee ino_t.
10377         Reported by Ralf Wildenhues.
10378
10379 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
10380
10381         linkat, renameat: avoid bad free
10382         * lib/at-func2.c (at_func2): Fix typo.
10383         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
10384
10385 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10386
10387         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
10388         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
10389         to avoid failure of symlink test later.
10390
10391 2010-01-06  Eric Blake  <ebb9@byu.net>
10392
10393         stdio, unistd: guarantee ssize_t
10394         * lib/unistd.in.h (includes): Ensure that types required by POSIX
10395         2008 are exposed when needed.
10396         * lib/stdio.in.h (includes): Likewise.
10397         Reported by Ralf Wildenhues.
10398
10399 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
10400
10401         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
10402         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
10403         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
10404
10405 2010-01-06  Jim Meyering  <meyering@redhat.com>
10406
10407         readtokens: this module *does* require xalloc.h
10408         It uses only functions that were omitted by the old syntax-check rule.
10409         * lib/readtokens.c: Include "xalloc.h" once again.
10410         * modules/readtokens (Depends-on): Add xalloc.
10411         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
10412
10413 2010-01-05  Eric Blake  <ebb9@byu.net>
10414
10415         maint: support 'make announcement' from a VPATH build
10416         * top/maint.mk (announcement): Look for correct NEWS file.
10417
10418 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
10419
10420         utimens (fdutimens): ignore a negative FD, per contract
10421         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
10422         when we have a valid file descriptor.  Otherwise, using a brand
10423         new glibc (with just-patched futimens that now fails with EBADF)
10424         would cause this function to fail with ENOSYS.
10425         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
10426         See also http://bugzilla.redhat.com/552320.
10427
10428 2010-01-05  Eric Blake  <ebb9@byu.net>
10429
10430         strcase: document what it provides
10431         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
10432         gnulib module.
10433         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
10434         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
10435
10436 2010-01-05  Jim Meyering  <meyering@redhat.com>
10437
10438         maint: remove useless inclusions of "xalloc.h"
10439         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
10440         * lib/readtokens.c: Likewise.
10441         * lib/same.c: Likewise.
10442         * modules/getloadavg (Depends-on): Remove xalloc.
10443         * modules/readtokens: Likewise.
10444         * modules/same: Likewise.
10445
10446         maint.mk: include 4 more function names in alloca.h-checking regexp
10447         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
10448         regexp.  Before, we would give a false-positive (saying alloca.h
10449         is included unnecessarily) when the only uses involved omitted symbols.
10450
10451         xalloc.h: use consistent formatting
10452         * lib/xalloc.h: Move declarations to start in the first column.
10453
10454 2010-01-05  Eric Blake  <ebb9@byu.net>
10455
10456         mkdir: avoid xalloc
10457         * lib/mkdir.c (includes): Drop unused header.
10458         Reported by John W. Eaton.
10459
10460 2010-01-04  Jim Meyering  <meyering@redhat.com>
10461
10462         nl_langinfo: avoid configure-time syntax error
10463         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
10464         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
10465         the empty string.  Don't let that provoke a shell syntax error.
10466
10467         regcomp, regexec, fnmatch: avoid array bounds read error
10468         * lib/regcomp.c (build_equiv_class): From glibc:
10469         Use only the low 24 bits of a findidx return value as an index
10470         into the weights array.  Patch by Ulrich Drepper:
10471         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
10472         * lib/regexec.c (check_node_accept_bytes): Likewise.
10473         * lib/fnmatch_loop.c (FCT): Likewise.
10474
10475         regcomp: skip collseq lookup when there are no rules
10476         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
10477         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
10478
10479         regcomp: recognize ill-formed { } expressions
10480         * lib/regcomp.c (parse_dup_op): From glibc:
10481         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
10482
10483         regcomp: fix typo in comment
10484         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
10485         s/satisfy/satisfies/.
10486
10487         regcomp: sync from glibc: remove dead store
10488         * lib/regcomp.c (duplicate_node_closure): Remove useless
10489         search_duplicated_node call and dead store.
10490
10491         regcomp: sync from glibc; always use nl_langinfo
10492         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
10493         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
10494         * modules/regex (Depends-on): Add nl_langinfo.
10495
10496 2010-01-04  Eric Blake  <ebb9@byu.net>
10497
10498         fdopendir: fix configure test
10499         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
10500
10501 2010-01-01  Bruno Haible  <bruno@clisp.org>
10502
10503         wchar: Remove unused configure check.
10504         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
10505
10506 2010-01-01  Eric Blake  <ebb9@byu.net>
10507
10508         headers: make check of system header explicit
10509         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
10510         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
10511         ourselves.
10512         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
10513         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
10514         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
10515         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
10516         internals.
10517         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
10518         missing.
10519         Suggested by Bruno Haible.
10520
10521 2010-01-01  Jim Meyering  <meyering@redhat.com>
10522
10523         ChangeLog: tweak to eliminate unnecessary copyright line
10524         * ChangeLog: Remove a copyright line that was mistakenly updated
10525         by today's update-copyright run.  Reported by Eric Blake.
10526
10527         test-update-copyright: don't let envvar setting cause test failure
10528         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
10529
10530 2010-01-01  Bruno Haible  <bruno@clisp.org>
10531
10532         localename: Avoid gcc warning.
10533         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
10534         function if it is not used.
10535
10536 2010-01-01  Jim Meyering  <meyering@redhat.com>
10537
10538         update nearly all FSF copyright year lists to include 2010
10539         Use the same procedure as for 2009, outlined in
10540         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
10541
10542         version-etc: set COPYRIGHT_YEAR to 2010
10543         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
10544
10545 2009-12-31  Eric Blake  <ebb9@byu.net>
10546
10547         doc: correct availability of cygwin 1.5.x getopt
10548         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
10549         variables.
10550         * doc/posix-functions/opterr.texi (opterr): Likewise.
10551         * doc/posix-functions/optind.texi (optind): Likewise.
10552         * doc/posix-functions/optopt.texi (optopt): Likewise.
10553         * doc/posix-functions/tzname.texi (tzname): Likewise.
10554
10555         openat: update maintainer
10556         * modules/openat (Maintainer): Add myself.
10557
10558         utimens: avoid shadowing warning
10559         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
10560         buffers into one, to avoid shadowing, as well as avoiding a
10561         redundant stat.
10562         Reported by Jim Meyering.
10563
10564         test-dup2: avoid compiler warning
10565         * tests/test-dup2.c (is_inheritable): Only define if used.
10566
10567 2010-01-01  Bruno Haible  <bruno@clisp.org>
10568
10569         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
10570         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
10571         defined, use wctomb instead of wcrtomb.
10572
10573 2010-01-01  Bruno Haible  <bruno@clisp.org>
10574
10575         iconv: Reject native Solaris iconv.
10576         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
10577         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
10578
10579 2009-12-31  Bruno Haible  <bruno@clisp.org>
10580
10581         * tests/test-signal.c (main): Remove test of 'SIG'.
10582
10583 2009-12-31  Bruno Haible  <bruno@clisp.org>
10584
10585         spawn: Fix incomplete fix.
10586         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
10587         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
10588         warnings for GNULIB_POSIXCHECK again.
10589         Reported by Eric Blake.
10590
10591 2009-12-31  Bruno Haible  <bruno@clisp.org>
10592
10593         Avoid namespace pollution on glibc systems.
10594         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
10595         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
10596         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
10597         glibc systems.
10598
10599 2009-12-31  Bruno Haible  <bruno@clisp.org>
10600
10601         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
10602         (gl_REPLACE_WCHAR_H): Turn into a no-op.
10603         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
10604         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
10605         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
10606         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
10607         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
10608
10609 2009-12-31  Bruno Haible  <bruno@clisp.org>
10610
10611         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
10612         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
10613         afterwards.
10614
10615 2009-12-31  Bruno Haible  <bruno@clisp.org>
10616
10617         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
10618         SYS_UTSNAME_H.
10619
10620 2009-12-31  Bruno Haible  <bruno@clisp.org>
10621
10622         spawn: Fix misapplied patch.
10623         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
10624         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
10625         warnings for GNULIB_POSIXCHECK.
10626
10627 2009-12-31  Bruno Haible  <bruno@clisp.org>
10628
10629         times: Update after sys_times changed.
10630         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
10631         * modules/times (Files): Add it.
10632         (configure.ac): Invoke gl_FUNC_TIMES.
10633
10634 2009-12-31  Bruno Haible  <bruno@clisp.org>
10635
10636         Use AC_C_INLINE where necessary.
10637         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
10638         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
10639         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
10640         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
10641         * m4/mbfile.m4 (gl_MBFILE): Likewise.
10642         * m4/mbiter.m4 (gl_MBITER): Likewise.
10643         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
10644         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
10645         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
10646         * modules/u64 (configure.ac): Likewise.
10647
10648 2009-12-31  Bruno Haible  <bruno@clisp.org>
10649
10650         Use AC_C_INLINE instead of module 'inline' where possible.
10651         * modules/inline (Description): Clarify purpose.
10652         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
10653         * modules/count-one-bits (Depends-on): Remove inline.
10654         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
10655         * modules/openat (Depends-on): Remove inline.
10656         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
10657         instead of depending on module 'inline'.
10658         * modules/filevercmp (Depends-on, configure.ac): Likewise.
10659         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
10660         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
10661         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
10662         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
10663         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
10664         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
10665         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
10666         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
10667         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
10668         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
10669         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
10670         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
10671         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
10672         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
10673         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
10674         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
10675         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
10676         Likewise.
10677         * modules/unictype/property-ascii-hex-digit (Depends-on,
10678         configure.ac): Likewise.
10679         * modules/unictype/property-bidi-arabic-digit (Depends-on,
10680         configure.ac): Likewise.
10681         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
10682         configure.ac): Likewise.
10683         * modules/unictype/property-bidi-block-separator (Depends-on,
10684         configure.ac): Likewise.
10685         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
10686         configure.ac): Likewise.
10687         * modules/unictype/property-bidi-common-separator (Depends-on,
10688         configure.ac): Likewise.
10689         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
10690         Likewise.
10691         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
10692         configure.ac): Likewise.
10693         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
10694         configure.ac): Likewise.
10695         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
10696         configure.ac): Likewise.
10697         * modules/unictype/property-bidi-european-digit (Depends-on,
10698         configure.ac): Likewise.
10699         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
10700         configure.ac): Likewise.
10701         * modules/unictype/property-bidi-left-to-right (Depends-on,
10702         configure.ac): Likewise.
10703         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
10704         configure.ac): Likewise.
10705         * modules/unictype/property-bidi-other-neutral (Depends-on,
10706         configure.ac): Likewise.
10707         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
10708         Likewise.
10709         * modules/unictype/property-bidi-segment-separator (Depends-on,
10710         configure.ac): Likewise.
10711         * modules/unictype/property-bidi-whitespace (Depends-on,
10712         configure.ac): Likewise.
10713         * modules/unictype/property-combining (Depends-on, configure.ac):
10714         Likewise.
10715         * modules/unictype/property-composite (Depends-on, configure.ac):
10716         Likewise.
10717         * modules/unictype/property-currency-symbol (Depends-on,
10718         configure.ac): Likewise.
10719         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
10720         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
10721         Likewise.
10722         * modules/unictype/property-default-ignorable-code-point (Depends-on,
10723         configure.ac): Likewise.
10724         * modules/unictype/property-deprecated (Depends-on, configure.ac):
10725         Likewise.
10726         * modules/unictype/property-diacritic (Depends-on, configure.ac):
10727         Likewise.
10728         * modules/unictype/property-extender (Depends-on, configure.ac):
10729         Likewise.
10730         * modules/unictype/property-format-control (Depends-on, configure.ac):
10731         Likewise.
10732         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
10733         Likewise.
10734         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
10735         Likewise.
10736         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
10737         Likewise.
10738         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
10739         Likewise.
10740         * modules/unictype/property-hyphen (Depends-on, configure.ac):
10741         Likewise.
10742         * modules/unictype/property-id-continue (Depends-on, configure.ac):
10743         Likewise.
10744         * modules/unictype/property-id-start (Depends-on, configure.ac):
10745         Likewise.
10746         * modules/unictype/property-ideographic (Depends-on, configure.ac):
10747         Likewise.
10748         * modules/unictype/property-ids-binary-operator (Depends-on,
10749         configure.ac): Likewise.
10750         * modules/unictype/property-ids-trinary-operator (Depends-on,
10751         configure.ac): Likewise.
10752         * modules/unictype/property-ignorable-control (Depends-on,
10753         configure.ac): Likewise.
10754         * modules/unictype/property-iso-control (Depends-on, configure.ac):
10755         Likewise.
10756         * modules/unictype/property-join-control (Depends-on, configure.ac):
10757         Likewise.
10758         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
10759         Likewise.
10760         * modules/unictype/property-line-separator (Depends-on, configure.ac):
10761         Likewise.
10762         * modules/unictype/property-logical-order-exception (Depends-on,
10763         configure.ac): Likewise.
10764         * modules/unictype/property-lowercase (Depends-on, configure.ac):
10765         Likewise.
10766         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
10767         * modules/unictype/property-non-break (Depends-on, configure.ac):
10768         Likewise.
10769         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
10770         Likewise.
10771         * modules/unictype/property-numeric (Depends-on, configure.ac):
10772         Likewise.
10773         * modules/unictype/property-other-alphabetic (Depends-on,
10774         configure.ac): Likewise.
10775         * modules/unictype/property-other-default-ignorable-code-point
10776         (Depends-on, configure.ac): Likewise.
10777         * modules/unictype/property-other-grapheme-extend (Depends-on,
10778         configure.ac): Likewise.
10779         * modules/unictype/property-other-id-continue (Depends-on,
10780         configure.ac): Likewise.
10781         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
10782         Likewise.
10783         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
10784         Likewise.
10785         * modules/unictype/property-other-math (Depends-on, configure.ac):
10786         Likewise.
10787         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
10788         Likewise.
10789         * modules/unictype/property-paired-punctuation (Depends-on,
10790         configure.ac): Likewise.
10791         * modules/unictype/property-paragraph-separator (Depends-on,
10792         configure.ac): Likewise.
10793         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
10794         Likewise.
10795         * modules/unictype/property-pattern-white-space (Depends-on,
10796         configure.ac): Likewise.
10797         * modules/unictype/property-private-use (Depends-on, configure.ac):
10798         Likewise.
10799         * modules/unictype/property-punctuation (Depends-on, configure.ac):
10800         Likewise.
10801         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
10802         Likewise.
10803         * modules/unictype/property-radical (Depends-on, configure.ac):
10804         Likewise.
10805         * modules/unictype/property-sentence-terminal (Depends-on,
10806         configure.ac): Likewise.
10807         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
10808         Likewise.
10809         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
10810         * modules/unictype/property-terminal-punctuation (Depends-on,
10811         configure.ac): Likewise.
10812         * modules/unictype/property-titlecase (Depends-on, configure.ac):
10813         Likewise.
10814         * modules/unictype/property-unassigned-code-value (Depends-on,
10815         configure.ac): Likewise.
10816         * modules/unictype/property-unified-ideograph (Depends-on,
10817         configure.ac): Likewise.
10818         * modules/unictype/property-uppercase (Depends-on, configure.ac):
10819         Likewise.
10820         * modules/unictype/property-variation-selector (Depends-on,
10821         configure.ac): Likewise.
10822         * modules/unictype/property-white-space (Depends-on, configure.ac):
10823         Likewise.
10824         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
10825         Likewise.
10826         * modules/unictype/property-xid-start (Depends-on, configure.ac):
10827         Likewise.
10828         * modules/unictype/property-zero-width (Depends-on, configure.ac):
10829         Likewise.
10830         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
10831         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
10832         Likewise.
10833
10834 2009-12-31  Bruno Haible  <bruno@clisp.org>
10835
10836         Remove unnecessary AC_C_INLINE invocation.
10837         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
10838         since 2009-08-21.
10839
10840 2009-12-31  Jim Meyering  <meyering@redhat.com>
10841
10842         maint.mk: don't require explicit gpg_key_ID in cfg.mk
10843         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
10844         With this change, we can all remove the gpg_key_ID = ... definition
10845         from our respective cfg.mk files.
10846
10847         maint.mk: create announcement template in ~/, not in /tmp
10848         * top/maint.mk (emit_upload_commands): Adjust.
10849         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
10850         Remove temporary file, .ci-msg.
10851
10852 2009-12-31  Eric Blake  <ebb9@byu.net>
10853
10854         link-warning: always build headers with link warnings
10855         * modules/arpa_inet (Makefile.am): Always build replacement
10856         header.
10857         * modules/ctype (Makefile.am): Likewise.
10858         * modules/dirent (Makefile.am): Likewise.
10859         * modules/inttypes (Makefile.am): Likewise.
10860         * modules/langinfo (Makefile.am): Likewise.
10861         * modules/locale (Makefile.am): Likewise.
10862         * modules/spawn (Makefile.am): Likewise.
10863         * modules/sys_file (Makefile.am): Likewise.
10864         * modules/sys_ioctl (Makefile.am): Likewise.
10865         * modules/sys_select (Makefile.am): Likewise.
10866         * modules/sys_socket (Makefile.am): Likewise.
10867         * modules/sys_times (Makefile.am): Likewise.
10868         * modules/sys_utsname (Makefile.am): Likewise.
10869         * modules/sys_wait (Makefile.am): Likewise.
10870         * modules/wchar (Makefile.am): Likewise.
10871         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
10872         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
10873         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
10874         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
10875         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
10876         Likewise.
10877         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
10878         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
10879         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
10880         Likewise.
10881         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
10882         Likewise.
10883         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
10884         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
10885         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
10886         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
10887         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
10888         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
10889         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
10890         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
10891         (gl_WCHAR_H_DEFAULTS): Likewise.
10892
10893 2009-12-31  Eric Blake  <ebb9@byu.net>
10894
10895         signal, spawn: use link warnings
10896         * lib/signal.in.h (sigset_t): Make unconditional.
10897         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
10898         (sigpending, sigprocmask, sigaction): Add link warnings.
10899         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
10900         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
10901         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
10902         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
10903         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
10904         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
10905         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
10906         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
10907         (posix_spawn_file_actions_destroy)
10908         (posix_spawn_file_actions_addopen)
10909         (posix_spawn_file_actions_addclose)
10910         (posix_spawn_file_actions_adddup2): Likewise.
10911         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
10912         * tests/test-signal.c (main): Enhance test.
10913
10914         spawn: improve wrapper support
10915         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
10916         (gl_SPAWN_H_DEFAULTS): New defaults.
10917         * modules/spawn (Makefile.am): Substitute them.
10918         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
10919         Only declare if missing or broken.
10920
10921         sys_times, sys_utsname: use include_next
10922         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
10923         header.
10924         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
10925         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
10926         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
10927         * modules/sys_times (Depends-on): Add include_next.
10928         (Makefile.am): Substitute additional values.
10929         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
10930         * lib/sys_times.in.h (includes): Include native header, if
10931         available.
10932         * lib/sys_utsname.in.h (includes): Likewise.
10933         * tests/test-sys_times.c (main): Enhance test.
10934
10935         fdutimensat: revert prior patch
10936         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
10937         utimens.h.
10938         Reported by Bruno Haible.
10939
10940 2009-12-30  Eric Blake  <ebb9@byu.net>
10941
10942         sys_wait: drop link-warning dependency
10943         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
10944         link-warning efforts.
10945         * lib/sys_wait.in.h: Likewise.
10946
10947         fdutimensat: remove bogus dependency
10948         * modules/fdutimensat (Depends-on): Drop inline.
10949
10950         unistd: fix typo
10951         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
10952
10953 2009-12-30  Bruno Haible  <bruno@clisp.org>
10954
10955         Fix compilation error with Solaris cc.
10956         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
10957         * lib/unicase/u16-is-invariant.c: Likewise.
10958         * lib/unicase/u32-is-invariant.c: Likewise.
10959         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
10960
10961 2009-12-30  Bruno Haible  <bruno@clisp.org>
10962
10963         Fix test crash.
10964         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
10965         locales.
10966         Reported by Simon Josefsson <simon@josefsson.org>.
10967
10968 2009-12-30  Bruno Haible  <bruno@clisp.org>
10969
10970         Fix compilation error on most platforms.
10971         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
10972         Reported by Simon Josefsson <simon@josefsson.org>
10973         and Nelson H. F. Beebe <beebe@math.utah.edu>.
10974
10975 2009-12-30  Eric Blake  <ebb9@byu.net>
10976
10977         futimens, utimensat: work around ntfs-3g bug
10978         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
10979         a ctime bug is present, and expand workaround to cover ntfs-3g.
10980         * lib/utimens.c (fdutimens, lutimens): Likewise.
10981         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
10982         (validate_timespec): Adjust return value.
10983         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
10984         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
10985         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
10986
10987 2009-12-29  Eric Blake  <ebb9@byu.net>
10988
10989         link-warning: make usage consistent
10990         * modules/ctype (Depends-on): Add link-warning.
10991         (Makefile.am): Update rules accordingly.
10992         * modules/langinfo (Depends-on, Makefile.am): Likewise.
10993         * modules/locale (Depends-on, Makefile.am): Likewise.
10994         * modules/sys_file (Makefile.am): Likewise.
10995         * modules/getopt-posix (Makefile.am): Delete unused link warning
10996         efforts.
10997         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
10998         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
10999         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
11000         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
11001
11002         stdio: remove unused variables
11003         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
11004         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
11005         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
11006
11007         tests: test more substitute headers
11008         * modules/ctype-tests: New file.
11009         * modules/dirent-tests: Likewise.
11010         * modules/spawn-tests: Likewise.
11011         * modules/sys_file-tests: Likewise.
11012         * modules/sys_ioctl-tests: Likewise.
11013         * modules/sys_wait-tests: Likewise.
11014         * tests/test-ctype.c: Likewise.
11015         * tests/test-dirent.c: Likewise.
11016         * tests/test-spawn.c: Likewise.
11017         * tests/test-sys_file.c: Likewise.
11018         * tests/test-sys_ioctl.c: Likewise.
11019         * tests/test-sys_wait.c: Likewise.
11020         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
11021         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
11022         whether or not flock is in use.
11023
11024         tests: remove License section from module
11025         * modules/arpa_inet-tests: Remove unneeded section.
11026         * modules/byteswap-tests: Likewise.
11027         * modules/ceilf-tests: Likewise.
11028         * modules/ceill-tests: Likewise.
11029         * modules/crypto/des-tests: Likewise.
11030         * modules/crypto/gc-arcfour-tests: Likewise.
11031         * modules/crypto/gc-arctwo-tests: Likewise.
11032         * modules/crypto/gc-des-tests: Likewise.
11033         * modules/crypto/gc-hmac-md5-tests: Likewise.
11034         * modules/crypto/gc-hmac-sha1-tests: Likewise.
11035         * modules/crypto/gc-md2-tests: Likewise.
11036         * modules/crypto/gc-md4-tests: Likewise.
11037         * modules/crypto/gc-md5-tests: Likewise.
11038         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
11039         * modules/crypto/gc-rijndael-tests: Likewise.
11040         * modules/crypto/gc-sha1-tests: Likewise.
11041         * modules/crypto/gc-tests: Likewise.
11042         * modules/crypto/md2-tests: Likewise.
11043         * modules/crypto/md4-tests: Likewise.
11044         * modules/fcntl-h-tests: Likewise.
11045         * modules/floorf-tests: Likewise.
11046         * modules/floorl-tests: Likewise.
11047         * modules/frexp-nolibm-tests: Likewise.
11048         * modules/frexp-tests: Likewise.
11049         * modules/frexpl-nolibm-tests: Likewise.
11050         * modules/frexpl-tests: Likewise.
11051         * modules/getaddrinfo-tests: Likewise.
11052         * modules/inttypes-tests: Likewise.
11053         * modules/isfinite-tests: Likewise.
11054         * modules/isinf-tests: Likewise.
11055         * modules/ldexpl-tests: Likewise.
11056         * modules/locale-tests: Likewise.
11057         * modules/math-tests: Likewise.
11058         * modules/netdb-tests: Likewise.
11059         * modules/netinet_in-tests: Likewise.
11060         * modules/printf-frexp-tests: Likewise.
11061         * modules/printf-frexpl-tests: Likewise.
11062         * modules/priv-set-tests: Likewise.
11063         * modules/random_r-tests: Likewise.
11064         * modules/round-tests: Likewise.
11065         * modules/roundf-tests: Likewise.
11066         * modules/roundl-tests: Likewise.
11067         * modules/search-tests: Likewise.
11068         * modules/select-tests: Likewise.
11069         * modules/signal-tests: Likewise.
11070         * modules/stdbool-tests: Likewise.
11071         * modules/stddef-tests: Likewise.
11072         * modules/stdint-tests: Likewise.
11073         * modules/stdio-tests: Likewise.
11074         * modules/stdlib-tests: Likewise.
11075         * modules/string-tests: Likewise.
11076         * modules/strings-tests: Likewise.
11077         * modules/sys_select-tests: Likewise.
11078         * modules/sys_socket-tests: Likewise.
11079         * modules/sys_stat-tests: Likewise.
11080         * modules/sys_time-tests: Likewise.
11081         * modules/sys_utsname-tests: Likewise.
11082         * modules/sysexits-tests: Likewise.
11083         * modules/time-tests: Likewise.
11084         * modules/trunc-tests: Likewise.
11085         * modules/truncf-tests: Likewise.
11086         * modules/truncl-tests: Likewise.
11087         * modules/tsearch-tests: Likewise.
11088         * modules/unistd-tests: Likewise.
11089         * modules/wchar-tests: Likewise.
11090         * modules/wctype-tests: Likewise.
11091
11092         tests: fix license on several tests
11093         * tests/test-des.c: Update to GPLv3+.
11094         * tests/test-flock.c: Likewise.
11095         * tests/test-fsync.c: Likewise.
11096         * tests/test-futimens.h: Likewise.
11097         * tests/test-gc-arcfour.c: Likewise.
11098         * tests/test-gc-arctwo.c: Likewise.
11099         * tests/test-gc-des.c: Likewise.
11100         * tests/test-gc-hmac-md5.c: Likewise.
11101         * tests/test-gc-hmac-sha1.c: Likewise.
11102         * tests/test-gc-md2.c: Likewise.
11103         * tests/test-gc-md4.c: Likewise.
11104         * tests/test-gc-md5.c: Likewise.
11105         * tests/test-gc-pbkdf2-sha1.c: Likewise.
11106         * tests/test-gc-rijndael.c: Likewise.
11107         * tests/test-gc-sha1.c: Likewise.
11108         * tests/test-gc.c: Likewise.
11109         * tests/test-getcwd.c: Likewise.
11110         * tests/test-link.c: Likewise.
11111         * tests/test-link.h: Likewise.
11112         * tests/test-lutimens.h: Likewise.
11113         * tests/test-md2.c: Likewise.
11114         * tests/test-md4.c: Likewise.
11115         * tests/test-mkdir.h: Likewise.
11116         * tests/test-rename.c: Likewise.
11117         * tests/test-rename.h: Likewise.
11118         * tests/test-safe-alloc.c: Likewise.
11119         * tests/test-utimens-common.h: Likewise.
11120         * tests/test-utimens.h: Likewise.
11121
11122         maint: sync license texts
11123         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
11124         * doc/gpl-3.0.texi: Revert copyright year update.
11125         * doc/lgpl-3.0.texi: Likewise.
11126
11127 2009-12-29  Jim Meyering  <meyering@redhat.com>
11128
11129         update nearly all FSF copyright year lists to include 2009
11130         The files named by the following are exempted:
11131             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
11132               test -f "$dst" && { echo "$dst"; continue; }
11133               test -d "$dst" || continue
11134               echo "$dst"/$(basename "$src")
11135             done > exempt
11136             git ls-files tests/unictype >> exempt
11137         In the remaining files, convert to all-interval notation if
11138         - there is already at least one year interval like 2000-2003
11139         - the file is maintained by me
11140         - the file is in lib/uni*/, where that style already prevails
11141         Otherwise, use update-copyright's default.
11142
11143 2009-12-29  Simon Josefsson  <simon@josefsson.org>
11144         and Eric Blake  <ebb9@byu.net>
11145
11146         tests: don't require debug system() to pass
11147         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
11148         * tests/test-rmdir.h (test_rmdir_func): Likewise.
11149         * tests/test-unlink.h (test_unlink_func): Likewise.
11150         * tests/test-fstatat.c (main): ...into callers.
11151         * tests/test-lstat.c (main): Likewise.
11152         * tests/test-rmdir.c (main): Likewise.
11153         * tests/test-unlink.c (main): Likewise.
11154         * tests/test-unlinkat.c (main): Likewise.
11155         * tests/test-areadlink-with-size.c (main): Don't require a
11156         debug-only system call to pass, aiding cross-testing to mingw.
11157         * tests/test-areadlink.c (main): Likewise.
11158         * tests/test-areadlinkat-with-size.c (main): Likewise.
11159         * tests/test-areadlinkat.c (main): Likewise.
11160         * tests/test-canonicalize-lgpl.c (main): Likewise.
11161         * tests/test-canonicalize.c (main): Likewise.
11162         * tests/test-chown.c (main): Likewise.
11163         * tests/test-fchownat.c (main): Likewise.
11164         * tests/test-lchown.c (main): Likewise.
11165         * tests/test-fdutimensat.c (main): Likewise.
11166         * tests/test-futimens.c (main): Likewise.
11167         * tests/test-link.c (main): Likewise.
11168         * tests/test-linkat.c (main): Likewise.
11169         * tests/test-mkdir.c (main): Likewise.
11170         * tests/test-mkdirat.c (main): Likewise.
11171         * tests/test-mkfifo.c (main): Likewise.
11172         * tests/test-mkfifoat.c (main): Likewise.
11173         * tests/test-mknod.c (main): Likewise.
11174         * tests/test-readlink.c (main): Likewise.
11175         * tests/test-remove.c (main): Likewise.
11176         * tests/test-rename.c (main): Likewise.
11177         * tests/test-renameat.c (main): Likewise.
11178         * tests/test-symlink.c (main): Likewise.
11179         * tests/test-symlinkat.c (main): Likewise.
11180         * tests/test-utimens.c (main): Likewise.
11181         * tests/test-utimensat.c (main): Likewise.
11182
11183 2009-12-29  Simon Josefsson  <simon@josefsson.org>
11184
11185         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
11186         on $(UNUSED_PARAMETER_H) to avoid build failure.
11187
11188 2009-12-28  Jim Meyering  <meyering@redhat.com>
11189
11190         update-copyright: you may specify a max. line length other than 72
11191         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
11192
11193         maint: use consistent FSF copyright line syntax
11194         * lib/posixtm.c: Add missing comma in FSF copyright line.
11195         * lib/posixtm.h: Likewise.
11196         * lib/getugroups.c: Add missing ", Inc.".
11197
11198         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
11199         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
11200         FSF copyright line.  Remove trailing blanks.
11201
11202 2009-12-28  Eric Blake  <ebb9@byu.net>
11203
11204         test-dup2: reduce dependencies
11205         * modules/cloexec (Configure.ac): Set witness.
11206         * modules/dup2-tests (Depends-on): Drop cloexec.
11207         * tests/test-dup2.c (main): Skip portion of test if cloexec module
11208         not present.
11209         Suggested by Bruno Haible.
11210
11211 2009-12-26  Bruno Haible  <bruno@clisp.org>
11212
11213         Remove an unneeded dependency.
11214         * modules/fseterr (Depends-on): Remove dup2.
11215
11216 2009-12-26  Eric Blake  <ebb9@byu.net>
11217
11218         tests: use macros.h in more places
11219         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
11220         (ASSERT_STREAM): Provide default of stderr.
11221         * tests/test-dirent-safer.c: Include macros.h, using alternate
11222         stream for assertions.
11223         * tests/test-dup-safer.c: Likewise.
11224         * tests/test-freopen-safer.c: Likewise.
11225         * tests/test-getopt.c: Likewise.
11226         * tests/test-openat-safer.c: Likewise.
11227         * tests/test-pipe.c: Likewise.
11228         * tests/test-popen-safer.c: Likewise.
11229         * modules/dirent-safer-tests (Files): Include macros.h.
11230         * modules/unistd-safer-tests (Files): Likewise.
11231         * modules/freopen-safer-tests (Files): Likewise.
11232         * modules/getopt-posix-tests (Files): Likewise.
11233         * modules/openat-safer-tests (Files): Likewise.
11234         * modules/pipe-tests (Files): Likewise.
11235
11236 2009-12-26  Bruno Haible  <bruno@clisp.org>
11237
11238         javacomp: Portability fix.
11239         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
11240         that it also works on Solaris.
11241
11242 2009-12-26  Bruno Haible  <bruno@clisp.org>
11243
11244         localename: Fix storage allocation of gl_locale_name_thread's result.
11245         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
11246         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
11247         all platforms that have 'uselocale'.
11248         (gl_locale_name_thread_unsafe): New function, extracted from
11249         gl_locale_name_thread.
11250         (gl_locale_name_thread): Call struniq on all platforms that have
11251         'uselocale'.
11252         * tests/test-localename.c (test_locale_name_thread): Check that the
11253         resulting strings are permanently allocated.
11254         * modules/localename-tests (Depends-on): Add strdup.
11255
11256 2009-12-26  Bruno Haible  <bruno@clisp.org>
11257
11258         * tests/test-localename.c (categories): Fill in the strings.
11259
11260 2009-12-26  Jim Meyering  <meyering@redhat.com>
11261
11262         isdir: complete the removal of m4/isdir.m4
11263         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
11264
11265         isdir: clean up, since at least grep still uses it
11266         * lib/isdir.c: Include "isdir.h".
11267         (S_ISDIR): Remove now-unneeded definition.
11268         * modules/isdir (Files): Add lib/isdir.h.
11269         * lib/isdir.h: New file, with declaration.
11270         * m4/isdir.m4: Remove file -- unneeded.
11271
11272 2009-12-25  Bruno Haible  <bruno@clisp.org>
11273
11274         selinux-h: Make generated .h files standalone.
11275         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
11276         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
11277         * lib/se-selinux.in.h: Likewise.
11278         * modules/selinux-h (Depends-on): Add unused-parameter.
11279         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
11280         selinux/selinux.h and selinux/context.h.
11281         Suggested by Eric Blake.
11282
11283 2009-12-25  Bruno Haible  <bruno@clisp.org>
11284
11285         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
11286         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
11287         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
11288         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
11289         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
11290
11291 2009-12-24  Bruno Haible  <bruno@clisp.org>
11292
11293         openat: Fix warning.
11294         * lib/openat-proc.c: Include <unistd.h>.
11295
11296 2009-12-24  Bruno Haible  <bruno@clisp.org>
11297
11298         New module 'unused-parameter'.
11299         * build-aux/unused-parameter.h: New file, extracted from earlier
11300         gnulib-common.m4.
11301         * modules/unused-parameter: New file.
11302         * lib/unistr.h: Include unused-parameter.h.
11303         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
11304         _GL_UNUSED.
11305         * modules/unistr/base (Depends-on): Add unused-parameter.
11306
11307 2009-12-24  Bruno Haible  <bruno@clisp.org>
11308
11309         Add missing dependencies to 'extensions' module.
11310         * m4/extensions.m4: Add comment.
11311         * modules/accept4 (Depends-on): Add extensions.
11312         * modules/dup3 (Depends-on): Likewise.
11313         * modules/fcntl (Depends-on): Likewise.
11314         * modules/futimens (Depends-on): Likewise.
11315         * modules/mknod (Depends-on): Likewise.
11316         * modules/pipe2 (Depends-on): Likewise.
11317         * modules/stat-time (Depends-on): Likewise.
11318         * modules/strcasestr-simple (Depends-on): Likewise.
11319         * modules/strsignal (Depends-on): Likewise.
11320         * modules/utimensat (Depends-on): Likewise.
11321         * modules/localcharset (Depends-on): Likewise. Needed because of
11322         gl_FCNTL_O_FLAGS.
11323         * modules/wcrtomb (Depends-on): Likewise. Needed because of
11324         AC_TYPE_MBSTATE_T.
11325         * modules/wcsnrtombs (Depends-on): Likewise.
11326         * modules/wcsrtombs (Depends-on): Likewise.
11327
11328 2009-12-24  Bruno Haible  <bruno@clisp.org>
11329
11330         binary-io: Avoid gcc warning due to SET_BINARY.
11331         * lib/binary-io.h (SET_BINARY): Cast the result to void.
11332         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
11333
11334 2009-12-24  Bruno Haible  <bruno@clisp.org>
11335
11336         Avoid future namespace pollution on glibc systems.
11337         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
11338         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
11339         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
11340         glibc systems.
11341
11342 2009-12-24  Bruno Haible  <bruno@clisp.org>
11343
11344         Refactor common macros used in tests.
11345         * tests/macros.h: New file.
11346         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
11347         and/or <stdlib.h>, if appropriate.
11348         (ASSERT, SIZEOF): Remove macros.
11349         * tests/test-areadlink-with-size.c: Likewise.
11350         * tests/test-areadlinkat.c: Likewise.
11351         * tests/test-areadlinkat-with-size.c: Likewise.
11352         * tests/test-argmatch.c: Likewise.
11353         * tests/test-argv-iter.c: Likewise.
11354         * tests/test-array-mergesort.c: Likewise.
11355         * tests/test-array_list.c: Likewise.
11356         * tests/test-array_oset.c: Likewise.
11357         * tests/test-avltree_list.c: Likewise.
11358         * tests/test-avltree_oset.c: Likewise.
11359         * tests/test-avltreehash_list.c: Likewise.
11360         * tests/test-base64.c: Likewise.
11361         * tests/test-binary-io.c: Likewise.
11362         * tests/test-bitrotate.c: Likewise.
11363         * tests/test-btowc.c: Likewise.
11364         * tests/test-byteswap.c: Likewise.
11365         * tests/test-c-ctype.c: Likewise.
11366         * tests/test-c-stack.c: Likewise.
11367         * tests/test-c-strcasecmp.c: Likewise.
11368         * tests/test-c-strcasestr.c: Likewise.
11369         * tests/test-c-strncasecmp.c: Likewise.
11370         * tests/test-c-strstr.c: Likewise.
11371         * tests/test-canonicalize-lgpl.c: Likewise.
11372         * tests/test-canonicalize.c: Likewise.
11373         * tests/test-carray_list.c: Likewise.
11374         * tests/test-ceilf1.c: Likewise.
11375         * tests/test-ceilf2.c: Likewise.
11376         * tests/test-ceill.c: Likewise.
11377         * tests/test-chown.c: Likewise.
11378         * tests/test-cloexec.c: Likewise.
11379         * tests/test-copy-acl.c: Likewise.
11380         * tests/test-copy-file.c: Likewise.
11381         * tests/test-count-one-bits.c: Likewise.
11382         * tests/test-dprintf-posix.c: Likewise.
11383         * tests/test-dup2.c: Likewise.
11384         * tests/test-dup3.c: Likewise.
11385         * tests/test-duplocale.c: Likewise.
11386         * tests/test-fbufmode.c: Likewise.
11387         * tests/test-fchdir.c: Likewise.
11388         * tests/test-fchownat.c: Likewise.
11389         * tests/test-fcntl-safer.c: Likewise.
11390         * tests/test-fcntl.c: Likewise.
11391         * tests/test-fdopendir.c: Likewise.
11392         * tests/test-fdutimensat.c: Likewise.
11393         * tests/test-fflush2.c: Likewise.
11394         * tests/test-file-has-acl.c: Likewise.
11395         * tests/test-filevercmp.c: Likewise.
11396         * tests/test-flock.c: Likewise.
11397         * tests/test-floorf1.c: Likewise.
11398         * tests/test-floorf2.c: Likewise.
11399         * tests/test-floorl.c: Likewise.
11400         * tests/test-fnmatch.c: Likewise.
11401         * tests/test-fopen.h: Likewise.
11402         * tests/test-fpending.c: Likewise.
11403         * tests/test-fprintf-posix.c: Likewise.
11404         * tests/test-fpurge.c: Likewise.
11405         * tests/test-freadable.c: Likewise.
11406         * tests/test-freadahead.c: Likewise.
11407         * tests/test-freading.c: Likewise.
11408         * tests/test-freadptr.c: Likewise.
11409         * tests/test-freadptr2.c: Likewise.
11410         * tests/test-freadseek.c: Likewise.
11411         * tests/test-freopen.c: Likewise.
11412         * tests/test-frexp.c: Likewise.
11413         * tests/test-frexpl.c: Likewise.
11414         * tests/test-fseek.c: Likewise.
11415         * tests/test-fseeko.c: Likewise.
11416         * tests/test-fstatat.c: Likewise.
11417         * tests/test-fstrcmp.c: Likewise.
11418         * tests/test-fsync.c: Likewise.
11419         * tests/test-ftell.c: Likewise.
11420         * tests/test-ftello.c: Likewise.
11421         * tests/test-func.c: Likewise.
11422         * tests/test-futimens.c: Likewise.
11423         * tests/test-fwritable.c: Likewise.
11424         * tests/test-fwriting.c: Likewise.
11425         * tests/test-getcwd.c: Likewise.
11426         * tests/test-getdate.c: Likewise.
11427         * tests/test-getdelim.c: Likewise.
11428         * tests/test-getdtablesize.c: Likewise.
11429         * tests/test-getgroups.c: Likewise.
11430         * tests/test-getline.c: Likewise.
11431         * tests/test-getndelim2.c: Likewise.
11432         * tests/test-glob.c: Likewise.
11433         * tests/test-hash.c: Likewise.
11434         * tests/test-i-ring.c: Likewise.
11435         * tests/test-iconv-utf.c: Likewise.
11436         * tests/test-iconv.c: Likewise.
11437         * tests/test-idpriv-drop.c: Likewise.
11438         * tests/test-idpriv-droptemp.c: Likewise.
11439         * tests/test-inet_ntop.c: Likewise.
11440         * tests/test-inet_pton.c: Likewise.
11441         * tests/test-isblank.c: Likewise.
11442         * tests/test-isfinite.c: Likewise.
11443         * tests/test-isinf.c: Likewise.
11444         * tests/test-isnan.c: Likewise.
11445         * tests/test-isnand.h: Likewise.
11446         * tests/test-isnanf.h: Likewise.
11447         * tests/test-isnanl.h: Likewise.
11448         * tests/test-lchown.c: Likewise.
11449         * tests/test-ldexpl.c: Likewise.
11450         * tests/test-link.c: Likewise.
11451         * tests/test-linkat.c: Likewise.
11452         * tests/test-linked_list.c: Likewise.
11453         * tests/test-linkedhash_list.c: Likewise.
11454         * tests/test-localename.c: Likewise.
11455         * tests/test-lseek.c: Likewise.
11456         * tests/test-lstat.c: Likewise.
11457         * tests/test-mbmemcasecmp.c: Likewise.
11458         * tests/test-mbmemcasecoll.c: Likewise.
11459         * tests/test-mbrtowc.c: Likewise.
11460         * tests/test-mbscasecmp.c: Likewise.
11461         * tests/test-mbscasestr1.c: Likewise.
11462         * tests/test-mbscasestr2.c: Likewise.
11463         * tests/test-mbscasestr3.c: Likewise.
11464         * tests/test-mbscasestr4.c: Likewise.
11465         * tests/test-mbschr.c: Likewise.
11466         * tests/test-mbscspn.c: Likewise.
11467         * tests/test-mbsinit.c: Likewise.
11468         * tests/test-mbsncasecmp.c: Likewise.
11469         * tests/test-mbsnrtowcs.c: Likewise.
11470         * tests/test-mbspbrk.c: Likewise.
11471         * tests/test-mbspcasecmp.c: Likewise.
11472         * tests/test-mbsrchr.c: Likewise.
11473         * tests/test-mbsrtowcs.c: Likewise.
11474         * tests/test-mbsspn.c: Likewise.
11475         * tests/test-mbsstr1.c: Likewise.
11476         * tests/test-mbsstr2.c: Likewise.
11477         * tests/test-mbsstr3.c: Likewise.
11478         * tests/test-memchr.c: Likewise.
11479         * tests/test-memchr2.c: Likewise.
11480         * tests/test-memcmp.c: Likewise.
11481         * tests/test-memmem.c: Likewise.
11482         * tests/test-memrchr.c: Likewise.
11483         * tests/test-mkdir.c: Likewise.
11484         * tests/test-mkdirat.c: Likewise.
11485         * tests/test-mkfifo.c: Likewise.
11486         * tests/test-mkfifoat.c: Likewise.
11487         * tests/test-mknod.c: Likewise.
11488         * tests/test-nanosleep.c: Likewise.
11489         * tests/test-nl_langinfo.c: Likewise.
11490         * tests/test-obstack-printf.c: Likewise.
11491         * tests/test-open.c: Likewise.
11492         * tests/test-openat.c: Likewise.
11493         * tests/test-pipe-filter-gi1.c: Likewise.
11494         * tests/test-pipe-filter-gi2-main.c: Likewise.
11495         * tests/test-pipe-filter-ii1.c: Likewise.
11496         * tests/test-pipe-filter-ii2-main.c: Likewise.
11497         * tests/test-pipe2.c: Likewise.
11498         * tests/test-popen.h: Likewise.
11499         * tests/test-posixtm.c: Likewise.
11500         * tests/test-pread.c: Likewise.
11501         * tests/test-printf-frexp.c: Likewise.
11502         * tests/test-printf-frexpl.c: Likewise.
11503         * tests/test-printf-posix.c: Likewise.
11504         * tests/test-priv-set.c: Likewise.
11505         * tests/test-quotearg.c: Likewise.
11506         * tests/test-random_r.c: Likewise.
11507         * tests/test-rawmemchr.c: Likewise.
11508         * tests/test-rbtree_list.c: Likewise.
11509         * tests/test-rbtree_oset.c: Likewise.
11510         * tests/test-rbtreehash_list.c: Likewise.
11511         * tests/test-readlink.c: Likewise.
11512         * tests/test-remove.c: Likewise.
11513         * tests/test-rename.c: Likewise.
11514         * tests/test-renameat.c: Likewise.
11515         * tests/test-rmdir.c: Likewise.
11516         * tests/test-round1.c: Likewise.
11517         * tests/test-roundf1.c: Likewise.
11518         * tests/test-roundl.c: Likewise.
11519         * tests/test-safe-alloc.c: Likewise.
11520         * tests/test-sameacls.c: Likewise.
11521         * tests/test-set-mode-acl.c: Likewise.
11522         * tests/test-setenv.c: Likewise.
11523         * tests/test-sigaction.c: Likewise.
11524         * tests/test-signbit.c: Likewise.
11525         * tests/test-sleep.c: Likewise.
11526         * tests/test-snprintf-posix.c: Likewise.
11527         * tests/test-snprintf.c: Likewise.
11528         * tests/test-sprintf-posix.c: Likewise.
11529         * tests/test-stat-time.c: Likewise.
11530         * tests/test-stat.c: Likewise.
11531         * tests/test-strcasestr.c: Likewise.
11532         * tests/test-strchrnul.c: Likewise.
11533         * tests/test-strerror.c: Likewise.
11534         * tests/test-striconv.c: Likewise.
11535         * tests/test-striconveh.c: Likewise.
11536         * tests/test-striconveha.c: Likewise.
11537         * tests/test-strsignal.c: Likewise.
11538         * tests/test-strstr.c: Likewise.
11539         * tests/test-strtod.c: Likewise.
11540         * tests/test-strverscmp.c: Likewise.
11541         * tests/test-symlink.c: Likewise.
11542         * tests/test-symlinkat.c: Likewise.
11543         * tests/test-trunc1.c: Likewise.
11544         * tests/test-trunc2.c: Likewise.
11545         * tests/test-truncf1.c: Likewise.
11546         * tests/test-truncf2.c: Likewise.
11547         * tests/test-truncl.c: Likewise.
11548         * tests/test-uname.c: Likewise.
11549         * tests/test-unlink.c: Likewise.
11550         * tests/test-unlinkat.c: Likewise.
11551         * tests/test-unsetenv.c: Likewise.
11552         * tests/test-usleep.c: Likewise.
11553         * tests/test-utimens.c: Likewise.
11554         * tests/test-utimensat.c: Likewise.
11555         * tests/test-vasnprintf-posix.c: Likewise.
11556         * tests/test-vasnprintf-posix2.c: Likewise.
11557         * tests/test-vasnprintf.c: Likewise.
11558         * tests/test-vasprintf-posix.c: Likewise.
11559         * tests/test-vasprintf.c: Likewise.
11560         * tests/test-vdprintf-posix.c: Likewise.
11561         * tests/test-vfprintf-posix.c: Likewise.
11562         * tests/test-vprintf-posix.c: Likewise.
11563         * tests/test-vsnprintf-posix.c: Likewise.
11564         * tests/test-vsnprintf.c: Likewise.
11565         * tests/test-vsprintf-posix.c: Likewise.
11566         * tests/test-wcrtomb.c: Likewise.
11567         * tests/test-wcsnrtombs.c: Likewise.
11568         * tests/test-wcsrtombs.c: Likewise.
11569         * tests/test-wctype.c: Likewise.
11570         * tests/test-wcwidth.c: Likewise.
11571         * tests/test-xfprintf-posix.c: Likewise.
11572         * tests/test-xmemdup0.c: Likewise.
11573         * tests/test-xprintf-posix.c: Likewise.
11574         * tests/test-xvasprintf.c: Likewise.
11575         * tests/unicase/test-locale-language.c: Likewise.
11576         * tests/unicase/test-mapping-part1.h: Likewise.
11577         * tests/unicase/test-predicate-part1.h: Likewise.
11578         * tests/unicase/test-u8-casecmp.c: Likewise.
11579         * tests/unicase/test-u8-casecoll.c: Likewise.
11580         * tests/unicase/test-u8-casefold.c: Likewise.
11581         * tests/unicase/test-u8-is-cased.c: Likewise.
11582         * tests/unicase/test-u8-is-casefolded.c: Likewise.
11583         * tests/unicase/test-u8-is-lowercase.c: Likewise.
11584         * tests/unicase/test-u8-is-titlecase.c: Likewise.
11585         * tests/unicase/test-u8-is-uppercase.c: Likewise.
11586         * tests/unicase/test-u8-tolower.c: Likewise.
11587         * tests/unicase/test-u8-totitle.c: Likewise.
11588         * tests/unicase/test-u8-toupper.c: Likewise.
11589         * tests/unicase/test-u16-casecmp.c: Likewise.
11590         * tests/unicase/test-u16-casecoll.c: Likewise.
11591         * tests/unicase/test-u16-casefold.c: Likewise.
11592         * tests/unicase/test-u16-is-cased.c: Likewise.
11593         * tests/unicase/test-u16-is-casefolded.c: Likewise.
11594         * tests/unicase/test-u16-is-lowercase.c: Likewise.
11595         * tests/unicase/test-u16-is-titlecase.c: Likewise.
11596         * tests/unicase/test-u16-is-uppercase.c: Likewise.
11597         * tests/unicase/test-u16-tolower.c: Likewise.
11598         * tests/unicase/test-u16-totitle.c: Likewise.
11599         * tests/unicase/test-u16-toupper.c: Likewise.
11600         * tests/unicase/test-u32-casecmp.c: Likewise.
11601         * tests/unicase/test-u32-casecoll.c: Likewise.
11602         * tests/unicase/test-u32-casefold.c: Likewise.
11603         * tests/unicase/test-u32-is-cased.c: Likewise.
11604         * tests/unicase/test-u32-is-casefolded.c: Likewise.
11605         * tests/unicase/test-u32-is-lowercase.c: Likewise.
11606         * tests/unicase/test-u32-is-titlecase.c: Likewise.
11607         * tests/unicase/test-u32-is-uppercase.c: Likewise.
11608         * tests/unicase/test-u32-tolower.c: Likewise.
11609         * tests/unicase/test-u32-totitle.c: Likewise.
11610         * tests/unicase/test-u32-toupper.c: Likewise.
11611         * tests/unicase/test-ulc-casecmp.c: Likewise.
11612         * tests/unicase/test-ulc-casecoll.c: Likewise.
11613         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
11614         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
11615         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
11616         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
11617         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
11618         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
11619         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
11620         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
11621         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
11622         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
11623         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
11624         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
11625         * tests/unictype/test-bidi_byname.c: Likewise.
11626         * tests/unictype/test-bidi_name.c: Likewise.
11627         * tests/unictype/test-bidi_of.c: Likewise.
11628         * tests/unictype/test-bidi_test.c: Likewise.
11629         * tests/unictype/test-block_list.c: Likewise.
11630         * tests/unictype/test-block_of.c: Likewise.
11631         * tests/unictype/test-block_test.c: Likewise.
11632         * tests/unictype/test-categ_and.c: Likewise.
11633         * tests/unictype/test-categ_and_not.c: Likewise.
11634         * tests/unictype/test-categ_byname.c: Likewise.
11635         * tests/unictype/test-categ_name.c: Likewise.
11636         * tests/unictype/test-categ_none.c: Likewise.
11637         * tests/unictype/test-categ_of.c: Likewise.
11638         * tests/unictype/test-categ_or.c: Likewise.
11639         * tests/unictype/test-categ_test_withtable.c: Likewise.
11640         * tests/unictype/test-combining.c: Likewise.
11641         * tests/unictype/test-decdigit.c: Likewise.
11642         * tests/unictype/test-digit.c: Likewise.
11643         * tests/unictype/test-mirror.c: Likewise.
11644         * tests/unictype/test-numeric.c: Likewise.
11645         * tests/unictype/test-pr_byname.c: Likewise.
11646         * tests/unictype/test-pr_test.c: Likewise.
11647         * tests/unictype/test-predicate-part1.h: Likewise.
11648         * tests/unictype/test-scripts.c: Likewise.
11649         * tests/unictype/test-sy_c_ident.c: Likewise.
11650         * tests/unictype/test-sy_java_ident.c: Likewise.
11651         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
11652         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
11653         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
11654         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
11655         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
11656         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
11657         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
11658         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
11659         * tests/uninorm/test-canonical-decomposition.c: Likewise.
11660         * tests/uninorm/test-compat-decomposition.c: Likewise.
11661         * tests/uninorm/test-composition.c: Likewise.
11662         * tests/uninorm/test-decomposing-form.c: Likewise.
11663         * tests/uninorm/test-decomposition.c: Likewise.
11664         * tests/uninorm/test-u8-nfc.c: Likewise.
11665         * tests/uninorm/test-u8-nfd.c: Likewise.
11666         * tests/uninorm/test-u8-nfkc.c: Likewise.
11667         * tests/uninorm/test-u8-nfkd.c: Likewise.
11668         * tests/uninorm/test-u8-normcmp.c: Likewise.
11669         * tests/uninorm/test-u8-normcoll.c: Likewise.
11670         * tests/uninorm/test-u16-nfc.c: Likewise.
11671         * tests/uninorm/test-u16-nfd.c: Likewise.
11672         * tests/uninorm/test-u16-nfkc.c: Likewise.
11673         * tests/uninorm/test-u16-nfkd.c: Likewise.
11674         * tests/uninorm/test-u16-normcmp.c: Likewise.
11675         * tests/uninorm/test-u16-normcoll.c: Likewise.
11676         * tests/uninorm/test-u32-nfc.c: Likewise.
11677         * tests/uninorm/test-u32-nfd.c: Likewise.
11678         * tests/uninorm/test-u32-nfkc.c: Likewise.
11679         * tests/uninorm/test-u32-nfkd.c: Likewise.
11680         * tests/uninorm/test-u32-normalize-big.c: Likewise.
11681         * tests/uninorm/test-u32-normcmp.c: Likewise.
11682         * tests/uninorm/test-u32-normcoll.c: Likewise.
11683         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
11684         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
11685         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
11686         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
11687         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
11688         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
11689         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
11690         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
11691         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
11692         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
11693         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
11694         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
11695         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
11696         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
11697         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
11698         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
11699         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
11700         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
11701         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
11702         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
11703         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
11704         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
11705         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
11706         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
11707         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
11708         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
11709         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
11710         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
11711         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
11712         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
11713         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
11714         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
11715         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
11716         * tests/uniwidth/test-u8-strwidth.c: Likewise.
11717         * tests/uniwidth/test-u8-width.c: Likewise.
11718         * tests/uniwidth/test-u16-strwidth.c: Likewise.
11719         * tests/uniwidth/test-u16-width.c: Likewise.
11720         * tests/uniwidth/test-u32-strwidth.c: Likewise.
11721         * tests/uniwidth/test-u32-width.c: Likewise.
11722         * tests/uniwidth/test-uc_width.c: Likewise.
11723         * tests/uniwidth/test-uc_width2.c: Likewise.
11724         * modules/acl-tests (Files): Add tests/macros.h.
11725         * modules/areadlink-tests (Files): Likewise.
11726         * modules/areadlink-with-size-tests (Files): Likewise.
11727         * modules/areadlinkat-tests (Files): Likewise.
11728         * modules/areadlinkat-with-size-tests (Files): Likewise.
11729         * modules/argmatch-tests (Files): Likewise.
11730         * modules/argv-iter-tests (Files): Likewise.
11731         * modules/array-list-tests (Files): Likewise.
11732         * modules/array-mergesort-tests (Files): Likewise.
11733         * modules/array-oset-tests (Files): Likewise.
11734         * modules/avltree-list-tests (Files): Likewise.
11735         * modules/avltree-oset-tests (Files): Likewise.
11736         * modules/avltreehash-list-tests (Files): Likewise.
11737         * modules/base64-tests (Files): Likewise.
11738         * modules/binary-io-tests (Files): Likewise.
11739         * modules/bitrotate-tests (Files): Likewise.
11740         * modules/btowc-tests (Files): Likewise.
11741         * modules/byteswap-tests (Files): Likewise.
11742         * modules/c-ctype-tests (Files): Likewise.
11743         * modules/c-stack-tests (Files): Likewise.
11744         * modules/c-strcase-tests (Files): Likewise.
11745         * modules/c-strcasestr-tests (Files): Likewise.
11746         * modules/c-strstr-tests (Files): Likewise.
11747         * modules/canonicalize-lgpl-tests (Files): Likewise.
11748         * modules/canonicalize-tests (Files): Likewise.
11749         * modules/carray-list-tests (Files): Likewise.
11750         * modules/ceilf-tests (Files): Likewise.
11751         * modules/ceill-tests (Files): Likewise.
11752         * modules/chown-tests (Files): Likewise.
11753         * modules/cloexec-tests (Files): Likewise.
11754         * modules/copy-file-tests (Files): Likewise.
11755         * modules/count-one-bits-tests (Files): Likewise.
11756         * modules/dprintf-posix-tests (Files): Likewise.
11757         * modules/dup2-tests (Files): Likewise.
11758         * modules/dup3-tests (Files): Likewise.
11759         * modules/duplocale-tests (Files): Likewise.
11760         * modules/fbufmode-tests (Files): Likewise.
11761         * modules/fchdir-tests (Files): Likewise.
11762         * modules/fcntl-safer-tests (Files): Likewise.
11763         * modules/fcntl-tests (Files): Likewise.
11764         * modules/fdopendir-tests (Files): Likewise.
11765         * modules/fdutimensat-tests (Files): Likewise.
11766         * modules/fflush-tests (Files): Likewise.
11767         * modules/filevercmp-tests (Files): Likewise.
11768         * modules/flock-tests (Files): Likewise.
11769         * modules/floorf-tests (Files): Likewise.
11770         * modules/floorl-tests (Files): Likewise.
11771         * modules/fnmatch-tests (Files): Likewise.
11772         * modules/fopen-safer-tests (Files): Likewise.
11773         * modules/fopen-tests (Files): Likewise.
11774         * modules/fpending-tests (Files): Likewise.
11775         * modules/fprintf-posix-tests (Files): Likewise.
11776         * modules/fpurge-tests (Files): Likewise.
11777         * modules/freadable-tests (Files): Likewise.
11778         * modules/freadahead-tests (Files): Likewise.
11779         * modules/freading-tests (Files): Likewise.
11780         * modules/freadptr-tests (Files): Likewise.
11781         * modules/freadseek-tests (Files): Likewise.
11782         * modules/freopen-tests (Files): Likewise.
11783         * modules/frexp-nolibm-tests (Files): Likewise.
11784         * modules/frexp-tests (Files): Likewise.
11785         * modules/frexpl-nolibm-tests (Files): Likewise.
11786         * modules/frexpl-tests (Files): Likewise.
11787         * modules/fseek-tests (Files): Likewise.
11788         * modules/fseeko-tests (Files): Likewise.
11789         * modules/fstrcmp-tests (Files): Likewise.
11790         * modules/fsync-tests (Files): Likewise.
11791         * modules/ftell-tests (Files): Likewise.
11792         * modules/ftello-tests (Files): Likewise.
11793         * modules/func-tests (Files): Likewise.
11794         * modules/futimens-tests (Files): Likewise.
11795         * modules/fwritable-tests (Files): Likewise.
11796         * modules/fwriting-tests (Files): Likewise.
11797         * modules/getcwd-tests (Files): Likewise.
11798         * modules/getdate-tests (Files): Likewise.
11799         * modules/getdelim-tests (Files): Likewise.
11800         * modules/getdtablesize-tests (Files): Likewise.
11801         * modules/getgroups-tests (Files): Likewise.
11802         * modules/getline-tests (Files): Likewise.
11803         * modules/getndelim2-tests (Files): Likewise.
11804         * modules/glob-tests (Files): Likewise.
11805         * modules/hash-tests (Files): Likewise.
11806         * modules/i-ring-tests (Files): Likewise.
11807         * modules/iconv-tests (Files): Likewise.
11808         * modules/iconv_open-utf-tests (Files): Likewise.
11809         * modules/idpriv-drop-tests (Files): Likewise.
11810         * modules/idpriv-droptemp-tests (Files): Likewise.
11811         * modules/inet_ntop-tests (Files): Likewise.
11812         * modules/inet_pton-tests (Files): Likewise.
11813         * modules/isblank-tests (Files): Likewise.
11814         * modules/isfinite-tests (Files): Likewise.
11815         * modules/isinf-tests (Files): Likewise.
11816         * modules/isnan-tests (Files): Likewise.
11817         * modules/isnand-nolibm-tests (Files): Likewise.
11818         * modules/isnand-tests (Files): Likewise.
11819         * modules/isnanf-nolibm-tests (Files): Likewise.
11820         * modules/isnanf-tests (Files): Likewise.
11821         * modules/isnanl-nolibm-tests (Files): Likewise.
11822         * modules/isnanl-tests (Files): Likewise.
11823         * modules/lchown-tests (Files): Likewise.
11824         * modules/ldexpl-tests (Files): Likewise.
11825         * modules/link-tests (Files): Likewise.
11826         * modules/linkat-tests (Files): Likewise.
11827         * modules/linked-list-tests (Files): Likewise.
11828         * modules/linkedhash-list-tests (Files): Likewise.
11829         * modules/localename-tests (Files): Likewise.
11830         * modules/lseek-tests (Files): Likewise.
11831         * modules/lstat-tests (Files): Likewise.
11832         * modules/mbmemcasecmp-tests (Files): Likewise.
11833         * modules/mbmemcasecoll-tests (Files): Likewise.
11834         * modules/mbrtowc-tests (Files): Likewise.
11835         * modules/mbscasecmp-tests (Files): Likewise.
11836         * modules/mbscasestr-tests (Files): Likewise.
11837         * modules/mbschr-tests (Files): Likewise.
11838         * modules/mbscspn-tests (Files): Likewise.
11839         * modules/mbsinit-tests (Files): Likewise.
11840         * modules/mbsncasecmp-tests (Files): Likewise.
11841         * modules/mbsnrtowcs-tests (Files): Likewise.
11842         * modules/mbspbrk-tests (Files): Likewise.
11843         * modules/mbspcasecmp-tests (Files): Likewise.
11844         * modules/mbsrchr-tests (Files): Likewise.
11845         * modules/mbsrtowcs-tests (Files): Likewise.
11846         * modules/mbsspn-tests (Files): Likewise.
11847         * modules/mbsstr-tests (Files): Likewise.
11848         * modules/memchr-tests (Files): Likewise.
11849         * modules/memchr2-tests (Files): Likewise.
11850         * modules/memcmp-tests (Files): Likewise.
11851         * modules/memmem-tests (Files): Likewise.
11852         * modules/memrchr-tests (Files): Likewise.
11853         * modules/mkdir-tests (Files): Likewise.
11854         * modules/mkfifo-tests (Files): Likewise.
11855         * modules/mkfifoat-tests (Files): Likewise.
11856         * modules/mknod-tests (Files): Likewise.
11857         * modules/nanosleep-tests (Files): Likewise.
11858         * modules/nl_langinfo-tests (Files): Likewise.
11859         * modules/obstack-printf-tests (Files): Likewise.
11860         * modules/open-tests (Files): Likewise.
11861         * modules/openat-tests (Files): Likewise.
11862         * modules/pipe-filter-gi-tests (Files): Likewise.
11863         * modules/pipe-filter-ii-tests (Files): Likewise.
11864         * modules/pipe2-tests (Files): Likewise.
11865         * modules/popen-safer-tests (Files): Likewise.
11866         * modules/popen-tests (Files): Likewise.
11867         * modules/posixtm-tests (Files): Likewise.
11868         * modules/pread-tests (Files): Likewise.
11869         * modules/printf-frexp-tests (Files): Likewise.
11870         * modules/printf-frexpl-tests (Files): Likewise.
11871         * modules/printf-posix-tests (Files): Likewise.
11872         * modules/priv-set-tests (Files): Likewise.
11873         * modules/quotearg-tests (Files): Likewise.
11874         * modules/random_r-tests (Files): Likewise.
11875         * modules/rawmemchr-tests (Files): Likewise.
11876         * modules/rbtree-list-tests (Files): Likewise.
11877         * modules/rbtree-oset-tests (Files): Likewise.
11878         * modules/rbtreehash-list-tests (Files): Likewise.
11879         * modules/readlink-tests (Files): Likewise.
11880         * modules/remove-tests (Files): Likewise.
11881         * modules/rename-tests (Files): Likewise.
11882         * modules/renameat-tests (Files): Likewise.
11883         * modules/rmdir-tests (Files): Likewise.
11884         * modules/round-tests (Files): Likewise.
11885         * modules/roundf-tests (Files): Likewise.
11886         * modules/roundl-tests (Files): Likewise.
11887         * modules/safe-alloc-tests (Files): Likewise.
11888         * modules/setenv-tests (Files): Likewise.
11889         * modules/sigaction-tests (Files): Likewise.
11890         * modules/signbit-tests (Files): Likewise.
11891         * modules/sleep-tests (Files): Likewise.
11892         * modules/snprintf-posix-tests (Files): Likewise.
11893         * modules/snprintf-tests (Files): Likewise.
11894         * modules/sprintf-posix-tests (Files): Likewise.
11895         * modules/stat-tests (Files): Likewise.
11896         * modules/stat-time-tests (Files): Likewise.
11897         * modules/strcasestr-tests (Files): Likewise.
11898         * modules/strchrnul-tests (Files): Likewise.
11899         * modules/strerror-tests (Files): Likewise.
11900         * modules/striconv-tests (Files): Likewise.
11901         * modules/striconveh-tests (Files): Likewise.
11902         * modules/striconveha-tests (Files): Likewise.
11903         * modules/strsignal-tests (Files): Likewise.
11904         * modules/strstr-tests (Files): Likewise.
11905         * modules/strtod-tests (Files): Likewise.
11906         * modules/strverscmp-tests (Files): Likewise.
11907         * modules/symlink-tests (Files): Likewise.
11908         * modules/symlinkat-tests (Files): Likewise.
11909         * modules/trunc-tests (Files): Likewise.
11910         * modules/truncf-tests (Files): Likewise.
11911         * modules/truncl-tests (Files): Likewise.
11912         * modules/uname-tests (Files): Likewise.
11913         * modules/unicase/cased-tests (Files): Likewise.
11914         * modules/unicase/ignorable-tests (Files): Likewise.
11915         * modules/unicase/locale-language-tests (Files): Likewise.
11916         * modules/unicase/tolower-tests (Files): Likewise.
11917         * modules/unicase/totitle-tests (Files): Likewise.
11918         * modules/unicase/toupper-tests (Files): Likewise.
11919         * modules/unicase/u8-casecmp-tests (Files): Likewise.
11920         * modules/unicase/u8-casecoll-tests (Files): Likewise.
11921         * modules/unicase/u8-casefold-tests (Files): Likewise.
11922         * modules/unicase/u8-is-cased-tests (Files): Likewise.
11923         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
11924         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
11925         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
11926         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
11927         * modules/unicase/u8-tolower-tests (Files): Likewise.
11928         * modules/unicase/u8-totitle-tests (Files): Likewise.
11929         * modules/unicase/u8-toupper-tests (Files): Likewise.
11930         * modules/unicase/u16-casecmp-tests (Files): Likewise.
11931         * modules/unicase/u16-casecoll-tests (Files): Likewise.
11932         * modules/unicase/u16-casefold-tests (Files): Likewise.
11933         * modules/unicase/u16-is-cased-tests (Files): Likewise.
11934         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
11935         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
11936         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
11937         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
11938         * modules/unicase/u16-tolower-tests (Files): Likewise.
11939         * modules/unicase/u16-totitle-tests (Files): Likewise.
11940         * modules/unicase/u16-toupper-tests (Files): Likewise.
11941         * modules/unicase/u32-casecmp-tests (Files): Likewise.
11942         * modules/unicase/u32-casecoll-tests (Files): Likewise.
11943         * modules/unicase/u32-casefold-tests (Files): Likewise.
11944         * modules/unicase/u32-is-cased-tests (Files): Likewise.
11945         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
11946         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
11947         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
11948         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
11949         * modules/unicase/u32-tolower-tests (Files): Likewise.
11950         * modules/unicase/u32-totitle-tests (Files): Likewise.
11951         * modules/unicase/u32-toupper-tests (Files): Likewise.
11952         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
11953         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
11954         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
11955         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
11956         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
11957         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
11958         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
11959         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
11960         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
11961         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
11962         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
11963         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
11964         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
11965         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
11966         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
11967         * modules/unictype/bidicategory-name-tests (Files): Likewise.
11968         * modules/unictype/bidicategory-of-tests (Files): Likewise.
11969         * modules/unictype/bidicategory-test-tests (Files): Likewise.
11970         * modules/unictype/block-list-tests (Files): Likewise.
11971         * modules/unictype/block-of-tests (Files): Likewise.
11972         * modules/unictype/block-test-tests (Files): Likewise.
11973         * modules/unictype/category-C-tests (Files): Likewise.
11974         * modules/unictype/category-Cc-tests (Files): Likewise.
11975         * modules/unictype/category-Cf-tests (Files): Likewise.
11976         * modules/unictype/category-Cn-tests (Files): Likewise.
11977         * modules/unictype/category-Co-tests (Files): Likewise.
11978         * modules/unictype/category-Cs-tests (Files): Likewise.
11979         * modules/unictype/category-L-tests (Files): Likewise.
11980         * modules/unictype/category-Ll-tests (Files): Likewise.
11981         * modules/unictype/category-Lm-tests (Files): Likewise.
11982         * modules/unictype/category-Lo-tests (Files): Likewise.
11983         * modules/unictype/category-Lt-tests (Files): Likewise.
11984         * modules/unictype/category-Lu-tests (Files): Likewise.
11985         * modules/unictype/category-M-tests (Files): Likewise.
11986         * modules/unictype/category-Mc-tests (Files): Likewise.
11987         * modules/unictype/category-Me-tests (Files): Likewise.
11988         * modules/unictype/category-Mn-tests (Files): Likewise.
11989         * modules/unictype/category-N-tests (Files): Likewise.
11990         * modules/unictype/category-Nd-tests (Files): Likewise.
11991         * modules/unictype/category-Nl-tests (Files): Likewise.
11992         * modules/unictype/category-No-tests (Files): Likewise.
11993         * modules/unictype/category-P-tests (Files): Likewise.
11994         * modules/unictype/category-Pc-tests (Files): Likewise.
11995         * modules/unictype/category-Pd-tests (Files): Likewise.
11996         * modules/unictype/category-Pe-tests (Files): Likewise.
11997         * modules/unictype/category-Pf-tests (Files): Likewise.
11998         * modules/unictype/category-Pi-tests (Files): Likewise.
11999         * modules/unictype/category-Po-tests (Files): Likewise.
12000         * modules/unictype/category-Ps-tests (Files): Likewise.
12001         * modules/unictype/category-S-tests (Files): Likewise.
12002         * modules/unictype/category-Sc-tests (Files): Likewise.
12003         * modules/unictype/category-Sk-tests (Files): Likewise.
12004         * modules/unictype/category-Sm-tests (Files): Likewise.
12005         * modules/unictype/category-So-tests (Files): Likewise.
12006         * modules/unictype/category-Z-tests (Files): Likewise.
12007         * modules/unictype/category-Zl-tests (Files): Likewise.
12008         * modules/unictype/category-Zp-tests (Files): Likewise.
12009         * modules/unictype/category-Zs-tests (Files): Likewise.
12010         * modules/unictype/category-and-not-tests (Files): Likewise.
12011         * modules/unictype/category-and-tests (Files): Likewise.
12012         * modules/unictype/category-byname-tests (Files): Likewise.
12013         * modules/unictype/category-name-tests (Files): Likewise.
12014         * modules/unictype/category-none-tests (Files): Likewise.
12015         * modules/unictype/category-of-tests (Files): Likewise.
12016         * modules/unictype/category-or-tests (Files): Likewise.
12017         * modules/unictype/category-test-withtable-tests (Files): Likewise.
12018         * modules/unictype/combining-class-tests (Files): Likewise.
12019         * modules/unictype/ctype-alnum-tests (Files): Likewise.
12020         * modules/unictype/ctype-alpha-tests (Files): Likewise.
12021         * modules/unictype/ctype-blank-tests (Files): Likewise.
12022         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
12023         * modules/unictype/ctype-digit-tests (Files): Likewise.
12024         * modules/unictype/ctype-graph-tests (Files): Likewise.
12025         * modules/unictype/ctype-lower-tests (Files): Likewise.
12026         * modules/unictype/ctype-print-tests (Files): Likewise.
12027         * modules/unictype/ctype-punct-tests (Files): Likewise.
12028         * modules/unictype/ctype-space-tests (Files): Likewise.
12029         * modules/unictype/ctype-upper-tests (Files): Likewise.
12030         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
12031         * modules/unictype/decimal-digit-tests (Files): Likewise.
12032         * modules/unictype/digit-tests (Files): Likewise.
12033         * modules/unictype/mirror-tests (Files): Likewise.
12034         * modules/unictype/numeric-tests (Files): Likewise.
12035         * modules/unictype/property-alphabetic-tests (Files): Likewise.
12036         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
12037         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
12038         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
12039         Likewise.
12040         * modules/unictype/property-bidi-block-separator-tests (Files):
12041         Likewise.
12042         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
12043         Likewise.
12044         * modules/unictype/property-bidi-common-separator-tests (Files):
12045         Likewise.
12046         * modules/unictype/property-bidi-control-tests (Files): Likewise.
12047         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
12048         Likewise.
12049         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
12050         Likewise.
12051         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
12052         Likewise.
12053         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
12054         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
12055         Likewise.
12056         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
12057         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
12058         Likewise.
12059         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
12060         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
12061         * modules/unictype/property-bidi-segment-separator-tests (Files):
12062         Likewise.
12063         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
12064         * modules/unictype/property-byname-tests (Files): Likewise.
12065         * modules/unictype/property-combining-tests (Files): Likewise.
12066         * modules/unictype/property-composite-tests (Files): Likewise.
12067         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
12068         * modules/unictype/property-dash-tests (Files): Likewise.
12069         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
12070         * modules/unictype/property-default-ignorable-code-point-tests (Files):
12071         Likewise.
12072         * modules/unictype/property-deprecated-tests (Files): Likewise.
12073         * modules/unictype/property-diacritic-tests (Files): Likewise.
12074         * modules/unictype/property-extender-tests (Files): Likewise.
12075         * modules/unictype/property-format-control-tests (Files): Likewise.
12076         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
12077         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
12078         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
12079         * modules/unictype/property-hex-digit-tests (Files): Likewise.
12080         * modules/unictype/property-hyphen-tests (Files): Likewise.
12081         * modules/unictype/property-id-continue-tests (Files): Likewise.
12082         * modules/unictype/property-id-start-tests (Files): Likewise.
12083         * modules/unictype/property-ideographic-tests (Files): Likewise.
12084         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
12085         * modules/unictype/property-ids-trinary-operator-tests (Files):
12086         Likewise.
12087         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
12088         * modules/unictype/property-iso-control-tests (Files): Likewise.
12089         * modules/unictype/property-join-control-tests (Files): Likewise.
12090         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
12091         * modules/unictype/property-line-separator-tests (Files): Likewise.
12092         * modules/unictype/property-logical-order-exception-tests (Files):
12093         Likewise.
12094         * modules/unictype/property-lowercase-tests (Files): Likewise.
12095         * modules/unictype/property-math-tests (Files): Likewise.
12096         * modules/unictype/property-non-break-tests (Files): Likewise.
12097         * modules/unictype/property-not-a-character-tests (Files): Likewise.
12098         * modules/unictype/property-numeric-tests (Files): Likewise.
12099         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
12100         * modules/unictype/property-other-default-ignorable-code-point-tests
12101         (Files): Likewise.
12102         * modules/unictype/property-other-grapheme-extend-tests (Files):
12103         Likewise.
12104         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
12105         * modules/unictype/property-other-id-start-tests (Files): Likewise.
12106         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
12107         * modules/unictype/property-other-math-tests (Files): Likewise.
12108         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
12109         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
12110         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
12111         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
12112         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
12113         * modules/unictype/property-private-use-tests (Files): Likewise.
12114         * modules/unictype/property-punctuation-tests (Files): Likewise.
12115         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
12116         * modules/unictype/property-radical-tests (Files): Likewise.
12117         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
12118         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
12119         * modules/unictype/property-space-tests (Files): Likewise.
12120         * modules/unictype/property-terminal-punctuation-tests (Files):
12121         Likewise.
12122         * modules/unictype/property-test-tests (Files): Likewise.
12123         * modules/unictype/property-titlecase-tests (Files): Likewise.
12124         * modules/unictype/property-unassigned-code-value-tests (Files):
12125         Likewise.
12126         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
12127         * modules/unictype/property-uppercase-tests (Files): Likewise.
12128         * modules/unictype/property-variation-selector-tests (Files): Likewise.
12129         * modules/unictype/property-white-space-tests (Files): Likewise.
12130         * modules/unictype/property-xid-continue-tests (Files): Likewise.
12131         * modules/unictype/property-xid-start-tests (Files): Likewise.
12132         * modules/unictype/property-zero-width-tests (Files): Likewise.
12133         * modules/unictype/scripts-tests (Files): Likewise.
12134         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
12135         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
12136         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
12137         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
12138         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
12139         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
12140         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
12141         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
12142         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
12143         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
12144         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
12145         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
12146         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
12147         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
12148         * modules/uninorm/composition-tests (Files): Likewise.
12149         * modules/uninorm/decomposing-form-tests (Files): Likewise.
12150         * modules/uninorm/decomposition-tests (Files): Likewise.
12151         * modules/uninorm/filter-tests (Files): Likewise.
12152         * modules/uninorm/nfc-tests (Files): Likewise.
12153         * modules/uninorm/nfd-tests (Files): Likewise.
12154         * modules/uninorm/nfkc-tests (Files): Likewise.
12155         * modules/uninorm/nfkd-tests (Files): Likewise.
12156         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
12157         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
12158         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
12159         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
12160         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
12161         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
12162         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
12163         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
12164         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
12165         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
12166         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
12167         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
12168         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
12169         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
12170         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
12171         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
12172         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
12173         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
12174         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
12175         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
12176         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
12177         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
12178         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
12179         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
12180         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
12181         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
12182         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
12183         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
12184         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
12185         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
12186         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
12187         * modules/uniwidth/u8-width-tests (Files): Likewise.
12188         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
12189         * modules/uniwidth/u16-width-tests (Files): Likewise.
12190         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
12191         * modules/uniwidth/u32-width-tests (Files): Likewise.
12192         * modules/uniwidth/width-tests (Files): Likewise.
12193         * modules/unlink-tests (Files): Likewise.
12194         * modules/unsetenv-tests (Files): Likewise.
12195         * modules/usleep-tests (Files): Likewise.
12196         * modules/utimens-tests (Files): Likewise.
12197         * modules/utimensat-tests (Files): Likewise.
12198         * modules/vasnprintf-posix-tests (Files): Likewise.
12199         * modules/vasnprintf-tests (Files): Likewise.
12200         * modules/vasprintf-posix-tests (Files): Likewise.
12201         * modules/vasprintf-tests (Files): Likewise.
12202         * modules/vdprintf-posix-tests (Files): Likewise.
12203         * modules/vfprintf-posix-tests (Files): Likewise.
12204         * modules/vprintf-posix-tests (Files): Likewise.
12205         * modules/vsnprintf-posix-tests (Files): Likewise.
12206         * modules/vsnprintf-tests (Files): Likewise.
12207         * modules/vsprintf-posix-tests (Files): Likewise.
12208         * modules/wcrtomb-tests (Files): Likewise.
12209         * modules/wcsnrtombs-tests (Files): Likewise.
12210         * modules/wcsrtombs-tests (Files): Likewise.
12211         * modules/wctype-tests (Files): Likewise.
12212         * modules/wcwidth-tests (Files): Likewise.
12213         * modules/xmemdup0-tests (Files): Likewise.
12214         * modules/xprintf-posix-tests (Files): Likewise.
12215         * modules/xvasprintf-tests (Files): Likewise.
12216
12217 2009-12-24  Eric Blake  <ebb9@byu.net>
12218
12219         test-nanosleep: fix typo
12220         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
12221         patch.
12222         Reported by Bruno Haible.
12223
12224 2009-12-24  Bruno Haible  <bruno@clisp.org>
12225
12226         Reduce namespace pollution on glibc systems.
12227         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
12228         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
12229         systems.
12230         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
12231         <getopt.h> on glibc systems.
12232         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
12233         systems.
12234         * lib/fcntl.c: Include <unistd.h> here instead.
12235
12236 2009-12-24  Bruno Haible  <bruno@clisp.org>
12237
12238         * lib/stdlib.in.h (includes): Fix typo in today's commit.
12239
12240 2009-12-24  Eric Blake  <ebb9@byu.net>
12241
12242         tests: add signature checks
12243         * tests/signature.h (SIGNATURE_CHECK): New file.
12244         * modules/atexit-tests (Files): Use it.
12245         * modules/btowc-tests (Files): Likewise.
12246         * modules/canonicalize-lgpl-tests (Files): Likewise.
12247         * modules/ceilf-tests (Files): Likewise.
12248         * modules/ceill-tests (Files): Likewise.
12249         * modules/chown-tests (Files): Likewise.
12250         * modules/dprintf-posix-tests (Files): Likewise.
12251         * modules/dup2-tests (Files): Likewise.
12252         * modules/dup3-tests (Files): Likewise.
12253         * modules/duplocale-tests (Files): Likewise.
12254         * modules/fchdir-tests (Files): Likewise.
12255         * modules/fcntl-tests (Files): Likewise.
12256         * modules/fdopendir-tests (Files): Likewise.
12257         * modules/fflush-tests (Files): Likewise.
12258         * modules/flock-tests (Files): Likewise.
12259         * modules/floorf-tests (Files): Likewise.
12260         * modules/floorl-tests (Files): Likewise.
12261         * modules/fnmatch-tests (Files): Likewise.
12262         * modules/fopen-tests (Files): Likewise.
12263         * modules/fprintf-posix-tests (Files): Likewise.
12264         * modules/freopen-tests (Files): Likewise.
12265         * modules/frexp-nolibm-tests (Files): Likewise.
12266         * modules/frexp-tests (Files): Likewise.
12267         * modules/frexpl-nolibm-tests (Files): Likewise.
12268         * modules/frexpl-tests (Files): Likewise.
12269         * modules/fseek-tests (Files): Likewise.
12270         * modules/fseeko-tests (Files): Likewise.
12271         * modules/fsync-tests (Files): Likewise.
12272         * modules/ftell-tests (Files): Likewise.
12273         * modules/ftello-tests (Files): Likewise.
12274         * modules/futimens-tests (Files): Likewise.
12275         * modules/getaddrinfo-tests (Files): Likewise.
12276         * modules/getcwd-tests (Files): Likewise.
12277         * modules/getdelim-tests (Files): Likewise.
12278         * modules/getdtablesize-tests (Files): Likewise.
12279         * modules/getgroups-tests (Files): Likewise.
12280         * modules/gethostname-tests (Files): Likewise.
12281         * modules/getline-tests (Files): Likewise.
12282         * modules/getopt-posix-tests (Files): Likewise.
12283         * modules/gettimeofday-tests (Files): Likewise.
12284         * modules/glob-tests (Files): Likewise.
12285         * modules/iconv-tests (Files): Likewise.
12286         * modules/inet_ntop-tests (Files): Likewise.
12287         * modules/inet_pton-tests (Files): Likewise.
12288         * modules/isblank-tests (Files): Likewise.
12289         * modules/lchown-tests (Files): Likewise.
12290         * modules/ldexpl-tests (Files): Likewise.
12291         * modules/link-tests (Files): Likewise.
12292         * modules/linkat-tests (Files): Likewise.
12293         * modules/lseek-tests (Files): Likewise.
12294         * modules/lstat-tests (Files): Likewise.
12295         * modules/mbrtowc-tests (Files): Likewise.
12296         * modules/mbsinit-tests (Files): Likewise.
12297         * modules/mbsnrtowcs-tests (Files): Likewise.
12298         * modules/mbsrtowcs-tests (Files): Likewise.
12299         * modules/memchr-tests (Files): Likewise.
12300         * modules/memcmp-tests (Files): Likewise.
12301         * modules/memmem-tests (Files): Likewise.
12302         * modules/memrchr-tests (Files): Likewise.
12303         * modules/mkdir-tests (Files): Likewise.
12304         * modules/mkfifo-tests (Files): Likewise.
12305         * modules/mkfifoat-tests (Files): Likewise.
12306         * modules/mknod-tests (Files): Likewise.
12307         * modules/nanosleep-tests (Files): Likewise.
12308         * modules/nl_langinfo-tests (Files): Likewise.
12309         * modules/obstack-printf-tests (Files): Likewise.
12310         * modules/open-tests (Files): Likewise.
12311         * modules/openat-tests (Files): Likewise.
12312         * modules/perror-tests (Files): Likewise.
12313         * modules/pipe2-tests (Files): Likewise.
12314         * modules/poll-tests (Files): Likewise.
12315         * modules/popen-tests (Files): Likewise.
12316         * modules/posix_spawn-tests (Files): Likewise.
12317         * modules/posix_spawnp-tests (Files): Likewise.
12318         * modules/pread-tests (Files): Likewise.
12319         * modules/printf-posix-tests (Files): Likewise.
12320         * modules/pty-tests (Files): Likewise.
12321         * modules/random_r-tests (Files): Likewise.
12322         * modules/rawmemchr-tests (Files): Likewise.
12323         * modules/readlink-tests (Files): Likewise.
12324         * modules/remove-tests (Files): Likewise.
12325         * modules/rename-tests (Files): Likewise.
12326         * modules/renameat-tests (Files): Likewise.
12327         * modules/rmdir-tests (Files): Likewise.
12328         * modules/round-tests (Files): Likewise.
12329         * modules/roundf-tests (Files): Likewise.
12330         * modules/roundl-tests (Files): Likewise.
12331         * modules/select-tests (Files): Likewise.
12332         * modules/setenv-tests (Files): Likewise.
12333         * modules/sigaction-tests (Files): Likewise.
12334         * modules/sleep-tests (Files): Likewise.
12335         * modules/snprintf-posix-tests (Files): Likewise.
12336         * modules/snprintf-tests (Files): Likewise.
12337         * modules/sprintf-posix-tests (Files): Likewise.
12338         * modules/stat-tests (Files): Likewise.
12339         * modules/strcasestr-tests (Files): Likewise.
12340         * modules/strchrnul-tests (Files): Likewise.
12341         * modules/strerror-tests (Files): Likewise.
12342         * modules/strsignal-tests (Files): Likewise.
12343         * modules/strstr-tests (Files): Likewise.
12344         * modules/strtod-tests (Files): Likewise.
12345         * modules/strverscmp-tests (Files): Likewise.
12346         * modules/symlink-tests (Files): Likewise.
12347         * modules/symlinkat-tests (Files): Likewise.
12348         * modules/times-tests (Files): Likewise.
12349         * modules/trunc-tests (Files): Likewise.
12350         * modules/truncf-tests (Files): Likewise.
12351         * modules/truncl-tests (Files): Likewise.
12352         * modules/tsearch-tests (Files): Likewise.
12353         * modules/uname-tests (Files): Likewise.
12354         * modules/unlink-tests (Files): Likewise.
12355         * modules/unsetenv-tests (Files): Likewise.
12356         * modules/usleep-tests (Files): Likewise.
12357         * modules/utimensat-tests (Files): Likewise.
12358         * modules/vasprintf-tests (Files): Likewise.
12359         * modules/vdprintf-posix-tests (Files): Likewise.
12360         * modules/vfprintf-posix-tests (Files): Likewise.
12361         * modules/vprintf-posix-tests (Files): Likewise.
12362         * modules/vsnprintf-posix-tests (Files): Likewise.
12363         * modules/vsnprintf-tests (Files): Likewise.
12364         * modules/vsprintf-posix-tests (Files): Likewise.
12365         * modules/wcrtomb-tests (Files): Likewise.
12366         * modules/wcsnrtombs-tests (Files): Likewise.
12367         * modules/wcsrtombs-tests (Files): Likewise.
12368         * modules/wcwidth-tests (Files): Likewise.
12369         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
12370         * tests/test-isinf.c (isinf): Likewise.
12371         * tests/test-isnan.c (isnan): Likewise.
12372         * tests/test-signbit.c (signbit): Likewise.
12373         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
12374         declaration, either as macro or with correct signature.
12375         (select): Ensure function under test is declared with correct
12376         signature in correct header.
12377         * tests/test-atexit.c (atexit): Likewise.
12378         * tests/test-btowc.c (btowc): Likewise.
12379         * tests/test-canonicalize-lgpl.c (realpath)
12380         (canonicalize_file_name): Likewise.
12381         * tests/test-ceilf1.c (ceilf): Likewise.
12382         * tests/test-ceill.c (ceill): Likewise.
12383         * tests/test-chown.c (chown): Likewise.
12384         * tests/test-dprintf-posix.c (dprintf): Likewise.
12385         * tests/test-dup2.c (dup2): Likewise.
12386         * tests/test-dup3.c (dup3): Likewise.
12387         * tests/test-duplocale.c (duplocale): Likewise.
12388         * tests/test-fchdir.c (fchdir): Likewise.
12389         * tests/test-fchownat.c (fchownat): Likewise.
12390         * tests/test-fcntl.c (fcntl): Likewise.
12391         * tests/test-fdopendir.c (fdopendir): Likewise.
12392         * tests/test-fflush.c (fflush): Likewise.
12393         * tests/test-flock.c (flock): Likewise.
12394         * tests/test-floorf1.c (floorf): Likewise.
12395         * tests/test-floorl.c (floorl): Likewise.
12396         * tests/test-fnmatch.c (fnmatch): Likewise.
12397         * tests/test-fopen.c (fopen): Likewise.
12398         * tests/test-fprintf-posix.c (fprintf): Likewise.
12399         * tests/test-freopen.c (freopen): Likewise.
12400         * tests/test-frexp.c (frexp): Likewise.
12401         * tests/test-frexpl.c (frexpl): Likewise.
12402         * tests/test-fseek.c (fseek): Likewise.
12403         * tests/test-fseeko.c (fseeko): Likewise.
12404         * tests/test-fstatat.c (fstatat): Likewise.
12405         * tests/test-fsync.c (fsync): Likewise.
12406         * tests/test-ftell.c (ftell): Likewise.
12407         * tests/test-ftello.c (ftello): Likewise.
12408         * tests/test-futimens.c (futimens): Likewise.
12409         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
12410         (gai_strerror): Likewise.
12411         * tests/test-getcwd.c (getcwd): Likewise.
12412         * tests/test-getdelim.c (getdelim): Likewise.
12413         * tests/test-getdtablesize.c (getdtablesize): Likewise.
12414         * tests/test-getgroups.c (getgroups): Likewise.
12415         * tests/test-gethostname.c (gethostname): Likewise.
12416         * tests/test-getline.c (getline): Likewise.
12417         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
12418         Likewise.
12419         * tests/test-gettimeofday.c (gettimeofday): Likewise.
12420         * tests/test-glob.c (glob, globfree): Likewise.
12421         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
12422         * tests/test-inet_ntop.c (inet_ntop): Likewise.
12423         * tests/test-inet_pton.c (inet_pton): Likewise.
12424         * tests/test-isblank.c (isblank): Likewise.
12425         * tests/test-lchown.c (lchown): Likewise.
12426         * tests/test-ldexpl.c (ldexpl): Likewise.
12427         * tests/test-link.c (link): Likewise.
12428         * tests/test-linkat.c (linkat): Likewise.
12429         * tests/test-lseek.c (lseek): Likewise.
12430         * tests/test-lstat.c (lstat): Likewise.
12431         * tests/test-mbrtowc.c (mbrtowc): Likewise.
12432         * tests/test-mbsinit.c (mbsinit): Likewise.
12433         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
12434         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
12435         * tests/test-memchr.c (memchr): Likewise.
12436         * tests/test-memcmp.c (memcmp): Likewise.
12437         * tests/test-memmem.c (memmem): Likewise.
12438         * tests/test-memrchr.c (memrchr): Likewise.
12439         * tests/test-mkdir.c (mkdir): Likewise.
12440         * tests/test-mkdirat.c (mkdirat): Likewise.
12441         * tests/test-mkfifo.c (mkfifo): Likewise.
12442         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
12443         * tests/test-mknod.c (mknod): Likewise.
12444         * tests/test-nanosleep.c (nanosleep): Likewise.
12445         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
12446         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
12447         Likewise.
12448         * tests/test-open.c (open): Likewise.
12449         * tests/test-openat.c (openat): Likewise.
12450         * tests/test-perror.c (perror): Likewise.
12451         * tests/test-pipe2.c (pipe2): Likewise.
12452         * tests/test-poll.c (poll): Likewise.
12453         * tests/test-popen.c (popen, pclose): Likewise.
12454         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
12455         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
12456         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
12457         (posix_spawn_file_actions_destroy)
12458         (posix_spawn_file_actions_addclose)
12459         (posix_spawn_file_actions_addopen)
12460         (posix_spawn_file_actions_adddup2): Likewise.
12461         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
12462         * tests/test-pread.c (pread): Likewise.
12463         * tests/test-printf-posix.c (printf): Likewise.
12464         * tests/test-pty.c (openpty, forkpty): Likewise.
12465         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
12466         (random_r): Likewise.
12467         * tests/test-rawmemchr.c (rawmemchr): Likewise.
12468         * tests/test-readlink.c (readlink): Likewise.
12469         * tests/test-remove.c (remove): Likewise.
12470         * tests/test-rename.c (rename): Likewise.
12471         * tests/test-renameat.c (renameat): Likewise.
12472         * tests/test-rmdir.c (rmdir): Likewise.
12473         * tests/test-round1.c (round): Likewise.
12474         * tests/test-roundf1.c (roundf): Likewise.
12475         * tests/test-roundl.c (roundl): Likewise.
12476         * tests/test-setenv.c (setenv): Likewise.
12477         * tests/test-sigaction.c (sigaction): Likewise.
12478         * tests/test-sleep.c (sleep): Likewise.
12479         * tests/test-snprintf.c (snprintf): Likewise.
12480         * tests/test-sprintf-posix.c (sprintf): Likewise.
12481         * tests/test-stat.c (stat): Likewise.
12482         * tests/test-stpncpy.c (stpncpy): Likewise.
12483         * tests/test-strcasestr.c (strcasestr): Likewise.
12484         * tests/test-strchrnul.c (strchrnul): Likewise.
12485         * tests/test-strerror.c (strerror): Likewise.
12486         * tests/test-strsignal.c (strsignal): Likewise.
12487         * tests/test-strstr.c (strstr): Likewise.
12488         * tests/test-strtod.c (strtod): Likewise.
12489         * tests/test-strverscmp.c (strverscmp): Likewise.
12490         * tests/test-symlink.c (symlink): Likewise.
12491         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
12492         * tests/test-times.c (times): Likewise.
12493         * tests/test-trunc1.c (trunc): Likewise.
12494         * tests/test-truncf1.c (truncf): Likewise.
12495         * tests/test-truncl.c (truncl): Likewise.
12496         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
12497         Likewise.
12498         * tests/test-uname.c (uname): Likewise.
12499         * tests/test-unlink.c (unlink): Likewise.
12500         * tests/test-unlinkat.c (unlinkat): Likewise.
12501         * tests/test-unsetenv.c (unsetenv): Likewise.
12502         * tests/test-usleep.c (usleep): Likewise.
12503         * tests/test-utimensat.c (utimensat): Likewise.
12504         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
12505         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
12506         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
12507         * tests/test-vprintf-posix.c (vprintf): Likewise.
12508         * tests/test-vsnprintf.c (vsnprintf): Likewise.
12509         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
12510         * tests/test-wcrtomb.c (wcrtomb): Likewise.
12511         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
12512         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
12513         * tests/test-wcwidth.c (wcwidth): Likewise.
12514
12515         build: pull in conditional headers during GNULIB_POSIXCHECK
12516         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
12517         definitions from any conditionally-included headers.
12518         * lib/stdlib.in.h (includes): Likewise.
12519         * lib/unistd.in.h (includes): Likewise.
12520
12521 2009-12-24  Bruno Haible  <bruno@clisp.org>
12522
12523         * tests/test-argv-iter.c: Include header file being tested immediately
12524         after config.h.
12525         * tests/test-base64.c: Likewise.
12526         * tests/test-flock.c: Likewise.
12527         * tests/test-fsync.c: Likewise.
12528         * tests/test-getdate.c: Likewise.
12529         * tests/test-getndelim2.c: Likewise.
12530         * tests/test-isfinite.c: Likewise.
12531         * tests/test-isinf.c: Likewise.
12532         * tests/test-strerror.c: Likewise.
12533         * tests/test-strsignal.c: Likewise.
12534
12535 2009-12-23  Eric Blake  <ebb9@byu.net>
12536
12537         unistd: work around cygwin bug
12538         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
12539         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
12540         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
12541
12542 2009-12-23  Bruno Haible  <bruno@clisp.org>
12543
12544         localename: More tests.
12545         * tests/test-localename.c (SIZEOF): New macro.
12546         (categories): New variable.
12547         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
12548         test_locale_name_default): Add test w.r.t. thread locale.
12549         (test_locale_name_thread): New function.
12550         (main): Invoke it.
12551
12552         localename: Make aware of thread locale.
12553         * lib/localename.h (gl_locale_name_thread): New declaration.
12554         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
12555         behaviour with respect to thread locale.
12556         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
12557         <langinfo.h>, glthread/lock.h.
12558         (SIZE_BITS): New macro.
12559         (string_hash): New function.
12560         (struct hash_node): New type.
12561         (HASH_TABLE_SIZE): New macro.
12562         (struniq_hash_table, struniq_lock): New variables.
12563         (struniq): New function.
12564         (gl_locale_name_thread): New function.
12565         (gl_locale_name): Invoke it.
12566         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
12567         * modules/localename (Depends-on): Add lock.
12568         Reported by Mike Gran <spk121@yahoo.com>.
12569
12570 2009-12-23  Eric Blake  <ebb9@byu.net>
12571
12572         va-args: new module
12573         * modules/va-args: New file.
12574         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
12575         * MODULES.html.sh (Core language properties): Mention it.
12576
12577         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
12578         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
12579         named alias for __attribute__((__unused__)).
12580         * lib/chown.c: Update client.
12581         * lib/fchmodat.c: Likewise.
12582         * lib/fts.c: Likewise.
12583         * lib/getdate.y: Likewise.
12584         * lib/getgroups.c: Likewise.
12585         * lib/getopt.c: Likewise.
12586         * lib/getugroups.c: Likewise.
12587         * lib/mkdir.c: Likewise.
12588         * lib/mkfifo.c: Likewise.
12589         * lib/mkfifoat.c: Likewise.
12590         * lib/mknod.c: Likewise.
12591         * lib/mknodat.c: Likewise.
12592         * lib/readlink.c: Likewise.
12593         * lib/se-context.in.h: Likewise.
12594         * lib/se-selinux.in.h: Likewise.
12595         * lib/sockets.c: Likewise.
12596         * lib/symlink.c: Likewise.
12597         * lib/symlinkat.c: Likewise.
12598         * lib/unicodeio.c: Likewise.
12599         * lib/unistr.h: Likewise.
12600         * tests/test-areadlink.c: Likewise.
12601         * tests/test-areadlinkat.c: Likewise.
12602         * tests/test-filenamecat.c: Likewise.
12603         * tests/test-fseeko.c: Likewise.
12604         * tests/test-ftello.c: Likewise.
12605         * tests/test-getdate.c: Likewise.
12606         * tests/test-getgroups.c: Likewise.
12607         * tests/test-gethostname.c: Likewise.
12608         * tests/test-quotearg.c: Likewise.
12609         * tests/test-version-etc.c: Likewise.
12610         * tests/test-xalloc-die.c: Likewise.
12611         * tests/test-xfprintf-posix.c: Likewise.
12612         * tests/test-xprintf-posix.c: Likewise.
12613         * tests/test-xvasprintf.c: Likewise.
12614
12615         tests: avoid compiler warnings
12616         * tests/test-fcntl.c (main): Delete unused parameters.
12617         * tests/test-freopen-safer.c (main): Likewise.
12618         * tests/test-xalloc-die.c (main): Mark unused parameters.
12619         * tests/test-fseeko.c (main): Likewise.
12620         * tests/test-ftello.c (main): Likewise.
12621         * tests/test-nanosleep.c (main): Avoid declaration warning.
12622         * tests/test-sleep.c (main): Likewise.
12623         * tests/test-unsetenv.c (main): Silence warning about string
12624         literal.
12625         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
12626
12627 2009-12-23  Bruno Haible  <bruno@clisp.org>
12628
12629         * tests/test-localename.c (test_locale_name): New function, extracted
12630         from main. Also test mixed situations.
12631         (test_locale_name_posix, test_locale_name_environ,
12632         test_locale_name_default): New functions.
12633         (main): Invoke them all.
12634         * modules/localename-tests (configure.ac): Test for newlocale.
12635
12636 2009-12-23  Bruno Haible  <bruno@clisp.org>
12637
12638         unistd: Ensure getcwd gets declared before being overridden.
12639         * lib/unistd.in.h: Conditionally include <io.h>.
12640
12641 2009-12-22  Bruno Haible  <bruno@clisp.org>
12642
12643         wchar: Diagnose broken combination of glibc and gcc versions and flags.
12644         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
12645         (gl_WCHAR_H): Invoke it.
12646         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
12647         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
12648         Reported by Karl Berry <karl@freefriends.org>.
12649
12650 2009-12-22  Eric Blake  <ebb9@byu.net>
12651
12652         math, unistd: avoid redundant includes
12653         * lib/math.in.h (isnan): No need to re-include <math.h>.
12654         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
12655
12656         getsubopt: work around cygwin bug
12657         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
12658         avoid conflicting with system getsubopt.
12659         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
12660         bug.
12661
12662         getopt: synchronize from glibc
12663         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
12664         parameter order.  Adjust all callers.
12665         (_getopt_internal_r, main): Adjust quoting in error messages.
12666         Drop considerations for outdated POSIX 1003.2 error message.
12667         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
12668         callers.
12669         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
12670
12671         test-getopt: test stderr behavior
12672         * modules/getopt-posix-tests (Depends-on): Add dup2.
12673         * tests/test-getopt.c (ASSERT): Avoid stderr.
12674         (main): Move stderr to a temporary file.
12675         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
12676         Instead, add parameter to inform caller if output occurred.
12677         (test_getopt): Adjust all existing tests to expect silence, and
12678         add new tests of leading ":".
12679         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
12680         glibc shortcomings with leading "-:" or "+:" in optstring.
12681         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
12682         Likewise.
12683         * doc/posix-functions/getopt.texi (getopt): Likewise.
12684
12685         test-getopt: enhance test
12686         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
12687         supports optind=0.
12688         * tests/test-getopt.c (OPTIND_MIN): Move...
12689         * tests/test-getopt.h (OPTIND_MIN): ...here.
12690         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
12691         Require that optind=0 works, since modern BSD supports it in
12692         addition to optreset, and since coreutils expects it.
12693         (test_getopt_long_only): New test.
12694         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
12695         glibc shortcomings with 'W;', and enforcement of optind=0.
12696         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
12697         Likewise.
12698
12699 2009-12-21  Bruno Haible  <bruno@clisp.org>
12700
12701         localename: Improvements for MacOS X and Cygwin.
12702         * lib/localename.h (gl_locale_name_environ): New declaration.
12703         * lib/localename.c (gl_locale_name_environ): New function, extracted from
12704         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
12705         (gl_locale_name_posix): Invoke it.
12706         (gl_locale_name_default): Add comments. Use Windows native API also on
12707         Cygwin.
12708
12709 2009-12-21  Bruno Haible  <bruno@clisp.org>
12710
12711         Update list of Win32 locale ids.
12712         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
12713         (LANG_SAMI): Renamed from LANG_SAAMI.
12714         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
12715         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
12716         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
12717         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
12718         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
12719         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
12720         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
12721         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
12722         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
12723         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
12724         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
12725         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
12726         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
12727         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
12728         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
12729         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
12730         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
12731         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
12732         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
12733         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
12734         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
12735         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
12736         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
12737         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
12738         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
12739         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
12740         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
12741         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
12742         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
12743         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
12744         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
12745         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
12746         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
12747         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
12748         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
12749         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
12750         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
12751         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
12752         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
12753         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
12754         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
12755         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
12756         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
12757         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
12758         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
12759         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
12760         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
12761         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
12762         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
12763         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
12764         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
12765         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
12766         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
12767         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
12768         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
12769         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
12770         Add more languages and countries for Sami, Sorbian. Add more countries
12771         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
12772         for Pashto. Change country for Syriac, Tswana.
12773
12774 2009-12-21  Eric Blake  <ebb9@byu.net>
12775
12776         test-utimens: avoid spurious failure
12777         * tests/test-chown.h (nap): Factor...
12778         * tests/nap.h: ...into new file.
12779         * tests/test-lchown.h (nap): Avoid duplication.
12780         * tests/test-utimens-common.h (nap): Use shared implementation,
12781         necessary on file systems with 1-second resolution.
12782         * modules/chown-tests (Files): Include new file.
12783         * modules/fdutimensat-tests (Files): Likewise.
12784         * modules/futimens-tests (Files): Likewise.
12785         * modules/lchown-tests (Files): Likewise.
12786         * modules/openat-tests (Files): Likewise.
12787         * modules/utimens-tests (Files): Likewise.
12788         * modules/utimensat-tests (Files): Likewise.
12789
12790 2009-12-19  Eric Blake  <ebb9@byu.net>
12791
12792         futimens, utimensat: work around Linux bug
12793         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
12794         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
12795         * lib/utimensat.c (rpl_utimensat): Work around it.
12796         * lib/futimens.c (rpl_futimens): Adjust comment.
12797
12798         utimens: work around Linux ctime bug
12799         * lib/utimens.c (detect_ctime_bug): New helper function.
12800         (update_timespec): Differentiate between workaround needed for
12801         this bug vs. what is needed for systems that lack utimensat.
12802         (fdutimens, lutimens): Work around bug.
12803
12804         utimens: check for ctime update
12805         * tests/test-utimens-common.h (check_ctime): Define.
12806         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
12807         * tests/test-futimens.h (test_futimens): Likewise.
12808         * tests/test-lutimens.h (test_lutimens): Likewise.
12809         * doc/posix-functions/futimens.texi (futimens): Document the bug.
12810         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
12811
12812 2009-12-19  Bruno Haible  <bruno@clisp.org>
12813
12814         dprintf-posix: Check against memory leak fixed on 2009-12-15.
12815         * tests/test-dprintf-posix2.sh: New file.
12816         * tests/test-dprintf-posix2.c: New file.
12817         * modules/dprintf-posix-tests (Files): Add them.
12818         (configure.ac): Check for getrlimit and setrlimit.
12819         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
12820
12821 2009-12-19  Bruno Haible  <bruno@clisp.org>
12822
12823         fprintf-posix: Check against memory leak fixed on 2009-12-15.
12824         * tests/test-fprintf-posix3.sh: New file.
12825         * tests/test-fprintf-posix3.c: New file.
12826         * modules/fprintf-posix-tests (Files): Add them.
12827         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
12828
12829 2009-12-19  Eric Blake  <ebb9@byu.net>
12830
12831         dirfd: fix prototype
12832         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
12833         * lib/dirfd.c (dirfd): Likewise.
12834
12835         canonicalize: reduce memory usage
12836         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
12837         allocation to size.
12838         Reported by Solar Designer <solar@openwall.com>.
12839
12840 2009-12-19  Bruno Haible  <bruno@clisp.org>
12841
12842         New module attribute 'Applicability'.
12843         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
12844         * gnulib-tool: New option --extract-applicability.
12845         (func_usage): Document it.
12846         (sed_extract_prog): Recognize it.
12847         (func_get_applicability): New function.
12848         (func_import): Generalize handling of 'link-warning' module.
12849         * modules/link-warning (Applicability): New section.
12850         * modules/arg-nonnull (Applicability): New section.
12851         Repoted by Simon Josefsson <simon@josefsson.org>.
12852
12853 2009-12-19  Bruno Haible  <bruno@clisp.org>
12854
12855         fflush: tweak
12856         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
12857         * lib/fseeko.c (rpl_fseeko): Likewise.
12858
12859 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
12860
12861         * lib/gl_list.h: Fix typo in comment.
12862
12863 2009-12-16  Eric Blake  <ebb9@byu.net>
12864
12865         fcntl: use to simplify other modules
12866         * modules/cloexec (Depends-on): Add fcntl.
12867         * modules/fchdir (Depends-on): Likewise.
12868         * modules/fd-safer-flag (Depends-on): Likewise.
12869         * modules/unistd-safer (Depends-on): Likewise.
12870         * modules/dup3 (configure.ac): Set module indicator.
12871         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
12872         missing.
12873         * lib/fchdir.c (_gl_register_dup): Fix comment.
12874         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
12875         * lib/dup-safer.c (dup_safer): Likewise.
12876         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
12877         * lib/dup3.c (dup3): Likewise.
12878         * tests/test-fchdir.c (main): Enhance test.
12879         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
12880
12881         fcntl: port portions of fcntl to mingw
12882         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
12883         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
12884         replacement for mingw.
12885         * modules/fcntl (Description): Update.
12886         (Depends-on): Add dup2.
12887         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
12888         * modules/fcntl-h (Makefile.am): Substitute it.
12889         * lib/fcntl.in.h (fcntl): Update declaration.
12890         (F_DUPFD, F_GETFD): New macros, when needed.
12891         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
12892         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
12893         * tests/test-fcntl.c (check_flags, main): Enhance test for items
12894         we now guarantee.
12895
12896         fcntl: work around cygwin bug in F_DUPFD
12897         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
12898         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
12899         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
12900         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
12901         * doc/posix-functions/fcntl.texi (fcntl): Document it.
12902
12903         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
12904         * modules/fcntl (Files): List new files.
12905         (configure.ac): Run a test.
12906         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
12907         * lib/fcntl.c (rpl_fcntl): Likewise.
12908         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
12909         (gl_FCNTL_H): Always replace fcntl.h.
12910         * modules/fcntl-h (Makefile.am): Substitute witnesses.
12911         * lib/fcntl.in.h (fcntl): Declare replacement.
12912         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
12913         needed, plus a witness.
12914         * doc/posix-functions/fcntl.texi (fcntl): Document this.
12915         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
12916         * tests/test-fcntl.c: New file.
12917         * modules/fcntl-tests: Likewise.
12918
12919         binary-io: avoid potential compilation warning
12920         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
12921         directives.
12922
12923         fflush: avoid compilation error on NetBSD
12924         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
12925         between off_t and fpos_t, since the latter is sometimes a struct.
12926         * lib/fseeko.c (rpl_fseeko): Likewise.
12927         Reported by Alexander Nasonov <alnsn@yandex.ru>.
12928
12929 2009-12-15  Eric Blake  <ebb9@byu.net>
12930
12931         fcntl-h, stdio, sys_ioctl: fix declarations
12932         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
12933         function must not take arguments.
12934         * lib/sys_ioctl.in.h (ioctl): Likewise.
12935         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
12936         (open): Add a link warning.
12937
12938 2009-12-15  Jim Meyering  <meyering@redhat.com>
12939
12940         areadlink, areadlink-with-size: relax license to LGPLv2+
12941         * modules/areadlink (License): Relax to LGPLv2+.
12942         * modules/areadlink-with-size (License): Likewise.
12943
12944 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
12945             Bruno Haible  <bruno@clisp.org>
12946
12947         *printf: Fix memory leak.
12948         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
12949         * lib/vfprintf.c (vfprintf): Likewise.
12950         * lib/dprintf.c (dprintf): Likewise.
12951         * lib/vdprintf.c (vdprintf): Likewise.
12952
12953 2009-12-14  Eric Blake  <ebb9@byu.net>
12954
12955         accept4: adjust module dependencies
12956         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
12957
12958         utimens: one more try at avoiding compiler warning
12959         * lib/utimens.c (lutimens): Lower scope of result.
12960
12961 2009-12-13  Bruno Haible  <bruno@clisp.org>
12962
12963         Move the malloc checking from module 'list' to new module 'xlist'.
12964         * modules/xlist: New file.
12965         * lib/gl_xlist.h: New file.
12966         * lib/gl_xlist.c: New file.
12967         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
12968         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
12969         gl_list_add_last, gl_list_add_before, gl_list_add_after,
12970         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
12971         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
12972         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
12973         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
12974         gl_sortedlist_nx_add): New declarations.
12975         (struct gl_list_implementation): Rename and change methods accordingly.
12976         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
12977         (gl_list_nx_create): Renamed from gl_list_create.
12978         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
12979         (gl_list_nx_set_at): Renamed from gl_list_set_at.
12980         (gl_list_nx_add_first): Renamed from gl_list_add_first.
12981         (gl_list_nx_add_last): Renamed from gl_list_add_last.
12982         (gl_list_nx_add_before): Renamed from gl_list_add_before.
12983         (gl_list_nx_add_after): Renamed from gl_list_add_after.
12984         (gl_list_nx_add_at): Renamed from gl_list_add_at.
12985         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
12986         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
12987         gl_list_create_empty.
12988         (gl_list_nx_create): Renamed from gl_list_create.
12989         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
12990         (gl_list_nx_set_at): Renamed from gl_list_set_at.
12991         (gl_list_nx_add_first): Renamed from gl_list_add_first.
12992         (gl_list_nx_add_last): Renamed from gl_list_add_last.
12993         (gl_list_nx_add_before): Renamed from gl_list_add_before.
12994         (gl_list_nx_add_after): Renamed from gl_list_add_after.
12995         (gl_list_nx_add_at): Renamed from gl_list_add_at.
12996         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
12997         * lib/gl_array_list.c: Don't include xalloc.h.
12998         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
12999         NULL upon out-of-memory.
13000         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
13001         out-of-memory.
13002         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
13003         Change return type to 'int'.
13004         (gl_array_nx_set_at): Renamed from gl_array_set_at.
13005         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
13006         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
13007         upon out-of-memory.
13008         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
13009         upon out-of-memory.
13010         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
13011         upon out-of-memory.
13012         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
13013         upon out-of-memory.
13014         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
13015         out-of-memory.
13016         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
13017         Update.
13018         (gl_array_list_implementation): Update.
13019         * lib/gl_carray_list.c: Don't include xalloc.h.
13020         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
13021         Return NULL upon out-of-memory.
13022         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
13023         out-of-memory.
13024         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
13025         Change return type to 'int'.
13026         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
13027         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
13028         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
13029         upon out-of-memory.
13030         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
13031         upon out-of-memory.
13032         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
13033         out-of-memory.
13034         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
13035         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
13036         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
13037         Update.
13038         (gl_carray_list_implementation): Update.
13039         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
13040         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
13041         gl_linked_create_empty. Return NULL upon out-of-memory.
13042         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
13043         out-of-memory.
13044         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
13045         Change return type to 'int'. Return -1 upon out-of-memory.
13046         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
13047         out-of-memory.
13048         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
13049         upon out-of-memory.
13050         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
13051         upon out-of-memory.
13052         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
13053         NULL upon out-of-memory.
13054         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
13055         upon out-of-memory.
13056         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
13057         out-of-memory.
13058         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
13059         Update.
13060         * lib/gl_linked_list.c: Don't include xalloc.h.
13061         (gl_linked_list_implementation): Update.
13062         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
13063         (add_to_bucket): Change return type to 'int'.
13064         (gl_linkedhash_list_implementation): Update.
13065         * lib/gl_anytree_list1.h (free_subtree): New function.
13066         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
13067         gl_tree_create_empty. Return NULL upon out-of-memory.
13068         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
13069         Change return type to 'int'. Return -1 upon out-of-memory.
13070         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
13071         out-of-memory.
13072         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
13073         (gl_tree_remove_node): New function, moved here from
13074         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
13075         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
13076         Update.
13077         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
13078         malloc, not xmalloc. Return NULL upon out-of-memory.
13079         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
13080         out-of-memory.
13081         (gl_tree_remove_node_from_tree): New function, extracted from
13082         gl_tree_remove_node.
13083         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
13084         upon out-of-memory.
13085         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
13086         out-of-memory.
13087         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
13088         upon out-of-memory.
13089         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
13090         upon out-of-memory.
13091         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
13092         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
13093         not xmalloc. Return NULL upon out-of-memory.
13094         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
13095         out-of-memory.
13096         (gl_tree_remove_node_from_tree): New function, extracted from
13097         gl_tree_remove_node.
13098         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
13099         upon out-of-memory.
13100         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
13101         out-of-memory.
13102         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
13103         upon out-of-memory.
13104         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
13105         upon out-of-memory.
13106         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
13107         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
13108         gl_anytree_list1.h before gl_anyavltree_list2.h.
13109         (gl_avltree_list_implementation): Update.
13110         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
13111         gl_anytree_list1.h before gl_anyavltree_list2.h.
13112         (gl_rbtree_list_implementation): Update.
13113         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
13114         Change return type to 'int'. Return -1 upon out-of-memory. Use
13115         __builtin_expect.
13116         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
13117         (gl_avltreehash_list_implementation): Update.
13118         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
13119         (gl_rbtreehash_list_implementation): Update.
13120         * modules/array-list (Depends-on): Remove xalloc.
13121         * modules/carray-list (Depends-on): Likewise.
13122         * modules/linked-list (Depends-on): Likewise.
13123         * modules/linkedhash-list (Depends-on): Likewise.
13124         * modules/avltree-list (Depends-on): Likewise.
13125         * modules/rbtree-list (Depends-on): Likewise.
13126         * modules/avltreehash-list (Depends-on): Likewise.
13127         * modules/rbtreehash-list (Depends-on): Likewise.
13128
13129         * modules/xsublist: New file.
13130         * lib/gl_xsublist.h: New file.
13131         * lib/gl_xsublist.c: New file.
13132         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
13133         (gl_sublist_nx_create): New declaration.
13134         * lib/gl_sublist.c: Don't include xalloc.h.
13135         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
13136         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
13137         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
13138         Change return type to 'int'. Return -1 upon out-of-memory.
13139         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
13140         upon out-of-memory.
13141         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
13142         NULL upon out-of-memory.
13143         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
13144         upon out-of-memory.
13145         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
13146         NULL upon out-of-memory.
13147         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
13148         NULL upon out-of-memory.
13149         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
13150         upon out-of-memory.
13151         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
13152         (gl_sublist_list_implementation): Update.
13153         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
13154         upon out-of-memory.
13155         * modules/sublist (Depends-on): Remove xalloc.
13156
13157         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
13158         * tests/test-carray_list.c: Likewise.
13159         * tests/test-linked_list.c: Likewise.
13160         * tests/test-linkedhash_list.c: Likewise.
13161         * tests/test-avltree_list.c: Likewise.
13162         * tests/test-rbtree_list.c: Likewise.
13163         * tests/test-avltreehash_list.c: Likewise.
13164         * tests/test-rbtreehash_list.c: Likewise.
13165         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
13166         * modules/carray-list-tests (Makefile.am): Likewise.
13167         * modules/linked-list-tests (Makefile.am): Likewise.
13168         * modules/linkedhash-list-tests (Makefile.am): Likewise.
13169         * modules/avltree-list-tests (Makefile.am): Likewise.
13170         * modules/rbtree-list-tests (Makefile.am): Likewise.
13171         * modules/avltreehash-list-tests (Makefile.am): Likewise.
13172         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
13173
13174         * NEWS: Mention the changes.
13175
13176         * lib/clean-temp.c: Include gl_xlist.h.
13177         * modules/clean-temp (Depends-on): Add xlist.
13178
13179         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
13180         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
13181
13182         * tests/test-array_oset.c: Include gl_xlist.h.
13183         * modules/array-oset-tests (Depends-on): Add xlist.
13184
13185         Reported by José E. Marchesi <jemarch@gnu.org>.
13186
13187 2009-12-13  Bruno Haible  <bruno@clisp.org>
13188
13189         Move the malloc checking from module 'oset' to new module 'xoset'.
13190         * modules/xoset: New file.
13191         * lib/gl_xoset.h: New file.
13192         * lib/gl_xoset.c: New file.
13193         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
13194         declarations.
13195         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
13196         (struct gl_oset_implementation): Rename and change methods accordingly.
13197         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
13198         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
13199         'int'. Mark as __warn_unused_result__.
13200         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
13201         gl_oset_create_empty.
13202         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
13203         'int'.
13204         * lib/gl_array_oset.c: Don't include xalloc.h.
13205         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
13206         malloc, not xmalloc.
13207         (grow): Change return type to 'int'. Don't call xalloc_die.
13208         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
13209         to 'int'.
13210         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
13211         'int'.
13212         (gl_array_oset_implementation): Update.
13213         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
13214         gl_tree_create_empty.
13215         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
13216         'int'.
13217         * lib/gl_avltree_oset.c: Don't include xalloc.h.
13218         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
13219         xmalloc.
13220         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
13221         not xmalloc.
13222         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
13223         xmalloc.
13224         (gl_avltree_oset_implementation): Update.
13225         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
13226         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
13227         xmalloc.
13228         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
13229         not xmalloc.
13230         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
13231         xmalloc.
13232         (gl_rbtree_oset_implementation): Update.
13233         * modules/array-oset (Depends-on): Remove xalloc.
13234         * modules/avltree-oset (Depends-on): Likewise.
13235         * modules/rbtree-oset (Depends-on): Likewise.
13236         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
13237         * tests/test-avltree_oset.c: Likewise.
13238         * tests/test-rbtree_oset.c: Likewise.
13239         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
13240         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
13241         * modules/rbtree-oset-tests (Makefile.am): Likewise.
13242         * NEWS: Mention the change.
13243
13244 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
13245
13246         maint.mk: allow a project to override release-prep commands
13247         * top/maint.mk (alpha, beta, stable): Move release-preparatory
13248         commands into a new rule.
13249         (release-prep): New rule.
13250         (release-prep-hook): New overridable variable.
13251
13252 2009-12-13  Bruno Haible  <bruno@clisp.org>
13253
13254         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
13255
13256 2009-12-13  Jim Meyering  <meyering@redhat.com>
13257
13258         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
13259         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
13260
13261 2009-12-12  Bruno Haible  <bruno@clisp.org>
13262
13263         duplocale: Tweak.
13264         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
13265
13266 2009-12-12  Karl Berry  <karl@gnu.org>
13267
13268         * config/srclist.txt (strtoll.c): tab changes, no more sync.
13269
13270 2009-12-12  Bruno Haible  <bruno@clisp.org>
13271
13272         * m4/po.m4: Undo incorrect untabification.
13273
13274 2009-12-12  Bruno Haible  <bruno@clisp.org>
13275
13276         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
13277         * modules/c-strtod (Depends-on): Add locale.
13278         * modules/c-strtold (Depends-on): Likewise.
13279
13280 2009-12-12  Bruno Haible  <bruno@clisp.org>
13281
13282         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
13283
13284 2009-12-11  Eric Blake  <ebb9@byu.net>
13285
13286         setenv: relax requirement in light of POSIX ruling
13287         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
13288         not NULL.
13289         * tests/test-setenv.c (main): Relax test.
13290         * tests/test-unsetenv.c (main): Likewise.
13291         * doc/posix-functions/setenv.texi (setenv): Document this.
13292         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
13293
13294 2009-12-11  Bruno Haible  <bruno@clisp.org>
13295
13296         New module 'fd-safer-flag'.
13297         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
13298         * lib/dup-safer.c (dup_safer_flag): Remove function.
13299         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
13300         * lib/fd-safer.c (fd_safer_flag): Remove function.
13301         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
13302         * modules/cloexec (configure.ac): Drop indicator macro.
13303         * modules/fd-safer-flag: New file.
13304         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
13305         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
13306         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
13307
13308 2009-12-11  Bruno Haible  <bruno@clisp.org>
13309
13310         Tests for module 'nl_langinfo'.
13311         * modules/nl_langinfo-tests: New file.
13312         * tests/test-nl_langinfo.sh: New file.
13313         * tests/test-nl_langinfo.c: New file.
13314
13315         New module 'nl_langinfo'.
13316         * lib/nl_langinfo.c: New file.
13317         * m4/nl_langinfo.m4: New file.
13318         * modules/nl_langinfo: New file.
13319         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
13320
13321 2009-12-11  Bruno Haible  <bruno@clisp.org>
13322
13323         Tests for module 'langinfo'.
13324         * modules/langinfo-tests: New file.
13325         * tests/test-langinfo.c: New file.
13326
13327         New module 'langinfo'.
13328         * lib/langinfo.in.h: New file.
13329         * m4/langinfo_h.m4: New file.
13330         * modules/langinfo: New file.
13331         * doc/posix-headers/langinfo.texi: Mention the new module.
13332
13333 2009-12-11  Bruno Haible  <bruno@clisp.org>
13334
13335         * lib/config.charset: Untabify.
13336
13337 2009-12-11  Bruno Haible  <bruno@clisp.org>
13338
13339         * modules/unistd-safer (configure.ac): Drop indicator macro.
13340
13341 2009-12-11  Bruno Haible  <bruno@clisp.org>
13342
13343         Move pipe2-safer code to its own file.
13344         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
13345         * lib/pipe-safer.c (pipe2_safer): Remove function.
13346         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
13347         (Makefile.am): Add it to lib_SOURCES.
13348
13349 2009-12-10  Bruno Haible  <bruno@clisp.org>
13350
13351         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
13352
13353 2009-12-10  Bruno Haible  <bruno@clisp.org>
13354
13355         Declare which arguments expect non-NULL values, for GCC and clang.
13356         * build-aux/arg-nonnull.h: New file.
13357         * modules/arg-nonnull: New file.
13358         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
13359         (inet_ntop, inet_pton): Use it.
13360         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
13361         (closedir, dirfd, opendir, scandir, alphasort): Use it.
13362         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
13363         (open, openat): Use it.
13364         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
13365         (fnmatch): Use it.
13366         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
13367         (getopt, getopt_long, getopt_long_only): Use it.
13368         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
13369         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
13370         Use it.
13371         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
13372         (iconv_open): Use it.
13373         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
13374         (strtoimax, strtoumax): Use it.
13375         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
13376         (duplocale): Use it.
13377         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
13378         (frexp, frexpl): Use it.
13379         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
13380         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
13381         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
13382         (tsearch, tfind, tdelete, twalk): Use it.
13383         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
13384         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
13385         sigpending): Use it.
13386         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
13387         (posix_spawn, posix_spawnp, posix_spawnattr_init,
13388         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
13389         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
13390         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
13391         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
13392         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
13393         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
13394         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
13395         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
13396         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
13397         Use it.
13398         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
13399         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
13400         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
13401         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
13402         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
13403         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
13404         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
13405         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
13406         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
13407         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
13408         strtoull, unsetenv): Use it.
13409         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
13410         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
13411         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
13412         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
13413         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
13414         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
13415         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
13416         (strcasecmp, strncasecmp): Use it.
13417         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
13418         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
13419         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
13420         rpl_setsockopt): Use it.
13421         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
13422         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
13423         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
13424         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
13425         (gettimeofday): Use it.
13426         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
13427         (times): Use it.
13428         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
13429         (uname): Use it.
13430         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
13431         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
13432         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
13433         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
13434         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
13435         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
13436         unlinkat, write): Use it.
13437         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
13438         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
13439         * lib/argv-iter.h: Include arg-nonnull.h.
13440         (_ATTRIBUTE_NONNULL_): Remove macro.
13441         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
13442         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
13443         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
13444         optimization.
13445         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
13446         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
13447         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
13448         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
13449         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
13450         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
13451         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
13452         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
13453         * modules/arpa_inet (Depends-on): Add arg-nonnull.
13454         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
13455         * modules/dirent (Depends-on): Add arg-nonnull.
13456         (Makefile.am): Insert arg-nonnull.h into dirent.h.
13457         * modules/fcntl-h (Depends-on): Add arg-nonnull.
13458         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
13459         * modules/fnmatch (Depends-on): Add arg-nonnull.
13460         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
13461         * modules/getopt-posix (Depends-on): Add arg-nonnull.
13462         (Makefile.am): Insert arg-nonnull.h into getopt.h.
13463         * modules/glob (Depends-on): Add arg-nonnull.
13464         (Makefile.am): Insert arg-nonnull.h into glob.h.
13465         * modules/iconv_open (Depends-on): Add arg-nonnull.
13466         (Makefile.am): Insert arg-nonnull.h into iconv.h.
13467         * modules/inttypes (Depends-on): Add arg-nonnull.
13468         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
13469         * modules/locale (Depends-on): Add arg-nonnull.
13470         (Makefile.am): Insert arg-nonnull.h into locale.h.
13471         * modules/math (Depends-on): Add arg-nonnull.
13472         (Makefile.am): Insert arg-nonnull.h into math.h.
13473         * modules/netdb (Depends-on): Add arg-nonnull.
13474         (Makefile.am): Insert arg-nonnull.h into netdb.h.
13475         * modules/search (Depends-on): Add arg-nonnull.
13476         (Makefile.am): Insert arg-nonnull.h into search.h.
13477         * modules/signal (Depends-on): Add arg-nonnull.
13478         (Makefile.am): Insert arg-nonnull.h into signal.h.
13479         * modules/spawn (Depends-on): Add arg-nonnull.
13480         (Makefile.am): Insert arg-nonnull.h into spawn.h.
13481         * modules/stdio (Depends-on): Add arg-nonnull.
13482         (Makefile.am): Insert arg-nonnull.h into stdio.h.
13483         * modules/stdlib (Depends-on): Add arg-nonnull.
13484         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
13485         * modules/string (Depends-on): Add arg-nonnull.
13486         (Makefile.am): Insert arg-nonnull.h into string.h.
13487         * modules/strings (Depends-on): Add arg-nonnull.
13488         (Makefile.am): Insert arg-nonnull.h into strings.h.
13489         * modules/sys_socket (Depends-on): Add arg-nonnull.
13490         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
13491         * modules/sys_stat (Depends-on): Add arg-nonnull.
13492         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
13493         * modules/sys_time (Depends-on): Add arg-nonnull.
13494         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
13495         * modules/sys_times (Depends-on): Add arg-nonnull.
13496         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
13497         * modules/sys_utsname (Depends-on): Add arg-nonnull.
13498         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
13499         * modules/time (Depends-on): Add arg-nonnull.
13500         (Makefile.am): Insert arg-nonnull.h into time.h.
13501         * modules/unistd (Depends-on): Add arg-nonnull.
13502         (Makefile.am): Insert arg-nonnull.h into unistd.h.
13503         * modules/wchar (Depends-on): Add arg-nonnull.
13504         (Makefile.am): Insert arg-nonnull.h into wchar.h.
13505         * modules/argv-iter (Depends-on): Add arg-nonnull.
13506         * tests/test-canonicalize.c (null_ptr): New function.
13507         (main): Use it.
13508         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
13509         (main): Use it.
13510         * tests/test-memmem.c (null_ptr): New function.
13511         (main): Use it.
13512         Reported by Jim Meyering.
13513
13514 2009-12-10  Bruno Haible  <bruno@clisp.org>
13515
13516         Use spaces for indentation, not tabs.
13517         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
13518         * m4/*.m4: Untabify.
13519         * build-aux/*.h: Untabify.
13520         * tests/**/*.[hc]: Untabify.
13521         * README: New section "Indent with spaces, not TABs", based on
13522         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
13523         * NEWS: Mention the change.
13524
13525 2009-12-10  Bruno Haible  <bruno@clisp.org>
13526
13527         pty test: Fix link error.
13528         * modules/pty-tests (Makefile.am): Add the default LDADD value to
13529         test_pty_LDADD.
13530
13531 2009-12-07  Simon Josefsson  <simon@josefsson.org>
13532
13533         * modules/pty: New file.
13534         * modules/pty-tests: New file.
13535         * m4/pty.m4: New file.
13536         * tests/test-pty.c: New file.
13537         * doc/glibc-headers/pty.texi: Modified.
13538         * doc/glibc-functions/forkpty.texi: Modified.
13539         * doc/glibc-functions/openpty.texi: Modified.
13540
13541 2009-12-10  Bruno Haible  <bruno@clisp.org>
13542
13543         Avoid syntax error in C++ mode.
13544         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
13545
13546 2009-12-10  Bruno Haible  <bruno@clisp.org>
13547
13548         Use sed with option -e.
13549         * gnulib-tool (func_version, func_emit_copyright_notice,
13550         func_emit_initmacro_end, func_import, func_create_testdir): Pass
13551         option -e to sed.
13552         * modules/link-warning (Makefile.am): Likewise.
13553
13554 2009-12-10  Jim Meyering  <meyering@redhat.com>
13555
13556         mgetgroups: do not write bytes beyond end of malloc'd buffer
13557         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
13558         username, we call getgroups with a one-element-shorter buffer,
13559         but still told it the length was original, max_n_groups.
13560
13561 2009-12-09  Eric Blake  <ebb9@byu.net>
13562
13563         cloexec: relax license
13564         * modules/cloexec (Maintainer): Add myself.
13565         (License): Use LGPL, not GPL.
13566
13567         link-warning: optimize generation
13568         * modules/link-warning (Makefile.am): Reduce process usage.
13569
13570 2009-12-09  Bruno Haible  <bruno@clisp.org>
13571
13572         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
13573         workaround was added on 2009-11-17.
13574
13575 2009-12-09  Jim Meyering  <meyering@redhat.com>
13576             Bruno Haible  <bruno@clisp.org>
13577
13578         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
13579         * modules/link-warning (Makefile.am): Make the comment-removing sed
13580         command more robust in the face of bootstrap-prepended comment lines.
13581
13582 2009-12-09  Bruno Haible  <bruno@clisp.org>
13583
13584         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
13585         most one group.
13586
13587 2009-12-09  Simon Josefsson <simon@josefsson.org>
13588             Bruno Haible  <bruno@clisp.org>
13589
13590         * build-aux/link-warning.h: Add copyright notice.
13591         * modules/link-warning (Makefile.am): Generate link-warning.h from
13592         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
13593         * NEWS: Mention change in link-warning module.
13594         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
13595         * modules/dirent (Makefile.am): Add dependency to dirent.h.
13596         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
13597         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
13598         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
13599         * modules/math (Makefile.am): Add dependency to math.h.
13600         * modules/search (Makefile.am): Add dependency to search.h.
13601         * modules/signal (Makefile.am): Add dependency to signal.h.
13602         * modules/spawn (Makefile.am): Add dependency to spawn.h.
13603         * modules/stdio (Makefile.am): Add dependency to stdio.h.
13604         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
13605         * modules/string (Makefile.am): Add dependency to string.h.
13606         * modules/strings (Makefile.am): Add dependency to strings.h.
13607         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
13608         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
13609         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
13610         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
13611         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
13612         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
13613         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
13614         * modules/unistd (Makefile.am): Add dependency to unistd.h.
13615         * modules/wchar (Makefile.am): Add dependency to wchar.h.
13616
13617 2009-12-09  Bruno Haible  <bruno@clisp.org>
13618
13619         fchdir: Optimize away rpl_fstat when possible.
13620         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
13621         REPLACE_OPEN_DIRECTORY.
13622         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
13623
13624 2009-12-09  Bruno Haible  <bruno@clisp.org>
13625
13626         * lib/fchdir.c: Update comment.
13627
13628 2009-12-09  Bruno Haible  <bruno@clisp.org>
13629
13630         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
13631
13632 2009-12-08  Eric Blake  <ebb9@byu.net>
13633
13634         fchdir: avoid memory leak on re-registration.
13635         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
13636
13637 2009-12-08  Jim Meyering  <meyering@redhat.com>
13638
13639         init.sh: avoid Solaris 10 /bin/sh portability problem
13640         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
13641         sourced script:
13642           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
13643           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
13644           bar
13645         tests/init.sh relied on that, accepting a --set-path=DIR argument,
13646         and two tests used that idiom.
13647         * tests/init.sh: Update suggested usage comments.
13648         (path_prepend_): New function, to be used in place
13649         of the --src-path=DIR option.
13650         (setup_): Move PATH-prepending code into path_prepend_.
13651         * tests/test-pread.sh: Adapt to new usage.
13652         * tests/test-xalloc-die.sh: Likewise.
13653
13654 2009-12-08  Simon Josefsson  <simon@josefsson.org>
13655
13656         * doc/gnulib.texi (Glibc pty.h): Add.
13657         * doc/glibc-functions/forkpty.texi: Add.
13658         * doc/glibc-functions/openpty.texi: Add.
13659         Suggested by Bruno Haible.
13660
13661 2009-12-08  Eric Blake  <ebb9@byu.net>
13662
13663         fchdir: fix logic bugs
13664         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
13665         * tests/test-fchdir.c (main): Enhance test.
13666         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
13667         is in use.
13668
13669         dup2: fix logic bugs
13670         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
13671         REPLACE_DUP2 to decide when rpl_dup2 is needed.
13672         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
13673         exists.
13674         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
13675
13676 2009-12-07  Eric Blake  <ebb9@byu.net>
13677
13678         unlink: fix m4 detection
13679         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
13680
13681         unistd-safer: add unit test
13682         * modules/unistd-safer-tests: New file.
13683         * tests/test-dup-safer.c: Likewise.
13684         * tests/test-cloexec.c (setmode): Avoid compiler warning.
13685         * tests/test-dup2.c (setmode): Likewise.
13686         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
13687
13688         cloexec: preserve text vs. binary across dup_cloexec
13689         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
13690         mode.
13691         * modules/dup2-tests (Depends-on): Add binary-io.
13692         * modules/cloexec-tests (Depends-on): Likewise.
13693         * tests/test-dup2.c (setmode, is_mode): New helpers.
13694         (main): Add tests that translation mode is preserved.
13695         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
13696         Reported by Bruno Haible.
13697
13698         mgetgroups: reduce duplicate listings
13699         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
13700         resulting array.
13701         * tests/test-chown.h (test_chown): Simplify client.
13702         * tests/test-lchown.h (test_lchown): Likewise.
13703
13704 2009-12-06  Bruno Haible  <bruno@clisp.org>
13705
13706         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
13707         value.
13708
13709 2009-12-06  Bruno Haible  <bruno@clisp.org>
13710
13711         * lib/progname.c: Include stdio.h, stdlib.h.
13712         (set_program_name): Reject a NULL argument.
13713
13714 2009-12-05  Eric Blake  <ebb9@byu.net>
13715
13716         pipe2-safer: new module
13717         * modules/pipe2-safer: New file.
13718         * lib/unistd-safer.h (pipe2_safer): New prototype.
13719         * lib/unistd--.h (pipe2): New wrapper.
13720         * lib/pipe-safer.c (pipe2_safer): New function.
13721         * modules/pipe (Depends-on): Add pipe2-safer.
13722         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
13723
13724         stdlib-safer: preserve cloexec flag for mkostemp[s]
13725         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
13726         fd_safer_flag.
13727
13728         unistd-safer: allow preservation of cloexec status via flag
13729         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
13730         prototypes.
13731         * lib/dup-safer.c (dup_safer_flag): New function.
13732         * lib/fd-safer.c (fd_safer_flag): Likewise.
13733         * modules/cloexec (configure.ac): Set witness.
13734
13735         test-dup2: enhance test
13736         * modules/dup2-tests (Depends-on): Add cloexec.
13737         * tests/test-dup2.c (main): Enhance test.
13738
13739         cloexec: add dup_cloexec
13740         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
13741         header and comments.
13742         * lib/cloexec.c (set_cloexec_flag): Add comments.
13743         (dup_cloexec): New function, with mingw implementation borrowed
13744         from...
13745         * lib/w32spawn.h (dup_noinherit): ...here.
13746         * modules/execute (Depends-on): Add cloexec.
13747         * modules/pipe (Depends-on): Likewise.
13748         * modules/cloexec (Depends-on): Add dup2.
13749         * modules/cloexec-tests (Files): New file.
13750         * tests/test-cloexec.c: Likewise.
13751
13752         test-xalloc-die: fix test for mingw
13753         * modules/xalloc-die-tests (Files): Add tests/init.sh.
13754         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
13755         directory and .exe suffix off argv[0] output.
13756
13757         test-fseeko: fix test for mingw
13758         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
13759         than undefining fseek, so test will pass on mingw.
13760
13761 2009-12-05  Bruno Haible  <bruno@clisp.org>
13762
13763         * lib/progname.h (set_program_name): Clarify specification.
13764         * lib/progname.c (set_program_name): Likewise.
13765         Reported by Jim Meyering.
13766
13767 2009-12-05  Jim Meyering  <meyering@redhat.com>
13768
13769         maint.mk: backslash-escape parens in default regexp
13770         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
13771         backslash-escape the literal parentheses.
13772
13773         maint.mk: news-date-check: use grep -E
13774         * top/maint.mk (today): Define a Make variable, not a...
13775         (news-date-check): ...shell variable.
13776         (news-date-regexp): Use the Make variable.
13777         Use grep's -E option.  Change the failing diagnostic to mention
13778         the variable, $(news-date-regexp).
13779
13780 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
13781
13782         maintainer-makefile: allow customization of NEWS entry format
13783         * top/maint.mk (news-date-regexp): New overridable variable.
13784         (news-date-check): Use it.
13785
13786 2009-12-04  Eric Blake  <ebb9@byu.net>
13787
13788         mgetgroups: add xgetgroups, and avoid ENOSYS failures
13789         * lib/mgetgroups.h (xgetgroups): New prototype.
13790         * lib/mgetgroups.c (xgetgroups): New wrapper.
13791         (mgetgroups): Handle ENOSYS.
13792         * modules/mgetgroups (Depends-on): Add realloc.
13793         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
13794
13795         mgetgroups: avoid argument promotion issues with -1
13796         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
13797         for invalid gid_t.
13798         * tests/test-chown.h (getegid, test_chown): Likewise.
13799         * tests/test-lchown.h (getegid, test_lchown): Likewise.
13800
13801 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
13802
13803         exclude: Fix header file problems.
13804         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
13805
13806 2009-12-01  Jim Meyering  <meyering@redhat.com>
13807
13808         fts: fts_open: do not let an empty string cause immediate failure
13809         This is required in support of GNU rm, for which the command
13810         "rm A '' B" must process and remove both A and B, in spite of
13811         the empty string argument.
13812         * lib/fts.c (fts_open): Do not let the presence of an empty string
13813         cause fts_open to fail immediately.  Most fts-using tools must be
13814         able to process all arguments, in order, and can be expected to
13815         diagnose such arguments themselves.
13816
13817 2009-11-30  Eric Blake  <ebb9@byu.net>
13818
13819         utimens: fix compilation error
13820         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
13821         Declare variable at right scope.
13822
13823 2009-11-29  Jim Meyering  <meyering@redhat.com>
13824
13825         bootstrap: handle perl-5.11's changed --version output
13826         * build-aux/bootstrap (get_version): Handle perl separately,
13827         since perl-5.11's --version output is different.
13828
13829 2009-11-28  Jim Meyering  <meyering@redhat.com>
13830
13831         userspec: depend on the inttostr module, too
13832         * modules/userspec (Depends-on): Add inttostr.
13833
13834         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
13835         * lib/userspec.c (parse_with_separator): Do not accept a user ID
13836         number of MAXUID when it evaluates to (uid_t) -1.
13837         Likewise for group ID.  Reported by Matt McCutchen in
13838         <http://savannah.gnu.org/bugs/?28113>
13839
13840         userspec: reformat to use spaces, not TABs
13841         * lib/userspec.c: Expand TABs to spaces.
13842         Add Emacs' "indent-tabs-mode: nil" hint.
13843
13844 2009-11-27  Eric Blake  <ebb9@byu.net>
13845
13846         getopt-gnu: flush out another BSD bug
13847         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
13848         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
13849         flush out BSD bug.
13850         * tests/test-getopt.h (test_getopt): End lists with NULL.
13851         * tests/test-getopt_long.h (test_getopt_long): Likewise.
13852         (test_getopt_long_posix): Enhance test.
13853         * modules/getopt-posix-tests (Depends-on): Add stdbool.
13854         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
13855         getopt-gnu.
13856         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
13857         Likewise.
13858
13859 2009-11-27  Simon Josefsson  <simon@josefsson.org>
13860
13861         * modules/idpriv-droptemp-tests (Notice): Fix text.
13862
13863 2009-11-27  Jim Meyering  <meyering@redhat.com>
13864
13865         test-xalloc-die: avoid spurious failure due to libtool argv difference
13866         In a libtool-enabled project, this test would fail due to a difference
13867         in the emitted program name, e.g.,
13868         -test-xalloc-die: memory exhausted
13869         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
13870         Use program to avoid that.
13871         * modules/xalloc-die-tests (Depends-on): Add progname.
13872         * tests/test-xalloc-die.c: Include progname.h".
13873         (program_name): Remove decl.
13874         (main): Call set_program_name.
13875         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
13876
13877 2009-11-26  Richard Jones  <rjones@redhat.com>
13878
13879         w32sock: leave win32 error in place.
13880         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
13881
13882 2009-11-26  Eric Blake  <ebb9@byu.net>
13883
13884         init.sh: suggest to use skip_ and fail_ functions in comments
13885         * tests/init.sh: Add a sentence.
13886
13887 2009-11-25  Bruno Haible  <bruno@clisp.org>
13888
13889         init.sh: add documentation in comments
13890         * tests/init.sh: Add some developer and user documentation.
13891
13892 2009-11-26  Jim Meyering  <meyering@redhat.com>
13893
13894         init.sh: accommodate even those who specify bogus srcdir manually
13895         * tests/init.sh: Normally, srcdir is guaranteed by automake and
13896         configure-time tests to be sanitized, so that there is no need to
13897         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
13898         (with no double quotes) suffices.  However, since tests may be
13899         invoked manually, and since you may explicitly set srcdir to the
13900         name of a directory containing spaces, do quote its uses here.
13901         * tests/test-pread.sh: Likewise.
13902         Suggested by Bruno Haible.
13903
13904         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
13905         * tests/test-pread.sh: Write no data into the pipe, because
13906         test-pread actually reads none.  This avoids a diagnostic,
13907         "bash: echo: write error: Broken pipe", that arises in the unusual
13908         event something is ignoring SIGPIPE, and might be interpreted
13909         as some sort of failure.  Reported by Bruno Haible.
13910
13911 2009-11-25  Jim Meyering  <meyering@redhat.com>
13912
13913         test-pread: cover failure with ESPIPE and EINVAL
13914         * tests/test-pread.c (main): Test for failure, too.
13915         * tests/test-pread.sh: Invoke with stdin on a pipe.
13916         Suggested by Eric Blake.
13917
13918         pread: improvement and fix
13919         * modules/pread (Depends-on): Depend on lseek, for portability to
13920         e.g., mingw.  Suggested by Eric Blake.
13921         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
13922
13923         unistd.in.h: correct declaration of pread
13924         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
13925         Reported by Richard W.M. Jones.
13926
13927         test-pread.sh: distribute the test script
13928         * modules/pread-tests (Files): Include test-pread.sh.
13929
13930         test-pread.sh: clean up
13931         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
13932         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
13933         That is unnecessary, since it's always ".".
13934         Suggestion from Eric Blake.
13935
13936         test-pread.sh: make executable
13937         * tests/test-pread.sh: Set executable bit.
13938         Reported by Eric Blake.
13939
13940         correct typo in test-pread.sh
13941         * tests/test-pread.sh: Add #! line.
13942
13943         test pread
13944         * tests/test-pread.c: New file.
13945         * tests/test-pread.sh: Likewise.
13946         * modules/pread-tests: Likewise.
13947
13948         pread: new module
13949         * modules/pread: New file.
13950         * lib/unistd.in.h (pread): Define/declare.
13951         * lib/pread.c (pread): New file.
13952         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
13953         * modules/unistd (Makefile.am): Substitute witnesses.
13954         * doc/posix-functions/pread.texi (pread): Update.
13955         * MODULES.html.sh: Add pread.
13956
13957 2009-11-25  Jim Meyering  <meyering@redhat.com>
13958
13959         tests/init.sh: new file to be used via most *.sh tests
13960         * tests/init.sh: New file.
13961
13962 2009-11-25  Eric Blake  <ebb9@byu.net>
13963
13964         utimens: work around older Linux failure with symlinks
13965         * lib/utimens.c (lutimensat_works_really): New variable.
13966         (fdutimens, lutimens): Use it to manage kernels that support
13967         nanosecond times on files, but not on symlinks.
13968         Reported by OndÅ™ej Vašík.
13969
13970         utimes: fix configure grammar
13971         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
13972
13973 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
13974
13975         regex: Fix fastmap for multibyte character ranges.
13976         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
13977         characters when a multibyte character range is included.
13978
13979 2009-11-22  Andy Wingo  <wingo@pobox.com>
13980
13981         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
13982         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
13983
13984 2009-11-24  Bruno Haible  <bruno@clisp.org>
13985
13986         doc: Most *_l functions exist in MacOS X 10.5.
13987         * doc/posix-functions/duplocale.texi: Update platforms list.
13988         * doc/posix-functions/freelocale.texi: Likewise.
13989         * doc/posix-functions/newlocale.texi: Likewise.
13990         * doc/posix-functions/uselocale.texi: Likewise.
13991         * doc/posix-functions/isalnum_l.texi: Likewise.
13992         * doc/posix-functions/isalpha_l.texi: Likewise.
13993         * doc/posix-functions/isblank_l.texi: Likewise.
13994         * doc/posix-functions/iscntrl_l.texi: Likewise.
13995         * doc/posix-functions/isdigit_l.texi: Likewise.
13996         * doc/posix-functions/isgraph_l.texi: Likewise.
13997         * doc/posix-functions/islower_l.texi: Likewise.
13998         * doc/posix-functions/isprint_l.texi: Likewise.
13999         * doc/posix-functions/ispunct_l.texi: Likewise.
14000         * doc/posix-functions/isspace_l.texi: Likewise.
14001         * doc/posix-functions/isupper_l.texi: Likewise.
14002         * doc/posix-functions/iswalnum_l.texi: Likewise.
14003         * doc/posix-functions/iswalpha_l.texi: Likewise.
14004         * doc/posix-functions/iswblank_l.texi: Likewise.
14005         * doc/posix-functions/iswcntrl_l.texi: Likewise.
14006         * doc/posix-functions/iswctype_l.texi: Likewise.
14007         * doc/posix-functions/iswdigit_l.texi: Likewise.
14008         * doc/posix-functions/iswgraph_l.texi: Likewise.
14009         * doc/posix-functions/iswlower_l.texi: Likewise.
14010         * doc/posix-functions/iswprint_l.texi: Likewise.
14011         * doc/posix-functions/iswpunct_l.texi: Likewise.
14012         * doc/posix-functions/iswspace_l.texi: Likewise.
14013         * doc/posix-functions/iswupper_l.texi: Likewise.
14014         * doc/posix-functions/iswxdigit_l.texi: Likewise.
14015         * doc/posix-functions/isxdigit_l.texi: Likewise.
14016         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
14017         * doc/posix-functions/strcasecmp_l.texi: Likewise.
14018         * doc/posix-functions/strcoll_l.texi: Likewise.
14019         * doc/posix-functions/strfmon_l.texi: Likewise.
14020         * doc/posix-functions/strftime_l.texi: Likewise.
14021         * doc/posix-functions/strncasecmp_l.texi: Likewise.
14022         * doc/posix-functions/strxfrm_l.texi: Likewise.
14023         * doc/posix-functions/tolower_l.texi: Likewise.
14024         * doc/posix-functions/toupper_l.texi: Likewise.
14025         * doc/posix-functions/towctrans_l.texi: Likewise.
14026         * doc/posix-functions/towlower_l.texi: Likewise.
14027         * doc/posix-functions/towupper_l.texi: Likewise.
14028         * doc/posix-functions/wcscoll_l.texi: Likewise.
14029         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
14030         * doc/posix-functions/wctrans_l.texi: Likewise.
14031         * doc/posix-functions/wctype_l.texi: Likewise.
14032         * doc/glibc-functions/strptime_l.texi: Likewise.
14033         * doc/glibc-functions/strtod_l.texi: Likewise.
14034         * doc/glibc-functions/strtof_l.texi: Likewise.
14035         * doc/glibc-functions/strtol_l.texi: Likewise.
14036         * doc/glibc-functions/strtold_l.texi: Likewise.
14037         * doc/glibc-functions/strtoll_l.texi: Likewise.
14038         * doc/glibc-functions/strtoul_l.texi: Likewise.
14039         * doc/glibc-functions/strtoull_l.texi: Likewise.
14040         * doc/glibc-functions/wcsftime_l.texi: Likewise.
14041         * doc/glibc-functions/wcstod_l.texi: Likewise.
14042         * doc/glibc-functions/wcstof_l.texi: Likewise.
14043         * doc/glibc-functions/wcstol_l.texi: Likewise.
14044         * doc/glibc-functions/wcstold_l.texi: Likewise.
14045         * doc/glibc-functions/wcstoll_l.texi: Likewise.
14046         * doc/glibc-functions/wcstoul_l.texi: Likewise.
14047         * doc/glibc-functions/wcstoull_l.texi: Likewise.
14048
14049 2009-11-24  Bruno Haible  <bruno@clisp.org>
14050
14051         duplocale: Fix logic bug.
14052         * lib/duplocale.c: Don't include <langinfo.h>.
14053         (_NL_LOCALE_NAME): Remove macro.
14054         (rpl_duplocale): Use setlocale instead of nl_langinfo.
14055         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
14056
14057 2009-11-23  Jim Meyering  <meyering@redhat.com>
14058
14059         test-update-copyright: don't hard-code /usr/bin/perl
14060         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
14061         perl to print the current year.  Gilles Espinasse reported that
14062         the replaced use of perl was hard-coded as /usr/bin/perl.
14063
14064 2009-11-23  Bruno Haible  <bruno@clisp.org>
14065
14066         duplocale: Add support for glibc 2.3.x.
14067         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
14068
14069 2009-11-22  Bruno Haible  <bruno@clisp.org>
14070
14071         vasnprintf: Tiny optimization.
14072         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
14073         MacOS X.
14074
14075 2009-11-22  Bruno Haible  <bruno@clisp.org>
14076
14077         Tests for module 'duplocale'.
14078         * modules/duplocale-tests: New file.
14079         * tests/test-duplocale.c: New file.
14080
14081         New module 'duplocale'.
14082         * m4/duplocale.m4: New file.
14083         * lib/locale.in.h (duplocale): New declaration.
14084         * lib/duplocale.c: New file.
14085         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
14086         gl_LOCALE_H_DEFAULTS): New macros.
14087         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
14088         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
14089         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
14090         REPLACE_DUPLOCALE.
14091         * modules/duplocale: New file.
14092         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
14093
14094 2009-11-22  Bruno Haible  <bruno@clisp.org>
14095
14096         * modules/locale-tests (configure.ac): Test for newlocale function.
14097         * tests/test-locale.c: When the system has extended locale functions,
14098         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
14099
14100         locale: Make locale_t available when possible.
14101         * lib/locale.in.h: Include <xlocale.h> when it exists.
14102         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
14103         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
14104         * modules/locale (Depends-on): Add extensions.
14105         (Makefile.am): Also substitute HAVE_XLOCALE_H.
14106         * doc/posix-headers/locale.texi: Document the problem with locale_t.
14107
14108 2009-11-22  Bruno Haible  <bruno@clisp.org>
14109
14110         Add comments.
14111         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
14112         invocation.
14113         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
14114         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
14115         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
14116
14117 2009-11-22  Bruno Haible  <bruno@clisp.org>
14118
14119         error: account for the possibility of freopen (stdout).
14120         * lib/error.c: Include <unistd.h>.
14121         (flush_stdout): New function, extracted from error and error_at_line.
14122         Determine stdout's fd dynamically.
14123         (error, error_at_line): Invoke flush_stdout.
14124         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
14125         * modules/error (Depends-on): Add unistd.
14126
14127 2009-11-22  Bruno Haible  <bruno@clisp.org>
14128
14129         diffseq: Add comment.
14130         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
14131
14132 2009-11-22  Jim Meyering  <meyering@redhat.com>
14133
14134         c-stack: avoid defining an unused static function
14135         * lib/c-stack.c (find_stack_direction): Do not define this function
14136         when it will not be used.
14137
14138         diffseq: avoid spurious gcc warnings
14139         * lib/diffseq.h (IF_LINT2): Define.
14140         (compareseq): Use it to initialize two members of "part".
14141         This avoids two used-uninitialized warnings.
14142
14143 2009-11-21  Jim Meyering  <meyering@redhat.com>
14144
14145         c-stack: avoid "ignoring return value of `write'" warning
14146         * lib/c-stack.c: Include "ignore-value.h".
14147         (die): Explicitly ignore each write return value.
14148         * modules/c-stack (Depends-on): Add ignore-value.
14149
14150 2009-11-21  Bruno Haible  <bruno@clisp.org>
14151
14152         diffseq: reduce scope of variable 'best'.
14153         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
14154         variable, earlier used for two different purposes.
14155
14156 2009-11-21  Jim Meyering  <meyering@redhat.com>
14157
14158         diffseq: remove useless assignment to "best"
14159         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
14160         assignment.  At that point "best" is already guaranteed to be zero.
14161
14162 2009-11-20  Eric Blake  <ebb9@byu.net>
14163
14164         build: mention ftp redirector in release announcements
14165         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
14166         values that used to come from cfg.mk; mention FTP redirect URL.
14167         * build-aux/announce-gen: Mention the mirror list.
14168         Suggested by Karl Berry.
14169
14170         nanosleep: improve port to mingw
14171         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
14172         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
14173         LIB_NANOSLEEP, but only when needed.
14174         * modules/select (Link): Document LIBSOCKET.
14175         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
14176         enough.
14177
14178         nanosleep: work around cygwin bug
14179         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
14180         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
14181         bug.
14182         (getnow): Delete, not needed.
14183         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
14184         LIB_CLOCK_GETTIME.
14185         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
14186         clock-time, gettime.
14187         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
14188         bug.
14189         * modules/nanosleep-tests: New test.
14190         * tests/test-nanosleep.c: New file.
14191
14192         sleep: work around cygwin bug
14193         * lib/sleep.c (rpl_sleep): Work around the bug.
14194         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
14195         (gl_PREREQ_SLEEP): Delete unused macro.
14196         * modules/sleep (Depends-on): Add verify.
14197         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
14198         * modules/unistd (Makefile.am): Substitute witness.
14199         * lib/unistd.in.h (sleep): Update prototype.
14200         * doc/posix-functions/sleep.texi (sleep): Document the bug.
14201         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
14202         * modules/sleep-tests (Depends-on): Check for alarm.
14203
14204 2009-11-20  Jim Meyering  <meyering@redhat.com>
14205
14206         maint.mk: improve sc_prohibit_magic_number_exit
14207         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
14208         so it does not match uses like System.exit(1).
14209         Add comments showing how to correct all offenders.
14210
14211 2009-11-19  Eric Blake  <ebb9@byu.net>
14212
14213         xalloc-die-tests: add missing library
14214         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
14215
14216         test-xvasprintf: silence compiler warnings
14217         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
14218         empty string from gcc.
14219
14220 2009-11-19  Jim Meyering  <meyering@redhat.com>
14221
14222         xfreopen: new module, from coreutils
14223         * modules/xfreopen: New module.
14224         * lib/xfreopen.c: New file.
14225         * lib/xfreopen.h: New file.
14226         * MODULES.html.sh (File stream based Input/Output"): Add it.
14227
14228 2009-11-19  Eric Blake  <ebb9@byu.net>
14229
14230         manywarnings: depend on warnings
14231         * modules/manywarnings (Depends-on): Add warnings.
14232
14233         build: avoid compiler warnings
14234         * lib/select.c (rpl_select): Delete unused variable.
14235         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
14236
14237 2009-11-18  Eric Blake  <ebb9@byu.net>
14238
14239         tests: avoid false negative with --with-packager
14240         * tests/test-version-etc.sh: Discard packager information.
14241         * tests/test-argp-version-etc-1.sh: Likewise.
14242         Reported by Mike Frysinger.
14243
14244         utimens: fix regression on Solaris
14245         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
14246         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
14247         can only change fd timestamps via futimesat.  Instead, use an
14248         additional witness macro to avoid BSD bug.
14249         Reported by Jim Meyering.
14250
14251 2009-11-17  Eric Blake  <ebb9@byu.net>
14252
14253         usleep: use it to simplify tests
14254         * modules/stat-time-tests (Depends-on): Add usleep.
14255         (configure.ac): Drop usleep check.
14256         * modules/chown-tests (Depends-on, configure.ac): Likewise.
14257         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
14258         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
14259         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
14260         * modules/openat-tests (Depends-on, configure.ac): Likewise.
14261         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
14262         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
14263         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
14264         Likewise.
14265         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
14266         * tests/test-lchown.h (nap): Likewise.
14267         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
14268         * tests/test-stat-time.c (nap): Likewise.
14269         * tests/test-utimens-common.h (nap): Update comments.
14270
14271         usleep: new module
14272         * modules/usleep: New file.
14273         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
14274         * lib/usleep.c (usleep): Likewise.
14275         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
14276         * modules/unistd (Makefile.am): Substitute witnesses.
14277         * lib/unistd.in.h (usleep): Add declaration.
14278         * doc/pastposix-functions/usleep.texi (usleep): Document this.
14279         * MODULES.html.sh (Date and time): Likewise.
14280         * modules/usleep-tests (Depends-on): New test.
14281         * tests/test-usleep.c: New file.
14282
14283         chown: work around OpenBSD bug
14284         * lib/chown.c (rpl_chown): Work around the bug.
14285         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
14286         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
14287         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
14288         * modules/chown (Depends-on): Add stdbool.
14289         * modules/lchown (Depends-on): Likewise.
14290         * doc/posix-functions/chown.texi (chown): Document the bug.
14291         * doc/posix-functions/lchown.texi (lchown): Likewise.
14292         * tests/test-lchown.h (test_chown): Relax test.
14293
14294         mkstemp: avoid conflict with C++ keyword template
14295         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
14296         * lib/mkostemp.c (mkostemp): Likewise.
14297         * lib/mkostemps.c (mkostemps): Likewise.
14298         * lib/mkstemp.c (mkstemp): Likewise.
14299         * lib/mkstemps.c (mkstemps): Likewise.
14300
14301         xalloc-die-tests: optimize
14302         * tests/test-xalloc-die.sh: Reduce number of processes.
14303
14304 2009-11-17  Simon Josefsson  <simon@josefsson.org>
14305
14306         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
14307         patch from ludo@gnu.org (Ludovic Courtès).
14308
14309 2009-11-17  Jim Meyering  <meyering@redhat.com>
14310
14311         version-etc: use proper license string
14312         * modules/version-etc (License): Use LGPL, not LGPLv3+.
14313         * modules/version-etc-fsf: Likewise.
14314
14315 2009-11-17  Simon Josefsson  <simon@josefsson.org>
14316
14317         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
14318         printed to stdout.  Deal with EOL differences.
14319
14320 2009-11-17  Eric Blake  <ebb9@byu.net>
14321
14322         unsetenv: work around Solaris bug
14323         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
14324         * lib/unsetenv.c (rpl_unsetenv): Work around it.
14325         Reported by Jim Meyering.
14326
14327         vasnprintf: avoid compiler warnings
14328         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
14329         variables.
14330         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
14331
14332 2009-11-17  Simon Josefsson  <simon@josefsson.org>
14333
14334         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
14335         settings since xalloc-die is no longer the self test,
14336         xalloc-die.sh is.
14337
14338 2009-11-17  Jim Meyering  <meyering@redhat.com>
14339
14340         test-xalloc-die.sh: make the code agree with the commit log
14341         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
14342         at the end, just in case you happen to have a test-xalloc-die
14343         program in some other PATH directory.
14344
14345         test-xalloc-die.sh: fix a portability bug
14346         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
14347         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
14348         Otherwise, argv[0] (as often seen in diagnostics) would be too
14349         system-dependent, sometimes with, and sometimes without the leading "./".
14350
14351         version-etc-fsf: relax license to LGPLv3+
14352         * modules/version-etc-fsf (License): Relax license.
14353
14354 2009-11-16  Eric Blake  <ebb9@byu.net>
14355
14356         xalloc-die-tests: avoid printing null pointer
14357         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
14358         shell script.
14359         * tests/test-xalloc-die.c (program_name): Declare.
14360         * tests/test-xalloc-die.sh (tmpfiles): New file.
14361
14362         setenv, unsetenv: work around various bugs
14363         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
14364         (setenv) [HAVE_SETENV]: Work around bugs.
14365         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
14366         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
14367         for bugs.
14368         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
14369         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
14370         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
14371         * modules/stdlib (Makefile.am): Update substitutions.
14372         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
14373         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
14374         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
14375         * modules/setenv-tests: New test.
14376         * modules/unsetenv-tests: Likewise.
14377         * tests/test-setenv.c: New file.
14378         * tests/test-unsetenv.c: Likewise.
14379
14380 2009-11-16  Jim Meyering  <meyering@redhat.com>
14381
14382         version-etc: relax license to LGPLv3+
14383         * modules/version-etc (License): Relax license.
14384
14385         better AC_REQUIRE expanded-before-required-warning avoidance
14386         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
14387         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
14388         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
14389         which is no longer needed.
14390
14391 2009-11-16  Eric Blake  <ebb9@byu.net>
14392
14393         test-freading: clean up temporary file
14394         * tests/test-freading.c (main): Remove file on success, and use
14395         ASSERT more liberally.
14396         Reported by Jim Meyering.
14397
14398 2009-11-16  Jim Meyering  <meyering@redhat.com>
14399
14400         avoid new AC_REQUIRE expanded-before-required warnings
14401         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
14402         merely using it.
14403         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
14404         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
14405
14406 2009-11-15  Simon Josefsson  <simon@josefsson.org>
14407
14408         * tests/test-xalloc-die.c: New file.
14409         * modules/xalloc-die-tests: New file.
14410         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
14411         XFAIL_TESTS so it can be appended by modules.
14412
14413 2009-11-15  Simon Josefsson  <simon@josefsson.org>
14414
14415         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
14416         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
14417
14418 2009-11-14  Eric Blake  <ebb9@byu.net>
14419
14420         fnmatch: avoid compiler warning
14421         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
14422         to silence compiler warning about mismatch signedness in ?:.
14423         Reported by Robert Millan.
14424
14425         intprops: add double-inclusion guard
14426         * lib/intprops.h: Allow idempotent includes.
14427         Suggested by Bruce Korb.
14428
14429         openat: detect Solaris fchownat bug
14430         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
14431         penalizing glibc chownat when only lchownat is broken.
14432         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
14433         trailing slash bugs.
14434         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
14435         * modules/openat-tests (Files): Include more files.
14436         (Depends-on): Add mgetgroups, sleep, stat-time.
14437         (configure.ac): Add additional checks.
14438         (Makefile.am): Build new test.
14439         * tests/test-fchownat.c: New file.
14440
14441         lchown: detect Solaris and FreeBSD bug
14442         * lib/lchown.c (rpl_lchown): Work around bug.
14443         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
14444         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
14445         * modules/unistd (Makefile.am): Populate it.
14446         * lib/unistd.in.h (lchown): Update declaration.
14447         * doc/posix-functions/lchown.texi (lchown): Document the bug.
14448         * modules/lchown-tests: New file.
14449         * tests/test-lchown.h (test_lchown): Likewise.
14450         * tests/test-lchown.c (main): Likewise.
14451
14452         chown: detect Solaris and FreeBSD bug
14453         * lib/chown.c (rpl_chown): Work around bug.
14454         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
14455         (gl_PREREQ_CHOWN): Delete.
14456         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
14457         * modules/unistd (Makefile.am): Populate it.
14458         * lib/unistd.in.h (chown): Update declaration.
14459         * lib/lchown.c (chown): Update client.
14460         * modules/lchown (Depends-on): Add lstat.
14461         * doc/posix-functions/chown.texi (chown): Document the bug.
14462         * doc/posix-functions/getgroups.texi (getgroups): Document
14463         getgroups pitfall.
14464         * modules/chown-tests: New file.
14465         * tests/test-chown.h (test_chown): Likewise.
14466         * tests/test-chown.c (main): Likewise.
14467
14468 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
14469
14470         gnulib-tool: correctly detect absence of m4 directories
14471         * gnulib-tool: Avoid extra newline on data passed to wc -l.
14472
14473 2009-11-14  Jim Meyering  <meyering@redhat.com>
14474
14475         maint.mk: Prohibit inclusion of "xalloc.h" without use.
14476         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
14477
14478 2009-11-14  John W. Eaton  <jwe@gnu.org>
14479
14480         strftime.h: wrap funtion declaration in extern "C" block
14481         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
14482
14483 2009-11-13  Eric Blake  <ebb9@byu.net>
14484
14485         getgroups: avoid compiler warning
14486         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
14487
14488         getgroups: work around FreeBSD bug
14489         * lib/getgroups.c (rpl_getgroups): Work around the bug.
14490         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
14491         * doc/posix-functions/getgroups.texi (getgroups): Document it.
14492         * tests/test-getgroups.c (main): Fix buffer overrun.
14493
14494         getgroups: avoid compilation failure
14495         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
14496         * modules/getgroups (Depends-on): Add stdint.
14497
14498 2009-11-13  Jim Meyering  <meyering@redhat.com>
14499
14500         test-getgroups: avoid compilation failure
14501         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
14502
14503 2009-11-13  Eric Blake  <ebb9@byu.net>
14504
14505         mgetgroups: new module, taken from coreutils
14506         * modules/mgetgroups: New file.
14507         * lib/mgetgroups.h: Likewise.
14508         * lib/mgetgroups.c (mgetgroups): Likewise.
14509         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
14510         * MODULES.html.sh (Users and groups): Mention it.
14511
14512         getgroups: don't expose GETGROUPS_T to user
14513         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
14514         an element at a time if GETGROUPS_T is wrong size.
14515         * lib/getugroups.h (getugroups): Change signature.
14516         * lib/unistd.in.h (getgroups): Likewise.
14517         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
14518         signature needs fixing.
14519         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
14520         AC_TYPE_GETGROUPS.
14521         * modules/group-member (Depends-on): Add getgroups.
14522         * lib/group-member.c (group_info, get_group_info): Use gid_t.
14523         (group_member): Rely on getgroups replacement.
14524         * lib/getugroups.c (getugroups): Use gid_t.
14525         * tests/test-getgroups.c (main): Likewise.
14526         * NEWS: Mention the signature change.
14527         * doc/posix-functions/getgroups.texi (getgroups): Mention the
14528         problem with signature.
14529         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
14530         GETGROUPS_T is still useful for setgroups.
14531
14532         getgroups, getugroups: provide stubs for mingw
14533         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
14534         * lib/getugroups.c (getugroups): Likewise.
14535         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
14536         function.  Modernize replacement scheme.
14537         (gl_PREREQ_GETGROUPS): Delete.
14538         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
14539         * modules/getgroups (configure.ac): Declare witness.
14540         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
14541         * modules/unistd (Depends-on): Substitute witness.
14542         * lib/unistd.in.h (getgroups): Declare replacement.
14543
14544         getgroups: avoid calling exit
14545         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
14546         drop xalloc.
14547         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
14548         dependencies.
14549         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
14550         exiting, in the rare case of malloc failure.
14551
14552         getgroups: fix logic error
14553         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
14554         has more than 20 groups.
14555         * modules/getgroups-tests: New test.
14556         * tests/test-getgroups.c: New file.
14557
14558 2009-11-13  Simon Josefsson  <simon@josefsson.org>
14559
14560         * tests/test-base64.c: Improve.
14561
14562 2009-11-13  Simon Josefsson  <simon@josefsson.org>
14563
14564         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
14565         Blake <ebb9@byu.net>.
14566
14567 2009-11-13  Simon Josefsson  <simon@josefsson.org>
14568
14569         * tests/test-xvasprintf.c: Add %s%s related checks.
14570
14571 2009-11-12  Eric Blake  <ebb9@byu.net>
14572
14573         version-etc: match standards.texi style
14574         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
14575         and use <> only for URLs.
14576
14577 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
14578
14579         fts: do not fail on a submount during traversal
14580         * lib/fts.c (fts_build): Read the stat info again after opening
14581         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
14582         Original report at http://bugzilla.redhat.com/501848.
14583
14584 2009-11-12  Jim Meyering  <meyering@redhat.com>
14585
14586         bootstrap: sync from coreutils
14587         * build-aux/bootstrap (bootstrap_epilogue): New function.
14588         Use git_modules_config in one more place.  This make bootstrap's
14589         --gnulib-srcdir option more useful for testing.
14590
14591         bootstrap: generalize autoheader check
14592         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
14593         AC_CONFIG_HEADERS.
14594
14595 2009-11-11  Eric Blake  <ebb9@byu.net>
14596
14597         mkfifoat: use new modules for Solaris and BSD bugs
14598         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
14599         * lib/mkfifoat.c (mknodat): Split...
14600         * lib/mknodat.c (mknodat): ...into new file.
14601         * modules/mkfifoat (Files): Ship new file.
14602         (Depends-on): Add mkfifo, mknod.
14603         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
14604         (Depends-on): Add symlink.
14605         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
14606         redundant with test_mkfifo.h.
14607         (do_mkfifoat, do_mknodat): New helpers.
14608
14609         mknod: new module
14610         * modules/mknod: New file.
14611         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
14612         * lib/mknod.c (mknod): Likewise.
14613         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
14614         defaults.
14615         * modules/sys_stat (Makefile.am): Substitute them.
14616         * lib/sys_stat.in.h (mknod): Declare replacement.
14617         * MODULES.html.sh (Support for systems lacking POSIX:2008):
14618         Document it.
14619         * doc/posix-functions/mknod.texi (mknod): Likewise.
14620         * modules/mknod-tests: New test.
14621         * tests/test-mknod.c: Likewise.
14622
14623         mkfifo: new module
14624         * modules/mkfifo: New file.
14625         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
14626         * lib/mkfifo.c (mkfifo): Likewise.
14627         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
14628         defaults.
14629         * modules/sys_stat (Makefile.am): Substitute them.
14630         * lib/sys_stat.in.h (mkfifo): Declare replacement.
14631         * MODULES.html.sh (Support for systems lacking POSIX:2008):
14632         Document it.
14633         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
14634         * modules/mkfifo-tests: New test.
14635         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
14636         from test-mkfifoat.c.
14637         * tests/test-mkfifo.c: New file.
14638
14639         readlink: detect FreeBSD bug
14640         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
14641         slash on symlink.
14642         * doc/posix-functions/readlink.texi (readlink): Document the bug.
14643         * tests/test-readlink.h (test_readlink): Enhance test.
14644
14645         symlink: detect FreeBSD bug
14646         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
14647         slash on symlink.
14648         * doc/posix-functions/symlink.texi (symlink): Document the bug.
14649         * tests/test-symlink.h (test_symlink): Enhance test.
14650
14651 2009-11-10  Eric Blake  <ebb9@byu.net>
14652
14653         link: detect FreeBSD bug
14654         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
14655         symlink.
14656         * doc/posix-functions/link.texi (link): Document the bug.
14657         * tests/test-link.h (test_link): Enhance test.
14658         * tests/test-linkat.c (main): Update caller.
14659
14660         unlink, remove: detect FreeBSD bug
14661         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
14662         slash on symlink.
14663         * doc/posix-functions/unlink.texi (unlink): Document the bug.
14664         * doc/posix-functions/remove.texi (remove): Likewise.
14665         * tests/test-unlink.h (test_unlink): Enhance test.
14666         * tests/test-remove.c (main): Likewise.
14667
14668 2009-11-09  Eric Blake  <ebb9@byu.net>
14669
14670         rename: detect FreeBSD bug
14671         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
14672         slash on symlink.
14673         * modules/renameat-tests (Depends-on): Add filenamecat.
14674         * tests/test-rename.h (test_rename): Allow one more errno.
14675         * tests/test-renameat.c (main): Likewise.
14676         * doc/posix-functions/rename.texi (rename): Document the bug.
14677
14678         open: detect FreeBSD bug
14679         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
14680         symlink.
14681         * doc/posix-functions/open.texi (open): Document the bug.
14682         * doc/posix-functions/utimes.texi (utimes): Likewise.
14683         * tests/test-open.h (test_open): Add parameters, and test symlink
14684         handling.
14685         * tests/test-open.c (main): Adjust caller.
14686         * tests/test-fcntl-safer.c (main): Likewise.
14687         * modules/open-tests (Depends-on): Add stdbool, symlink.
14688         * modules/fcntl-safer-tests (Depends-on): Likewise.
14689         * tests/test-openat.c (main): Add test-open tests.
14690
14691         stat: detect FreeBSD bug
14692         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
14693         symlink.
14694         * doc/posix-functions/stat.texi (stat): Document the bug.
14695         * tests/test-stat.h (test_stat_func): Add argument.
14696         * tests/test-stat.c (main): Adjust caller.
14697         * tests/test-fstatat.c (main): Likewise.
14698         * modules/stat-tests (Depends-on): Add stdbool, symlink.
14699         Reported by Jim Meyering.
14700
14701 2009-11-09  James Youngman  <jay@gnu.org>
14702
14703         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
14704         * lib/strftime.c: Correct placement of #include "ignore-value.h".
14705
14706 2009-11-08  Jim Meyering  <meyering@redhat.com>
14707
14708         utimens: remove invalid futimesat call
14709         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
14710         It used the file descriptor of the target file as the DIR_FD
14711         parameter and NULL as the file name.  That caused failure with
14712         errno == EFAULT on FreeBSD-8.0-rc2
14713
14714 2009-11-07  Eric Blake  <ebb9@byu.net>
14715
14716         fflush, freadseek: use fseeko, not fseek
14717         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
14718         (clear_ungetc_buffer): Avoid potential problems on large files.
14719         * lib/freadseek.c (freadseek): Likewise.
14720         * modules/freadseek (Depends-on): Add fseeko.
14721         * modules/fseek (configure.ac): Set a witness.
14722         * tests/test-fflush.c (main): Use fseeko.
14723         * tests/test-fpurge.c (fseek): Disable link warning.
14724         * tests/test-freadable.c (fseek): Likewise.
14725         * tests/test-freading.c (fseek): Likewise.
14726         * tests/test-fseeko.c (fseek): Likewise.
14727         * tests/test-ftell.c (fseek): Likewise.
14728         * tests/test-ftello.c (fseek): Likewise.
14729         * tests/test-fwritable.c (fseek): Likewise.
14730         * tests/test-fwriting.c (fseek): Likewise.
14731
14732 2009-11-06  Simon Josefsson  <simon@josefsson.org>
14733
14734         * modules/memchr (Depends-on): Drop getpagesize dependency.
14735
14736 2009-11-06  Simon Josefsson  <simon@josefsson.org>
14737
14738         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
14739         Reported by Ludovic Courtès.
14740         * build-aux/pmccabe2html: Improve example usage.
14741         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
14742
14743 2009-11-06  Jim Meyering  <meyering@redhat.com>
14744
14745         do-release-commit-and-tag: New module.
14746         Automate the release-commit and tag process.
14747         * build-aux/do-release-commit-and-tag: New script, from coreutils.
14748         * modules/do-release-commit-and-tag: New file.
14749         * MODULES.html.sh (Support for maintaining and releasing): Add it.
14750
14751 2009-11-06  Simon Josefsson  <simon@josefsson.org>
14752
14753         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
14754         because test-select.c uses inet_pton.
14755
14756 2009-11-06  Simon Josefsson  <simon@josefsson.org>
14757
14758         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
14759         GETADDRINFO_LIB.  Bump serial number.
14760         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
14761         Suggested by Eric Blake <ebb9@byu.net>.
14762
14763 2009-11-05  Eric Blake  <ebb9@byu.net>
14764
14765         strtod: detect darwin bug
14766         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
14767         Reported by Leo Davis.
14768
14769         freopen-safer: new module
14770         * modules/freopen-safer: New module.
14771         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
14772         * lib/freopen-safer.c (freopen_safer): New file.
14773         * lib/stdio-safer.h (freopen_safer): New declaration.
14774         * lib/stdio--.h (freopen): New override.
14775         * MODULES.html.sh (File stream based Input/Output): Mention it.
14776         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
14777         freopen-safer module.
14778         * doc/posix-functions/stderr.texi (stderr): Likewise.
14779         * doc/posix-functions/stdin.texi (stdin): Likewise.
14780         * doc/posix-functions/stdout.texi (stdout): Likewise.
14781         * modules/freopen-safer-tests: New test.
14782         * tests/test-reopen-safer.c: New file.
14783
14784 2009-11-05  Jim Meyering  <meyering@redhat.com>
14785
14786         maint.mk: Prohibit inclusion of "close-stream.h" without use.
14787         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
14788
14789 2009-11-05  Simon Josefsson  <simon@josefsson.org>
14790
14791         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
14792
14793 2009-11-05  Simon Josefsson  <simon@josefsson.org>
14794
14795         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
14796
14797 2009-11-05  Simon Josefsson  <simon@josefsson.org>
14798
14799         Fix link error.
14800         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
14801         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
14802
14803 2009-11-05  Simon Josefsson  <simon@josefsson.org>
14804
14805         * tests/test-func.c: Also test value of __func__.
14806
14807 2009-11-05  Simon Josefsson  <simon@josefsson.org>
14808
14809         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
14810         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
14811
14812 2009-11-05  Bruno Haible  <bruno@clisp.org>
14813
14814         Fix link error.
14815         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
14816         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
14817         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
14818
14819 2009-11-05  Bruno Haible  <bruno@clisp.org>
14820
14821         Tests for module 'inet_pton'.
14822         * modules/inet_pton-tests: New file.
14823         * tests/test-inet_pton.c: New file.
14824
14825 2009-11-05  Bruno Haible  <bruno@clisp.org>
14826
14827         Tests for module 'inet_ntop'.
14828         * modules/inet_ntop-tests: New file.
14829         * tests/test-inet_ntop.c: New file.
14830
14831 2009-11-04  Eric Blake  <ebb9@byu.net>
14832
14833         stdlib-safer: wrap all mkstemp variants
14834         * modules/mkostemp (configure.ac): Set witness.
14835         * modules/mkostemps (configure.ac): Likewise.
14836         * modules/mkstemps (configure.ac): Likewise.
14837         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
14838         (mkstemps_safer): Wrap more functions.
14839         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
14840         wrapping.
14841         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
14842         (mkstemps_safer): Implement the wrappers.
14843
14844         mkstemps, mkostemps: new modules
14845         * modules/mkostemps: New module.
14846         * modules/mkstemps: Likewise.
14847         * lib/mkostemps.c (mkostemps): New file.
14848         * lib/mkstemps.c (mkstemps): Likewise.
14849         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
14850         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
14851         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
14852         * modules/stdlib (Makefile.am): Substitute them.
14853         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
14854         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
14855         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
14856         * doc/gnulib.texi (Glibc stdlib.h): Include them.
14857         * MODULES.html.sh (File system functions): Mention them.
14858
14859         tempname: resync from glibc
14860         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
14861         same values for __GT_FILE as glibc.  Abort even when assertions
14862         are disabled.
14863         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
14864         match its value otherwise.  Allow idempotent inclusion.
14865         * lib/mkdtemp.c (mkdtemp): Adjust caller.
14866         * lib/mkostemp.c (mkostemp): Likewise.
14867         * lib/mkstemp.c (mkstemp): Likewise.
14868         * lib/tmpfile.c (tmpfile): Likewise.
14869         * NEWS: Document this.
14870
14871         utimens: fix use of futimens on older Linux
14872         * lib/utimens.c (fdutimens): Use updated, rather than original,
14873         timespec to avoid bug in older Linux kernel.
14874         Reported by Simon Josefsson.
14875
14876 2009-11-04  Bruno Haible  <bruno@clisp.org>
14877
14878         Make num_processors more flexible and consistent.
14879         * lib/nproc.h (enum nproc_query): New type.
14880         (num_processors): Add a 'query' argument.
14881         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
14882         (num_processors): Add a 'query' argument. Test the value of the
14883         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
14884         mingw, count the number of CPUs available for the current process.
14885         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
14886         Check for sched_getaffinity and sched_getaffinity_np.
14887         * modules/nproc (Depends-on): Add c-ctype, extensions.
14888         * NEWS: Mention the change.
14889
14890 2009-11-03  Bruno Haible  <bruno@clisp.org>
14891
14892         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
14893
14894 2009-11-03  Jim Meyering  <meyering@redhat.com>
14895
14896         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
14897         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
14898         if it is defined.
14899
14900 2009-11-02  Eric Blake  <ebb9@byu.net>
14901
14902         mktime, timegm: share common declaration
14903         * lib/mktime-internal.h: New file.
14904         * lib/mktime.c: Use it rather than open-coding a declaration.
14905         * lib/timegm.c: Likewise.
14906         * modules/mktime (Files): Ship it.
14907         * modules/timegm (Files): Likewise.
14908         Suggested by Bruno Haible.
14909
14910         test-update-copyright: update test to match script changes
14911         * tests/test-update-copyright.sh: Avoid hard-coding perl
14912         location.  Don't update *.bak created by earlier runs.
14913
14914 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
14915             Simon Josefsson  <simon@josefsson.org>
14916             Bruno Haible  <bruno@clisp.org>
14917
14918         Fix link error on Solaris 8.
14919         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
14920         also in libnsl. Define also INET_PTON_LIB.
14921         * modules/inet_pton (Link): New section.
14922
14923 2009-11-02  Simon Josefsson  <simon@josefsson.org>
14924             Bruno Haible  <bruno@clisp.org>
14925
14926         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
14927         * modules/inet_ntop (Link): New section.
14928         Reported by Boyan Kasarov <bkasarov@gmail.com>.
14929
14930 2009-11-02  Eric Blake  <ebb9@byu.net>
14931
14932         maint: avoid compiler warnings in m4 macros
14933         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
14934         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
14935
14936 2009-11-02  Simon Josefsson  <simon@josefsson.org>
14937
14938         * m4/pmccabe2html.m4: Remove file.
14939         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
14940         function.  Change maintainer.
14941         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
14942         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
14943         Courtès).
14944
14945 2009-10-31  Eric Blake  <ebb9@byu.net>
14946
14947         fseeko: fix m4 regression
14948         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
14949         regression from 2009-10-27.
14950         Reported by Ralf Wildenhues.
14951
14952 2009-10-31  Jim Meyering  <meyering@redhat.com>
14953
14954         inttostr: aesthetics and improved (compile-time) safety
14955         Define inttype_is_signed rather than inttype_is_unsigned,
14956         since the sole use is via "#if inttype_is_signed".
14957         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
14958         inttype_is_unsigned.
14959         * lib/offtostr.c (inttype_is_signed): Likewise.
14960         * lib/uinttostr.c (inttype_is_signed): Likewise.
14961         * lib/umaxtostr.c (inttype_is_signed): Likewise.
14962         * lib/inttostr.c (inttostr): Use verify to cross-check the
14963         inttype_is_signed value and the signedness of the actual type.
14964         * modules/inttostr (Depends-on): Add verify.
14965
14966 2009-10-30  Eric Blake  <ebb9@byu.net>
14967
14968         build: avoid compiler warnings
14969         * lib/fchmodat.c (lchmod): Mark unused variables.
14970         * lib/getopt.c (_getopt_initialize): Likewise.
14971         * lib/mktime.c (__mktime_internal): Provide prototype.
14972         * lib/inttostr.c (inttostr): Avoid compiler warning even with
14973         older gcc that do not understand #pragma GCC diagnostic.
14974         * lib/uinttostr.c (inttype_is_unsigned): Define.
14975         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
14976
14977 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
14978
14979         stat: fix compilation on AIX
14980         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
14981         only see struct stat64.
14982
14983 2009-10-30  Eric Blake  <ebb9@byu.net>
14984
14985         exclude: make more robust
14986         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
14987         rather than masking a coding bug.
14988         Suggested by Bruno Haible.
14989
14990 2009-10-30  Jim Meyering  <meyering@redhat.com>
14991
14992         perl scripts: remove #!/usr/bin/perl in favor of more portable...
14993         Rather than putting #!/usr/bin/perl on the first line,
14994         start with a variant of what's recommended by "man perlrun" that
14995         invokes the first "perl" program from your shell's search path.
14996         * build-aux/gitlog-to-changelog: Replace #!... as above.
14997         Add a "Local Variables" perl mode setting.
14998         Prompted by a patch from Ludovic Courtès.
14999         Improved by Eric Blake.
15000         * build-aux/useless-if-before-free: Likewise.
15001         * build-aux/announce-gen: Likewise.
15002         * build-aux/update-copyright: Likewise.
15003
15004 2009-10-29  Eric Blake  <ebb9@byu.net>
15005
15006         filenamecat-lgpl: adjust clients
15007         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
15008         filenamecat.
15009         * modules/renameat (Depends-on): Likewise.
15010
15011         filenamecat: split into filenamecat-lgpl
15012         * modules/filenamecat-lgpl: New module.
15013         * modules/filenamecat (Files): Move library-safe files into
15014         filenamecat-lgpl.
15015         (Depends-on): Add filenamecat-lgpl.
15016         (configure.ac): Declare witness.
15017         * lib/filenamecat.h (file_name_concat): Only declare when using
15018         GPL module.
15019         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
15020         Move...
15021         * lib/filenamecat-lgpl.c: ...into new file.
15022         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
15023         (gl_FILE_NAME_CONCAT): Use it.
15024         * MODULES.html.sh (File system functions): Mention new module.
15025
15026         argp: avoid memory leak
15027         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
15028         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
15029         base_name, since the latter malloc()s and can call exit().
15030         Leak introduced 2006-07-03.
15031
15032         dirname-lgpl: adjust clients that don't need full dirname
15033         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
15034         * modules/filenamecat (Depends-on): Likewise.
15035         * modules/linkat (Depends-on): Likewise.
15036         * modules/mkancesdirs (Depends-on): Likewise.
15037         * modules/mkdir (Depends-on): Likewise.
15038         * modules/openat (Depends-on): Likewise.
15039         * modules/savewd (Depends-on): Likewise.
15040         * modules/rename (Depends-on): Likewise.
15041         (License): Relax license.
15042         * modules/mkdir-tests (Depends-on): Drop progname.
15043         (Makefile.am): Delete unneeded LDADD.
15044         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
15045
15046         dirname: split into dirname-lgpl
15047         * modules/dirname-lgpl: New module.
15048         * modules/dirname (Files): Move library-safe files into
15049         dirname-lgpl.
15050         (Depends-on): Add dirname-lgpl.
15051         (configure.ac): Declare witness.
15052         * modules/double-slash-root (License): Relax license.
15053         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
15054         module.
15055         * lib/dirname.c (dir_len, mdir_name): Move...
15056         * lib/dirname-lgpl.c: ...into new file.
15057         * lib/basename.c (last_component, base_len): Move...
15058         * lib/basename-lgpl.c: ...into new file.
15059         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
15060         (gl_DIRNAME): Use it.
15061         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
15062         Mention new module.
15063         * modules/dirname-tests (Depends-on): Add progname.
15064         * tests/test-dirname.c (program_name): Delete.
15065
15066         mkdir: make safe for libraries
15067         * modules/mkdir (Depends-on): Drop xalloc.
15068         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
15069         exit.
15070
15071         tests: avoid some compiler warnings
15072         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
15073         literals.
15074         * tests/test-memchr.c (main): Avoid type mismatch.
15075         * tests/test-arpa_inet.c (main): Avoid unused parameters.
15076         * tests/test-base64.c (main): Likewise.
15077         * tests/test-getdelim.c (main): Likewise.
15078         * tests/test-gethostname.c (main): Likewise.
15079         * tests/test-getline.c (main): Likewise.
15080         * tests/test-netinet_in.c (main): Likewise.
15081         * tests/test-select.c (open_server_socket, main): Likewise.
15082         * tests/test-select-stdin.c (main): Likewise.
15083         * tests/test-sockets.c (main): Likewise.
15084         * tests/test-strsignal.c (main): Likewise.
15085         * tests/test-sys_select.c (main): Likewise.
15086         * tests/test-sys_socket.c (main): Likewise.
15087         * tests/test-u64.c (main): Likewise.
15088         * tests/test-xfprintf-posix.c (main): Likewise.
15089         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
15090
15091         sockets: avoid compiler warning
15092         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
15093
15094         maint: detect usage(1) and other suspicious exits
15095         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
15096
15097 2009-10-29  Jim Meyering  <meyering@redhat.com>
15098
15099         timespec: long-to-int truncation could make timespec_cmp malfunction
15100         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
15101         a multiple of 2^32 nanoseconds as no difference.
15102
15103 2009-10-28  Jim Meyering  <meyering@redhat.com>
15104
15105         fprintftime: wrap macro code argument in "do {...} while(0)"
15106         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
15107         cpy macro must be a statement that can be followed by a semicolon.
15108         Now that the else clause contains a comment and is hence longer
15109         than one line, I require curly braces.  That in turn requires
15110         that we wrap this code block in the standard do...while(0).
15111
15112         fprintftime: remove stray semicolon from previous change
15113         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
15114
15115         fprintftime: avoid a warning about ignored fwrite return value
15116         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
15117         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
15118         that is unsafe.
15119         * modules/fprintftime (Depends-on): Add ignore-value.
15120
15121         exclude: avoid an unwarranted warning
15122         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
15123
15124 2009-10-27  Eric Blake  <ebb9@byu.net>
15125
15126         fseek: avoid compilation failure when fflush is replaced
15127         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
15128         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
15129         module is in use.
15130         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
15131         module is not in use; since REPLACE_FSEEK worked otherwise.
15132         (GNULIB_FTELLO): Likewise for ftell.
15133         Reported by Ian Beckwith and others.
15134
15135 2009-10-27  Bruno Haible  <bruno@clisp.org>
15136
15137         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
15138         Reported by Jim Meyering.
15139
15140 2009-10-27  Jim Meyering  <jim@meyering.net>
15141             Bruno Haible  <bruno@clisp.org>
15142
15143         Avoid warning despite dropping the return value of fwrite.
15144         * lib/unicodeio.c: Include ignore-value.h.
15145         (fwrite_success_callback): Explicitly ignore fwrite's return value.
15146         * modules/unicodeio (Depends-on): Add ignore-value.
15147
15148 2009-10-26  Eric Blake  <ebb9@byu.net>
15149
15150         areadlinkat: fix fallback path
15151         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
15152         pointer and zero.
15153
15154 2009-10-22  Pádraig Brady  <P@draigBrady.com>
15155
15156         Use a better IO block size for modern systems
15157         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
15158         * lib/md2.c: Likewise.
15159         * lib/md4.c: Likewise.
15160         * lib/md5.c: Likewise.
15161         * lib/sha1.c: Likewise.
15162         * lib/sha256.c: Likewise.
15163         * lib/sha512.c: Likewise.
15164
15165 2009-10-22  Eric Blake  <ebb9@byu.net>
15166
15167         tests: avoid several compiler warnings
15168         * tests/test-getcwd.c (main): Avoid buffer underflow.
15169         * tests/test-getdate.c (main): String literals are not safe with
15170         putenv, so use setenv.  Declare unused argument.
15171         * modules/getdate-tests (Depends-on): Add setenv.
15172         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
15173         problems with string literals in char *.
15174         * tests/test-hash.c (main): Avoid shadowing declaration.
15175         (insert_new): Treat string literals as char const *.
15176         * tests/test-getopt.h (test_getopt): Likewise.
15177         (getopt_loop): Alter types to minimize casting elsewhere.
15178         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
15179         (test_getopt_long_posix): Likewise.
15180         (do_getopt_long): Add wrapper to minimize casting.
15181         * tests/test-atexit.c (clear_temp_file): Use void.
15182         * tests/test-areadlink-with-size.c (main): Declare unused
15183         arguments.
15184         * tests/test-areadlink.c (main): Likewise.
15185         * tests/test-areadlinkat-with-size.c (main): Likewise.
15186         * tests/test-areadlinkat.c (main): Likewise.
15187         * tests/test-canonicalize-lgpl.c (main): Likewise.
15188         * tests/test-canonicalize.c (main): Likewise.
15189         * tests/test-dirent-safer.c (main): Likewise.
15190         * tests/test-dirname.c (main): Likewise.
15191         * tests/test-dup2.c (main): Likewise.
15192         * tests/test-fchdir.c (main): Likewise.
15193         * tests/test-fcntl-h.c (main): Likewise.
15194         * tests/test-fcntl-safer.c (main): Likewise.
15195         * tests/test-fdopendir.c (main): Likewise.
15196         * tests/test-fdutimensat.c (main): Likewise.
15197         * tests/test-fflush.c (main): Likewise.
15198         * tests/test-filenamecat.c (main): Likewise.
15199         * tests/test-filevercmp.c (main): Likewise.
15200         * tests/test-fopen-safer.c (main): Likewise.
15201         * tests/test-fopen.c (main): Likewise.
15202         * tests/test-fpending.c (main): Likewise.
15203         * tests/test-fpurge.c (main): Likewise.
15204         * tests/test-freading.c (main): Likewise.
15205         * tests/test-fstatat.c (main): Likewise.
15206         * tests/test-fsync.c (main): Likewise.
15207         * tests/test-futimens.c (main): Likewise.
15208         * tests/test-getndelim2.c (main): Likewise.
15209         * tests/test-gettimeofday.c (main): Likewise.
15210         * tests/test-getopt.c (main): Likewise.
15211         * tests/test-i-ring.c (main): Likewise.
15212         * tests/test-inttypes.c (main): Likewise.
15213         * tests/test-link.c (main): Likewise.
15214         * tests/test-lstat.c (main): Likewise.
15215         * tests/test-math.c (main): Likewise.
15216         * tests/test-md5.c (main): Likewise.
15217         * tests/test-memchr2.c (main): Likewise.
15218         * tests/test-memrchr.c (main): Likewise.
15219         * tests/test-mkdir.c (main): Likewise.
15220         * tests/test-mkdirat.c (main): Likewise.
15221         * tests/test-mkfifoat.c (main): Likewise.
15222         * tests/test-open.c (main): Likewise.
15223         * tests/test-openat-safer.c (main): Likewise.
15224         * tests/test-openat.c (main): Likewise.
15225         * tests/test-quotearg.c (main): Likewise.
15226         * tests/test-rawmemchr.c (main): Likewise.
15227         * tests/test-readlink.c (main): Likewise.
15228         * tests/test-remove.c (main): Likewise.
15229         * tests/test-rename.c (main): Likewise.
15230         * tests/test-renameat.c (main): Likewise.
15231         * tests/test-rmdir.c (main): Likewise.
15232         * tests/test-sha1.c (main): Likewise.
15233         * tests/test-signal.c (main): Likewise.
15234         * tests/test-sigaction.c (main): Likewise.
15235         * tests/test-stat.c (main): Likewise.
15236         * tests/test-stat-time.c (main): Likewise.
15237         * tests/test-stddef.c (main): Likewise.
15238         * tests/test-stdint.c (main): Likewise.
15239         * tests/test-stdio.c (main): Likewise.
15240         * tests/test-stdlib.c (main): Likewise.
15241         * tests/test-strchrnul.c (main): Likewise.
15242         * tests/test-strerror.c (main): Likewise.
15243         * tests/test-string.c (main): Likewise.
15244         * tests/test-strtod.c (main): Likewise.
15245         * tests/test-strverscmp.c (main): Likewise.
15246         * tests/test-symlink.c (main): Likewise.
15247         * tests/test-symlinkat.c (main): Likewise.
15248         * tests/test-sys_stat.c (main): Likewise.
15249         * tests/test-sys_time.c (main): Likewise.
15250         * tests/test-time.c (main): Likewise.
15251         * tests/test-unistd.c (main): Likewise.
15252         * tests/test-unlink.c (main): Likewise.
15253         * tests/test-unlinkat.c (main): Likewise.
15254         * tests/test-utimens.c (main): Likewise.
15255         * tests/test-utimensat.c (main): Likewise.
15256         * tests/test-version-etc.c (main): Likewise.
15257         * tests/test-wchar.c (main): Likewise.
15258         * tests/test-wctype.c (main): Likewise.
15259         * tests/test-xprintf-posix.c (main): Likewise.
15260         * tests/test-posixtm.c (main): Likewise.
15261         (STREQ): Delete unused macro.
15262         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
15263         shadowed variables.
15264         * tests/test-memchr.c (main): Likewise.
15265
15266 2009-10-21  Eric Blake  <ebb9@byu.net>
15267
15268         areadlinkat: avoid failure on older glibc
15269         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
15270         rather than mis-comparing 0 against FUNC_RESULT of char*.
15271
15272 2009-10-21  Bruno Haible  <bruno@clisp.org>
15273
15274         * modules/stpncpy (License): Relicense under LGPLv2+.
15275         Reported by David Lutterkort <lutter@redhat.com>.
15276
15277 2009-10-20  Eric Blake  <ebb9@byu.net>
15278
15279         utimensat: work around Solaris 9 bug
15280         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
15281         has trailing slash bugs.
15282         * tests/test-lutimens.h (test_lutimens): Enhance test.
15283         * tests/test-utimens.h (test_utimens): Likewise.
15284         * doc/posix-functions/utime.texi (utime): Enhance documentation.
15285         * doc/posix-functions/utimes.texi (utimes): Likewise.
15286         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
15287         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
15288         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
15289         * doc/posix-functions/futimens.texi (futimens): Likewise.
15290
15291         fdutimensat: new module
15292         * modules/fdutimensat: New file.
15293         * lib/fdutimensat.c (fdutimensat): Likewise.
15294         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
15295         * MODULES.html.sh (File system functions): Mention module.
15296         * modules/fdutimensat-tests: New test.
15297         * tests/test-fdutimensat.c: Likewise.
15298
15299         doc: regenerate INSTALL
15300         * doc/INSTALL: Reflect recent autoconf update.
15301         * doc/INSTALL.ISO: Likewise.
15302         * doc/INSTALL.UTF-8: Likewise.
15303
15304 2009-10-20  Pádraig Brady  <P@draigBrady.com>
15305
15306         acl: warn if ACL support is not detected
15307         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
15308
15309 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
15310
15311         * lib/nproc.h: Add extern "C" block for C++.
15312
15313 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
15314             Bruno Haible  <bruno@clisp.org>
15315
15316         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
15317         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
15318         * doc/posix-functions/isalpha.texi: Likewise.
15319         * doc/posix-functions/isblank.texi: Likewise.
15320         * doc/posix-functions/iscntrl.texi: Likewise.
15321         * doc/posix-functions/isdigit.texi: Likewise.
15322         * doc/posix-functions/isgraph.texi: Likewise.
15323         * doc/posix-functions/islower.texi: Likewise.
15324         * doc/posix-functions/isprint.texi: Likewise.
15325         * doc/posix-functions/ispunct.texi: Likewise.
15326         * doc/posix-functions/isspace.texi: Likewise.
15327         * doc/posix-functions/isupper.texi: Likewise.
15328         * doc/posix-functions/isxdigit.texi: Likewise.
15329
15330 2009-10-18  Bruno Haible  <bruno@clisp.org>
15331
15332         Tests for module 'isblank'.
15333         * modules/isblank-tests: New file.
15334         * tests/test-isblank.c: New file.
15335
15336         New module 'isblank'.
15337         * lib/isblank.c: New file.
15338         * m4/isblank.m4: New file.
15339         * modules/isblank: New file.
15340         * doc/posix-functions/isblank.texi: Mention the new module.
15341
15342 2009-10-18  Bruno Haible  <bruno@clisp.org>
15343
15344         New module 'ctype'.
15345         * lib/ctype.in.h: New file.
15346         * m4/ctype.m4: New file.
15347         * modules/ctype: New file.
15348         * doc/posix-headers/ctype.texi: Mention the new module.
15349
15350 2009-10-18  Jim Meyering  <meyering@redhat.com>
15351
15352         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
15353         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
15354         right after its initialization, rather than farther down.
15355         Keeping these in close proximity makes it easier to ensure
15356         that each such variable is initialized.  E.g.,
15357
15358             LIB_CLOCK_GETTIME=
15359             AC_SUBST([LIB_CLOCK_GETTIME])
15360
15361         This change also increments these serial numbers.
15362         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
15363         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
15364         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
15365
15366 2009-10-18  Bruno Haible  <bruno@clisp.org>
15367
15368         Don't let environment variables perturb build.
15369         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
15370         (gl_PREREQ_GETHRXTIME): ... not here.
15371
15372 2009-10-18  Bruno Haible  <bruno@clisp.org>
15373
15374         Avoid symlink attack in localcharset module.
15375         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
15376         (O_NOFOLLOW): Define fallback.
15377         (get_charset_aliases): Don't open the file if it is a symbolic link.
15378         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
15379         gl_FCNTL_H.
15380         (gl_FCNTL_H): Require it.
15381         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
15382         * modules/localcharset (Files): Add m4/fcntl_h.m4.
15383         Reported by Fergal Glynn <fglynn@veracode.com>.
15384
15385 2009-10-18  Bruno Haible  <bruno@clisp.org>
15386
15387         Implement nproc for mingw.
15388         * lib/nproc.c: Include <windows.h>
15389         (num_processors): On native Windows platforms, try GetSystemInfo.
15390
15391 2009-10-18  Bruno Haible  <bruno@clisp.org>
15392
15393         Implement nproc for IRIX.
15394         * lib/nproc.c: Include <sys/sysmp.h>.
15395         (num_processors): On IRIX systems, try sysmp.
15396         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
15397
15398 2009-10-18  Bruno Haible  <bruno@clisp.org>
15399
15400         Implement nproc for HP-UX.
15401         * lib/nproc.c: Include <sys/pstat.h>
15402         (num_processors): On HP-UX systems, try pstat_getdynamic.
15403         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
15404         pstat_getdynamic.
15405
15406 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
15407             Bruno Haible  <bruno@clisp.org>
15408
15409         Implement nproc for NetBSD, OpenBSD.
15410         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
15411         (ARRAY_SIZE): New macro.
15412         (num_processors): On BSD systems, try sysctl of HW_NCPU.
15413         * m4/nproc.m4: New file.
15414         * modules/nproc (Files): Add m4/nproc.m4.
15415         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
15416         (Makefile.am): Instead, augment lib_SOURCES.
15417
15418 2009-10-18  Bruno Haible  <bruno@clisp.org>
15419
15420         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
15421         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
15422         sys/param.h.
15423
15424 2009-10-16  Eric Blake  <ebb9@byu.net>
15425
15426         utimensat: new module
15427         * modules/utimensat: New file.
15428         * lib/utimensat.c (utimensat): Likewise.
15429         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
15430         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
15431         so we can work around Linux bugs.
15432         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
15433         * modules/sys_stat (Makefile.am): Substitute them.
15434         * lib/sys_stat.in.h (utimensat): Declare it.
15435         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
15436         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
15437         * modules/utimensat-tests: New test.
15438         * tests/test-utimensat.c: Likewise.
15439
15440         utimens: let lutimens work on non-symlinks
15441         * lib/utimens.c (lutimens): Fall back to utimens rather than
15442         failing with ENOSYS, when file is not a symlink.
15443         (utimens): Reduce redirection.
15444         * tests/test-lutimens.h (test_lutimens): Update test to cover
15445         non-symlinks.
15446         * tests/test-utimens.h (test_utimens): Update test to cover
15447         symlinks.
15448         * tests/test-utimens.c (main): Update caller.
15449
15450         utimens: cache whether utimensat syscall works
15451         * lib/utimens.c (utimensat_works_really): New cache variable.
15452         (fdutimens, lutimens): Use it to avoid failing syscall.
15453
15454         test-stat-time, test-utimens: improve portability
15455         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
15456         ext4 on alpha, and for cygwin.
15457         * tests/test-utimens-common.h: New file.
15458         (nap): Factor delays into single function.
15459         * tests/test-lutimens.h (test_lutimens): Use new header.
15460         * tests/test-futimens.h (test_futimens): Likewise.
15461         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
15462         timestamps to occur from same machine, as was done previously for
15463         test_utimens.
15464         * modules/utimens-tests (Files): Ship new file.
15465         * modules/futimens-tests (Files): Likewise.
15466         Reported in part by Jim Meyering.
15467
15468         sys_stat: sort replacement declarations
15469         * lib/sys_stat.in.h: Sort declarations.
15470         * lib/futimens.c (futimens): Fix typo.
15471
15472 2009-10-15  Jim Meyering  <meyering@redhat.com>
15473
15474         don't let environment settings perturb build
15475         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
15476         could cause a configure-time and/or build-time malfunction.
15477         Typically, a configure-time function-in-library test is performed
15478         via code like this:
15479
15480           LIB_VAR=
15481           AC_SUBST([LIB_VAR])
15482           prefix_saved_LIBS=$LIBS
15483             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
15484                        [test "$ac_cv_search_FUNC" = "none required" ||
15485                         LIB_VAR=$ac_cv_search_FUNC])
15486           LIBS=$prefix_saved_LIBS
15487
15488         However, in each of the files affected by this change, the LIB_VAR=
15489         initialization was omitted.  Thus, when set in the environment, its
15490         value would propagate into generated Makefiles when FUNC is not found
15491         in LIB_NAME.
15492         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
15493         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
15494         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
15495
15496 2009-10-14  Eric Blake  <ebb9@byu.net>
15497
15498         fchdir: avoid infinite recursion in mingw
15499         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
15500         recursing.
15501
15502         test-stat-time: port to mingw
15503         * tests/test-stat-time.c (force_unlink): Return a value.
15504         (test_ctime) [W32]: Fix compilation error.
15505         (nap): Don't call usleep with too large an argument.  Use
15506         force_unlink.
15507         * doc/pastposix-functions/usleep.texi (usleep): Document the
15508         portability issue.
15509
15510 2009-10-13  Jim Meyering  <meyering@redhat.com>
15511
15512         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
15513         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
15514         * modules/pipe-filter-ii: Likewise.
15515         * modules/sys_socket-tests: Likewise.
15516         * modules/tsearch-tests: Likewise.
15517         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
15518         (check): Depend on it.
15519
15520 2009-10-12  Eric Blake  <ebb9@byu.net>
15521
15522         utimens-tests: port to NFS file systems
15523         * tests/test-utimens.h (test_utimens): Refactor utimecmp
15524         comparisons to avoid spurious failures from timestamp drift
15525         between NFS machines.
15526
15527 2009-10-12  Eric Blake  <ebb9@byu.net>
15528
15529         stat-time-tests: minor cleanups
15530         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
15531         * tests/test-stat-time.c (nap): Separate assignment from call.
15532         Suggested by Paolo Bonzini and Bruno Haible.
15533
15534         sys_stat: guarantee struct timespec
15535         * lib/sys_stat.in.h (includes): Always include <time.h>
15536         * modules/sys_stat (Depends-on): Add time.
15537         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
15538         mode_t permission values.
15539         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
15540         get at subsecond timestamps.
15541
15542 2009-10-10  Eric Blake  <ebb9@byu.net>
15543
15544         futimens: new module
15545         * modules/futimens: New file.
15546         * lib/futimens.c (futimens): Likewise.
15547         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
15548         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
15549         we can work around Linux bugs.
15550         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
15551         * modules/sys_stat (Makefile.am): Substitute them.
15552         * lib/sys_stat.in.h (futimens): Declare it.
15553         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
15554         * doc/posix-functions/futimens.texi (futimens): Likewise.
15555         * modules/futimens-tests: New test.
15556         * tests/test-futimens.c: Likewise.
15557
15558         utimens: introduce fdutimens
15559         * lib/utimens.h (fdutimens): New prototype.
15560         * lib/utimens.c (gl_futimens): Move guts...
15561         (fdutimens): ...to new interface.
15562         * tests/test-utimens.c (do_fdutimens): Use it.
15563
15564         utimens: add UTIME_NOW and UTIME_OMIT support
15565         * lib/utimens.c (validate_timespec, update_timespec): New helper
15566         functions.
15567         (gl_futimens, lutimens): Use them.
15568         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
15569         stdbool, sys_stat.
15570         (Link): Mention resulting library dependency.
15571         * modules/utimecmp (Link): Likewise.
15572         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
15573         (Makefile.am): Pick up library dependency.
15574         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
15575         definition.
15576         * tests/test-sys_stat.c: Test the definitions.
15577         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
15578         * NEWS: Document library dependency.
15579
15580         utimecmp: support symlink timestamps
15581         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
15582         hashing when possible.  Use pathconf when available.
15583         (SYSCALL_RESOLUTION): Recognize tighter resolution.
15584         * modules/utimecmp (Depends-on): Add lstat.
15585
15586         utimens: add lutimens interface
15587         * lib/utimens.c (lutimens): New function.
15588         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
15589         * lib/utimens.h (lutimens): Declare new interface.
15590         * tests/test-utimens.c (main): Enhance test.
15591         * tests/test-lutimens.h (test_lutimens): New file.
15592         * modules/utimens-tests (Files): Distribute it.
15593         (Depends-on): Add symlink.
15594         (configure.ac): Check for usleep.
15595
15596         utimens: validate futimens usage
15597         * lib/utimens.c (gl_futimens): Require valid fd up front, using
15598         fewer syscalls on failure later on.  Avoid compiler warning on
15599         mingw.
15600         * modules/utimens (Depends-on): Add dup2.
15601
15602         utimens: add test
15603         * modules/utimens-tests: New test.
15604         * tests/test-utimens.h: New file.
15605         * tests/test-futimens.h: Likewise.
15606         * tests/test-utimens.c: Likewise.
15607
15608         doc: mention timestamp portability issues
15609         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
15610         instead.
15611         * doc/posix-functions/utime.texi (utime): Likewise.
15612         * doc/posix-functions/utimes.texi (utimes): Likewise.
15613         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
15614         instead.
15615         * doc/posix-functions/futimens.texi (futimens): Mention utimens
15616         module.
15617         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
15618         Mention weakness with symlink timestamps.
15619         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
15620         to utimensat/futimens instead.
15621         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
15622
15623         test-dup2: enhance test
15624         * tests/test-dup2.c (main): Also check AT_FDCWD.
15625
15626         test-stat-time: avoid more spurious failures
15627         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
15628         xfs; and avoid race if the two timestamps cross quantization edge.
15629
15630         relocatable: prefer 'file system' over 'filesystem'
15631         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
15632         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
15633         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
15634         * doc/relocatable.texi (Enabling Relocatability): Likewise.
15635         * lib/relocatable.c (compute_curr_prefix): Likewise.
15636
15637 2009-10-10  Jim Meyering  <meyering@redhat.com>
15638
15639         stat-time-tests: check for the usleep function
15640         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
15641
15642 2009-10-10  Bruno Haible  <bruno@clisp.org>
15643
15644         * modules/xnanosleep: Put the Link section after the Include section.
15645
15646 2009-10-09  Eric Blake  <ebb9@byu.net>
15647
15648         dup2: work around FreeBSD 6.1 bug
15649         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
15650         * doc/posix-functions/dup2.texi (dup2): Document it.
15651         Reported by Nelson H. F. Beebe and Jim Meyering.
15652
15653         test-stat-time: port to buggy NFS clients
15654         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
15655         (test_ctime): Also skip test if mtime and ctime are skewed.
15656
15657         maint: prefer 'file system' over 'filesystem'
15658         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
15659         * doc/posix-functions/lstat.texi (lstat): Likewise.
15660         * lib/file-has-acl.c (file_has_acl): Likewise.
15661         * lib/fwriteerror.c [TEST]: Likewise.
15662         * tests/test-areadlink.h (test_areadlink): Likewise.
15663         * tests/test-areadlinkat-with-size.c (main): Likewise.
15664         * tests/test-areadlinkat.c (main): Likewise.
15665         * tests/test-canonicalize-lgpl.c (main): Likewise.
15666         * tests/test-canonicalize.c (main): Likewise.
15667         * tests/test-fstatat.c (main): Likewise.
15668         * tests/test-linkat.c (main): Likewise.
15669         * tests/test-lstat.h (test_lstat_func): Likewise.
15670         * tests/test-mkdir.h (test_mkdir): Likewise.
15671         * tests/test-readlink.h (test_readlink): Likewise.
15672         * tests/test-remove.c (main): Likewise.
15673         * tests/test-rename.h (test_rename): Likewise.
15674         * tests/test-renameat.c (main): Likewise.
15675         * tests/test-rmdir.h (test_rmdir_func): Likewise.
15676         * tests/test-symlink.h (test_symlink): Likewise.
15677         * tests/test-symlinkat.c (main): Likewise.
15678         * tests/test-unlink.h (test_unlink_func): Likewise.
15679         * tests/test-unlinkat.c (main): Likewise.
15680
15681         maint: make realtime library usage explicit
15682         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
15683         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
15684         * modules/settime (Link): Likewise.
15685         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
15686
15687         test-stat-time: speed up execution
15688         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
15689         warning on mingw.
15690         (nap): New helper function.
15691         (prepare_test): Use it to reduce sleep time.
15692         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
15693         execution.
15694         * modules/stat-time-tests (configure.ac): Check for usleep.
15695
15696 2009-10-09  Jim Meyering  <meyering@redhat.com>
15697
15698         selinux-h: always use getfilecon wrappers
15699         * lib/getfilecon.c: New file.
15700         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
15701         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
15702         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
15703         (fgetfilecon): Provide a stub.
15704         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
15705         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
15706         file unconditionally.
15707         When <selinux/selinux.h> is found, arrange to use wrappers.
15708         * modules/selinux-h (Files): Add getfilecon.c.
15709         (Makefile.am): Substitute include-next-related bits
15710         into the now-always-generated selinux/selinux.h file.
15711         * doc/glibc-functions/lgetfilecon.texi: New file.
15712         * doc/glibc-functions/fgetfilecon.texi: New file.
15713         * doc/glibc-functions/getfilecon.texi: New file.
15714         * doc/glibc-functions/getfilecon-desc.texi: New file.
15715         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
15716         which to pull in the new files.
15717         * MODULES.html.sh (Misc): Add selinux-h.
15718
15719 2009-10-08  Jim Meyering  <meyering@redhat.com>
15720
15721         unistd: fix comment typo
15722         * lib/unistd.in.h (euidaccess): Fix a comment typo.
15723
15724 2009-10-08  Eric Blake  <ebb9@byu.net>
15725
15726         areadlink: use SIZE_MAX consistently
15727         * modules/areadlink (Depends-on): Add stdint.
15728         * modules/areadlink-with-size (Depends-on): Likewise.
15729         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
15730         gives NULL; drop sys/types, since unistd gives size_t; and add
15731         stdint for SIZE_MAX.
15732         (SIZE_MAX): Rely on headers.
15733         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
15734         and add stdint.
15735         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
15736         (SIZE_MAX): Likewise.
15737         (INITIAL_BUF_SIZE): Turn into enum.
15738         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
15739
15740 2009-10-08  Jim Meyering  <meyering@redhat.com>
15741
15742         areadlinkat: avoid compilation failure
15743         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
15744         Fix typo in comment.
15745
15746 2009-10-07  Eric Blake  <ebb9@byu.net>
15747
15748         areadlinkat-with-size: new module
15749         * modules/areadlinkat-with-size: New module.
15750         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
15751         * lib/areadlink.h (areadlinkat): Declare it.
15752         * MODULES.html.sh (File system functions): Mention it.
15753         * modules/areadlinkat-with-size-tests: New test.
15754         * tests/test-areadlinkat-with-size.c: New file.
15755
15756         xreadlinkat: new module
15757         * modules/xreadlinkat: New module.
15758         * lib/xreadlinkat.c (xreadlinkat): New file.
15759         * lib/xreadlink.h (xreadlinkat): Declare it.
15760         * MODULES.html.sh (File system functions): Mention it.
15761
15762         areadlinkat: new module
15763         * lib/at-func.c (FUNC_FAIL): New define.
15764         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
15765         * modules/areadlinkat: New module.
15766         * lib/linkat.c (areadlinkat): Move...
15767         * lib/areadlinkat.c (areadlinkat): ...to new file.
15768         * lib/areadlink.h (areadlinkat): Declare it.
15769         * modules/linkat (Depends-on): Add areadlinkat.
15770         * MODULES.html.sh (File system functions): Mention it.
15771         * modules/areadlinkat-tests: New test.
15772         * tests/test-areadlinkat.c: New file.
15773
15774         areadlink, areadlink-with-size: add tests
15775         * modules/areadlink-tests: New test.
15776         * modules/areadlink-with-size-tests: Likewise.
15777         * tests/test-areadlink.h: New file.
15778         * tests/test-areadlink.c: Likewise.
15779         * tests/test-areadlink-with-size.c: Likewise.
15780
15781         maint: minor cleanups
15782         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
15783         _UNUSED_PARAMETER_ instead.
15784         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
15785         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
15786         * modules/linkat-tests (Files): Distribute test-link.h.
15787
15788         openat, utimens: whitespace cleanup
15789         * lib/openat.c: Prefer space throughout, rather than mix of 8
15790         spaces vs. tabs.
15791         * lib/at-func.c: Likewise.
15792         * lib/utimens.c: Likewise.
15793
15794         openat: avoid using wrong fd
15795         * lib/openat.c (openat_permissive): Reject user's fd if saving the
15796         working directory chooses same fd.
15797         * lib/at-func.c (AT_FUNC_NAME): Likewise.
15798
15799         mkdir, mkdirat: fix cygwin 1.5.x bug
15800         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
15801         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
15802         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
15803         bug.
15804         (gl_PREREQ_MKDIR): Delete unused macro.
15805         * modules/mkdir (Files): Track file rename.
15806         (configure.ac): Update macro name.
15807         * modules/openat (Depends-on): Add mkdir.
15808         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
15809
15810         mkdir, mkdirat: add tests
15811         * modules/mkdir-tests: New test.
15812         * tests/test-mkdir.h: New file.
15813         * tests/test-mkdir.c: Likewise.
15814         * tests/test-mkdirat.c: Likewise.
15815         * modules/openat-tests (Files): Add new files.
15816         (Makefile.am): Run new test.
15817
15818 2009-10-06  Eric Blake  <ebb9@byu.net>
15819
15820         doc: tweak *at function documentation
15821         * doc/posix-functions/faccessat.texi (faccessat): Mention
15822         known issue with replacement.
15823         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
15824         * doc/posix-functions/linkat.texi (linkat): Likewise.
15825         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
15826         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
15827         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
15828         * doc/posix-functions/renameat.texi (renameat): Likewise.
15829         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
15830
15831         openat: fix GNU/Hurd bug in unlinkat
15832         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
15833         broken.
15834         * doc/posix-functions/unlink.texi (unlink): Document this.
15835         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
15836
15837         fdopendir: fix GNU/Hurd bug
15838         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
15839         allowing non-directory fds.
15840         * lib/fdopendir.c (rpl_fdopendir): Work around it.
15841         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
15842         * modules/dirent (Makefile.am): Substitute it.
15843         * lib/dirent.in.h (fdopendir): Declare replacement.
15844         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
15845         * tests/test-fdopendir.c (main): Test something other than
15846         /dev/null, since on Hurd that behaves like a directory.
15847
15848         test-symlink: port to GNU/Hurd
15849         * tests/test-symlink.h (test_symlink): Relax expected errno.
15850
15851         doc: tweak more cygwin information
15852         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
15853         now compatible with glibc.
15854         * doc/posix-functions/getopt.texi (getopt): Likewise.
15855
15856         getopt-gnu: add another test
15857         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
15858         guarantee behavior relied on by m4.
15859         * tests/test-getopt.c (main): Use it.
15860         * modules/getopt-posix-tests (Depends-on): Add setenv.
15861         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
15862
15863         getopt: fix compilation on darwin
15864         * lib/getopt.in.h (includes): Leave breadcrumbs during system
15865         include.
15866         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
15867         Reported by Ludovic Courtès.
15868
15869 2009-10-06  Bruno Haible  <bruno@clisp.org>
15870
15871         * modules/size_max (Description): Discourage its use.
15872         Reported by Simon Josefsson.
15873
15874 2009-10-06  Jim Meyering  <meyering@redhat.com>
15875
15876         linkat: avoid compilation failure
15877         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
15878
15879 2009-10-05  Eric Blake  <ebb9@byu.net>
15880
15881         linkat: support Linux 2.6.17
15882         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
15883         linkat on Linux, but allow cache variable override.
15884         * lib/linkat.c (rpl_linkat): Define override.
15885         * modules/linkat (Depends-on): Add symlinkat.
15886         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
15887         * modules/unistd (Makefile.am): Substitute it.
15888         * lib/unistd.in.h (linkat): Declare replacement.
15889         Reported by Pádraig Brady.
15890
15891         quotearg: port test to systems with C.UTF-8 locale
15892         * tests/test-quotearg.c (struct result_strings): Add another
15893         member, differentiating between C.ASCII and C.UTF-8 handling.
15894         (compare_strings): Add parameter.
15895         (main): Adjust all callers.
15896
15897         getopt: avoid clash with FreeBSD _getopt_internal
15898         * lib/getopt.in.h (_getopt_internal): Override the name.
15899         * lib/getopt_int.h (includes): Pick up any overrides.
15900         Reported by Reuben Thomas.
15901
15902         hash: allow C89 compilation
15903         * lib/hash.c (check_tuning): Move declaration before statement.
15904         Reported by Reuben Thomas.
15905
15906 2009-10-05  Karl Berry  <karl@gnu.org>
15907
15908         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
15909
15910 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
15911             Bruno Haible  <bruno@clisp.org>
15912
15913         * lib/uname.c (uname): Use a table-driven algorithm to compute
15914         Windows NT versions.
15915
15916 2009-10-04  Bruno Haible  <bruno@clisp.org>
15917
15918         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
15919         program_invocation_short_name.
15920         * modules/progname (configure.ac): Test for presence of
15921         program_invocation_short_name.
15922         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
15923
15924 2009-10-04  Bruno Haible  <bruno@clisp.org>
15925
15926         * lib/progname.c (set_program_name): Fix comment.
15927         Reported by Jim Meyering.
15928
15929 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
15930             Bruno Haible  <bruno@clisp.org>
15931
15932         * lib/uname.c: Include <string.h>.
15933         (uname): Do only one call to GetVersionEx in the common case.
15934
15935 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
15936             Bruno Haible  <bruno@clisp.org>
15937
15938         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
15939         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
15940         (uname): Add support for Windows CE and various non-x86 CPU types.
15941
15942 2009-10-03  Bruno Haible  <bruno@clisp.org>
15943
15944         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
15945         invocation to tests/configure.ac.
15946         Reported by Ian Beckwith <ianb@erislabs.net>.
15947
15948 2009-10-02  Eric Blake  <ebb9@byu.net>
15949
15950         fchdir: avoid compiler warning
15951         * lib/fchdir.c (canonicalize_file_name)
15952         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
15953
15954         test-open: support mingw errno values
15955         * tests/test-open.h (test_open): Relax test.
15956         * tests/test-fopen.h (test_fopen): Likewise.
15957         * tests/test-openat-safer.c (main): Likewise.
15958
15959         open: fix opening directory on mingw
15960         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
15961
15962         test-open: on GNU/Hurd, /dev/null is a directory
15963         * tests/test-fopen.h (main): Rename...
15964         (test_fopen): ...to this.  Use a guaranteed non-directory when
15965         confirming open behavior on trailing slash.
15966         * tests/test-openat-safer.c (main): Likewise.
15967         * tests/test-open.h (main): Likewise....
15968         (test_open): ...to this.
15969         * tests/test-fopen.c (main): Adjust caller.
15970         * tests/test-fopen-safer.c (main): Likewise.
15971         * tests/test-open.c (main): Likewise.
15972         * tests/test-fcntl-safer.c (main): Likewise.
15973         Reported by Samuel Thibault.
15974
15975         rename, fchdir: don't ignore chdir failure
15976         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
15977         * lib/rename.c (rpl_rename) [W32]: Likewise.
15978         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
15979         an empty destination directory if source cannot be renamed,
15980         although there is still possibility for failure.
15981         * doc/posix-functions/rename.texi (rename): Document the race.
15982         Reported by Jim Meyering.
15983
15984         maint: cleanup whitespace in recent commits
15985         * lib/rename.c (rpl_rename): Remove tabs.
15986         * tests/test-link.h (test_link): Likewise.
15987         * lib/fchdir.c (get_name): Likewise.
15988         Reported by Jim Meyering.
15989
15990 2009-10-02  Ben Pfaff  <blp@gnu.org>
15991
15992         relocatable-prog-wrapper: Add missing dependency on
15993         double-slash-root.
15994         * modules/relocatable-prog-wrapper: Add dependency.
15995         Reported by Ian Beckwith <ianb@erislabs.net>.
15996
15997 2009-10-02  Eric Blake  <ebb9@byu.net>
15998
15999         renameat: fix Solaris bugs
16000         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
16001         needed fixing.
16002         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
16003         * modules/stdio (Makefile.am): Substitute it.
16004         * lib/stdio.in.h (renameat): Declare replacement.
16005         * lib/renameat.c (rpl_renameat): Implement fix.
16006
16007         renameat: new module
16008         * modules/renameat: New file.
16009         * lib/renameat.c (renameat): Likewise.
16010         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
16011         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
16012         * modules/stdio (Makefile.am): Substitute them.
16013         * lib/stdio.in.h (renameat): Declare it.
16014         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
16015         * doc/posix-functions/renameat.texi (renameat): Likewise.
16016         * modules/renameat-tests: New test.
16017         * tests/test-renameat.c: Likewise.
16018
16019         rename: fix mingw bugs
16020         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
16021         directory overwrite bugs.
16022
16023         rename: fix another cygwin 1.5 bug
16024         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
16025         checks.
16026         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
16027         unnecessary cygwin workarounds.  Also work around bug with moving
16028         full directory onto an empty one.
16029         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
16030
16031         rename-dest-slash: merge into rename module
16032         * modules/rename-dest-slash (Status): Mark obsolete.
16033         (Depends-on): Add rename.
16034         (Files): Let rename do it all.
16035         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
16036         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
16037         * m4/rename-dest-slash.m4: ...so this file can be deleted.
16038         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
16039         * lib/rename.c (rpl_rename): Update comments.
16040
16041         rename: fix cygwin 1.5.x bugs
16042         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
16043         * lib/rename.c (rpl_rename): Work around them.
16044         * modules/rename (Depends-on): Add same-inode.
16045
16046         rename: fix Solaris 10 bug
16047         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
16048         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
16049         was the only bug.
16050
16051         rename: fix Solaris 9 bug
16052         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
16053         on non-directory.  Avoid calling exit.
16054         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
16055         strdup.
16056         * modules/rename-tests (Depends-on): Drop lstat.
16057         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
16058         (gl_PREREQ_RENAME): Delete unused macro.
16059
16060         rename-dest-slash: fix NetBSD bug
16061         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
16062         links.
16063         * modules/rename-dest-slash (Depends-on): Add same-inode.
16064
16065         rename-tests: new test, exposes several platform bugs
16066         * modules/rename-tests: New file.
16067         * tests/test-rename.h: Likewise.
16068         * tests/test-rename.c: Likewise.
16069         * doc/posix-functions/rename.texi (rename): Improve documentation,
16070         including bugs that will eventually be fixed in gnulib.
16071
16072 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
16073
16074         * lib/uname.c: Include <stdlib.h>
16075         (uname): Assume version info is available.
16076
16077 2009-10-02  Jim Meyering  <meyering@redhat.com>
16078
16079         gnu-web-doc-update: correct --help output
16080         * build-aux/gnu-web-doc-update: Make --help output relevant.
16081
16082         gnu-web-doc-update: add standard options
16083         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
16084
16085         gnu-web-doc-update: New module.
16086         Use this script to automatically update the on-line web documentation
16087         for your GNU project at http://www.gnu.org/software/$pkg/manual/
16088         * modules/gnu-web-doc-update: New file, from coreutils.
16089         * build-aux/gnu-web-doc-update: New script.
16090
16091 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
16092
16093         link: LoadLibrary is not needed.
16094         * lib/link.c: Use GetModuleHandle.
16095
16096 2009-10-01  Eric Blake  <ebb9@byu.net>
16097
16098         getopt: bump serial number
16099         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
16100         change.
16101
16102         tests: tighten link, rmdir, and remove tests
16103         * tests/test-link.h (includes): No need to use <config.h> here.
16104         Clean up if directory hard link was created, otherwise test for
16105         trailing '.'.
16106         * tests/test-linkat.c (main): Simplify.
16107         * tests/test-remove.c (main): Enhance test for trailing '.'.
16108         * tests/test-rmdir.h (test_rmdir_func): Likewise.
16109
16110 2009-10-01  Jim Meyering  <meyering@redhat.com>
16111
16112         maint.mk: requiring "make major" was annoying, for a "minor" release.
16113         What is intended is "stable", to contrast with alpha and beta,
16114         so require "make stable", not "make major".
16115         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
16116         (get_tool_versions): Likewise.
16117         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
16118
16119 2009-09-30  Ben Pfaff  <blp@gnu.org>
16120
16121         Fix broken build of replacement for Windows tmpfile().
16122         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
16123         flags argument added along with the 'mkostemp' module.
16124
16125 2009-09-28  Bruno Haible  <bruno@clisp.org>
16126
16127         Avoid identifier clash with POSIX function 'remove' defined as a macro.
16128         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
16129         to 'remove_elt'.
16130         (gl_list_remove): Update.
16131         * lib/gl_list.c (gl_list_remove): Update.
16132         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
16133         to 'remove_elt'.
16134         (gl_oset_remove): Update.
16135         * lib/gl_list.c (gl_oset_remove): Update.
16136         Reported by Eric Blake.
16137
16138 2009-09-28  Eric Blake  <ebb9@byu.net>
16139
16140         doc: mention yet more cygwin 1.7 status
16141         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
16142         cygwin.
16143         * doc/glibc-functions/execvpe.texi (execvpe): New file.
16144         * doc/gnulib.texi (Glibc unistd.h): Mention it.
16145
16146         argp: fix test failure
16147         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
16148         that are not upper-case.  Pass correct range to tolower.
16149
16150 2009-09-27  Jim Meyering  <meyering@redhat.com>
16151
16152         test-yesno: work around sparc-dash here-document infelicity
16153         Without this change, the literal \177 byte in a here document
16154         would make dash 0.5.5.1-3 access uninitialized memory.
16155         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
16156         Instead, use a marker, "@", and filter through tr to create the desired
16157         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
16158
16159 2009-09-27  Bruno Haible  <bruno@clisp.org>
16160
16161         Disable untested support for new flavours of ACLs on AIX.
16162         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
16163         progress.
16164         * lib/set-mode-acl.c (qset_acl): Likewise.
16165
16166 2008-12-07  Bruno Haible  <bruno@clisp.org>
16167
16168         Add support for new flavours of ACLs on AIX. (Untested.)
16169         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
16170         (file_has_acl): Add support for newer AIX.
16171         * lib/set-mode-acl.c (qset_acl): Likewise.
16172         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
16173         Rainer Tammer <tammer@tammer.net>.
16174
16175 2009-09-26  Eric Blake  <ebb9@byu.net>
16176
16177         argp: fix compilation of getopt
16178         * lib/getopt.in.h (includes): Use different guard than glibc.
16179         Reported by Sergey Poznyakoff.
16180
16181         doc: mention more cygwin 1.7 status
16182         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
16183         bug.
16184         * doc/posix-functions/execl.texi (execl): Likewise.
16185         * doc/posix-functions/execle.texi (execle): Likewise.
16186         * doc/posix-functions/execlp.texi (execlp): Likewise.
16187         * doc/posix-functions/execv.texi (execv): Likewise.
16188         * doc/posix-functions/execve.texi (execve): Likewise.
16189         * doc/posix-functions/execvp.texi (execvp): Likewise.
16190         * doc/glibc-functions/canonicalize_file_name.texi
16191         (canonicalize_file_name): Cygwin 1.7 now provides this.
16192         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
16193         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
16194         on AT_SYMLINK_NOFOLLOW.
16195
16196 2009-09-24  Eric Blake  <ebb9@byu.net>
16197
16198         test-linkat: make test more robust
16199         * tests/test-linkat.c (main): Avoid collision with EEXIST.
16200
16201         getopt: fix inclusion guards for cygwin
16202         * modules/getopt-posix (Depends-on): Add include-next.
16203         (Makefile.am): Substitute more items in replacement header.
16204         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
16205         <getopt.h>.
16206         * lib/getopt.in.h (includes): Use split inclusion guard, and
16207         prefer <getopt.h> over include <unistd.h> when one is present.
16208         (option): Also override name of 'struct option'.
16209
16210         same-inode: revert prior change; it is not yet ready
16211         * NEWS: Undo mention of this change.
16212         * lib/same-inode.h (same-inode.h): Undo tri-state change.
16213         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
16214         * lib/cycle-check.c (cycle_check): Likewise.
16215         * lib/same.c (same_name): Likewise.
16216         * lib/at-func2.c (at_func2): Likewise.
16217
16218 2009-09-23  Eric Blake  <ebb9@byu.net>
16219
16220         linkat: new module
16221         * modules/linkat: New file.
16222         * lib/at-func2.c (at_func2): Likewise.
16223         * lib/linkat.c (linkat): Likewise.
16224         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
16225         * lib/openat-priv.h (at_func2): Add declaration.
16226         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
16227         * modules/unistd (Makefile.am): Substitute them.
16228         * lib/unistd.in.h (linkat): Declare it.
16229         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
16230         * doc/posix-functions/linkat.texi (linkat): Likewise.
16231         * doc/posix-functions/link.texi (link): Tweak wording.
16232         * tests/test-link.c (main): Move guts...
16233         * tests/test-link.h (test_link): ...into new file.
16234         * modules/linkat-tests: New test.
16235         * tests/test-linkat.c: Likewise.
16236         * modules/link-tests (Files): Ship new file.
16237         (Depends-on): Add stdbool.
16238
16239         dirname: add library-safe mdir_name
16240         * lib/dirname.h (mdir_name): New prototype.
16241         * lib/dirname.c (dir_name): Move guts...
16242         (mdir_name): ...to new function that avoids xalloc_die.
16243
16244         fchdir: another mingw fix
16245         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
16246         * lib/fchdir.c (get_name): New helper method; skips canonicalize
16247         on mingw (where it has not yet been ported), and make it optional
16248         elsewhere.
16249         (_gl_register_fd): Use it.
16250
16251         same-inode: make SAME_INODE tri-state, to port to mingw
16252         * NEWS: Mention this change.
16253         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
16254         st_ino always being 0.
16255         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
16256         * lib/cycle-check.c (cycle_check): Likewise.
16257         * lib/same.c (same_name): Likewise.
16258
16259         lstat: avoid mingw compilation error
16260         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
16261         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
16262         lstat ourselves.
16263         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
16264         was adequate.
16265         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
16266         the checks for lstat.
16267         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
16268
16269         link: fix test failure on Solaris 9
16270         * lib/link.c (rpl_link): Don't assume link will catch bogus
16271         trailing slash on source.
16272
16273         test-symlinkat: enhance test
16274         * tests/test-readlink.c (main): Move guts...
16275         * tests/test-readlink.h (test_readlink): ...into new file.
16276         * tests/test-symlink.c (main): Move guts...
16277         * tests/test-symlink.h (test_symlink): ...into new file.
16278         * tests/test-symlinkat.c (main): Use new files for further
16279         coverage.
16280         (do_symlink, do_readlink): New helper functions.
16281         * modules/symlink-tests (Files): Ship new file.
16282         (Depends-on): Add stdbool.
16283         * modules/readlink-tests (Files): Ship new file.
16284         (Depends-on): Add stdbool.
16285         * modules/symlinkat-tests (Files): Use new files.
16286
16287 2009-09-23  Eric Blake  <ebb9@byu.net>
16288
16289         readlink: document portability issue with symlink length
16290         * doc/posix-functions/lstat.texi (lstat): Mention that some file
16291         systems have bogus st_size on symlinks, and mention the
16292         areadlink-with-size module.
16293         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
16294         * doc/posix-functions/readlink.texi (readlink): Mention the
16295         areadlink module, and ERANGE failure.
16296         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
16297         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
16298
16299         readlink: fix Solaris 9 bug with trailing slash
16300         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
16301         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
16302         * doc/posix-functions/readlink.texi (readlink): Document this.
16303         * modules/readlink-tests: New test.
16304         * tests/test-readlink.c: Likewise.
16305
16306         readlink: fix cygwin 1.5.x bug with return type
16307         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
16308         * lib/unistd.in.h (readlink): Use ssize_t.
16309         * lib/readlink.c (readlink): Likewise.
16310         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
16311         * modules/unistd (Makefile.am): Substitute it.
16312         * lib/unistd.in.h (readlink): Declare replacement.
16313         * doc/posix-functions/readlink.texi (readlink): Document this.
16314
16315         symlink: use throughout gnulib
16316         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
16317         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
16318         symlink is not used.
16319         * modules/symlinkat (Depends-on): Add symlink.
16320         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
16321         * modules/canonicalize-tests (Depends-on): Likewise.
16322         * modules/lstat-tests (Depends-on): Likewise.
16323         * modules/openat-tests (Depends-on): Likewise.
16324         * modules/remove-tests (Depends-on): Likewise.
16325         * modules/rmdir-tests (Depends-on): Likewise.
16326         * modules/unlink-tests (Depends-on): Likewise.
16327         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
16328         * tests/test-canonicalize.c (symlink): Likewise.
16329         * tests/test-fstatat.c (symlink): Likewise.
16330         * tests/test-lstat.c (symlink): Likewise.
16331         * tests/test-remove.c (symlink): Likewise.
16332         * tests/test-rmdir.c (symlink): Likewise.
16333         * tests/test-unlink.c (symlink): Likewise.
16334         * tests/test-unlinkat.c (symlink): Likewise.
16335
16336         symlink: new module, for Solaris 9 bug
16337         * modules/symlink: New file.
16338         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
16339         * lib/symlink.c: Likewise.
16340         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
16341         * modules/unistd (Makefile.am): Substitute them.
16342         * lib/unistd.in.h (symlink): Declare replacement.
16343         * MODULES.html.sh (File system functions): Mention it.
16344         * doc/posix-functions/symlink.texi (symlink): Likewise.
16345         * modules/symlink-tests: New test.
16346         * tests/test-symlink.c: Likewise.
16347
16348 2009-09-23  Bruno Haible  <bruno@clisp.org>
16349
16350         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
16351         when needed.
16352         Test case: gnulib-tool --import --with-tests atexit inttypes.
16353         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
16354
16355 2009-09-23  Bruno Haible  <bruno@clisp.org>
16356
16357         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
16358         subcommand, not in a subshell.
16359
16360 2009-09-22  Eric Blake  <ebb9@byu.net>
16361
16362         unistd: sort replacement declarations
16363         * lib/unistd.in.h: Sort declarations.
16364
16365         open, openat: minor optimization
16366         * lib/open.c (open): If open succeeded, len is non-zero.
16367         * lib/openat.c (rpl_openat): Likewise.
16368
16369         link-follow: ensure correct result
16370         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
16371         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
16372         distinguish between possible failures.
16373
16374 2009-09-21  Eric Blake  <ebb9@byu.net>
16375
16376         fts: avoid compiler warning
16377         * lib/fts.c (dirent_inode_sort_may_be_useful)
16378         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
16379
16380 2009-09-19  Bruno Haible  <bruno@clisp.org>
16381
16382         * lib/progreloc.c (canonicalize_file_name): New declaration.
16383
16384 2009-09-19  Eric Blake  <ebb9@byu.net>
16385
16386         link: fix quoting
16387         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
16388
16389         openat: fix openat bugs on Solaris 9
16390         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
16391         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
16392         * modules/openat (Depends-on): Add open.
16393         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
16394         * modules/fcntl-h (Makefile.am): Substitute it.
16395         * lib/fcntl.in.h (openat): Declare replacement.
16396         * doc/posix-functions/openat.texi (openat): Document this.
16397
16398         openat: move fstatat and unlinkat into correct files
16399         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
16400         compiled.
16401         * lib/openat.c (fstatat, unlinkat): Move...
16402         * lib/fstatat.c (fstatat): ...into correct files.
16403         * lib/unlinkat.c (unlinkat): Likewise.
16404
16405         openat: fix unlinkat bugs on Solaris 9
16406         * lib/unlinkat.c (unlinkat): New file.
16407         * modules/openat (Depends-on): Add unlink.
16408         (Files): Distribute it.
16409         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
16410         trailing slash behavior is broken.
16411         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
16412         * modules/unistd (Makefile.am): Substitute it.
16413         * lib/unistd.in.h (unlinkat): Declare replacement.
16414         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
16415
16416         openat: fix fstatat bugs on Solaris 9
16417         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
16418         stat.
16419         * doc/posix-functions/fstatat.texi (fstatat): Document this.
16420
16421         test-unlinkat: enhance test, to expose Solaris 9 bug
16422         * tests/test-unlink.c (main): Factor guts...
16423         * tests/test-unlink.h (test_rmdir_func): ...into new file.
16424         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
16425         * tests/test-rmdir.c (main): Adjust caller.
16426         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
16427         (unlinker): New helper function.
16428         (rmdirat): Enhance check.
16429         * modules/rmdir-tests (Depends-on): Add stdbool.
16430         * modules/unlink-tests (Depends-on): Likewise.
16431         (Files): Add test-unlink.h.
16432         * modules/openat-tests (Files): Likewise.
16433         (Depends-on): Add unlinkdir.
16434
16435         test-fstatat: new test, to expose Solaris 9 bugs
16436         * tests/test-stat.c (main): Factor guts...
16437         * tests/test-stat.h (test_stat_func): ...into new file.
16438         * tests/test-lstat.c (main): Factor guts...
16439         * tests/test-lstat.h (test_lstat_func): ...into new file.
16440         * tests/test-fstatat.c: New file.
16441         * modules/stat-tests (Files): Add test-stat.h.
16442         * modules/lstat-tests (Files): Add test-lstat.h.
16443         (Depends-on): Add stdbool.
16444         * modules/openat-tests (Depends-on): Add pathmax.
16445         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
16446         (Makefile.am): Run new test.
16447
16448         remove: new module, for mingw and Solaris 9 bugs
16449         * modules/remove: New file.
16450         * lib/remove.c: Likewise.
16451         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
16452         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
16453         * modules/stdio (Makefile.am): Use them.
16454         * lib/stdio.in.h (remove): Declare replacement.
16455         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
16456         * doc/posix-functions/remove.texi (remove): Likewise.
16457         * modules/remove-tests: New test.
16458         * tests/test-remove.c: Likewise.
16459
16460         unlink: new module, for Solaris 9 bug
16461         * modules/unlink: New file.
16462         * lib/unlink.c: Likewise.
16463         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
16464         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
16465         * modules/unistd (Makefile.am): Use them.
16466         * lib/unistd.in.h (stat): Declare replacement.
16467         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
16468         * doc/posix-functions/unlink.texi (unlink): Likewise.
16469         * modules/unlink-tests: New test.
16470         * tests/test-unlink.c: Likewise.
16471
16472         lstat: fix Solaris 9 bug
16473         * lib/lstat.c (lstat): Also check for trailing slash on
16474         non-symlink, non-directories.  Use stat module to simplify logic.
16475         * doc/posix-functions/lstat.texi (lstat): Document it.
16476         * modules/lstat-tests (Depends-on): Add errno, same-inode.
16477         (configure.ac): Check for symlink.
16478         * tests/test-lstat.c (main): Add more tests.
16479
16480         stat: add as dependency to other modules
16481         * modules/chown (Depends-on): Add stat.
16482         * modules/euidaccess (Depends-on): Likewise.
16483         * modules/fchdir (Depends-on): Likewise.
16484         * modules/isdir (Depends-on): Likewise.
16485         * modules/link (Depends-on): Likewise.
16486         * modules/lstat (Depends-on): Likewise.
16487         * modules/mkdir-p (Depends-on): Likewise.
16488         * modules/modechange (Depends-on): Likewise.
16489         * modules/open (Depends-on): Likewise.
16490         * modules/readlink (Depends-on): Likewise.
16491         * modules/same (Depends-on): Likewise.
16492
16493         stat: fix Solaris 9 bug
16494         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
16495         slash.
16496         * lib/stat.c (rpl_stat): Work around it.
16497         * doc/posix-functions/stat.texi (stat): Update documentation.
16498
16499         stat: new module, for mingw bug
16500         * modules/stat: New file.
16501         * lib/stat.c: Likewise.
16502         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
16503         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
16504         * modules/sys_stat (Makefile.am): Use them.
16505         * lib/sys_stat.in.h (stat): Declare replacement.
16506         * lib/openat.c (fstatat): Deal with lstat and stat being function
16507         macros.
16508         * modules/openat (Depends-on): Add inline.
16509         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
16510         * doc/posix-functions/stat.texi (stat): Likewise.
16511         * modules/stat-tests: New test.
16512         * tests/test-stat.c: Likewise.
16513
16514 2009-09-19  Jim Meyering  <meyering@redhat.com>
16515
16516         syntax-check: detect unnecessary inclusion of canonicalize.h
16517         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
16518
16519 2009-09-19  Eric Blake  <ebb9@byu.net>
16520
16521         canonicalize-lgpl: adjust clients to use correct header
16522         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
16523         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
16524         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
16525         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
16526         * lib/progreloc.c (includes): Likewise.
16527
16528 2009-09-19  Jim Meyering  <meyering@redhat.com>
16529
16530         test-posixtm.c: correct a comment
16531         * tests/test-posixtm.c: Correct first-line comment.
16532         Spotted by Eric Blake.
16533
16534 2009-09-16  Jim Meyering  <meyering@redhat.com>
16535
16536         posixtm-tests: make T const-correct; add a test case
16537         * tests/test-posixtm.c (T): Declare const.
16538         Add a test for -(2^31+1).
16539         Remove useless can-succeed-only-in-2002 test.
16540
16541         posixtm-tests: adjust the sole failing test
16542         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
16543         expected output matches what mktime now produces.  Cross-checked via
16544         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
16545
16546         posixtm: move #ifdef'd tests into a new module
16547         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
16548         * tests/test-posixtm.c: ... this new file.
16549         * modules/posixtm-tests: New module.
16550
16551 2009-09-19  Eric Blake  <ebb9@byu.net>
16552
16553         openat: simplify use of at-func.c
16554         * lib/at-func.c (includes): Include prerequisites here, to
16555         simplify requirements on client files.
16556         * lib/openat-priv.h: Add double-inclusion guard.
16557         * lib/faccessat.c (includes): Simplify.
16558         * lib/fchmodat.c (includes): Likewise.
16559         * lib/fchownat.c (includes): Likewise.
16560         * lib/mkdirat.c (includes): Likewise.
16561         * lib/mkfifoat.c (includes): Likewise.
16562         * lib/symlinkat.c (includes): Likewise.
16563
16564         openat: allow return of fd 0
16565         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
16566         * modules/save-cwd (Depends-on): Replace fcntl-safer with
16567         unistd-safer.
16568         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
16569         <fcntl.h>; this module does not leak fds.
16570         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
16571         must be allowed to return 0, leaving openat_safer to add the
16572         safety.
16573         (openat_permissive): Avoid writing to just-opened fd 2 if
16574         restoring the current directory fails.
16575         * lib/openat-die.c (openat_restore_fail): Add comment.
16576         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
16577         (save_cwd): Guarantee safe fd, but without use of open_safer.
16578         * tests/test-openat.c: New test.
16579         * modules/openat-tests (Files, Makefile.am): Distribute and build
16580         new file.
16581
16582         relocatable-prog-wrapper: fix build
16583         * modules/relocatable-prog-wrapper (Files): Update name of
16584         canonicalize m4 file, broken on 2009-09-17.
16585         Reported by emad hajjar <aleppos@hotmail.com>.
16586
16587 2009-09-19  Bruno Haible  <bruno@clisp.org>
16588
16589         * lib/safe-alloc.h: Use the standard header with GPL copyright.
16590         * lib/safe-alloc.c: Likewise.
16591         Reported by Ian Beckwith <ianb@erislabs.net>.
16592
16593 2009-09-18  Bruno Haible  <bruno@clisp.org>
16594
16595         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
16596         Reported by <erobles@sensacd.com.mx>.
16597
16598 2009-09-17  Eric Blake  <ebb9@byu.net>
16599
16600         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
16601         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
16602         slashes when checking if last component is missing.
16603         * tests/test-canonicalize.c (main): Test this.
16604
16605         canonicalize, canonicalize-lgpl: honor // if distinct from /
16606         * modules/canonicalize (Files): Add double-slash-root.m4.
16607         * modules/canonicalize-lgpl (Files): Likewise.
16608         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
16609         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
16610         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
16611         fallback definition.
16612         (canonicalize_filename_mode): Use it to protect //.
16613         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
16614         (__realpath): Likewise.
16615         * tests/test-canonicalize.c (main): Test this.
16616         * tests/test-canonicalize-lgpl.c (main): Likewise.
16617         * modules/canonicalize-tests (Depends-on): Add same-inode.
16618         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
16619
16620         canonicalize-lgpl: fix glibc bug with trailing slash
16621         * m4/canonicalize-lgpl.m4: Move contents...
16622         * m4/canonicalize.m4: ...here.
16623         (gl_CANONICALIZE_LGPL): Factor realpath check...
16624         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
16625         glibc 2.3.5 bug, fixed 2005-04-27.
16626         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
16627         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
16628         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
16629         * modules/canonicalize-lgpl (Files): Manage file rename.
16630         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
16631         * modules/stdlib (Makefile.am): Substitute witness.
16632         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
16633         is needed.
16634         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
16635         replacement is required.
16636         * lib/canonicalize.c (canonicalize_file_name): Likewise.
16637         * doc/glibc-functions/canonicalize_file_name.texi
16638         (canonicalize_file_name): Document this.
16639         * doc/posix-functions/realpath.texi (realpath): Likewise.
16640
16641         canonicalize-lgpl: reject non-directory with trailing slash
16642         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
16643         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
16644         catches failures in glibc 2.3.5.
16645         * tests/test-canonicalize.c (main): Likewise.
16646
16647         canonicalize-lgpl: use native realpath if it works
16648         * lib/canonicalize-lgpl.c (realpath): Guard with
16649         FUNC_REALPATH_WORKS.
16650         * lib/stdlib.in.h (realpath): Make declaration optional based on
16651         HAVE_REALPATH.
16652         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
16653         native realpath works.
16654         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
16655         * modules/stdlib (Makefile.am): Substitute witness.
16656
16657         canonicalize, canonicalize-lgpl: use <stdlib.h>
16658         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
16659         (Include): Mention <stdlib.h>.
16660         (configure.ac): Mention functions we provide.
16661         * modules/canonicalize (configure.ac): Likewise.
16662         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
16663         realpath if canonicalize_file_name is missing.
16664         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
16665         * modules/stdlib (Makefile.am): Substitute witnesses.
16666         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
16667         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
16668         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
16669         * NEWS: Document this.
16670         * doc/glibc-functions/canonicalize_file_name.texi
16671         (canonicalize_file_name): Likewise.
16672         * doc/posix-functions/realpath.texi (realpath): Likewise.
16673         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
16674
16675         test-canonicalize: consolidate into single C program
16676         * tests/test-canonicalize.sh: Delete; move setup into...
16677         * tests/test-canonicalize.c (main): ...the program, making it
16678         easier to run in debugger.  Add some tests.
16679         * modules/canonicalize-tests (Files): Remove unused file.
16680         (Depends-on): Add progname.
16681         (configure.ac, Makefile.am): Simplify.
16682
16683         test-canonicalize-lgpl: consolidate into single C program
16684         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
16685         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
16686         easier to run in debugger.  Add some tests.
16687         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
16688         (configure.ac, Makefile.am): Simplify.
16689
16690         canonicalize: avoid resolvepath
16691         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
16692         unnecessary checks.
16693         * lib/canonicalize.c (includes): Simplify.
16694         (canonicalize_file_name): Drop resolvepath implementation.
16695         * modules/canonicalize (Depends-on): Drop filenamecat.
16696
16697         canonicalize: don't lose errno
16698         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
16699         over calls to free.
16700
16701         canonicalize: simplify errno handling
16702         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
16703         assignment.
16704
16705         canonicalize, canonicalize-lgpl: update module dependencies
16706         * modules/canonicalize (Depends-on): Add extensions, lstat,
16707         pathmax, stdlib.
16708         (Files): Drop pathmax.h.
16709         (configure.ac): Adjust macro name.
16710         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
16711         lstat, stdlib, sys_stat.
16712         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
16713         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
16714         extensions.
16715         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
16716         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
16717         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
16718         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
16719         declaration, if available.
16720         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
16721         we can rely on the readlink module.
16722         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
16723         (includes): Use <unistd.h> unconditionally.
16724
16725 2009-09-17  Eric Blake  <ebb9@byu.net>
16726
16727         maint: make Include sections of modules consistent
16728         * modules/alloca: Use only header name; no need to list #include.
16729         * modules/alloca-opt: Likewise.
16730         * modules/arpa_inet: Likewise.
16731         * modules/canon-host: Likewise.
16732         * modules/configmake: Likewise.
16733         * modules/dirent: Likewise.
16734         * modules/eealloc: Likewise.
16735         * modules/environ: Likewise.
16736         * modules/fchdir: Likewise.
16737         * modules/fcntl: Likewise.
16738         * modules/fcntl-h: Likewise.
16739         * modules/gethrxtime: Likewise.
16740         * modules/gettime: Likewise.
16741         * modules/ignore-value: Likewise.
16742         * modules/inet_ntop: Likewise.
16743         * modules/inet_pton: Likewise.
16744         * modules/inttypes: Likewise.
16745         * modules/isnand-nolibm: Likewise.
16746         * modules/isnanf-nolibm: Likewise.
16747         * modules/mbchar: Likewise.
16748         * modules/mbfile: Likewise.
16749         * modules/mbiter: Likewise.
16750         * modules/mbuiter: Likewise.
16751         * modules/netdb: Likewise.
16752         * modules/netinet_in: Likewise.
16753         * modules/nproc: Likewise.
16754         * modules/pagealign_alloc: Likewise.
16755         * modules/poll: Likewise.
16756         * modules/printf-frexp: Likewise.
16757         * modules/pthread: Likewise.
16758         * modules/putenv: Likewise.
16759         * modules/random_r: Likewise.
16760         * modules/relocatable-prog: Likewise.
16761         * modules/search: Likewise.
16762         * modules/select: Likewise.
16763         * modules/selinux-h: Likewise.
16764         * modules/settime: Likewise.
16765         * modules/signal: Likewise.
16766         * modules/size_max: Likewise.
16767         * modules/socklen: Likewise.
16768         * modules/ssize_t: Likewise.
16769         * modules/stdarg: Likewise.
16770         * modules/stdbool: Likewise.
16771         * modules/stddef: Likewise.
16772         * modules/stdint: Likewise.
16773         * modules/stdio: Likewise.
16774         * modules/stdlib: Likewise.
16775         * modules/string: Likewise.
16776         * modules/strings: Likewise.
16777         * modules/sys_file: Likewise.
16778         * modules/sys_ioctl: Likewise.
16779         * modules/sys_select: Likewise.
16780         * modules/sys_socket: Likewise.
16781         * modules/sys_stat: Likewise.
16782         * modules/sys_time: Likewise.
16783         * modules/sys_times: Likewise.
16784         * modules/sys_utsname: Likewise.
16785         * modules/sys_wait: Likewise.
16786         * modules/sysexits: Likewise.
16787         * modules/time: Likewise.
16788         * modules/times: Likewise.
16789         * modules/tmpfile: Likewise.
16790         * modules/trim: Likewise.
16791         * modules/unistd: Likewise.
16792         * modules/wchar: Likewise.
16793         * modules/wctype: Likewise.
16794
16795 2009-09-17  Bruno Haible  <bruno@clisp.org>
16796
16797         Make getdate.y compile on QNX and NetBSD 5 / i386.
16798         * m4/getdate.m4 (gl_GETDATE): Conditionally define
16799         TIME_T_FITS_IN_LONG_INT.
16800         * lib/getdate.y (long_time_t): New type.
16801         (relative_time): Change type of 'seconds' field to long_time_t.
16802         (get_date): Update types of local variables. Check against overflow
16803         during conversion from long_time_t to time_t.
16804         Reported by Matt Kraai <kraai@ftbfs.org>
16805         and Hasso Tepper <hasso@netbsd.org>.
16806
16807 2009-09-17  Bruno Haible  <bruno@clisp.org>
16808
16809         * modules/COPYING: Update copyright years.
16810         * modules/README: Likeiwse.
16811         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
16812         Reported by Ian Beckwith <ianb@erislabs.net>.
16813
16814 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
16815
16816         * users.txt: Update references for gnuit package.
16817
16818 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
16819
16820         * m4/getdelim.m4: Fix typo in copyright line.
16821
16822 2009-09-17  Bruno Haible  <bruno@clisp.org>
16823
16824         * lib/atoll.c: Use the standard header with GPL copyright.
16825         * lib/argz.in.h: Likewise.
16826         * lib/glob.c: Likewise.
16827         * lib/glob-libc.h: Likewise.
16828         * lib/random_r.c: Likewise.
16829         * lib/siglist.h: Likewise.
16830         * lib/strsignal.c: Likewise.
16831         Reported by Ian Beckwith <ianb@erislabs.net>.
16832
16833 2009-09-17  Eric Blake  <ebb9@byu.net>
16834
16835         rmdir: ensure correct dependency order
16836         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
16837
16838 2009-09-17  Bruno Haible  <bruno@clisp.org>
16839
16840         Disable assertion that fails on NetBSD 5 / i386.
16841         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
16842         Reported by Sam Steingold <sds@gnu.org>
16843         and Hasso Tepper <hasso@netbsd.org>.
16844
16845 2009-09-16  Eric Blake  <ebb9@byu.net>
16846
16847         unlinkdir: port to mingw
16848         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
16849         on which no one can unlink a directory.
16850
16851         stdlib: sort witness names
16852         * modules/stdlib (Makefile.am): Sort replacements.
16853         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
16854         * lib/stdlib.in.h: Likewise.
16855
16856         parse-duration-tests: avoid link failure
16857         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
16858         LIBINTL.
16859         Reported by Tom G. Christensen.
16860
16861         openat-tests: ensure unlinkat behaves like rmdir
16862         * tests/test-rmdir.c (main): Factor guts...
16863         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
16864         * modules/rmdir-tests (Files): Ship new file.
16865         * modules/openat-tests: New test.
16866         * tests/test-unlinkat.c: Likewise.
16867
16868         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
16869         * modules/rmdir-errno (Status, Notice): Now obsolete.
16870
16871         rmdir: work around cygwin 1.5.x and mingw bugs
16872         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
16873         * lib/rmdir.c (rmdir): Work around it.
16874         * modules/rmdir (Status, Notice): No longer obsolete.
16875         (Files): Add dos.m4.
16876         (Depends-on): Add unistd.
16877         (configure.ac): Set witnesses.
16878         (License): Relax to LGPLv2+.
16879         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
16880         * modules/unistd (Makefile.am): Substitute witnesses.
16881         * lib/unistd.in.h (rmdir): Declare replacement.
16882         * doc/posix-functions/rmdir.texi (rmdir): Document this.
16883         * modules/rmdir-tests: New tests.
16884         * tests/test-rmdir.c: Likewise.
16885
16886 2009-09-15  Eric Blake  <ebb9@byu.net>
16887
16888         fchdir: improve use of replacement functions
16889         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
16890         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
16891         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
16892         REPLACE_CLOSEDIR.
16893         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
16894         * modules/sys_stat (Makefile.am): Substitute correct witness.
16895         * modules/dirent (Makefile.am): Likewise.
16896         * modules/unistd (Makefile.am): Likewise.
16897         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
16898         * lib/unistd.in.h (dup): Likewise.
16899         * lib/sys_stat.in.h (fstat): Likewise.
16900
16901         maint: ignore gnulib-tool temp files
16902         * .gitignore: Ignore files created during gnulib-tool --test.
16903
16904 2009-09-13  Jim Meyering  <meyering@redhat.com>
16905
16906         posixtm: don't reject a time that specify "60" as the number of seconds
16907         * lib/posixtm.c (posixtime): The code to reject invalid dates
16908         would also reject a time specified with the .60 suffix.
16909         But POSIX allows that, in order to accommodate leap seconds.
16910         So don't reject it.
16911         (main): Adjust tests accordingly.
16912         * modules/posixtm (Depends-on): Add stpcpy.
16913
16914 2009-09-11  Jim Meyering  <meyering@redhat.com>
16915
16916         announce-gen: include [$release_type] in emitted Subject:
16917         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
16918         e.g., [stable] in the emitted Subject: line.
16919
16920 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16921
16922         Remove obsolete macros from several modules.
16923         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
16924         obsolete Autoconf macros with their modern counterparts.
16925         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
16926         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
16927         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
16928         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
16929         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
16930         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
16931         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
16932         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
16933         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
16934         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
16935         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
16936         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
16937         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
16938         * m4/sockets.m4 (gl_SOCKETS): Likewise.
16939         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
16940         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
16941         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
16942         * m4/time_r.m4 (gl_TIME_R): Likewise.
16943         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
16944         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
16945         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
16946
16947         Fix copyright header in build-aux scripts.
16948         * build-aux/git-version-gen: Fix copyright header to match GPLv3
16949         recommendation.
16950         * build-aux/ncftpput-ftp: Likewise.
16951         * build-aux/update-copyright: Likewise.
16952
16953 2009-09-09  Eric Blake  <ebb9@byu.net>
16954
16955         test-link: allow Linux choice of errno
16956         * tests/test-link.c (main): Relax test for alternate error.
16957
16958         strndup: fix improper m4 caching
16959         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
16960         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
16961         (gl_PREREQ_STRNDUP): Delete.
16962         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
16963         * modules/string (Makefile.am): Substitute it.
16964         * lib/string.in.h (strndup): Modernize prototype.
16965
16966         getcwd: port to mingw
16967         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
16968         different from the POSIX assumptions made throughout the getcwd
16969         module; fortunately, the mingw getcwd does not need replacement.
16970         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
16971         * modules/getcwd-tests: New test.
16972         * tests/test-getcwd.c: Likewise.
16973
16974         link: fix platform bugs
16975         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
16976         * lib/link.c (link): Work around them.  Fix related mingw bug.
16977         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
16978         * modules/unistd (Makefile.am): Substitute it.
16979         * lib/unistd.in.h (link): Declare replacement.
16980         * doc/posix-functions/link.texi (link): Document this.
16981         * modules/link (Depends-on): Add strdup-posix, sys_stat.
16982
16983         test-link: consolidate into single C program, test more cases
16984         * tests/test-link.sh: Delete.
16985         * tests/test-link.c: Test more error conditions.  Exposes bugs on
16986         at least Cygwin and Solaris.
16987         * modules/link-tests (Files): Remove unused file.
16988         (Depends-on): Add errno, sys_stat.
16989         (Makefile.am): Simplify.
16990
16991 2009-09-08  Bruno Haible  <bruno@clisp.org>
16992
16993         Work around towlower, towupper bug on mingw.
16994         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
16995         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
16996         * doc/posix-functions/towlower.texi: Mention the mingw bug.
16997         * doc/posix-functions/towupper.texi: Likewise.
16998         Reported by Eric Blake.
16999
17000 2009-09-08  Jim Meyering  <meyering@redhat.com>
17001
17002         build: don't try to run autoheader if we don't use it
17003         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
17004         is not used in configure.ac.
17005
17006 2009-09-08  Eric Blake  <ebb9@byu.net>
17007
17008         euidaccess: fix compilation error
17009         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
17010
17011         rawmemchr: relax license
17012         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
17013         okay.
17014         Reported by Jim Meyering.
17015
17016         mkfifoat: new module
17017         * modules/mkfifoat: New file.
17018         * lib/mkfifoat.c: Likewise.
17019         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
17020         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
17021         * modules/sys_stat (Makefile.am): Use them.
17022         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
17023         * MODULES.html.sh (File system functions): Mention module.
17024         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
17025         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
17026         * modules/mkfifoat-tests: New test.
17027         * tests/test-mkfifoat.c: Likewise.
17028
17029         strchrnul: relax license
17030         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
17031         okay.
17032         Reported by Jim Meyering.
17033
17034 2009-09-08  Eric Blake  <ebb9@byu.net>
17035
17036         fstatat: fix compilation on Solaris
17037         * lib/fstatat.c (includes): Add fcntl.h.
17038         Reported by Pádraig Brady.
17039
17040 2009-09-07  Eric Blake  <ebb9@byu.net>
17041
17042         rename: modernize replacement
17043         * modules/rename (Depends-on): Add stdio.
17044         (configure.ac): Declare witness.
17045         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
17046         stdio take care of replacement.
17047         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
17048         * modules/stdio (Makefile.am): Substitute them.
17049         * lib/stdio.in.h (rename): Declare replacement.
17050         * lib/rename.c (includes): Allow cross-compilation to non-windows
17051         machines.
17052         * doc/posix-functions/rename.texi (rename): Improve
17053         documentation.
17054
17055         stdio: sort witness names
17056         * modules/stdio (Makefile.am): Sort replacements.
17057         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
17058         * lib/stdio.in.h: Likewise.
17059
17060         getcwd: minor cleanups
17061         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
17062         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
17063
17064         openat: provide more convenience names
17065         * modules/faccessat (configure.ac): Add C witness.
17066         * lib/unistd.in.h (readlinkat): Fix typo.
17067         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
17068         convenience wrappers.
17069         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
17070         wrappers in syntax checks.
17071
17072 2009-09-06  Eric Blake  <ebb9@byu.net>
17073
17074         doc: fix comments in recent patches
17075         * lib/faccessat.c: Mention correct function.
17076         * lib/fchmodat.c: Likewise.
17077         * lib/fchownat.c: Likewise.
17078         * lib/symlinkat.c: Likewise.
17079         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
17080         constants.
17081
17082         faccessat, symlinkat: continue cleanup of previous patch
17083         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
17084         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
17085         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
17086         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
17087         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
17088         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
17089         set.
17090
17091 2009-09-06  Bruno Haible  <bruno@clisp.org>
17092
17093         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
17094         (fstatat): Declare if GNULIB_FSTATAT is set.
17095         (mkdirat): Declare if GNULIB_MKDIRAT is set.
17096         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
17097         (unlinkat): Declare if GNULIB_UNLINKAT is set.
17098         * modules/fcntl-h (Files): Remove m4/openat.m4.
17099         * modules/sys_stat (Files): Remove m4/openat.m4.
17100         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
17101         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
17102         * modules/unistd (Files): Remove m4/openat.m4.
17103         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
17104         GNULIB_OPENAT.
17105         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
17106         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
17107         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
17108         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
17109         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
17110         gl_OPENAT_DEFAULTS.
17111         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
17112         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
17113         Don't require gl_OPENAT_DEFAULTS.
17114         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
17115         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
17116         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
17117         (gl_OPENAT_DEFAULTS): Remove macro.
17118
17119 2009-09-06  Bruno Haible  <bruno@clisp.org>
17120
17121         * modules/openat (configure.ac): Remove unneeded witness.
17122
17123 2009-09-06  Bruno Haible  <bruno@clisp.org>
17124
17125         Set errno to ENOSYS when a function is entirely unsupported.
17126         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
17127         EOPNOTSUPP.
17128         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
17129         * modules/chown (Depends-on): Remove errno.
17130
17131 2009-09-06  Bruno Haible  <bruno@clisp.org>
17132
17133         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
17134
17135 2009-09-06  Bruno Haible  <bruno@clisp.org>
17136
17137         * lib/sys_stat.in.h: Fix preprocessor command indentation.
17138
17139 2009-09-06  Ben Pfaff  <blp@gnu.org>
17140             Bruno Haible  <bruno@clisp.org>
17141
17142         Work around a glibc bug in strtok_r.
17143         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
17144         Undefine if UNDEFINE_STRTOK_R is set.
17145         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
17146         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
17147         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
17148         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
17149         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
17150         UNDEFINE_STRTOK_R.
17151         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
17152
17153 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
17154
17155         exclude: minor fix
17156         * lib/exclude.c: Include wctype.h
17157
17158 2009-09-06  Akim Demaille  <demaille@gostai.com>
17159
17160         bootstrap: improve error message
17161         * build-aux/bootstrap (find_tool): Upon failure, report the list
17162         of candidates.
17163         Honor the initial value of the envvar.
17164
17165 2009-09-05  Eric Blake  <ebb9@byu.net>
17166
17167         symlinkat: new module
17168         * modules/symlinkat: New file.
17169         * lib/symlinkat.c: Likewise.
17170         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
17171         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
17172         * modules/unistd (Makefile.am): Use them.
17173         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
17174         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
17175         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
17176         * MODULES.html.sh (File system functions): Mention module.
17177         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
17178         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
17179         * modules/symlinkat-tests: New test.
17180         * tests/test-symlinkat.c: Likewise.
17181
17182         test-openat-safer: add more checks
17183         * tests/test-openat-safer.c (main): Check more code paths.
17184
17185 2009-09-05  Jim Meyering  <meyering@redhat.com>
17186
17187         syntax-check: detect unnecessary inclusion of openat.h
17188         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
17189
17190 2009-09-05  Bruno Haible  <bruno@clisp.org>
17191
17192         Support towlower, towupper.
17193         * doc/posix-functions/towlower.texi: Mention module wctype.
17194         * doc/posix-functions/towupper.texi: Likewise.
17195         * lib/wctype.in.h (towlower, towupper): New functions.
17196         * tests/test-wctype.c: Include stdio.h, stdlib.h.
17197         (ASSERT): New macro.
17198         (e): New variable.
17199         (main): Test also towlower, towupper. Test WEOF argument.
17200         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
17201
17202 2009-09-05  Bruno Haible  <bruno@clisp.org>
17203
17204         Fix conversion behaviour when the input is invalid.
17205         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
17206         mark occurring in first pass of indirect conversion.
17207         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
17208         input.
17209         Found by clang's static analyzer.
17210
17211 2009-09-05  Bruno Haible  <bruno@clisp.org>
17212
17213         * tests/test-striconveh.c (main): Test indirect conversion on platforms
17214         where direct conversion is possible.
17215
17216 2009-09-04  Eric Blake  <ebb9@byu.net>
17217
17218         openat: fail with ENOENT on empty name
17219         * lib/openat-proc.c (openat_proc_name): Special-case the empty
17220         buffer.
17221
17222         link-follow: fix logic bug in prior patch
17223         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
17224         reversed sense of yes and no in prior patch.  Avoid confusing
17225         compilation failure with desired semantics.
17226
17227         link-follow: accomodate mingw and cross-compilation
17228         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
17229         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
17230         cross-compilation results to -1, to make linkat easier to
17231         implement when cross-compiling.  Trivially support mingw.
17232         * modules/link-follow (configure.ac): Call new name.
17233         * NEWS: Mention this.
17234
17235 2009-09-03  Eric Blake  <ebb9@byu.net>
17236
17237         faccessat: compile replacement
17238         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
17239         needed.
17240
17241         fts: fix compilation error
17242         * lib/fts.c (includes): Re-add "openat.h", for
17243         openat_needs_fchdir.
17244
17245         faccessat: new module
17246         * modules/faccessat: New file.
17247         * lib/faccessat.c: Likewise.
17248         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
17249         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
17250         * modules/unistd (Makefile.am): Use it.
17251         * lib/unistd.in.h (faccessat): Declare it.
17252         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
17253         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
17254         * MODULES.html.sh (File system functions): Mention it.
17255         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
17256         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
17257
17258         euidaccess: prefer POSIX over non-standard implementation
17259         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
17260         * lib/euidaccess.c (euidaccess): Use it if available.
17261
17262         openat: make template easier to use
17263         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
17264         AT_FUNC_F2 to be undefined.
17265         (VALIDATE_FLAG): New macro; use it to reject bad flags.
17266         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
17267         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
17268         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
17269         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
17270         Likewise.
17271         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
17272         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
17273         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
17274         Likewise.
17275
17276         openat: declare in POSIX headers
17277         * NEWS: Mention this.
17278         * modules/openat (configure.ac): Declare witnesses.
17279         (Depends-on): Add fcntl-h, sys_stat, unistd.
17280         (Include): Mention correct headers.
17281         * modules/fcntl-h (Depends-on): Add link-warning.
17282         (Files): Add openat.m4.
17283         (Makefile.am): Substitute witnesses.
17284         * modules/sys_stat (Files, Makefile.am): Likewise.
17285         * modules/unistd (Files, Makefile.am): Likewise.
17286         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
17287         (gl_OPENAT_DEFAULTS): New macro.
17288         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
17289         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
17290         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
17291         (SYS_STAT_H): Remove unused variable.
17292         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
17293         * lib/fcntl--.h (includes): Remove unneeded header.
17294         * lib/openat-safer.c (includes): Likewise.
17295         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
17296         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
17297         appropriate headers.
17298         (__OPENAT_PREFIX): Delete.
17299         * lib/fcntl.in.h (openat): Provide declaration.
17300         (AT_FDCWD): Fix Solaris bug.
17301         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
17302         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
17303         * lib/fchmodat.c (includes):  Adjust to find declaration.
17304         * lib/fchownat.c (includes): Likewise.
17305         * lib/mkdirat.c (includes): Likewise.
17306         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
17307         still visible.
17308
17309 2009-09-02  Eric Blake  <ebb9@byu.net>
17310
17311         errno: use consistently
17312         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
17313         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
17314         * lib/canonicalize.c (ELOOP): Likewise.
17315         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
17316         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
17317         * lib/lchown.c (EOPNOTSUPP): Likewise.
17318         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
17319         * lib/savewd.c (ESTALE): Likewise.
17320         * lib/settime.c (ENOSYS): Likewise.
17321         * lib/utimens.c (ENOSYS): Likewise.
17322         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
17323         * lib/chdir-safer.c (ELOOP): Likewise.
17324         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
17325         * modules/c-stack (Depends-on): Add errno.
17326         * modules/canonicalize (Depends-on): Likewise.
17327         * modules/chdir-safer (Depends-on): Likewise.
17328         * modules/fdopendir (Depends-on): Likewise.
17329         * modules/inet_ntop (Depends-on): Likewise.
17330         * modules/inet_pton (Depends-on): Likewise.
17331         * modules/lchown (Depends-on): Likewise.
17332         * modules/openat (Depends-on): Likewise.
17333         * modules/savewd (Depends-on): Likewise.
17334         * modules/settime (Depends-on): Likewise.
17335         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
17336
17337         fts: avoid leaking fds
17338         * modules/fts (Depends-on): Add cloexec.
17339         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
17340         flag.
17341
17342         fts: make directory fds more robust
17343         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
17344         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
17345
17346         backupfile, chdir-long, fts, savedir: make safer
17347         * lib/backupfile.c (includes): Use "dirent--.h", since
17348         numbered_backup can write to stderr during readdir.
17349         * lib/savedir.c (includes): Likewise.
17350         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
17351         emulation can write to stderr on failure.
17352         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
17353         * lib/getcwd.c: Document why opendir_safer is unused.
17354         * lib/glob.c: Likewise.
17355         * lib/scandir.c: Likewise.
17356         * lib/openat-proc.c: Likewise, for open_safer.
17357         * modules/backupfile (Depends-on): Add dirent-safer.
17358         * modules/savedir (Depends-on): Likewise.
17359         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
17360         * modules/chdir-long (Depends-on): Add openat-safer.
17361
17362         openat-safer: new module
17363         * modules/openat-safer: New file.
17364         * lib/openat-safer.c: Likewise.
17365         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
17366         * lib/fcntl-safer.h (openat_safer): Declare.
17367         * lib/fcntl--.h (openat): Override.
17368         * MODULES.html.sh (File descriptor based I/O): Mention it.
17369         * lib/openat.h: Add double-inclusion guards.
17370         * lib/openat.c (includes): Only include "fcntl-safer.h", not
17371         "fcntl--.h", so we can implement openat.
17372         * modules/openat-safer-tests: New test.
17373         * tests/test-openat-safer.c: New file.
17374
17375         dirent-safer: new module
17376         * modules/dirent-safer: New file.
17377         * lib/dirent--.h: Likewise.
17378         * lib/dirent-safer.h: Likewise.
17379         * lib/opendir-safer.c: Likewise.
17380         * m4/dirent-safer.m4: Likewise.
17381         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
17382         * modules/dirent-safer-tests: New test.
17383         * tests/test-dirent-safer.c: New file.
17384         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
17385
17386         fdopendir: optimize on mingw
17387         * lib/unistd.in.h (_gl_directory_name): New prototype.
17388         * lib/fchdir.c (_gl_directory_name): Implement it.
17389         (fchdir): Use it to simplify implementation.
17390         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
17391         fchdir, when available, to avoid calling [f]chdir().
17392
17393         fdopendir: split into its own module
17394         * lib/openat.c (fdopendir): Move...
17395         * lib/fdopendir.c: ...into new file.
17396         * modules/fdopendir: New module.
17397         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
17398         * modules/openat (Depends-on): Add fdopendir.
17399         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
17400         fdopendir here.
17401         * modules/savedir (Depends-on): Only need fdopendir, not full
17402         openat.
17403         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
17404         * lib/openat.h (fdopendir): Drop prototype.
17405         * lib/dirent.in.h (fdopendir): Provide prototype.
17406         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
17407         * modules/dirent (Makefile.am): Substitute them.
17408         * MODULES.html.sh (File system functions): Mention it.
17409         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
17410         * modules/fdopendir-tests: New file.
17411         * tests/test-fdopendir.c: Likewise.
17412
17413         fchdir: use more consistent macro convention
17414         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
17415         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
17416         REPLACE_FCHDIR, rather than relying on config.h macros.
17417         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
17418         inside a single make-time REPLACE_FCHDIR block, rather than using
17419         the config.h FCHDIR_REPLACEMENT.
17420         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
17421         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
17422         Manage fstat replacement.
17423         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
17424         REPLACE_FCHDIR.
17425         * modules/sys_stat (Files): Add m4/unistd_h.m4.
17426         (Makefile.am): Substitute REPLACE_FCHDIR.
17427         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
17428         FCHDIR_REPLACEMENT.
17429         * lib/dup-safer.c (dup_safer): Likewise.
17430         * lib/dup2.c (rpl_dup2): Likewise.
17431         * lib/dup3.c (rpl_dup3): Likewise.
17432         * lib/open.c (rpl_open): Likewise.
17433
17434         fchdir: simplify error handling, and support dup3
17435         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
17436         stdbool, malloc-posix, realloc-posix.
17437         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
17438         (ensure_dirs_slot): Return false on allocation failure.
17439         (rpl_dup2): Delete.
17440         (_gl_register_dup): New function.
17441         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
17442         (_gl_register_fd): Close fd on allocation failure.
17443         * lib/fcntl.in.h (_gl_register_fd): Update signature.
17444         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
17445         prototype.
17446         (rpl_dup2_fchdir): Delete prototype.
17447         * lib/open.c (open): Update caller.
17448         * lib/dup2.c (dup2): Track fchdir metadata.
17449         * lib/dup3.c (dup3): Likewise.
17450         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
17451         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
17452
17453 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17454
17455         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
17456         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
17457         don't pass arguments to AC_OUTPUT.
17458
17459 2009-09-02  Bruno Haible  <bruno@clisp.org>
17460
17461         * modules/mkdtemp (License): Relicense under LGPLv2+.
17462         Reported by Paolo Bonzini.
17463
17464 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17465
17466         Replace uses of obsolete autoconf macros in Jim's modules.
17467         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
17468         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
17469         can evoke a warning from autoconf when run with -Wobsolete
17470         enabled.  They were declared obsolete for good reasons (see
17471         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
17472         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
17473         should not continue using the deprecated macros.
17474         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
17475         obsolete Autoconf macros with modern counterparts.
17476         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
17477         * m4/dos.m4 (gl_AC_DOS): Likewise.
17478         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
17479         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
17480         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
17481         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
17482         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
17483         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
17484         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
17485         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
17486         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
17487         Likewise.
17488         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
17489         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
17490         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
17491         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
17492         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
17493         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
17494
17495 2009-09-01  Eric Blake  <ebb9@byu.net>
17496
17497         fchdir: fix off-by-one bug in previous patch
17498         * lib/fchdir.c (rpl_fstat): Use correct bounds.
17499         (_gl_unregister_fd): Delete useless if.
17500
17501 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
17502
17503         maint.mk: sort the list of syntax-check rules
17504         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
17505         easier to get a sense of progress when the rules are run sequentially
17506         and take a long time.
17507
17508 2009-09-01  Simon Josefsson  <simon@josefsson.org>
17509
17510         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
17511         * modules/netinet_in: Likewise.
17512         * modules/sys_file: Likewise.
17513         * modules/sys_ioctl: Likewise.
17514         * modules/sys_select: Likewise.
17515         * modules/sys_socket: Likewise.
17516         * modules/sys_stat: Likewise.
17517         * modules/sys_time: Likewise.
17518         * modules/sys_times: Likewise.
17519         * modules/sys_utsname: Likewise.
17520         * modules/sys_wait: Likewise.
17521
17522 2009-09-01  Jim Meyering  <meyering@redhat.com>
17523
17524         fts: help ensure that return values are not ignored
17525         * lib/fts_.h (__GNUC_PREREQ): Define.
17526         (__attribute_warn_unused_result__): Define.
17527         (fts_children, fts_close, fts_open, fts_read): Declare with
17528         __attribute_warn_unused_result__.
17529
17530         fts: fts_close now fails also when closing a dir file descriptor fails
17531         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
17532         and propagate to caller, along with errno.
17533
17534         announce-gen: correct formatting in --help output
17535         * build-aux/announce-gen (usage): Move the one-line description in
17536         --help output "up", to where it belongs, just after Usage:.
17537
17538 2009-08-31  Eric Blake  <ebb9@byu.net>
17539
17540         fchdir: port to mingw
17541         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
17542         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
17543         opened, then use a substitute.
17544         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
17545         replacement.
17546         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
17547         (_gl_register_fd): No need to check stat if open already filters
17548         all directories.
17549         (fchdir): Fix error condition to match POSIX.
17550         * modules/fchdir (Depends-on): Add sys_stat.
17551         * doc/posix-functions/open.texi (open): Document the limitation.
17552         * modules/fchdir-tests: New file.
17553         * tests/test-fchdir.c: Likewise.
17554
17555         canonicalize: allow cross-testing from cygwin to mingw
17556         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
17557         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
17558         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
17559         Likewise.
17560         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
17561         target does not support symlinks.
17562         * tests/test-canonicalize-lgpl.sh: Likewise.
17563
17564         chown: avoid compilation warning on mingw
17565         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
17566         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
17567         mingw.
17568         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
17569         * modules/chown (Depends-on): Add errno.
17570
17571 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
17572
17573         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
17574         command.
17575
17576 2009-08-31  Jim Meyering  <meyering@redhat.com>
17577
17578         canonicalize: remove useless initialization
17579         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
17580         initialization of local, "end".
17581
17582 2009-08-30  Bruno Haible  <bruno@clisp.org>
17583
17584         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
17585         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
17586         ENOSYS.
17587
17588 2009-08-30  Bruno Haible  <bruno@clisp.org>
17589
17590         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
17591         /usr/xpg4/bin/tr when it exists.
17592         * tests/test-pipe-filter-gi1.sh: Likewise.
17593
17594 2009-08-30  Bruno Haible  <bruno@clisp.org>
17595
17596         Work around deficient /usr/bin/id program on Solaris.
17597         * tests/test-file-has-acl.sh (ID): New variable.
17598         * tests/test-set-mode-acl.sh (ID): Likewise.
17599         * tests/test-copy-acl.sh (ID): Likewise.
17600         * tests/test-copy-file.sh (ID): Likewise.
17601
17602 2009-08-30  Bruno Haible  <bruno@clisp.org>
17603
17604         New module 'xstriconveh'.
17605         * lib/xstriconveh.h: New file.
17606         * lib/xstriconveh.c: New file.
17607         * modules/xstriconveh: New file.
17608
17609 2009-08-30  Bruno Haible  <bruno@clisp.org>
17610
17611         Make it easier to use mem_cd_iconveh.
17612         * lib/striconveh.h (iconveh_t): New type.
17613         (iconveh_open, iconveh_close): New declarations.
17614         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
17615         with a single 'const iconveh_t *' argument.
17616         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
17617         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
17618         with a single 'const iconveh_t *' argument.
17619         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
17620         * tests/test-striconveh.c (main): Update.
17621         * NEWS: Mention the change.
17622
17623 2009-08-30  Bruno Haible  <bruno@clisp.org>
17624
17625         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
17626         problem.
17627
17628 2009-08-30  Bruno Haible  <bruno@clisp.org>
17629
17630         Work around iconv_open problem on Solaris.
17631         * lib/iconv_open-solaris.gperf: New file.
17632         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
17633         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
17634         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
17635         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
17636         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
17637         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
17638
17639 2009-08-29  Jim Meyering  <meyering@redhat.com>
17640
17641         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
17642         * top/maint.mk (cvs-check): Remove target; it was just an alias
17643         to the better-named vc-diff-check.
17644         (maintainer-distcheck): Remove rule.  It was used only from
17645         the (alpha/beta/major) target, and all of its commands but one
17646         were coreutils-specific.
17647         (vc-dist): Remove rule.
17648         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
17649         Run vc-diff-check, not vc-dist.
17650         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
17651
17652 2009-08-27  Bruno Haible  <bruno@clisp.org>
17653
17654         * tests/test-bitrotate.c (main): Remove test that uses a shift count
17655         of 0.
17656
17657 2009-08-27  Bruno Haible  <bruno@clisp.org>
17658
17659         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
17660         compilers.
17661         * doc/func.texi: Document the SunPRO C bug.
17662
17663 2009-08-27  Bruno Haible  <bruno@clisp.org>
17664
17665         Fix link error on Solaris.
17666         * tests/test-parse-duration.c (xstrdup): Remove function.
17667
17668 2009-08-26  Pádraig Brady  <P@draigbrady.com>
17669
17670         ignore-value: handle pointer types, too
17671         * lib/ignore-value.h (__attribute__): Remove definition.
17672         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
17673         of a more concise and more-often effective "(void) i" statement.
17674         (ignore_ptr): New function to suppress warnings from functions that
17675         return pointers, and to make it explicit that one function doesn't
17676         handle all cases.
17677
17678 2009-08-25  Bruno Haible  <bruno@clisp.org>
17679
17680         dup2: work around a Linux bug.
17681         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
17682         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
17683         * doc/posix-functions/dup2.texi: Mention the Linux bug.
17684         Reported by Simon Josefsson.
17685
17686 2009-08-25  Jim Meyering  <meyering@redhat.com>
17687
17688         libguestfs uses gnulib
17689         * users.txt: Add libguestfs.
17690
17691 2009-08-24  Eric Blake  <ebb9@byu.net>
17692
17693         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
17694         * lib/pipe2.c (includes): Add binary-io.h.
17695         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
17696
17697 2009-08-24  Bruno Haible  <bruno@clisp.org>
17698
17699         Tolerate declared but missing accept4 syscall.
17700         * lib/accept4.c (accept4): Invoke original accept4 function first, if
17701         available.
17702         * lib/sys_socket.in.h (accept4): If the function is already present,
17703         override it.
17704         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
17705         * modules/accept4 (Makefile.am): Compile accept4.c always.
17706         Reported by Paolo Bonzini and Eric Blake.
17707
17708 2009-08-23  Bruno Haible  <bruno@clisp.org>
17709
17710         New module 'accept4'.
17711         * lib/sys_socket.in.h (accept4): New declaration.
17712         * lib/accept4.c: New file.
17713         * m4/accept4.m4: New file.
17714         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
17715         GNULIB_ACCEPT4, HAVE_ACCEPT4.
17716         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
17717         HAVE_ACCEPT4.
17718         * modules/accept4: New file.
17719         * doc/glibc-functions/accept4.texi: Mention the new module.
17720
17721 2009-08-24  Jim Meyering  <meyering@redhat.com>
17722
17723         progname: also set global program_invocation_name, when possible
17724         Before this change, a libtool-enabled program that calls glibc's
17725         error function would report the program name as
17726         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
17727         * modules/progname (configure.ac): Check for a declaration of
17728         program_invocation_name.
17729         * lib/progname.c:  Include <errno.h>.
17730         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
17731         Set program_invocation_name.
17732
17733 2009-08-23  Bruno Haible  <bruno@clisp.org>
17734
17735         * lib/dup3.c: Include <string.h>.
17736
17737 2009-08-23  Bruno Haible  <bruno@clisp.org>
17738
17739         * lib/dup3.c (dup3): Test only once whether the system actually exists.
17740         * lib/pipe2.c (pipe2): Likewise.
17741         Suggested by Eric Blake.
17742
17743 2009-08-23  Bruno Haible  <bruno@clisp.org>
17744
17745         Tolerate declared but missing dup3 syscall.
17746         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
17747         * lib/unistd.in.h (dup3): If the function is already present,
17748         override it.
17749         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
17750         * modules/dup3 (Makefile.am): Compile dup3.c always.
17751         Reported by Paolo Bonzini.
17752
17753 2009-08-23  Bruno Haible  <bruno@clisp.org>
17754
17755         Tolerate declared but missing pipe2 syscall.
17756         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
17757         available.
17758         * lib/unistd.in.h (pipe2): If the function is already present,
17759         override it.
17760         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
17761         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
17762         Reported by Paolo Bonzini.
17763
17764 2009-08-23  Bruno Haible  <bruno@clisp.org>
17765
17766         * lib/pipe2.c (pipe2): Move #ifs inside function.
17767
17768 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
17769
17770         quotearg: document limitations of quote_these_too
17771         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
17772         those limitations are created.
17773         * lib/quotearg.h (set_char_quoting): Document that digits and
17774         letters that are special after backslash are not permitted.
17775         (quotearg_char): Cross-reference set_char_quoting documentation.
17776
17777 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
17778
17779         quotearg: implement custom_quoting_style
17780         * lib/quotearg.c: (struct quoting_options): Add left_quote and
17781         right_quote fields.
17782         (set_custom_quoting): New public function.
17783         (quotearg_buffer_restyled): Add left_quote and right_quote
17784         arguments, handle them very much like locale quoting, and update
17785         all uses.
17786         (quotearg_n_custom): New public function.
17787         (quotearg_n_custom_mem): New public function.
17788         (quotearg_custom): New public function.
17789         (quotearg_custom_mem): New public function.
17790         * lib/quotearg.h: Prototype and document new public functions.
17791         (enum quoting_style): For escape_quoting_style and
17792         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
17793         ignored even though they're otherwise like c_quoting_style.
17794         Add custom_quoting_style member and document with comparison to
17795         clocale_quoting_style.
17796         * tests/test-quotearg.c (custom_quotes): New array.
17797         (custom_results): New array.
17798         (main): Extend to test custom quoting.
17799
17800 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
17801
17802         quotearg: fix right quote escaping when it's in quote_these_too
17803         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
17804         quote, be sure to prepend only one backslash.
17805         * tests/test-quotearg.c (use_quote_double_quotes): New function.
17806         (main): Test it.
17807
17808 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
17809
17810         quotearg-tests: test escaping of embedded locale quotes
17811         * tests/test-quotearg.c (struct result_strings): Add member for
17812         new input.
17813         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
17814         (inputs): Add new input.
17815         (results_g): Add expected results.
17816         (flag_results): Likewise.
17817         (locale_results): Likewise.
17818         (compare_strings): Check those.
17819
17820 2009-08-23  Bruno Haible  <bruno@clisp.org>
17821
17822         Tests for module 'dup3'.
17823         * modules/dup3-tests: New file.
17824         * tests/test-dup3.c: New file.
17825
17826         New module 'dup3'.
17827         * lib/unistd.in.h (dup3): New declaration.
17828         * lib/dup3.c: New file.
17829         * m4/dup3.m4: New file.
17830         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
17831         HAVE_DUP3.
17832         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
17833         * modules/dup3: New file.
17834         * doc/glibc-functions/dup3.texi: Mention the new module.
17835
17836 2009-08-23  Bruno Haible  <bruno@clisp.org>
17837
17838         Tweak the dup2 test.
17839         * tests/test-dup2.c (main): Create the test file empty. Verify that an
17840         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
17841         the test file is still empty. Fix argument order of lseek.
17842
17843 2009-08-23  Bruno Haible  <bruno@clisp.org>
17844
17845         Avoid test link errors when the modules getopt-gnu, gettext are used.
17846         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
17847         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
17848
17849 2009-08-23  Bruno Haible  <bruno@clisp.org>
17850
17851         Fix getdtablesize() on mingw.
17852         * lib/getdtablesize.c (getdtablesize): Implement differently.
17853         * lib/unistd.in.h (getdtablesize): Improve comment.
17854
17855 2009-08-23  Bruno Haible  <bruno@clisp.org>
17856
17857         New module 'mkostemp'.
17858         Based on Ulrich Drepper's 2007-08-10 change in glibc.
17859         * lib/stdlib.in.h (mksotemp): New declaration.
17860         * lib/mkostemp.c: New file, from glibc with modifications.
17861         * lib/tempname.h (GT_FILE): Remove outdated comment.
17862         (gen_tempname): Add flags argument.
17863         * lib/tempname.c (__GT_BIGFILE): Remove macro.
17864         (__GT_FILE): Map to 1.
17865         (small_open, large_open): Remove macros.
17866         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
17867         * lib/mkstemp.c (mkstemp): Update.
17868         * lib/mkdtemp.c (mkdtemp): Likewise.
17869         * m4/mkostemp.m4: New file.
17870         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
17871         HAVE_MKOSTEMP.
17872         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
17873         HAVE_MKOSTEMP.
17874         * modules/mkostemp: New file, based on modules/mkstemp.
17875         * doc/glibc-functions/mkostemp.texi: Mention the new module.
17876         * NEWS: Mention the change.
17877
17878 2009-08-23  Bruno Haible  <bruno@clisp.org>
17879
17880         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
17881         Reported by Eric Blake.
17882
17883 2009-08-23  Bruno Haible  <bruno@clisp.org>
17884
17885         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
17886         Reported by Eric Blake.
17887
17888 2009-08-23  Bruno Haible  <bruno@clisp.org>
17889
17890         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
17891         * modules/pipe2 (Depends-on): Likewise.
17892
17893 2009-08-23  Eric Blake  <ebb9@byu.net>
17894
17895         fcntl-h: add O_TTY_INIT support
17896         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
17897         * tests/test-fcntl-h.c (o): Test it.
17898         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
17899
17900         fcntl-h: rename from fcntl, in preparation for fcntl(2)
17901         * modules/fcntl: Move <fcntl.h> header replacement...
17902         * modules/fcntl-h: ...to new name, so as not to collide with
17903         like-named function.
17904         * tests/test-fcntl.c: Rename...
17905         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
17906         * modules/fcntl-tests: Rename...
17907         * modules/fcntl-h-tests: ...to this.  Update test file name.
17908         * modules/chdir-long (Depends-on): Update clients.
17909         * modules/chdir-safer (Depends-on): Likewise.
17910         * modules/fcntl-safer (Depends-on): Likewise.
17911         * modules/fts (Depends-on): Likewise.
17912         * modules/mkancesdirs (Depends-on): Likewise.
17913         * modules/mkdir-p (Depends-on): Likewise.
17914         * modules/open (Depends-on): Likewise.
17915         * modules/savewd (Depends-on): Likewise.
17916         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
17917         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
17918
17919 2009-08-22  Bruno Haible  <bruno@clisp.org>
17920
17921         * modules/binary-io (License): Relicense under LGPL.
17922         * modules/pipe2 (License): Likewise.
17923
17924 2009-08-22  Bruno Haible  <bruno@clisp.org>
17925
17926         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
17927         return value.
17928         * lib/pipe-filter-gi.c (filter_init): Likewise.
17929         Reported by Eric Blake.
17930
17931 2009-08-22  Bruno Haible  <bruno@clisp.org>
17932
17933         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
17934         * modules/pipe (Depends-on): Add pipe2.
17935
17936 2009-08-22  Bruno Haible  <bruno@clisp.org>
17937
17938         Tests for module 'pipe2'.
17939         * modules/pipe2-tests: New file.
17940         * tests/test-pipe2.c: New file.
17941
17942         New module 'pipe2'.
17943         * lib/unistd.in.h (pipe2): New declaration.
17944         * lib/pipe2.c: New file.
17945         * m4/pipe2.m4: New file.
17946         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
17947         HAVE_PIPE2.
17948         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
17949         * modules/pipe2: New file.
17950         * doc/glibc-functions/pipe2.texi: Mention the new module.
17951
17952 2009-08-22  Bruno Haible  <bruno@clisp.org>
17953
17954         Reference some new glibc functions.
17955         * doc/glibc-functions/accept4.texi: New file.
17956         * doc/glibc-functions/dup3.texi: New file.
17957         * doc/glibc-functions/mkostemp.texi: New file.
17958         * doc/glibc-functions/pipe2.texi: New file.
17959         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
17960         (Glibc sys/socket.h): Refer to accept4.
17961         (Glibc unistd.h): Refer to dup3, pipe2.
17962         Reported by Eric Blake.
17963
17964 2009-08-22  Jim Meyering  <meyering@redhat.com>
17965             Bruno Haible  <bruno@clisp.org>
17966
17967         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
17968         This makes it so packages using automake-1.11's silent-rules option
17969         can print e.g., a single "GEN    configmake.h" line, rather than
17970         the 30+ statements that perform the job.  If you want to see the
17971         actual commands, you can still run "make V=1".
17972         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
17973         so that make output is abbreviated when those variables are defined
17974         appropriately.
17975         * modules/argz: Likewise.
17976         * modules/arpa_inet: Likewise.
17977         * modules/byteswap: Likewise.
17978         * modules/configmake: Likewise.
17979         * modules/dirent: Likewise.
17980         * modules/errno: Likewise.
17981         * modules/fcntl: Likewise.
17982         * modules/float: Likewise.
17983         * modules/fnmatch: Likewise.
17984         * modules/getopt-posix: Likewise.
17985         * modules/glob: Likewise.
17986         * modules/iconv_open: Likewise.
17987         * modules/inttypes: Likewise.
17988         * modules/localcharset: Likewise.
17989         * modules/locale: Likewise.
17990         * modules/math: Likewise.
17991         * modules/netdb: Likewise.
17992         * modules/netinet_in: Likewise.
17993         * modules/poll: Likewise.
17994         * modules/posix_spawnp-tests: Likewise.
17995         * modules/sched: Likewise.
17996         * modules/search: Likewise.
17997         * modules/selinux-h: Likewise.
17998         * modules/signal: Likewise.
17999         * modules/spawn: Likewise.
18000         * modules/stdarg: Likewise.
18001         * modules/stdbool: Likewise.
18002         * modules/stddef: Likewise.
18003         * modules/stdint: Likewise.
18004         * modules/stdio: Likewise.
18005         * modules/stdlib: Likewise.
18006         * modules/string: Likewise.
18007         * modules/strings: Likewise.
18008         * modules/sys_file: Likewise.
18009         * modules/sys_ioctl: Likewise.
18010         * modules/sys_select: Likewise.
18011         * modules/sys_socket: Likewise.
18012         * modules/sys_stat: Likewise.
18013         * modules/sys_time: Likewise.
18014         * modules/sys_times: Likewise.
18015         * modules/sys_utsname: Likewise.
18016         * modules/sys_wait: Likewise.
18017         * modules/sysexits: Likewise.
18018         * modules/time: Likewise.
18019         * modules/unistd: Likewise.
18020         * modules/wchar: Likewise.
18021         * modules/wctype: Likewise.
18022
18023 2009-08-22  Jim Meyering  <meyering@redhat.com>
18024
18025         announce-gen: detect write failure
18026         * build-aux/announce-gen: Add Coda at end.
18027         Remove equivalent-but-more-verbose block at top.
18028
18029 2009-08-19  Akim Demaille  <demaille@gostai.com>
18030
18031         bootstrap: --help to stdout.
18032         * bootstrap (usage): Don't send --help to stderr.
18033         Use a here doc instead of a long string.
18034
18035 2009-08-21  Eric Blake  <ebb9@byu.net>
18036
18037         test-popen-safer: split from test-popen
18038         * tests/test-popen.c (main): Move...
18039         * tests/test-popen.h: ...into new file.
18040         * tests/test-popen-safer2.c: New file.
18041         * modules/popen-tests (Files): Add test-popen.h.
18042         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
18043         Suggested by Bruno Haible.
18044
18045         test-fcntl-safer: split from test-open
18046         * tests/test-open.c (main): Move...
18047         * tests/test-open.h: ...into new file.
18048         * tests/test-fcntl-safer.c: New file.
18049         * modules/open-tests (Files): Add test-open.h.
18050         * modules/fcntl-safer-tests: New file.
18051         Suggested by Bruno Haible.
18052
18053         test-fopen-safer: split from test-fopen
18054         * tests/test-fopen.c (main): Move...
18055         * tests/test-fopen.h: ...into new file.
18056         * tests/test-fopen-safer.c: New file.
18057         * modules/fopen-tests (Files): Add test-fopen.h.
18058         * modules/fopen-safer-tests: New file.
18059         Suggested by Bruno Haible.
18060
18061 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
18062
18063         popen-safer: test O_CLOEXEC at run-time.
18064         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
18065
18066 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
18067
18068         fcntl: move more flags to the header
18069         * lib/cloexec.c: Do not define FD_CLOEXEC here.
18070         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
18071         * lib/fcntl.in.h: Do both things here.
18072
18073 2009-08-21  Jim Meyering  <meyering@redhat.com>
18074
18075         consistently remove $@-t before redirecting to it
18076         * modules/argz: Remove $@-t and $@ before redirecting to the former.
18077         * modules/alloca-opt: Likewise.
18078         * modules/byteswap: Likewise.
18079         * modules/fnmatch: Likewise.
18080         * modules/getopt-posix: Likewise.
18081         * modules/glob: Likewise.
18082         * modules/poll: Likewise.
18083         * modules/posix_spawnp-tests: Likewise.
18084         * modules/sys_socket: Likewise.
18085         * modules/sysexits: Likewise.
18086
18087 2009-08-21  Eric Blake  <ebb9@byu.net>
18088
18089         popen: simplify access to original popen
18090         * lib/popen.c (rpl_popen): No need to worry about popen being a
18091         macro.
18092         Reported by Bruno Haible.
18093
18094 2009-08-20  Eric Blake  <ebb9@byu.net>
18095
18096         build: avoid some compiler warnings
18097         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
18098         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
18099         type.
18100         (new_exclude_segment, excluded_file_pattern_p)
18101         (excluded_file_name_p): Reduce scope.
18102         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
18103         old-style declaration.
18104
18105 2009-08-20  Simon Josefsson  <simon@josefsson.org>
18106
18107         * tests/test-exclude1.sh: Handle Windows EOL.
18108         * tests/test-exclude2.sh: Likewise.
18109         * tests/test-exclude3.sh: Likewise.
18110         * tests/test-exclude4.sh: Likewise.
18111         * tests/test-exclude5.sh: Likewise.
18112         * tests/test-exclude6.sh: Likewise.
18113         * tests/test-exclude7.sh: Likewise.
18114
18115 2009-08-19  Akim Demaille  <demaille@gostai.com>
18116
18117         bootstrap: find sha1sum when named gsha1sum.
18118         * bootstrap (find_tool): New.
18119         ($SHA1SUM): New.
18120         Use it.
18121
18122 2009-08-20  Jim Meyering  <meyering@redhat.com>
18123
18124         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
18125         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
18126         expression that converts "." in a file name to "\." in the resulting
18127         regexp.  Start with a dummy statement, so that prior shell variable
18128         definitions are expanded portably.  Reported by Simon Josefsson.
18129
18130 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
18131
18132         Fix polling for writeability of a screen buffer.
18133         * lib/poll.c: Distinguish input and screen buffers for the
18134         Win32 implementation.
18135         * lib/select.c: Likewise.
18136
18137 2009-08-19  Eric Blake  <ebb9@byu.net>
18138
18139         popen-safer: prevent popen from clobbering std descriptors
18140         * modules/popen-safer: New file.
18141         * lib/popen-safer.c: Likewise.
18142         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
18143         * lib/stdio--.h (popen): Provide override.
18144         * lib/stdio-safer.h (popen_safer): Provide declaration.
18145         * tests/test-popen.c (includes): Partially test this.
18146         * modules/popen-safer-tests: New file, for more tests.
18147         * tests/test-popen-safer.c: Likewise.
18148         * MODULES.html.sh (file stream based Input/Output): Mention it.
18149
18150         tests: test some of the *-safer modules
18151         * modules/fopen-safer (Depends-on): Add fopen.
18152         * modules/fcntl-safer (Depends-on): Add fcntl.
18153         * modules/stdlib-safer (Depends-on): Add stdlib.
18154         (configure.ac): Set indicator.
18155         * modules/unistd-safer (configure.ac): Likewise.
18156         * modules/tmpfile-safer (configure.ac): Likewise.
18157         (Depends-on): Add tmpfile.
18158         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
18159         active.
18160         * tests/test-fopen.c (includes): Test safer versions when they are
18161         in use.
18162         * tests/test-open.c (includes): Likewise.
18163
18164         popen: fix cygwin 1.5 bug when stdin closed
18165         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
18166         * modules/popen: New file.
18167         * modules/popen-tests: Likewise.
18168         * tests/test-popen.c: Likewise.
18169         * m4/popen.m4: Likewise.
18170         * lib/popen.c: Likewise.
18171         * lib/stdio.in.h (popen): New declaration.
18172         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
18173         * modules/stdio (Makefile.am): Likewise.
18174         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
18175
18176 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
18177
18178         maint.mk: give full control over update-copyright exclusions
18179         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
18180         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
18181         (update-copyright): Don't force inclusion of top-level
18182         ChangeLog.  Don't force exclusion of all COPYING files, but make
18183         them the default exclusion instead.
18184
18185 2009-08-16  Bruno Haible  <bruno@clisp.org>
18186
18187         Fix test failures on Solaris 10.
18188         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
18189         tests when Solaris iconv() is used.
18190         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
18191         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
18192         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
18193         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
18194         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
18195
18196 2009-08-16  Bruno Haible  <bruno@clisp.org>
18197
18198         Fix test failures on Solaris 10.
18199         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
18200         'tr' program and pass it as first argument.
18201         * tests/test-pipe-filter-gi1.sh: Likewise.
18202         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
18203         program as first argument.
18204         * tests/test-pipe-filter-gi1.c (main): Likewise.
18205
18206 2009-08-16  Eric Blake  <ebb9@byu.net>
18207
18208         fpurge: fix previous commits
18209         * modules/fpurge (Makefile.am): Make replacement conditional,
18210         partially reverting 2007-04-29 change; missed in previous
18211         attempt.
18212         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
18213         is missing.
18214
18215 2009-08-16  Bruno Haible  <bruno@clisp.org>
18216
18217         Clarify fpurge's effect on the file position.
18218         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
18219         * tests/test-fpurge.c (main): Make a second pass for checking the file
18220         position.
18221
18222 2009-08-16  Bruno Haible  <bruno@clisp.org>
18223
18224         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
18225         declaration of fpurge is missing.
18226         * tests/test-fpurge.c (main): Check that the file has not more contents
18227         than expected. Close the file before removing it.
18228
18229 2009-08-15  Eric Blake  <ebb9@byu.net>
18230
18231         fpurge: don't wrap working cygwin implementation
18232         * lib/fpurge.c (fpurge): Fix comment typo.
18233         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
18234         1.7 to avoid replacement.
18235         * tests/test-fpurge.c (main): Enhance test.
18236
18237 2009-08-15  Eric Blake  <ebb9@byu.net>
18238         and Jim Meyering  <meyering@redhat.com>
18239
18240         test-update-copyright: skip if perl is insufficient
18241         * tests/test-update-copyright.sh: Failure to run maintainer tool
18242         should not cause testsuite failure on cygwin 1.5.
18243
18244 2009-08-14  Eric Blake  <ebb9@byu.net>
18245
18246         doc: mention more functions added in cygwin 1.7.0
18247         * doc/posix-headers/limits.texi (limits.h): Update for recent
18248         cygwin additions.
18249         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
18250         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
18251         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
18252         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
18253         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
18254
18255 2009-08-14  Eric Blake  <ebb9@byu.net>
18256
18257         maint.mk: simplify update-copyright rule
18258         * top/maint.mk (update-copyright-local): Delete, and document how
18259         to do it in cfg.mk instead.
18260         (update-copyright-exclude-regexp): Delete, and document how to do
18261         it in .x-update-copyright instead.
18262         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
18263         exclude ChangeLog.
18264
18265 2009-08-14  Bruno Haible  <bruno@clisp.org>
18266
18267         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
18268
18269 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
18270
18271         maint.mk: support update-copyright-env
18272         * top/maint.mk (update-copyright-env): Define place-holder.
18273         (update-copyright): Expand $(update-copyright-env) before
18274         invoking update-copyright.
18275
18276 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
18277
18278         update-copyright: implement forced reformatting
18279         * build-aux/update-copyright: Implement and document
18280         UPDATE_COPYRIGHT_FORCE.
18281         * tests/test-update-copyright.sh: Test it.
18282
18283 2009-08-14  Eric Blake  <ebb9@byu.net>
18284         and Bruno Haible  <bruno@clisp.org>
18285
18286         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
18287         * tests/test-locale.c: Revert previous patch related to NULL.
18288         * tests/test-stdio.c: Likewise.
18289         * tests/test-stdlib.c: Likewise.
18290         * tests/test-string.c: Likewise.
18291         * tests/test-unistd.c: Likewise.
18292         * modules/time-tests (Depends-on): Add verify.
18293         * modules/wchar-tests (Depends-on): Likewise.
18294         * tests/test-time.c: Test for NULL compliance.
18295         * tests/test-wchar.c: Likewise.
18296         * modules/locale (Depends-on): Add stddef.
18297         * modules/stdio (Depends-on): Likewise.
18298         * modules/stdlib (Depends-on): Likewise.
18299         * modules/string (Depends-on): Likewise.
18300         * modules/time (Depends-on): Likewise.
18301         * modules/unistd (Depends-on): Likewise.
18302         * modules/wchar (Depends-on): Likewise.
18303         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
18304         * lib/stdlib.in.h (includes): Likewise.
18305         * lib/string.in.h (includes): Likewise.
18306         * lib/time.in.h (includes): Likewise.
18307         * lib/unistd.in.h (includes): Likewise.
18308         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
18309         replaced.
18310         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
18311         * m4/stddef_h.m4: New file.
18312         * modules/stddef: Likewise.
18313         * lib/stddef.in.h: Likewise.
18314         * modules/stddef-tests: Likewise.
18315         * tests/test-stddef.c: Likewise.
18316         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
18317         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
18318         * doc/posix-headers/locale.texi (locale.h): Likewise.
18319         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
18320         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
18321         * doc/posix-headers/string.texi (string.h): Likewise.
18322         * doc/posix-headers/time.texi (time.h): Likewise.
18323         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
18324         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
18325
18326 2009-08-14  Eric Blake  <ebb9@byu.net>
18327
18328         doc: improve git diff of texinfo files
18329         * .gitattributes: Add rule for *.texi files, with hint on how to
18330         use it.
18331         Copied from m4, and based on a report by Bruno Haible.
18332
18333 2009-08-14  Bruno Haible  <bruno@clisp.org>
18334
18335         Disable multithread support by default on Cygwin 1.5.x for real.
18336         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
18337
18338 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
18339
18340         update-copyright: much ado about intervals
18341         * build-aux/update-copyright: Implement and document
18342         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
18343         of copyright year intervals.
18344         Also, document UPDATE_COPYRIGHT_YEAR.
18345         * tests/test-update-copyright.sh: Test it.
18346
18347         update-copyright: convert 2-digit to 4-digit years
18348         * build-aux/update-copyright: Implement and document.
18349         * tests/test-update-copyright.sh: Update.
18350
18351 2009-08-14  Jim Meyering  <meyering@redhat.com>
18352
18353         test-exclude: avoid coreutils "make check" failure
18354         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
18355         just as in test-argmatch.c.
18356
18357 2009-08-13  Eric Blake  <ebb9@byu.net>
18358
18359         test-dup2: fix bad assumption
18360         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
18361         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
18362
18363         test-version-etc: fix CRLF portability issue
18364         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
18365         recognize \r.
18366         * tests/test-argp-version-etc-1.sh: Likewise.
18367
18368         getopt: update client modules
18369         * modules/argp (Depends-on): Use getopt-gnu.
18370         * modules/git-merge-changelog (Depends-on): Likewise.
18371         * modules/long-options (Depends-on): Likewise.
18372         * modules/xstrtol (Depends-on): Likewise.
18373
18374 2009-08-13  Simon Josefsson  <simon@josefsson.org>
18375
18376         * tests/test-version-etc.sh: Don't fail on different
18377         project/version.  Don't fail on CRLF differences.  Rewrite to use
18378         multiple -e instead of multiple sed forks, suggested by Eric Blake
18379         <ebb9@byu.net>.
18380         * tests/test-argp-version-etc-1.sh: Likewise.
18381
18382 2009-08-13  Simon Josefsson  <simon@josefsson.org>
18383
18384         * tests/test-version-etc.sh: Don't fail on different
18385         project/version.
18386
18387 2009-08-12  Bruno Haible  <bruno@clisp.org>
18388
18389         Tests for modules 'getopt-posix', 'getopt-gnu'.
18390         * modules/getopt-posix-tests: New file.
18391         * tests/test-getopt.c: New file.
18392         * tests/test-getopt.h: New file.
18393         * tests/test-getopt_long.h: New file.
18394
18395         New modules 'getopt-posix', 'getopt-gnu'.
18396         * modules/getopt-gnu: New file, renamed from modules/getopt.
18397         * modules/getopt-posix: New file.
18398         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
18399         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
18400         (gl_GETOPT): Remove macro.
18401         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
18402         Disable the test against BSD systems that declare optreset. Test
18403         against mingw bug. Test against lack of support of optional arguments
18404         on many platforms.
18405         * doc/glibc-headers/getopt.texi: Update module name and list of
18406         relevant platforms.
18407         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
18408         'getopt-gnu' and more portability problems.
18409         * NEWS: Mention the changes.
18410
18411 2009-08-12  Bruno Haible  <bruno@clisp.org>
18412
18413         Ensure that optarg etc. get declared by <unistd.h>.
18414         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
18415         AC_USE_SYSTEM_EXTENSIONS.
18416         * modules/getopt (Depends-on): Add 'extensions'.
18417
18418 2009-08-12  Bruno Haible  <bruno@clisp.org>
18419
18420         Avoid test link errors.
18421         * modules/pipe-filter-ii-tests (Makefile.am): Define
18422         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
18423         * modules/pipe-filter-gi-tests (Makefile.am): Define
18424         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
18425         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
18426
18427 2009-08-12  Bruno Haible  <bruno@clisp.org>
18428
18429         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
18430         gl_GETOPT_SUBSTITUTE before.
18431         (gl_GETOPT): Use it.
18432         * m4/argp.m4 (gl_ARGP): Update.
18433         Reported by Sergey Poznyakoff.
18434
18435         * m4/getopt.m4: Reorder macros.
18436         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
18437         (gl_GETOPT_SUBSTITUTE): Remove macro.
18438
18439 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
18440
18441         Minor improvement in gitlog-to-changelog
18442
18443         * build-aux/gitlog-to-changelog: New option `--format' makes
18444         output format string configurable.
18445
18446 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
18447
18448         Optimize exclude: use hash tables for non-wildcard patterns.
18449
18450         * lib/exclude.c: Include hash.h and mbuiter.h
18451         (struct exclude_pattern, exclude_segment): New data types.
18452         (struct exclude): Rewrite.
18453         (fnmatch_pattern_has_wildcards): New function.
18454         (new_exclude_segment, free_exclude_segment): New functions.
18455         (excluded_file_pattern_p, excluded_file_name_p): New functions.
18456         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
18457         * lib/exclude.h (is_fnmatch_pattern): New prototype.
18458         * modules/exclude: Depend on hash and mbuiter.
18459
18460         * modules/exclude-tests: New file.
18461         * tests/test-exclude.c: New file.
18462         * tests/test-exclude1.sh: New file.
18463         * tests/test-exclude2.sh: New file.
18464         * tests/test-exclude3.sh: New file.
18465         * tests/test-exclude4.sh: New file.
18466         * tests/test-exclude5.sh: New file.
18467         * tests/test-exclude6.sh: New file.
18468         * tests/test-exclude7.sh: New file.
18469
18470 2009-08-12  Bruno Haible  <bruno@clisp.org>
18471
18472         Ensure that getopt() gets declared by <unistd.h>.
18473         * lib/unistd.in.h: Conditionally include getopt.h.
18474         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
18475         Set GNULIB_UNISTD_H_GETOPT.
18476         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
18477         GNULIB_UNISTD_H_GETOPT.
18478         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
18479
18480 2009-08-12  Bruno Haible  <bruno@clisp.org>
18481
18482         Clarify logic.
18483         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
18484         gl_replace_getopt instead of GETOPT_H.
18485
18486 2009-08-12  Bruno Haible  <bruno@clisp.org>
18487
18488         * m4/getopt.m4: Add comments.
18489
18490 2009-08-12  Bruno Haible  <bruno@clisp.org>
18491
18492         Disable multithread support by default on Cygwin 1.5.x.
18493         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
18494         set gl_use_threads=no if not specified otherwise.
18495
18496 2009-08-11  Bruno Haible  <bruno@clisp.org>
18497
18498         Avoid compilation error on NetBSD 5.0.
18499         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
18500         * tests/test-stdio.c: Likewise.
18501         * tests/test-stdlib.c: Likewise.
18502         * tests/test-string.c: Likewise.
18503         * tests/test-unistd.c: Likewise.
18504         Reported by Greg Troxel <gdt@ir.bbn.com>
18505         at <https://savannah.gnu.org/support/?106973>.
18506
18507 2009-08-11  Bruno Haible  <bruno@clisp.org>
18508
18509         * modules/dup2-tests (Depends-on): Remove close.
18510
18511         Undo 2009-07-19 commit.
18512         * modules/acl-tests (Depends-on): Remove close.
18513         * modules/binary-io-tests (Depends-on): Likewise.
18514         * modules/closein-tests (Depends-on): Likewise.
18515         * modules/flock-tests (Depends-on): Likewise.
18516         * modules/fsync-tests (Depends-on): Likewise.
18517         * modules/lseek-tests (Depends-on): Likewise.
18518         * modules/pipe-tests (Depends-on): Likewise.
18519         * modules/posix_spawn-tests (Depends-on): Likewise.
18520         * modules/posix_spawnp-tests (Depends-on): Likewise.
18521         * modules/stat-time-tests (Depends-on): Likewise.
18522         * modules/yesno-tests (Depends-on): Likewise.
18523
18524 2009-08-10  Bruno Haible  <bruno@clisp.org>
18525
18526         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
18527
18528 2009-08-10  Bruno Haible  <bruno@clisp.org>
18529
18530         Fix a gcc warning.
18531         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
18532
18533 2009-08-10  Bruno Haible  <bruno@clisp.org>
18534
18535         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
18536         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
18537         not only the first time.
18538         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
18539         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
18540         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
18541         is 1, not only the the first time.
18542
18543 2009-08-10  Bruno Haible  <bruno@clisp.org>
18544
18545         Make it possible to use module 'gethostname' without module 'close'.
18546         * lib/unistd.in.h (close): Evoke a link error only if
18547         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
18548         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
18549         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
18550         * modules/unistd (Makefile.am): Substitute
18551         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
18552         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
18553         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
18554         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
18555         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
18556         * modules/sys_ioctl (Makefile.am): Substitute
18557         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
18558         * modules/socket (configure.ac): On native Windows, set
18559         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
18560         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
18561         Reported by Sam Steingold <sds@gnu.org>.
18562
18563 2009-08-10  Bruno Haible  <bruno@clisp.org>
18564
18565         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
18566         * modules/ioctl (configure.ac): Likewise.
18567
18568 2009-08-10  Bruno Haible  <bruno@clisp.org>
18569
18570         Avoid collision between gnulib wrapper and libintl wrapper.
18571         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
18572         already defined in intl/printf.c.
18573         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
18574         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
18575
18576 2009-08-09  Bruno Haible  <bruno@clisp.org>
18577
18578         Make <sys/select.h> really self-contained, also on Solaris 10.
18579         * lib/sys_select.in.h: Include <string.h>.
18580         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
18581         Solaris 10 problem.
18582         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
18583         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
18584         Reported by Jim Meyering.
18585
18586 2009-08-09  Bruno Haible  <bruno@clisp.org>
18587
18588         Avoid warnings from 'aclocal' that are due to a use of macro name
18589         AM_XGETTEXT_OPTION that is not defined in automake.
18590         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
18591         automake.
18592         * modules/error (configure.ac): Likewise.
18593         * modules/propername (configure.ac): Likewise.
18594         * modules/vasprintf (configure.ac): Likewise.
18595         * modules/verror (configure.ac): Likewise.
18596         * modules/xprintf (configure.ac): Likewise.
18597         * modules/xvasprintf (configure.ac): Likewise.
18598
18599 2009-08-08  Bruno Haible  <bruno@clisp.org>
18600
18601         Avoid compilation error in C++ mode.
18602         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
18603         Reported by Sam Steingold <sds@gnu.org>.
18604
18605 2009-08-08  Bruno Haible  <bruno@clisp.org>
18606
18607         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
18608         for the various Unix platforms.
18609         * doc/posix-headers/limits.texi: Update platforms list regarding
18610         HOST_NAME_MAX.
18611         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
18612
18613 2009-08-07  Jim Meyering  <meyering@redhat.com>
18614
18615         selinux-at: fix typo in a comment
18616         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
18617         Spotted by Paolo Bonzini.
18618
18619         selinux-at: remove redundant m4 code, add documentation
18620         * modules/selinux-at (configure.ac): Remove redundant code.
18621         LIB_SELINUX is already set via the dependent module, selinux-h.
18622         (Include): Add quotes around selinux-at.h.
18623         * lib/selinux-at.h: Add documentation.
18624         Reported by Bruno Haible in
18625         http://marc.info/?l=gnulib-bug&m=124958988300749
18626
18627 2009-08-07  Bruno Haible  <bruno@clisp.org>
18628
18629         Avoid link error on MacOS X 10.3 and 10.4.
18630         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
18631         on non-ELF systems.
18632         * lib/argp-pv.c (argp_program_version): Likewise.
18633         Reported by Simon Josefsson.
18634
18635 2009-08-07  Simon Josefsson  <simon@josefsson.org>
18636
18637         * tests/test-version-etc.sh: Use $EXEEXT.
18638
18639 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
18640
18641         update-copyright: update documentation to point to maint.mk
18642         * build-aux/update-copyright: Here.
18643
18644 2009-08-06  Jim Meyering  <meyering@redhat.com>
18645
18646         maint.mk: support update-copyright-local
18647         * top/maint.mk (update-copyright-local): Define place-holder.
18648         (update-copyright): Depend on $(update-copyright-local).
18649
18650 2009-08-06  Jim Meyering  <meyering@redhat.com>
18651
18652         selinux-at: new module
18653         Initially written for coreutils, this module will soon be
18654         used by findutils, too.
18655         * MODULES.html.sh [Misc]: Add selinux-at.
18656         * lib/selinux-at.h: New file, from coreutils.
18657         * lib/selinux-at.c: Likewise.
18658         * modules/selinux-at: Likewise.
18659         (License): Change from LGPL to GPL, since it depends
18660         on the GPL'd openat module.
18661
18662         doc: update README
18663         * README: Remove references to cogito.
18664         Remove cvs-repo-updating instructions from 2007.
18665         Don't imply that CVS is better if you have limited disk space.
18666
18667 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
18668
18669         update-copyright: support C-style comments
18670         * build-aux/update-copyright: Implement and document.
18671         * tests/test-update-copyright.sh: Test.
18672
18673 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
18674
18675         update-copyright: support omitted "(C)"
18676         * build-aux/update-copyright: Implement and document.  Also,
18677         allow variable whitespace before "(C)".
18678         * tests/test-update-copyright.sh: Test.
18679
18680 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
18681
18682         update-copyright: don't trip on non-FSF copyright statements
18683         * build-aux/update-copyright: Fix so that the first correctly
18684         formatted FSF copyright statement is recognized no matter what
18685         appears before it.  Update documentation.
18686         * tests/test-update-copyright.sh: Test that.
18687
18688 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
18689
18690         update-copyright: clean up code a little
18691         * build-aux/update-copyright: Append "_re" to the name of any
18692         variable holding a regular expression.
18693         Replace "old" and "new" with "stmt" in variable names.
18694         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
18695         handled correctly.
18696         Format code more consistently.
18697
18698 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
18699
18700         update-copyright-tests: improve portability
18701         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
18702         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
18703
18704 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
18705
18706         update-copyright: support @copyright{} and &copy;
18707         * build-aux/update-copyright: Implement and document.
18708         * tests/test-update-copyright.sh: Test.
18709
18710 2009-08-04  Jim Meyering  <meyering@redhat.com>
18711
18712         update-copyright-tests: correctly test EOL=\r\n handling
18713         * tests/test-update-copyright.sh: Put \r at the end of some lines
18714         for the dos-eol tests.  Based on a patch by Joel E. Denny.
18715
18716         maint.mk: make update-copyright exclusion list more configurable
18717         * top/maint.mk (update-copyright): Default to excluding COPYING,
18718         but allow an override, in case someone does want to update that file.
18719
18720         maint.mk: don't update copyright date in COPYING
18721         * top/maint.mk (update-copyright): Exclude COPYING.
18722
18723         maint.mk: add a copyright-updating rule
18724         * top/maint.mk (update-copyright): New rule.
18725         Derived from coreutils/Makefile.am.
18726
18727         update-copyright: rename some variables
18728         * build-aux/update-copyright: Rename a few variables for clarity.
18729         Tweak syntax.  List Joel E. Denny as coauthor.
18730
18731 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
18732
18733         update-copyright: fix bug for 2-digit last year and add tests
18734         * build-aux/update-copyright: Fix bug.
18735         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
18736         specified.
18737         * modules/update-copyright-tests: New
18738         * tests/test-update-copyright.sh: New.
18739
18740 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
18741
18742         update-copyright: handle leading tabs in line prefix
18743         * build-aux/update-copyright: Count leading tabs as 8 spaces
18744         when computing margin.  This helps with the formatting of
18745         ChangeLogs, for example.
18746         Fix documentation a little.
18747
18748 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
18749
18750         update-copyright: support EOL=\r\n
18751         * build-aux/update-copyright: Implement that.
18752
18753 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
18754
18755         update-copyright: automatically format copyright statements
18756         * build-aux/update-copyright: Implement that.
18757         Also, be a little more predictable and safer by always failing
18758         when the full copyright format is not perfectly recognized as an
18759         unbroken whole.  Discussed at
18760         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
18761         Rewrite documentation.
18762
18763 2009-08-03  Bruno Haible  <bruno@clisp.org>
18764
18765         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
18766
18767 2009-08-02  Bruno Haible  <bruno@clisp.org>
18768
18769         Tests for module 'uname'.
18770         * modules/uname-tests: New file.
18771         * tests/test-uname.c: New file.
18772
18773         New module 'uname'.
18774         * lib/uname.c: New file.
18775         * m4/uname.m4: New file.
18776         * modules/uname: New file.
18777         * doc/posix-functions/uname.texi: Mention the new module.
18778
18779 2009-08-02  Bruno Haible  <bruno@clisp.org>
18780
18781         Tests for module 'sys_utsname'.
18782         * modules/sys_utsname-tests: New file.
18783         * tests/test-sys_utsname.c: New file.
18784
18785         New module 'sys_utsname'.
18786         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
18787         * m4/sys_utsname_h.m4: New file.
18788         * modules/sys_utsname: New file.
18789         * doc/posix-headers/sys_utsname.texi: Mention the new module.
18790
18791 2009-08-02  Bruno Haible  <bruno@clisp.org>
18792
18793         Implicitly initialize the sockets library.
18794         * lib/gethostname.c: Include sockets.h.
18795         (rpl_gethostname): Invoke gl_sockets_startup.
18796         * lib/socket.c: Include sockets.h.
18797         (rpl_socket): Invoke gl_sockets_startup.
18798         * modules/gethostname (Depends-on): Add sockets.
18799         * modules/socket (Depends-on): Likewise.
18800         * tests/test-poll.c: Don't include sockets.h.
18801         (main): Don't invoke gl_sockets_startup.
18802         * tests/test-select.c: Don't include sockets.h.
18803         (main): Don't invoke gl_sockets_startup.
18804
18805 2009-08-02  Bruno Haible  <bruno@clisp.org>
18806
18807         Allow multiple calls to gl_sockets_startup.
18808         * lib/sockets.c (initialized_sockets_version): New variable.
18809         (gl_sockets_startup): Do nothing if already called for this or a higher
18810         version.
18811         (gl_sockets_cleanup): Reset initialized_sockets_version.
18812
18813 2009-08-03  Simon Josefsson  <simon@josefsson.org>
18814
18815         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
18816         different project/version.
18817
18818 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
18819             Bruno Haible  <bruno@clisp.org>
18820
18821         Tests for module 'pipe-filter-gi'.
18822         * modules/pipe-filter-gi-tests: New file.
18823         * tests/test-pipe-filter-gi1.sh: New file.
18824         * tests/test-pipe-filter-gi1.c: New file.
18825         * tests/test-pipe-filter-gi2.sh: New file.
18826         * tests/test-pipe-filter-gi2-main.c: New file.
18827         * tests/test-pipe-filter-gi2-child.c: New file.
18828
18829         New module 'pipe-filter-gi'.
18830         * lib/pipe-filter-gi.c: New file.
18831         * modules/pipe-filter-gi: New file.
18832
18833 2009-08-02  Bruno Haible  <bruno@clisp.org>
18834             Paolo Bonzini  <bonzini@gnu.org>
18835
18836         Tests for module 'pipe-filter-ii'.
18837         * modules/pipe-filter-ii-tests: New file.
18838         * tests/test-pipe-filter-ii1.sh: New file.
18839         * tests/test-pipe-filter-ii1.c: New file.
18840         * tests/test-pipe-filter-ii2.sh: New file.
18841         * tests/test-pipe-filter-ii2-main.c: New file.
18842         * tests/test-pipe-filter-ii2-child.c: New file.
18843
18844         New module 'pipe-filter-ii'.
18845         * lib/pipe-filter.h: New file.
18846         * lib/pipe-filter-ii.c: New file.
18847         * lib/pipe-filter-aux.h: New file.
18848         * modules/pipe-filter-ii: New file.
18849
18850 2009-08-02  Simon Josefsson  <simon@josefsson.org>
18851
18852         * lib/gc-libgcrypt.c: Change copyright to FSF.
18853         * lib/gc-gnulib.c: Likewise.
18854
18855 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
18856
18857         * lib/gethostname.c: Include limits.h.
18858
18859 2009-08-02  Simon Josefsson  <simon@josefsson.org>
18860             Bruno Haible  <bruno@clisp.org>
18861
18862         Ensure HOST_NAME_MAX as part of the gethostname module.
18863         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
18864         define also HOST_NAME_MAX.
18865         * tests/test-gethostname.c: Include <limits.h>.
18866         (main): Check also HOST_NAME_MAX.
18867         * doc/posix-headers/limits.texi: Document the mingw problem.
18868
18869 2009-08-02  Bruno Haible  <bruno@clisp.org>
18870
18871         * lib/gethostname.c (gethostname): Fix handling of large len argument.
18872         Add comments.
18873
18874 2009-03-31  Simon Josefsson  <simon@josefsson.org>
18875
18876         * lib/gethostname.c: Add Windows wrapper.
18877         * m4/gethostname.m4: Look for gethostname in -lws2_32.
18878         * modules/gethostname: Depend on sys_socket & errno, for also
18879         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
18880         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
18881
18882 2009-07-31  Jim Meyering  <meyering@redhat.com>
18883
18884         getloadavg: fix symbol name in comment
18885         * lib/getloadavg.c: Correct a typo I introduced when adding
18886         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
18887         Matt Kraai spotted the problem.
18888
18889 2009-07-29  Matt Kraai  <mkraai@beckman.com>
18890
18891         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
18892         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
18893         code also if ! defined N_NAME_POINTER.
18894         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
18895         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
18896         but the n_name member is a 12-byte array.
18897
18898 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
18899
18900         update-copyright: generalize comment handling
18901         * build-aux/update-copyright: Handle copyright statements
18902         within more comment styles.
18903         Document usage.
18904         Report any file with an external copyright holder or parse failure.
18905
18906 2009-07-29  Jim Meyering  <meyering@redhat.com>
18907
18908         mktime: correct setting of REPLACE_MKTIME
18909         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
18910
18911         update-copyright: new module
18912         * modules/update-copyright: New file.
18913         * build-aux/update-copyright: New file.
18914         * MODULES.html.sh (maint+release support): Add update-copyright.
18915
18916 2009-07-27  Bruno Haible  <bruno@clisp.org>
18917
18918         Fix compilation error when <ctime> is used and mktime is replaced.
18919         * lib/time.in.h (mktime): New declaration.
18920         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
18921         REPLACE_MKTIME instead of defining mktime in config.h.
18922         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
18923         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
18924         Reported by Ross McFarland <rwmcfa1@neces.com>.
18925
18926 2009-07-27  Bruno Haible  <bruno@clisp.org>
18927
18928         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
18929         Reported by Matt Kraai <mkraai@beckman.com>.
18930
18931 2009-07-25  Jim Meyering  <meyering@redhat.com>
18932
18933         maint.mk: avoid warnings about missing files
18934         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
18935         diagnostic when .prev-version does not exist.
18936         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
18937         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
18938         nonexistent cfg.mk.
18939         Suggestions from Simon Josefsson.
18940
18941 2009-07-25  Bruno Haible  <bruno@clisp.org>
18942
18943         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
18944         defined as macros. Needed on QNX 6.4.1.
18945         Reported by Matt Kraai <mkraai@beckman.com>.
18946
18947 2009-07-23  Jim Meyering  <meyering@redhat.com>
18948
18949         maint.mk: invoke "make dist" with a working value of XZ_OPT
18950         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
18951
18952 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
18953
18954         Make fseeko.c compile on QNX.
18955         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
18956
18957 2009-07-22  Peter Simons  <simons@cryp.to>
18958
18959         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
18960         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
18961         * lib/md4.h: Likewise.
18962         * lib/md5.h: Likewise.
18963         * lib/sha1.h: Likewise.
18964         * lib/sha256.h: Likewise.
18965         * lib/sha512.h: Likewise.
18966
18967         tests-sha1: don't assign literal string to 'char *' variable
18968         * tests/test-sha1.c (main): Declare locals with "const" to match
18969         attributes of the right hand side.
18970
18971 2009-07-21  Eric Blake  <ebb9@byu.net>
18972
18973         dup2: fix more mingw problems
18974         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
18975         fd to itself.
18976         * doc/posix-functions/dup2.texi (dup2): Document the bug.
18977         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
18978         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
18979         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
18980         care of mingw bugs.
18981
18982 2009-07-21  Jim Meyering  <meyering@redhat.com>
18983
18984         vc-list-files: avoid failure when /bin/sh is dash
18985         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
18986         On some Debian based systems, /bin/sh is a symlink to dash, and running
18987         this command would omit the "/" following each 'tests' prefix:
18988           dash -x build-aux/vc-list-files -C . tests
18989         That is because bash and dash work differently:
18990           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
18991           bash ok
18992           dash odd
18993
18994 2009-07-21  Eric Blake  <ebb9@byu.net>
18995
18996         dup2-tests: test previous patch
18997         * modules/dup2-tests: New file.
18998         * tests/test-dup2.c: Likewise.
18999         * tests/test-open.c (main): Avoid unspecified behavior.
19000         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
19001         test.
19002
19003         dup2: work around mingw and cygwin 1.5 bug
19004         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
19005         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
19006         * modules/unistd (Makefile.am): Substitute it.
19007         * lib/unistd.in.h (dup2): Declare the replacement.
19008         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
19009         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
19010         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
19011         * modules/execute (Depends-on): Add dup2.
19012         * modules/fseterr (Depends-on): Likewise.
19013         * modules/pipe (Depends-on): Likewise.
19014         * modules/posix_spawn-internal (Depends-on): Likewise.
19015
19016 2009-07-21  Bruno Haible  <bruno@clisp.org>
19017
19018         * modules/.gitattributes: New file.
19019
19020 2009-07-20  Bruno Haible  <bruno@clisp.org>
19021
19022         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
19023         (main): Use it.
19024
19025 2009-07-20  Eric Blake  <ebb9@byu.net>
19026
19027         test-pipe: make a bit more robust.
19028         * tests/test-pipe.c (myerr): Allow error messages regardless of
19029         what we do to stderr.
19030         (test_pipe): Rearrange to avoid deadlock.
19031         (child_main): Try a larger read, to ensure we avoided deadlock.
19032         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
19033         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
19034         if misused.
19035
19036 2009-07-19  Jim Meyering  <meyering@redhat.com>
19037
19038         fts: avoid false-positive cycle-detection
19039         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
19040         for each new command line argument.
19041
19042 2009-07-19  Bruno Haible  <bruno@clisp.org>
19043
19044         Fix build error on mingw with the modules sys_select and unistd.
19045         * modules/acl-tests (Depends-on): Add close.
19046         * modules/binary-io-tests (Depends-on): Likewise.
19047         * modules/closein-tests (Depends-on): Likewise.
19048         * modules/flock-tests (Depends-on): Likewise.
19049         * modules/fsync-tests (Depends-on): Likewise.
19050         * modules/lseek-tests (Depends-on): Likewise.
19051         * modules/pipe-tests (Depends-on): Likewise.
19052         * modules/posix_spawn-tests (Depends-on): Likewise.
19053         * modules/posix_spawnp-tests (Depends-on): Likewise.
19054         * modules/stat-time-tests (Depends-on): Likewise.
19055         * modules/yesno-tests (Depends-on): Likewise.
19056
19057 2009-07-19  Bruno Haible  <bruno@clisp.org>
19058
19059         Unify conditionals.
19060         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
19061         macros, not at the compiler macros.
19062         * lib/pipe.c: Likewise.
19063         * lib/execute.c: Likewise.
19064         * lib/spawni.c: Likewise.
19065
19066 2009-07-19  Bruno Haible  <bruno@clisp.org>
19067
19068         Fix handling of closed stdin/stdout/stderr on mingw.
19069         * lib/w32spawn.h: Include unistd.h.
19070         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
19071         file descriptor with O_NOINHERIT flag.
19072         (fd_safer_noinherit): New function, based on fd-safer.c.
19073         (dup_safer_noinherit): New function, based on dup-safer.c.
19074         (undup_safer_noinherit): New function.
19075         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
19076         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
19077         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
19078         instead of fd_safer.
19079         * tests/test-pipe.c: Include <windows.h>.
19080         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close() result.
19081
19082         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
19083         from main.
19084         (test_pipe): Pass an extra argument for disambiguation.
19085         (main): Invoke parent_main or child_main.
19086
19087         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
19088         consistently.
19089
19090 2009-07-18  Eric Blake  <ebb9@byu.net>
19091
19092         test-pipe: fix mingw build
19093         * tests/test-pipe.c (main): Avoid fcntl on mingw.
19094
19095 2009-07-18  Bruno Haible  <bruno@clisp.org>
19096
19097         * modules/pipe-tests (Makefile.am): Fix typo.
19098
19099 2009-07-18  Eric Blake  <ebb9@byu.net>
19100
19101         error: fix mingw build
19102         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
19103         Reported by Bruno Haible.
19104
19105         error: avoid undefined use of stdout
19106         * lib/error.c (error, error_at_line): Check that fd 1 is open
19107         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
19108         is handling faults and the close_stdout module wants to report the
19109         detection of closed stdout as an error.
19110
19111 2009-07-17  Eric Blake  <ebb9@byu.net>
19112
19113         pipe: be robust in face of closed fds
19114         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
19115         should cause child to misbehave.
19116         * modules/pipe-tests: New module.
19117         * tests/test-pipe.c: New file.
19118         * tests/test-pipe.sh: New file.
19119         Reported by Akim Demaille.
19120
19121 2009-07-14  Bruno Haible  <bruno@clisp.org>
19122
19123         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
19124         Reported by anonymous kc.
19125
19126 2009-07-07  Jim Meyering  <meyering@redhat.com>
19127
19128         maint.mk: don't look for translatable strings in *.m4 or *.mk
19129         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
19130         when searching for translatable strings.
19131
19132 2009-07-05  Jim Meyering  <meyering@redhat.com>
19133
19134         remove superfluous parentheses in STREQ definition
19135         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
19136         * lib/getugroups.c (STREQ): Likewise.
19137         * lib/fnmatch.c (STREQ): Likewise.
19138         Spotted by Bruno Haible.
19139
19140 2009-07-04  Jim Meyering  <meyering@redhat.com>
19141
19142         argv-iter: new module
19143         * MODULES.html.sh: Add argv-iter.
19144         * lib/argv-iter.c, lib/argv-iter.h: New files.
19145         * modules/argv-iter: New file.
19146         * modules/argv-iter-tests: New file.
19147         * tests/test-argv-iter.c: Test it.
19148
19149 2009-07-04  Bruno Haible  <bruno@clisp.org>
19150
19151         Fix assertion.
19152         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
19153         contains more exact copies of a given entry than file2, leave the extra
19154         copies unpaired rather than aborting.
19155         Reported by Eric Blake.
19156
19157 2009-07-02  Bruno Haible  <bruno@clisp.org>
19158
19159         Speedup git-merge-changelog for git cherry-pick.
19160         * lib/git-merge-changelog.c (struct entries_mapping): New type.
19161         (entries_mapping_get): New function, extracted from compute_mapping.
19162         (entries_mapping_reverse_get): New function.
19163         (compute_mapping): Add a 'full' argument. Return the result in a
19164         'struct entries_mapping'.
19165         (main): Update. Access the mappings through entries_mapping_get.
19166         Reported by Eric Blake.
19167
19168 2009-07-02  Bruno Haible  <bruno@clisp.org>
19169
19170         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
19171         best_i.
19172
19173 2009-07-02  Bruno Haible  <bruno@clisp.org>
19174
19175         Speed up approximate search for matching ChangeLog entries.
19176         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
19177         argument. Call fstrcmp_bounded instead of fstrcmp.
19178         (compute_mapping, try_split_merged_entry, main): Update callers.
19179
19180 2009-07-02  Bruno Haible  <bruno@clisp.org>
19181
19182         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
19183
19184 2009-06-30  Bruno Haible  <bruno@clisp.org>
19185
19186         Reduce the number of uc_is_cased calls.
19187         * lib/unicase.h (casing_suffix_context_t): Add
19188         'first_char_except_ignorable' field.
19189         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
19190         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
19191         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
19192         Update initializer.
19193         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
19194         case-ignorable characters.
19195         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
19196         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
19197         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
19198         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
19199         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
19200
19201 2009-06-30  Bruno Haible  <bruno@clisp.org>
19202
19203         Tests for module 'unicase/ignorable'.
19204         * modules/unicase/ignorable-tests: New file.
19205         * tests/unicase/test-ignorable.c: New file, generated by
19206         gen-uni-tables.
19207
19208         Tests for module 'unicase/cased'.
19209         * modules/unicase/cased-tests: New file.
19210         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
19211         * tests/unicase/test-predicate-part1.h: New file, derived from
19212         tests/unictype/test-predicate-part1.h.
19213         * tests/unicase/test-predicate-part2.h: New file, same as
19214         tests/unictype/test-predicate-part2.h.
19215
19216         Fix evaluation of "Before C" condition of FINAL_SIGMA.
19217         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
19218         (output_casing_properties): New function.
19219         (main): Call it.
19220         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
19221         * lib/unicase/cased.c: Include unictype/bitmap.h.
19222         (uc_is_cased): Define through a bitmap lookup.
19223         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
19224         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
19225         (uc_is_case_ignorable): Define through a bitmap lookup.
19226         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
19227         lib/unictype/bitmap.h.
19228         (Depends-on): Add inline. Clean up.
19229         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
19230         lib/unictype/bitmap.h.
19231         (Depends-on): Add inline. Clean up.
19232         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
19233         recognition.
19234         * tests/unicase/test-u16-tolower.c (main): Likewise.
19235         * tests/unicase/test-u32-tolower.c (main): Likewise.
19236
19237 2009-06-30  Bruno Haible  <bruno@clisp.org>
19238
19239         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
19240         * lib/unicase/u16-casemap.c: Likewise.
19241         * lib/unicase/u32-casemap.c: Likewise.
19242
19243 2009-06-29  Bruno Haible  <bruno@clisp.org>
19244
19245         Define u32_casefold as a wrapper around u32_ct_casefold.
19246         * lib/unicase/u32-casefold.c: Update.
19247         * modules/unicase/u32-casefold (Depends-on): Add
19248         unicase/u32-ct-casefold, unicase/empty-prefix-context,
19249         unicase/empty-suffix-context. Clean up.
19250
19251         Define u16_casefold as a wrapper around u16_ct_casefold.
19252         * lib/unicase/u16-casefold.c: Update.
19253         * modules/unicase/u16-casefold (Depends-on): Add
19254         unicase/u16-ct-casefold, unicase/empty-prefix-context,
19255         unicase/empty-suffix-context. Clean up.
19256
19257         Define u8_casefold as a wrapper around u8_ct_casefold.
19258         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
19259         * lib/unicase/u8-casefold.c: Update.
19260         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
19261         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
19262
19263         Define u32_totitle as a wrapper around u32_ct_totitle.
19264         * lib/unicase/u32-totitle.c: Update.
19265         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
19266         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
19267
19268         Define u16_totitle as a wrapper around u16_ct_totitle.
19269         * lib/unicase/u16-totitle.c: Update.
19270         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
19271         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
19272
19273         Define u8_totitle as a wrapper around u8_ct_totitle.
19274         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
19275         functions.
19276         (FUNC): Delegate to U_CT_TOTITLE.
19277         * lib/unicase/u8-totitle.c: Update.
19278         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
19279         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
19280
19281         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
19282         invocation.
19283         * modules/unicase/u32-tolower (Depends-on): Add
19284         unicase/empty-prefix-context, unicase/empty-suffix-context.
19285
19286         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
19287         invocation.
19288         * modules/unicase/u16-tolower (Depends-on): Add
19289         unicase/empty-prefix-context, unicase/empty-suffix-context.
19290
19291         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
19292         * modules/unicase/u8-tolower (Depends-on): Add
19293         unicase/empty-prefix-context, unicase/empty-suffix-context.
19294
19295         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
19296         invocation.
19297         * modules/unicase/u32-toupper (Depends-on): Add
19298         unicase/empty-prefix-context, unicase/empty-suffix-context.
19299
19300         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
19301         invocation.
19302         * modules/unicase/u16-toupper (Depends-on): Add
19303         unicase/empty-prefix-context, unicase/empty-suffix-context.
19304
19305         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
19306         * modules/unicase/u8-toupper (Depends-on): Add
19307         unicase/empty-prefix-context, unicase/empty-suffix-context.
19308
19309         New module 'unicase/u32-ct-casefold'.
19310         * lib/unicase/u32-ct-casefold.c: New file.
19311         * modules/unicase/u32-ct-casefold: New file.
19312
19313         New module 'unicase/u16-ct-casefold'.
19314         * lib/unicase/u16-ct-casefold.c: New file.
19315         * modules/unicase/u16-ct-casefold: New file.
19316
19317         New module 'unicase/u8-ct-casefold'.
19318         * lib/unicase/u8-ct-casefold.c: New file.
19319         * lib/unicase/u-ct-casefold.h: New file, derived from
19320         lib/unicase/u-casefold.h.
19321         * modules/unicase/u8-ct-casefold: New file.
19322
19323         New module 'unicase/u32-ct-totitle'.
19324         * lib/unicase/u32-ct-totitle.c: New file.
19325         * modules/unicase/u32-ct-totitle: New file.
19326
19327         New module 'unicase/u16-ct-totitle'.
19328         * lib/unicase/u16-ct-totitle.c: New file.
19329         * modules/unicase/u16-ct-totitle: New file.
19330
19331         New module 'unicase/u8-ct-totitle'.
19332         * lib/unicase/u8-ct-totitle.c: New file.
19333         * lib/unicase/u-ct-totitle.h: New file, derived from
19334         lib/unicase/u-totitle.h.
19335         * modules/unicase/u8-ct-totitle: New file.
19336
19337         New module 'unicase/u32-ct-tolower'.
19338         * lib/unicase/u32-ct-tolower.c: New file.
19339         * modules/unicase/u32-ct-tolower: New file.
19340
19341         New module 'unicase/u16-ct-tolower'.
19342         * lib/unicase/u16-ct-tolower.c: New file.
19343         * modules/unicase/u16-ct-tolower: New file.
19344
19345         New module 'unicase/u8-ct-tolower'.
19346         * lib/unicase/u8-ct-tolower.c: New file.
19347         * modules/unicase/u8-ct-tolower: New file.
19348
19349         New module 'unicase/u32-ct-toupper'.
19350         * lib/unicase/u32-ct-toupper.c: New file.
19351         * modules/unicase/u32-ct-toupper: New file.
19352
19353         New module 'unicase/u16-ct-toupper'.
19354         * lib/unicase/u16-ct-toupper.c: New file.
19355         * modules/unicase/u16-ct-toupper: New file.
19356
19357         New module 'unicase/u8-ct-toupper'.
19358         * lib/unicase/u8-ct-toupper.c: New file.
19359         * modules/unicase/u8-ct-toupper: New file.
19360
19361         Add context arguments to u*_casemap functions.
19362         * lib/unicase/unicasemap.h: Include unicase.h.
19363         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
19364         suffix_context arguments.
19365         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
19366         functions.
19367         (FUNC): Add prefix_context and suffix_context arguments. Use
19368         uc_is_cased and uc_is_case_ignorable.
19369         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
19370         * lib/unicase/u16-casemap.c: Likewise.
19371         * lib/unicase/u32-casemap.c: Likewise.
19372         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
19373         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
19374         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
19375         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
19376         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
19377         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
19378
19379         New module 'unicase/u32-suffix-context'.
19380         * lib/unicase/u32-suffix-context.c: New file.
19381         * modules/unicase/u32-suffix-context: New file.
19382
19383         New module 'unicase/u16-suffix-context'.
19384         * lib/unicase/u16-suffix-context.c: New file.
19385         * modules/unicase/u16-suffix-context: New file.
19386
19387         New module 'unicase/u8-suffix-context'.
19388         * lib/unicase/u8-suffix-context.c: New file.
19389         * lib/unicase/u-suffix-context.h: New file.
19390         * modules/unicase/u8-suffix-context: New file.
19391
19392         New module 'unicase/empty-suffix-context'.
19393         * lib/unicase/empty-suffix-context.c: New file.
19394         * modules/unicase/empty-suffix-context: New file.
19395
19396         New module 'unicase/u32-prefix-context'.
19397         * lib/unicase/u32-prefix-context.c: New file.
19398         * modules/unicase/u32-prefix-context: New file.
19399
19400         New module 'unicase/u16-prefix-context'.
19401         * lib/unicase/u16-prefix-context.c: New file.
19402         * modules/unicase/u16-prefix-context: New file.
19403
19404         New module 'unicase/u8-prefix-context'.
19405         * lib/unicase/u8-prefix-context.c: New file.
19406         * lib/unicase/u-prefix-context.h: New file.
19407         * lib/unicase/context.h: New file.
19408         * modules/unicase/u8-prefix-context: New file.
19409
19410         New module 'unicase/empty-prefix-context'.
19411         * lib/unicase/empty-prefix-context.c: New file.
19412         * modules/unicase/empty-prefix-context: New file.
19413
19414         New module 'unicase/ignorable'.
19415         * lib/unicase/ignorable.c: New file.
19416         * modules/unicase/ignorable: New file.
19417
19418         New module 'unicase/cased'.
19419         * lib/unicase/caseprop.h: New file.
19420         * lib/unicase/cased.c: New file.
19421         * modules/unicase/cased: New file.
19422
19423         New functions for case mapping of substrings.
19424         * lib/unicase.h (casing_prefix_context_t): New type.
19425         (unicase_empty_prefix_context): New variable.
19426         (u8_casing_prefix_context, u16_casing_prefix_context,
19427         u32_casing_prefix_context, u8_casing_prefixes_context,
19428         u16_casing_prefixes_context, u32_casing_prefixes_context): New
19429         declarations.
19430         (casing_suffix_context_t): New type.
19431         (unicase_empty_suffix_context): New variable.
19432         (u8_casing_suffix_context, u16_casing_suffix_context,
19433         u32_casing_suffix_context, u8_casing_suffixes_context,
19434         u16_casing_suffixes_context, u32_casing_suffixes_context,
19435         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
19436         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
19437         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
19438         declarations.
19439
19440 2009-06-28  Jim Meyering  <meyering@redhat.com>
19441
19442         boostrap: indent only with spaces
19443         * build-aux/bootstrap: Indent only with spaces, never TABs.
19444
19445         bootstrap: split long lines
19446         * build-aux/bootstrap: Keep line length < 80.
19447
19448         bootstrap: sync from coreutils
19449         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
19450         just as autoreconf does.  Verify a list of prerequisite
19451         package-name,version-number pairs if defined in bootstrap.conf.
19452         Refer to README-prereq, if prerequisites are not satisfied.
19453
19454 2009-06-27  Eric Blake  <ebb9@byu.net>
19455
19456         tests: add test for bogus NULL definition
19457         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
19458         * tests/test-stdlib.c: Likewise.
19459         * tests/test-string.c: Likewise.
19460         * tests/test-locale.c: Likewise.
19461         * tests/test-unistd.c: Likewise.
19462         * modules/stdio-tests (Depends-on): Add verify.
19463         * modules/stdlib-tests (Depends-on): Likewise.
19464         * modules/string-tests (Depends-on): Likewise.
19465         * modules/locale-tests (Depends-on): Likewise.
19466         * modules/unistd-tests (Depends-on): Likewise.
19467
19468 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
19469
19470         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
19471         self-explaining comment.
19472         * m4/selinux-selinux-h: Update serial.
19473         (gl_LIBSELINUX): New macro, adding a warning for missing development
19474         packages to code extracted from...
19475         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
19476         Add warning for missing development packages here, too.
19477
19478 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
19479
19480         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
19481
19482 2009-06-25  Eric Blake  <ebb9@byu.net>
19483
19484         version-etc: fix regression
19485         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
19486         gcc.
19487         (version_etc): Use it, to catch bugs with trailing NULL.
19488         * lib/version-etc.c (version_etc_arn): Delete unused argument.
19489         (version_etc_va): Fix logic bug.
19490         * modules/version-etc-tests: Add test.
19491         * tests/test-version-etc.c: New file.
19492         * tests/test-version-etc.sh: Likewise.
19493
19494 2009-06-25  Sam Steingold  <sds@gnu.org>
19495
19496         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
19497         mbtowc declaration.
19498
19499 2009-06-25  Eric Blake  <ebb9@byu.net>
19500
19501         fpurge: migrate into <stdio.h>
19502         * lib/fpurge.h: Delete...
19503         * lib/stdio.in.h (fpurge): ...and declare here, instead.
19504         * lib/fpurge.c (fpurge): Change declaring header.
19505         * modules/fpurge (Files): Drop deleted file.
19506         (Depends-on): Add stdio.
19507         (configure.ac): Set witness.
19508         * modules/stdio (Makefile.am): Support fpurge macros.
19509         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
19510         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
19511         * lib/fflush.c: Update client.
19512         * tests/test-fpurge.c: Likewise.
19513         * NEWS: Mention the change.
19514
19515 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
19516
19517         * lib/argp-version-etc.c (program_authors): Add const
19518         qualifier.
19519         * lib/version-etc.c: Fix typos in the comments.
19520         * modules/argp-version-etc: Depends on version-etc.
19521
19522 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
19523
19524         argp-version-etc: new module.
19525
19526         * lib/argp-version-etc.c: New file.
19527         * lib/argp-version-etc.h: New file.
19528         * modules/argp-version-etc: New file.
19529         * modules/argp-version-etc-tests: New file.
19530         * tests/test-argp-version-etc.c: New test.
19531         * tests/test-argp-version-etc-1.sh: New test.
19532
19533 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
19534
19535         Provide additional interfaces and documentation for version-etc
19536         module.
19537
19538         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
19539         interfaces.
19540         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
19541         prototypes.
19542
19543 2009-06-24  Bruno Haible  <bruno@clisp.org>
19544
19545         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
19546         HAVE_LIB${NAME} macro.
19547         Reported by Sam Steingold <sds@gnu.org>.
19548
19549 2009-06-23  Simon Josefsson  <simon@josefsson.org>
19550
19551         * modules/hash-tests (test_hash_LDADD): Link to libintl when
19552         needed.
19553
19554 2009-06-21  Bruno Haible  <bruno@clisp.org>
19555
19556         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
19557         work.
19558         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
19559         together with LIB${NAME}, LTLIB${NAME}.
19560         Reported by Sam Steingold <sds@gnu.org>.
19561
19562 2009-06-20  Jim Meyering  <meyering@redhat.com>
19563
19564         tests: make sc_require_test_exit_idiom more generic
19565         * top/maint.mk (Exit_witness_file): New overridable variable.
19566         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
19567         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
19568
19569 2009-06-19  Jim Meyering  <meyering@redhat.com>
19570
19571         hash: reverse order of src/dst parameters in an internal interface
19572         * lib/hash.c (transfer_entries): Reverse order of parameters to
19573         put DST before SRC.  Adjust callers.
19574
19575         tests: test-hash: avoid wholesale duplication
19576         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
19577         Instead, use a loop and add a single conditional.
19578
19579         tests: test-hash: allow seed selection via a command line argument
19580         * tests/test-hash.c (get_seed): New function.
19581         (main): Use it.
19582
19583 2009-06-19  Eric Blake  <ebb9@byu.net>
19584
19585         hash: avoid memory leak on allocation failure
19586         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
19587         failure.  Factor repeated algorithm...
19588         (transfer_entries): ...into new helper routine.
19589         (hash_delete): React to hash_rehash return value.
19590
19591         hash: reduce memory pressure in hash_rehash no-op case
19592         * lib/hash.c (next_prime): Avoid overflow.
19593         (hash_initialize): Factor bucket size computation...
19594         (compute_bucket_size): ...into new helper function.
19595         (hash_rehash): Use new function and open coding to reduce memory
19596         pressure, and avoid a memory leak in USE_OBSTACK code.
19597         Reported by Jim Meyering.
19598
19599 2009-06-18  Eric Blake  <ebb9@byu.net>
19600
19601         hash: make rotation more obvious
19602         * modules/hash (Depends-on): Add bitrotate and stdint.
19603         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
19604         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
19605         (SIZE_MAX): Rely on headers for definition.
19606         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
19607         (raw_hasher): Use rotr_sz.
19608         Suggested by Jim Meyering.
19609
19610         hash: fix memory leak in last patch
19611         * lib/hash.c (hash_rehash): Avoid memory leak.
19612
19613         hash: avoid no-op rehashing
19614         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
19615
19616         hash: provide default callback functions
19617         * lib/hash.c (raw_hasher, raw_comparator): New functions.
19618         (hash_initialize): Use them as defaults.
19619         * tests/test-hash.c (main): Test this.
19620
19621         hash: minor optimization
19622         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
19623         when possible.
19624         (hash_initialize): Document this promise.
19625         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
19626         * tests/test-hash.c (hash_compare_strings): Test this.
19627
19628 2009-06-18  Bruno Haible  <bruno@clisp.org>
19629
19630         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
19631         going to be replaced anyway.
19632
19633 2009-06-18  Bruno Haible  <bruno@clisp.org>
19634
19635         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
19636         in one place.
19637         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
19638         be replaced anyway.
19639
19640 2009-06-18  Eric Blake  <ebb9@byu.net>
19641
19642         hash: check for resize before insertion
19643         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
19644         threshold before insertion, so that a pathological hash_rehash
19645         that fills every bucket can still trigger another rehash.
19646
19647 2009-06-18  Jim Meyering  <meyering@redhat.com>
19648
19649         hash-tests: add a loop around the small tests
19650         * tests/test-hash.c (main): Repeat small tests with selected
19651         small initial table sizes.
19652
19653 2009-06-17  Eric Blake  <ebb9@byu.net>
19654
19655         hash: minor cleanups
19656         * lib/hash.h (hash_entry): Make opaque, by moving...
19657         * lib/hash.c (hash_entry): ...here.
19658         (hash_insert): Clarify restrictions on what can be inserted.
19659         (hash_get_next): Clarify when it is safe to remove an element
19660         during traversal.
19661         (check_tuning): Skip verification when tuning is known safe.
19662         (hash_initialize): Clarify restrictions on tuning.
19663
19664 2009-06-17  Jim Meyering  <jim@meyering.net>
19665         and Eric Blake  <ebb9@byu.net>
19666
19667         hash-tests: new module
19668         * modules/hash-tests: New file.
19669         * tests/test-hash.c: New file.
19670
19671 2009-06-17  Eric Blake  <ebb9@byu.net>
19672
19673         strstr-simple: document new module
19674         * MODULES.html.sh: Document new module.
19675
19676         strstr, strcasestr: replace on platforms with broken memchr
19677         * modules/strstr: Split into...
19678         * modules/strstr-simple: ...new module that does not care about
19679         performance, but does care about glibc bug.
19680         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
19681         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
19682         if platform memchr is broken, per Debian bug 521737.
19683         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
19684         memchr.
19685         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
19686         * doc/posix-functions/strstr.texi (strstr): Document the fix.
19687         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
19688         * modules/mountlist (Depends-on): Add strstr-simple.
19689         * modules/gen-uni-tables (Depends-on): Likewise.
19690         * modules/argz (Depends-on): Add strstr.
19691
19692 2009-06-17  Bruno Haible  <bruno@clisp.org>
19693
19694         * modules/posix_spawn-internal (Depends-on): Add errno.
19695
19696 2009-06-17  Bruno Haible  <bruno@clisp.org>
19697
19698         Define missing ESTALE on Interix 3.5.
19699         * lib/errno.in.h (ESTALE): Assign a value if missing.
19700         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
19701         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
19702         missing.
19703         * doc/posix-headers/errno.texi: Mention the Interix bug.
19704         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
19705
19706 2009-06-15  Eric Blake  <ebb9@byu.net>
19707
19708         memchr, memchr2: add valgrind exception
19709         * lib/memchr.valgrind: New file.
19710         * lib/memchr2.valgrind: New file.
19711         * modules/memchr (Files): Distribute valgrind file.
19712         * modules/memchr2 (Files): Likewise.
19713
19714         docs: memchr is no longer obsolete
19715         * MODULES.html.sh: Move memchr from obsolete to string.h section.
19716         * lib/string.in.h (memchr): Simplify logic.
19717
19718 2009-06-14  Jim Meyering  <meyering@redhat.com>
19719
19720         link-follow: fix the "checking..." message to not mention trailing slash
19721         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
19722         never considered trailing slashes.
19723
19724 2009-06-14  Bruno Haible  <bruno@clisp.org>
19725
19726         * m4/memchr.m4: Mention also the bug on IA-64.
19727         * doc/posix-functions/memchr.texi: Likewise.
19728
19729 2009-06-12  Eric Blake  <ebb9@byu.net>
19730
19731         memchr: detect broken x86_64 and alpha implementations
19732         * modules/memchr-tests (Depends-on): Move mmap detection...
19733         * modules/memchr (Depends-on): ...here.
19734         (configure.ac): Set indicator.
19735         * lib/string.in.h (memchr): Declare replacement.
19736         * modules/string (Makefile.am): Trigger replacement.
19737         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
19738         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
19739         bugs.
19740         * doc/posix-functions/memchr.texi (memchr): Document the bug.
19741         * modules/getpagesize (License): Relax license.
19742
19743 2009-06-11  Bruno Haible  <bruno@clisp.org>
19744
19745         * lib/idpriv.h: Add more references.
19746
19747 2009-06-08  Bruno Haible  <bruno@clisp.org>
19748
19749         Tests for module 'idpriv-droptemp'.
19750         * modules/idpriv-droptemp-tests: New file.
19751         * tests/test-idpriv-droptemp.sh: New file.
19752         * tests/test-idpriv-droptemp.su.sh: New file.
19753         * tests/test-idpriv-droptemp.c: New file.
19754
19755         New module 'idpriv-droptemp'.
19756         * lib/idpriv-droptemp.c: New file.
19757         * modules/idpriv-droptemp: New file.
19758
19759 2009-06-08  Bruno Haible  <bruno@clisp.org>
19760
19761         Tests for module 'idpriv-drop'.
19762         * modules/idpriv-drop-tests: New file.
19763         * tests/test-idpriv-drop.sh: New file.
19764         * tests/test-idpriv-drop.su.sh: New file.
19765         * tests/test-idpriv-drop.c: New file.
19766
19767         New module 'idpriv-drop'.
19768         * lib/idpriv.h: New file.
19769         * lib-idpriv-drop.c: New file.
19770         * m4/idpriv.m4: New file.
19771         * modules/idpriv-drop: New file.
19772
19773 2009-06-08  Bruno Haible  <bruno@clisp.org>
19774
19775         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
19776         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
19777         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
19778         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
19779         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
19780         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
19781         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
19782
19783 2009-06-08  Eric Blake  <ebb9@byu.net>
19784
19785         test-strstr: use memory fence, when possible
19786         * tests/test-strstr.c (main): Use memory fence, in order to be
19787         more likely to trigger Debian bug 521737.
19788         * modules/strstr-tests (Files): Pull in additional files.
19789
19790         memchr: no longer obsolete, for wider field testing
19791         * modules/memchr (Status, Notice): Delete, this module is no
19792         longer obsolete.
19793         * modules/vasnprintf (Depends-on): Add memchr.
19794
19795 2009-06-07  Jim Meyering  <meyering@redhat.com>
19796
19797         hash: declare some functions with the warn_unused_result attribute
19798         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
19799
19800 2009-06-07  Bruno Haible  <bruno@clisp.org>
19801
19802         * tests/test-alignof.c: Don't test int64_t if it does not exist.
19803         Reported by Eric Blake.
19804
19805 2009-06-06  Eric Blake  <ebb9@byu.net>
19806
19807         test-alignof: fix typo with long double
19808         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
19809         compiler error.
19810
19811 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
19812
19813         Escape non-texinfo { and }s.
19814         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
19815         markup error.
19816
19817 2009-06-04  Jim Meyering  <meyering@redhat.com>
19818
19819         gitlog-to-changelog: don't infloop on an empty commit log
19820         * build-aux/gitlog-to-changelog: Warn about an empty log message.
19821         Reported by Boris Petersen <transacid@centerim.org>.
19822
19823 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
19824
19825         version-etc: extend for packagers
19826         Add three new configure options, intended for packagers:
19827           --with-packager="packager name"
19828           --with-packager-version="packager-specific version"
19829           --with-packager-bug-reports="packager bug reporting"
19830         An example with coreutils:
19831           $ ./configure \
19832             --with-packager=Gentoo \
19833             --with-packager-bug-report=http://bugs.gentoo.org/ \
19834             --with-packager-version="patchset 1.6"
19835           $ ./src/ls --version | head -n2
19836           ls (GNU coreutils) 7.1-dirty
19837           Packaged by Gentoo (patchset 1.6)
19838         Note that the bug reporting info via --help doesn't show up because
19839         coreutils uses its own custom emit_bug_reporting_address() implementation
19840         in src/system.h.  If it didn't, it'd look like:
19841           $ ./src/ls --help | tail -n4
19842           Report bugs to <bug-coreutils@gnu.org>.
19843           Report Gentoo bugs to <http://bugs.gentoo.org/>.
19844           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
19845           General help using GNU software: <http://www.gnu.org/gethelp/>.
19846         * lib/version-etc.c: Print new information, if provided.
19847         * m4/version-etc.m4: New file.
19848         * modules/version-etc (Files): Add m4/version-etc.m4.
19849         (configure.ac): Add gl_VERSION_ETC.
19850
19851 2009-05-31  Bruno Haible  <bruno@clisp.org>
19852
19853         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
19854         and 'int64_t'.
19855         * modules/alignof-tests (Dependencies): Add stdint.
19856         Reported by Eric Blake.
19857
19858 2009-05-31  Bruno Haible  <bruno@clisp.org>
19859
19860         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
19861         restriction due to compiler bugs.
19862         Reported by Eric Blake.
19863
19864 2009-05-31  Simon Josefsson  <simon@josefsson.org>
19865             Bruno Haible  <bruno@clisp.org>
19866
19867         Fix test-alignof failure.
19868         * lib/alignof.h (alignof_slot): New macro.
19869         (alignof_type): New macro, with the same semantics as the previous
19870         'alignof'.
19871         (alignof): Alias to alignof_slot.
19872         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
19873         check that the results are usable as constant expressions.
19874
19875 2009-05-31  Bruno Haible  <bruno@clisp.org>
19876
19877         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
19878         * tests/test-memchr.c (main): Check that memchr does not read past the
19879         first occurrence of the byte.
19880         * tests/test-strstr.c (main): Update comment.
19881         Suggested by Eric Blake.
19882
19883 2009-05-30  Bruno Haible  <bruno@clisp.org>
19884
19885         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
19886         detail how to use dumpbin.
19887         Reported by David Byron <dbyron@dbyron.com>.
19888
19889 2009-06-02  Simon Josefsson  <simon@josefsson.org>
19890
19891         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
19892
19893 2009-06-02  Simon Josefsson  <simon@josefsson.org>
19894
19895         * m4/manywarnings.m4: Add GCC 4.4 warnings.
19896
19897 2009-05-28  Bruno Haible  <bruno@clisp.org>
19898
19899         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
19900         build-aux/ files.
19901
19902 2009-05-28  Simon Josefsson  <simon@josefsson.org>
19903
19904         * gnulib-tool (func_import): Transform license on build-aux/ files too.
19905
19906 2009-05-27  Simon Josefsson  <simon@josefsson.org>
19907
19908         * gnulib-tool (sed_transform_main_lib_file)
19909         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
19910         regexps.
19911
19912 2009-05-26  Simon Josefsson  <simon@josefsson.org>
19913
19914         * tests/test-strstr.c: Add another self-test.
19915         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
19916         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
19917
19918 2009-05-23  Bruno Haible  <bruno@clisp.org>
19919
19920         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
19921         change.
19922
19923 2009-05-21  Bruno Haible  <bruno@clisp.org>
19924
19925         Simplify use of mode_t varargs.
19926         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
19927         uses 'mode_t' or 'int'.
19928         * lib/openat.c (openat): Likewise.
19929         * lib/open-safer.c (open_safer): Likewise.
19930         * m4/mode_t.m4: New file.
19931         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
19932         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
19933         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
19934         * modules/open (Files): Add m4/mode_t.m4.
19935         * modules/openat (Files): Likewise.
19936         * modules/fcntl-safer (Files): Likewise.
19937         Suggested by Eric Blake.
19938
19939 2009-05-21  Pádraig Brady  <P@draigbrady.com>
19940
19941         * doc/glibc-functions/fallocate.texi: New file.
19942         * doc/gnulib.texi: Include it.
19943
19944 2009-05-21  Eric Blake  <ebb9@byu.net>
19945             Bruno Haible  <bruno@clisp.org>
19946
19947         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
19948         invocations.
19949         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
19950
19951 2009-05-21  Eric Blake  <ebb9@byu.net>
19952             Bruno Haible  <bruno@clisp.org>
19953
19954         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
19955         include_next. Fix of 2008-11-20 commit.
19956         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
19957         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
19958         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
19959         NEXT_MATH_H.
19960         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
19961         instead of NEXT_MATH_H.
19962
19963 2009-05-21  Bruno Haible  <bruno@clisp.org>
19964
19965         Avoid redefinition warnings for SIZE_MAX.
19966         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
19967         Reported by Simon Josefsson.
19968
19969 2009-05-21  Bruno Haible  <bruno@clisp.org>
19970
19971         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
19972         AC_CACHE_VAL.
19973
19974 2009-05-20  Bruno Haible  <bruno@clisp.org>
19975
19976         Make zeroptr.h work on mingw.
19977         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
19978         mprotect.
19979         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
19980         * modules/memchr2-tests (configure.ac): Likewise.
19981         * modules/memcmp-tests (configure.ac): Likewise.
19982         * modules/memmem-tests (configure.ac): Likewise.
19983         * modules/memrchr-tests (configure.ac): Likewise.
19984         Reported by Simon Josefsson.
19985
19986 2009-05-20  Simon Josefsson  <simon@josefsson.org>
19987
19988         * tests/test-glob.c: Include string.h for strcmp prototype.
19989
19990 2009-05-20  Simon Josefsson  <simon@josefsson.org>
19991
19992         * modules/getdelim (Depends-on): Add explicit stdint, although it
19993         was implicitly already pulled in via realloc-posix.
19994         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
19995
19996 2009-05-20  Simon Josefsson  <simon@josefsson.org>
19997
19998         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
19999         G. Christensen" <tgc@jupiterrise.com>.
20000         * m4/sys_socket_h.m4: Check for sa_family_t.
20001         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
20002         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
20003         * tests/test-sys_socket.c: Check that sa_family_t works.
20004
20005 2009-05-18  Eric Blake  <ebb9@byu.net>
20006
20007         maint.mk: allow gnulib_dir in VPATH build
20008         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
20009
20010 2009-05-15  Jim Meyering  <meyering@redhat.com>
20011
20012         maint.mk: Give gnulib_dir a default definition.
20013         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
20014         Thus, most packages no longer need to specify this variable in cfg.mk
20015
20016 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
20017
20018         rename.m4: fix typos that would make non-mingw cross-configure fail
20019         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
20020
20021 2009-05-13  Eric Blake  <ebb9@byu.net>
20022
20023         mmap-anon: avoid out-of-order autoconf expansion
20024         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
20025         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
20026         * modules/memchr-tests (Depends-on): Add extensions.
20027         * modules/memchr2-tests (Depends-on): Add extensions.
20028         * modules/memcmp-tests (Depends-on): Add extensions.
20029         * modules/memmem-tests (Depends-on): Add extensions.
20030         * modules/memrchr-tests (Depends-on): Add extensions.
20031
20032 2009-05-13  Bruno Haible  <bruno@clisp.org>
20033
20034         Make some tests ISO C 99 compliant.
20035         * tests/zerosize-ptr.h: New file.
20036         * tests/test-memchr.c: Include zerosize-ptr.h.
20037         (main): Use a zero-size object pointer instead of NULL.
20038         * tests/test-memchr2.c: Include zerosize-ptr.h.
20039         (main): Use a zero-size object pointer instead of NULL.
20040         * tests/test-memcmp.c: Include zerosize-ptr.h.
20041         (main): Use a zero-size object pointer instead of NULL.
20042         * tests/test-memmem.c: Include zerosize-ptr.h.
20043         (main): Use a zero-size object pointer instead of NULL.
20044         * tests/test-memrchr.c: Include zerosize-ptr.h.
20045         (main): Use a zero-size object pointer instead of NULL.
20046         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
20047         m4/mmap-anon.m4.
20048         (Depends-on): Add getpagesize.
20049         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
20050         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
20051         m4/mmap-anon.m4.
20052         (Depends-on): Add getpagesize.
20053         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
20054         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
20055         m4/mmap-anon.m4.
20056         (Depends-on): Add getpagesize.
20057         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
20058         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
20059         m4/mmap-anon.m4.
20060         (Depends-on): Add getpagesize.
20061         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
20062         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
20063         m4/mmap-anon.m4.
20064         (Depends-on): Add getpagesize.
20065         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
20066
20067 2009-05-12  Bruno Haible  <bruno@clisp.org>
20068
20069         Tests for module 'alignof'.
20070         * modules/alignof-tests: New file.
20071         * tests/test-alignof.c: New file.
20072
20073 2009-05-12  Bruno Haible  <bruno@clisp.org>
20074
20075         Fix alignof macro.
20076         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
20077         vendor compilers that are always correct.
20078
20079 2009-05-12  Bruno Haible  <bruno@clisp.org>
20080
20081         Make the MAP_ANONYMOUS detection work on HP-UX 11.
20082         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
20083         not whether its fully works.
20084
20085 2009-05-12  Bruno Haible  <bruno@clisp.org>
20086
20087         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
20088
20089 2009-05-12  Jim Meyering  <meyering@redhat.com>
20090
20091         * top/maint.mk: Adjust backslash alignment.
20092
20093 2009-05-11  Simon Josefsson  <simon@josefsson.org>
20094
20095         * top/maint.mk: Make $(srcdir)/build-aux configurable.
20096
20097 2009-05-11  Eric Blake  <ebb9@byu.net>
20098
20099         argp: avoid undefined behavior
20100         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
20101         macros.
20102
20103 2009-05-08  Simon Josefsson  <simon@josefsson.org>
20104
20105         * tests/test-vc-list-files-git.sh: Do git config of user.email and
20106         user.name to prevent git commit from complaining.
20107
20108 2009-05-10  Bruno Haible  <bruno@clisp.org>
20109
20110         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
20111         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
20112         it rewrites every file name only once.
20113         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
20114
20115 2009-05-08  Bruno Haible  <bruno@clisp.org>
20116
20117         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
20118         instead of 'max'.
20119
20120 2009-05-08  Simon Josefsson  <simon@josefsson.org>
20121
20122         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
20123         sockaddr_storage test.
20124
20125 2009-05-07  Simon Josefsson  <simon@josefsson.org>
20126
20127         * modules/sys_socket (Makefile.am): Substitute
20128         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
20129         * m4/sys_socket_h.m4: Check for sockaddr_storage.
20130         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
20131         * tests/test-sys_socket.c: Check sockaddr_storage.
20132
20133 2009-05-08  Bruno Haible  <bruno@clisp.org>
20134
20135         New module 'alignof'.
20136         * lib/alignof.h: New file.
20137         * modules/alignof: New file.
20138
20139 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
20140             Bruno Haible  <bruno@clisp.org>
20141
20142         Fix test-file-has-acl on FreeBSD.
20143         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
20144         mask is implicitly added.
20145         * tests/test-file-has-acl.c: Include <signal.h>.
20146         (main): Terminate the test after 5 seconds.
20147         * modules/acl-tests (configure.ac): Check for alarm function.
20148
20149 2009-05-04  Bruno Haible  <bruno@clisp.org>
20150
20151         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
20152         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
20153         * modules/errno (configure.ac): Drop AC_REQUIRE.
20154         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
20155         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
20156
20157 2009-05-04  Simon Josefsson  <simon@josefsson.org>
20158
20159         * modules/glob-tests: New module.
20160         * tests/test-glob.c: Add.
20161
20162 2009-05-04  Simon Josefsson  <simon@josefsson.org>
20163
20164         * modules/fnmatch-tests: New module.
20165         * tests/test-fnmatch.c: Add.
20166
20167 2009-05-04  Eric Blake  <ebb9@byu.net>
20168
20169         maint: make the new no-submodule-changes rule VPATH-safe
20170         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
20171
20172 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
20173             Bruno Haible  <bruno@clisp.org>
20174
20175         acl: Fix infinite loop on FreeBSD.
20176         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
20177         of return value from acl_get_entry.
20178         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
20179         Likewise.
20180
20181 2009-05-03  Bruno Haible  <bruno@clisp.org>
20182
20183         * lib/acl-internal.h (acl_entries): Clarify return value.
20184         * lib/acl_entries.c (acl_entries): Likewise.
20185
20186 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
20187
20188         Bug fix in acl module.
20189         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
20190
20191 2009-05-03  Bruno Haible  <bruno@clisp.org>
20192
20193         Create gperf-generated file in the source dir, not in the build dir.
20194         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
20195         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
20196         * modules/unicase/locale-language (unicase/locale-languages.h):
20197         Likewise.
20198         * modules/unicase/special-casing (unicase/special-casing-table.h):
20199         Likewise.
20200         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
20201         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
20202         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
20203         Reported by Ralf Wildenhues.
20204
20205 2009-05-03  Bruno Haible  <bruno@clisp.org>
20206
20207         * modules/fnmatch (Description, configure.ac): Taken from
20208         fnmatch-posix.
20209         * modules/fnmatch-posix: Turn into a symbolic reference to the
20210         'fnmatch' module, and deprecate.
20211         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
20212
20213 2009-05-03  Bruno Haible  <bruno@clisp.org>
20214
20215         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
20216         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
20217         Reported by Ralf Wildenhues.
20218
20219 2009-05-04  Simon Josefsson  <simon@josefsson.org>
20220
20221         * m4/fnmatch.m4: Fix fnmatch re-define.
20222
20223 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
20224
20225         priv-set: new module and tests; adapt write-any-file
20226         * lib/priv-set.c: New file.
20227         * lib/priv-set.h: New file.
20228         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
20229         * lib/write-any-file.c: Simplify by using priv-set module.
20230         * m4/priv-set.m4: New file.
20231         * modules/priv-set: New file.
20232         * modules/unlinkdir: Add dependency on priv-set module.
20233         * modules/write-any-file: Likewise.
20234
20235         Tests for module 'priv-set'.
20236         * modules/priv-set-tests: New file.
20237         * tests/test-priv-set.c: New file.
20238
20239 2009-05-03  Jim Meyering  <meyering@redhat.com>
20240             Bruno Haible  <bruno@clisp.org>
20241
20242         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
20243         use the converted UTF-8 variant of the name instead.
20244
20245 2009-05-03  Jim Meyering  <meyering@redhat.com>
20246
20247         tests: tighten some getdate tests
20248         * tests/test-getdate.c (main): Tighten tests: require equality,
20249         not just greater than.  Set TZ envvar to UTC0.
20250
20251 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
20252
20253         getdate: correctly interpret "next monday" when run on a Monday
20254         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
20255         that e.g., "next tues" (when run on a tuesday) results in a date
20256         that is one week in the future, and not today's date.
20257         I.e., add a week when the wday is the same as the current one.
20258         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
20259         and earlier by Martin Bernreuther and Jan Minář.
20260         * tests/test-getdate.c (main): Check that "next DAY" is always in
20261         the future and that "last DAY" is always in the past.
20262
20263 2009-05-02  Jim Meyering  <meyering@redhat.com>
20264
20265         build: ensure that a release build fails when a submodule is unclean
20266         * top/maint.mk (no-submodule-changes): New rule.
20267         (alpha beta major): Depend on it.
20268
20269 2009-05-02  Bruno Haible  <bruno@clisp.org>
20270
20271         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
20272         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
20273         shell variable gl_fnmatch_required to detect which variant is
20274         requested.
20275         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
20276         gl_FUNC_FNMATCH_POSIX.
20277         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
20278         exclude fnmatch-posix.
20279
20280 2009-05-02  Bruno Haible  <bruno@clisp.org>
20281
20282         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
20283         * modules/mbsrtowcs (License): Change to LGPLv2+.
20284         * modules/strnlen1 (License): Likewise.
20285         Reported by Simon Josefsson.
20286
20287 2009-05-02  Bruno Haible  <bruno@clisp.org>
20288
20289         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
20290         "cross".
20291         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
20292         gnulib-tool was called with option --source-base=lib.
20293
20294 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20295
20296         Use automake *-local hooks without commands, for extensibility.
20297         * modules/localcharset (Makefile.am): Rename install-exec-local
20298         rule to install-exec-localcharset, and make it a prerequisite of
20299         install-exec-local.  Likewise, rename the uninstall-local rule to
20300         uninstall-localcharset, and make it a prerequisite of the former.
20301
20302 2009-05-01  Bruno Haible  <bruno@clisp.org>
20303
20304         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
20305         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
20306         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
20307         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
20308         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
20309         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
20310         m4/locale-zh.m4, m4/codeset.m4.
20311
20312         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
20313         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
20314         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
20315         m4/locale-zh.m4.
20316
20317         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
20318         REPLACE_WCRTOMB if mbstate_t must be replaced.
20319         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
20320         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
20321
20322 2009-05-01  Bruno Haible  <bruno@clisp.org>
20323
20324         Avoid compiler warnings when redefining macros defined by <libintl.h>.
20325         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
20326         dngettext, dcngettext, textdomain, bindtextdomain,
20327         bind_textdomain_codeset): Undefine before redefining.
20328
20329 2009-04-30  Bruno Haible  <bruno@clisp.org>
20330
20331         Fix bug introduced on 2009-04-25.
20332         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
20333         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
20334         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
20335         is defined.
20336         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
20337         is defined.
20338         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
20339         is defined.
20340         Reported by Elbert_Pol <elbert.pol@gmail.com>.
20341
20342 2009-04-28  Bruno Haible  <bruno@clisp.org>
20343
20344         Comment tweaks.
20345         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
20346         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
20347         * lib/unicase.h (u*_casexfrm): Likewise.
20348         Reported by Paolo Bonzini.
20349
20350 2009-04-28  Bruno Haible  <bruno@clisp.org>
20351
20352         Fix a compilation error.
20353         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
20354         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
20355         Reported by Jim Meyering.
20356
20357 2009-04-27  Bruno Haible  <bruno@clisp.org>
20358
20359         New module 'libunistring'.
20360         * modules/libunistring: New file.
20361         * m4/libunistring.m4: New file.
20362         * MODULES.html.sh (Unicode string functions): Add it.
20363
20364 2009-04-27  Eric Blake  <ebb9@byu.net>
20365
20366         maint.mk: allow package-specific header to provide <config.h>
20367         * top/maint.mk (sc_require_config_h): New variable.
20368         (sc_require_config_h, sc_require_config_h_first): Use it.
20369
20370 2009-04-27  Simon Josefsson  <simon@josefsson.org>
20371
20372         * top/maint.mk (sc_avoid_if_before_free): Except
20373         useless-if-before-free script.
20374
20375 2009-04-27  Eric Blake  <ebb9@byu.net>
20376
20377         maintainer-makefile: depend on all required helper scripts
20378         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
20379         useless-if-before-free.
20380         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
20381         version, rather than assuming gnulib checkout is available.
20382         Reported by Simen Josefsson.
20383
20384 2009-04-26  Bruno Haible  <bruno@clisp.org>
20385
20386         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
20387         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
20388         "../" or "..".
20389
20390 2009-04-26  Bruno Haible  <bruno@clisp.org>
20391
20392         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
20393         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
20394         AC_LIB_HAVE_LINKFLAGS.
20395
20396 2009-04-26  Bruno Haible  <bruno@clisp.org>
20397
20398         Simplify calling convention of u*_conv_from_encoding.
20399         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
20400         u32_conv_from_encoding): Expect a resultbuf argument and return the
20401         result directly as a pointer.
20402         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
20403         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
20404         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
20405         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
20406         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
20407         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
20408         Update.
20409         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
20410         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
20411         * lib/vasnprintf.c (VASNPRINTF): Update.
20412         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
20413         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
20414         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
20415         * NEWS: Mention the change.
20416
20417 2009-04-26  Bruno Haible  <bruno@clisp.org>
20418
20419         Simplify calling convention of u*_conv_to_encoding.
20420         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
20421         u32_conv_to_encoding): Expect a resultbuf argument and return the
20422         result directly as a pointer.
20423         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
20424         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
20425         freeing scaled_offsets if mem_iconveha failed.
20426         * lib/unicase/u-casexfrm.h (FUNC): Update.
20427         * lib/uninorm/u-normxfrm.h (FUNC): Update.
20428         * lib/vasnprintf.c (VASNPRINTF): Update.
20429         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
20430         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
20431         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
20432         * NEWS: Mention the change.
20433
20434 2009-04-26  Bruno Haible  <bruno@clisp.org>
20435
20436         Avoid test failures on AIX and OSF/1.
20437         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
20438         malloc(0).
20439         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
20440         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
20441         Likewise.
20442         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
20443         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
20444         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
20445         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
20446         * doc/posix-functions/malloc.texi: Document the portability problem
20447         related to malloc(0).
20448
20449 2009-04-26  Bruno Haible  <bruno@clisp.org>
20450
20451         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
20452         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
20453         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
20454
20455 2009-04-25  Bruno Haible  <bruno@clisp.org>
20456
20457         Avoid link error when creating a namespace clean library.
20458         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
20459         as macro with arguments if already defined as an alias.
20460         * lib/signbitf.c (gl_signbitf): Don't undefine.
20461         * lib/signbitd.c (gl_signbitd): Don't undefine.
20462         * lib/signbitl.c (gl_signbitl): Don't undefine.
20463
20464 2009-04-25  Jim Meyering  <meyering@redhat.com>
20465
20466         vc-list-files: fix another quoting bug
20467         * build-aux/vc-list-files: Avoid sed backslash expansion
20468         of pathological directory names.
20469
20470 2009-04-25  Eric Blake  <ebb9@byu.net>
20471
20472         vc-list-files: fix shell quoting error
20473         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
20474         timestamp.
20475
20476 2009-04-25  Jim Meyering  <meyering@redhat.com>
20477
20478         vc-list-files: restore lost functionality with subdir argument
20479         * build-aux/vc-list-files: When given a non-"." sub-directory
20480         argument, substitute the $dir/ prefix back onto each resulting name.
20481         Otherwise, coreutils' root_tests check would fail.
20482
20483 2009-04-24  Eric Blake  <ebb9@byu.net>
20484
20485         vc-list-files: ignore git symlinks
20486         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
20487         than ls-files, to ignore git symlinks.
20488
20489         maint.mk: import improvements from m4
20490         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
20491         (move_if_change): Delete unused macro.
20492         (news-date-check, vc-diff-check): Support VPATH builds.
20493         (announcement): Likewise.  Split --bootstrap-tools list...
20494         (boostrap-tools): ...into separate list, which can be overridden
20495         in cfg.mk.
20496         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
20497         requiring dependency on useless-if-before-free module.
20498         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
20499         Support VPATH builds.
20500
20501 2009-04-24  Jim Meyering  <meyering@redhat.com>
20502
20503         maint.mk: remove coreutils-specific rules and variables
20504         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
20505         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
20506         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
20507
20508         maint.mk: remove obsolete rule
20509         * top/maint.mk (rel-check): Remove rule.
20510         (WGET, WGETFLAGS): Remove now-unused variables.
20511
20512 2009-04-24  Simon Josefsson  <simon@josefsson.org>
20513
20514         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
20515         consistency.
20516
20517         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
20518         '$(PATH_SEPARATOR)' instead of ':'.
20519
20520 2009-04-24  Simon Josefsson  <simon@josefsson.org>
20521
20522         * lib/getopt1.c (main): Use 'const' for static array.
20523
20524 2009-04-24  Simon Josefsson  <simon@josefsson.org>
20525
20526         * top/maint.mk: Sync with coreutils.
20527         * NEWS: Explain incompatibilities.
20528
20529 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
20530             Bruno Haible  <bruno@clisp.org>
20531
20532         Fix cross-compilation results.
20533         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
20534         statement, as third argument of AC_TRY_RUN.
20535         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
20536         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
20537         Likewise.
20538         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
20539         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
20540         Likewise.
20541         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
20542         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
20543         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
20544
20545 2009-04-20  Bruno Haible  <bruno@clisp.org>
20546
20547         Avoid test failure on mingw.
20548         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
20549
20550 2009-04-20  Bruno Haible  <bruno@clisp.org>
20551
20552         Avoid compilation error on mingw.
20553         * modules/localename-tests (Depends-on): Add locale.
20554
20555 2009-04-19  Bruno Haible  <bruno@clisp.org>
20556
20557         Support for building a shared library on Windows platforms.
20558         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
20559         (main): Test the presence of UNINORM_NFC here.
20560         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
20561         (main): Test the presence of UNINORM_NFD here.
20562         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
20563         (main): Test the presence of UNINORM_NFKC here.
20564         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
20565         (main): Test the presence of UNINORM_NFKD here.
20566
20567 2009-04-19  Bruno Haible  <bruno@clisp.org>
20568
20569         Avoid a compiler warning.
20570         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
20571         Change type of variable 'sequence'.
20572
20573 2009-04-19  Bruno Haible  <bruno@clisp.org>
20574
20575         * modules/configmake (Makefile.am): When the contents of configmake.h
20576         does not change, arrange to preserve its modification time.
20577
20578 2009-04-17  Simon Josefsson  <simon@josefsson.org>
20579
20580         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
20581         gettext domain.
20582
20583 2009-04-16  Jim Meyering  <meyering@redhat.com>
20584
20585         useless-if-before-free: improve conversion code
20586         * build-aux/useless-if-before-free: Adjust code-in-comment to match
20587         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
20588
20589 2009-04-14  Bruno Haible  <bruno@clisp.org>
20590
20591         * modules/fcntl (Depends-on): Add extensions.
20592         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
20593
20594 2009-04-12  Ben Pfaff  <blp@gnu.org>
20595
20596         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
20597         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
20598
20599 2009-03-20  Ben Pfaff  <blp@gnu.org>
20600
20601         Make rename replace existing destinations on Windows.
20602         * m4/rename.m4: Add test for Mingw.
20603         * lib/rename.c: Add rename replacement that uses MoveFileEx with
20604         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
20605         * doc/posix-functions/rename.texi: Document.
20606
20607 2009-04-10  Bruno Haible  <bruno@clisp.org>
20608
20609         New include file "iconveh.h".
20610         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
20611         * lib/striconveh.h: Include it.
20612         (enum iconv_ilseq_handler): Remove definition.
20613         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
20614         striconveh.h.
20615         * lib/striconveha.c: Include striconveh.h.
20616         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
20617         * modules/striconveh (Files): Add lib/iconveh.h.
20618         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
20619         lib/striconveh.h.
20620
20621 2009-04-10  Bruno Haible  <bruno@clisp.org>
20622
20623         * lib/uniconv.h: Update comment.
20624
20625 2009-04-10  Bruno Haible  <bruno@clisp.org>
20626
20627         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
20628         always.
20629         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
20630         * lib/unistr/u16-mbtouc-aux.c: Likewise.
20631         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
20632         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
20633         "unistring-notinline.h", so that the function gets defined always.
20634         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
20635         * lib/unistr/u8-uctomb.c: Likewise.
20636         * lib/unistr/u16-mbtouc.c: Likewise.
20637         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
20638         * lib/unistr/u16-uctomb.c: Likewise.
20639         * lib/unistr/u32-mbtouc.c: Likewise.
20640         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
20641         * lib/unistr/u32-uctomb.c: Likewise.
20642
20643 2009-04-10  Bruno Haible  <bruno@clisp.org>
20644
20645         Mark 'utime' obsolete.
20646         * modules/utime (Status, Notice): New sections.
20647         Suggested by Jim Meyering.
20648
20649         Fix cross-compile guess for utime test.
20650         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
20651         autoconf.
20652         * doc/posix-functions/utime.texi: Give more precisions.
20653         Reported by Jan <ipif@ymail.com>.
20654
20655 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
20656
20657         filevercmp: correct today's change
20658         * lib/filevercmp.c: Also handle coreutils' test inputs.
20659         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
20660
20661         Fix regression in 'filevercmp' module. Thanks Sven Joachim
20662         for reporting it.
20663         * lib/filevercmp.c: Special handle for "", "." and "..".
20664         * tests/test-filevercmp.c: Enlarge the set suite.
20665
20666 2009-04-07  Jim Meyering  <meyering@redhat.com>
20667
20668         useless-if-before-free: show how to remove braced useless free, too
20669         * build-aux/useless-if-before-free: still only in a comment, though.
20670
20671 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
20672
20673         maint.mk: import changes to syntax-check macros from coreutils
20674         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
20675         Use them in the relevant macros.
20676
20677 2009-04-06  Bruno Haible  <bruno@clisp.org>
20678
20679         Fix unportable use of bit-fields.
20680         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
20681         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
20682         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
20683
20684 2009-04-06  Bruno Haible  <bruno@clisp.org>
20685
20686         Avoid test failures on AIX and OSF/1.
20687         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
20688         that malloc(0) = NULL.
20689         * tests/unicase/test-u8-tolower.c (check): Likewise.
20690         * tests/unicase/test-u8-totitle.c (check): Likewise.
20691         * tests/unicase/test-u8-toupper.c (check): Likewise.
20692         * tests/unicase/test-u16-casefold.c (check): Likewise.
20693         * tests/unicase/test-u16-tolower.c (check): Likewise.
20694         * tests/unicase/test-u16-totitle.c (check): Likewise.
20695         * tests/unicase/test-u16-toupper.c (check): Likewise.
20696         * tests/unicase/test-u32-casefold.c (check): Likewise.
20697         * tests/unicase/test-u32-tolower.c (check): Likewise.
20698         * tests/unicase/test-u32-totitle.c (check): Likewise.
20699         * tests/unicase/test-u32-toupper.c (check): Likewise.
20700         * tests/uninorm/test-u8-nfc.c (check): Likewise.
20701         * tests/uninorm/test-u8-nfd.c (check): Likewise.
20702         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
20703         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
20704         * tests/uninorm/test-u16-nfc.c (check): Likewise.
20705         * tests/uninorm/test-u16-nfd.c (check): Likewise.
20706         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
20707         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
20708         * tests/uninorm/test-u32-nfc.c (check): Likewise.
20709         * tests/uninorm/test-u32-nfd.c (check): Likewise.
20710         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
20711         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
20712
20713 2009-04-05  Bruno Haible  <bruno@clisp.org>
20714
20715         Work around an autoconf limitation.
20716         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
20717         comment line if it would be longer than 3 KB.
20718
20719 2009-04-05  Bruno Haible  <bruno@clisp.org>
20720
20721         Avoid test failure with libiconv-1.13.
20722         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
20723         of the expected test results.
20724
20725 2009-04-05  Bruno Haible  <bruno@clisp.org>
20726
20727         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
20728         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
20729         that it should be installed.
20730
20731 2009-04-05  Bruno Haible  <bruno@clisp.org>
20732
20733         * gnulib-tool: New option --copy-file.
20734         (func_usage): Document it.
20735         (func_dest_tmpfilename): Moved out of func_import.
20736         (func_add_file, func_update_file): New functions, extracted from
20737         func_import.
20738         (func_import): Update.
20739
20740 2009-04-05  Karl Berry  <karl@gnu.org>
20741
20742         * README: prominently mention gnulib-tool.
20743         Rearrange sections so getting the code is near the top.
20744
20745 2009-04-05  Bruno Haible  <bruno@clisp.org>
20746
20747         * lib/unicase.h: Mention u*_cmp2.
20748         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
20749         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
20750         * lib/unicase/ulc-casecmp.c: Likewise.
20751         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
20752         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
20753         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
20754         unistr/u8-cmp.
20755         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
20756         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
20757         unistr/u16-cmp.
20758         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
20759         unistr/u32-cmp.
20760
20761         * lib/uninorm.h: Mention u*_cmp2.
20762         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
20763         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
20764         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
20765         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
20766         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
20767         unistr/u8-cmp.
20768         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
20769         unistr/u16-cmp.
20770         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
20771         unistr/u32-cmp.
20772
20773         New module 'unistr/u32-cmp2'.
20774         * lib/unistr/u32-cmp2.c: New file.
20775         * modules/unistr/u32-cmp2: New file.
20776
20777         New module 'unistr/u16-cmp2'.
20778         * lib/unistr/u16-cmp2.c: New file.
20779         * modules/unistr/u16-cmp2: New file.
20780
20781         New module 'unistr/u8-cmp2'.
20782         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
20783         * lib/unistr/u8-cmp2.c: New file.
20784         * lib/unistr/u-cmp2.h: New file.
20785         * modules/unistr/u8-cmp2: New file.
20786
20787 2009-04-05  Bruno Haible  <bruno@clisp.org>
20788
20789         * lib/unictype.h (uc_property_is_valid): New macro.
20790         * tests/unictype/test-pr_byname.c (main): Use it.
20791
20792         * lib/unistr.h: Doc fixes.
20793         * lib/uniconv.h: Doc fixes.
20794         * lib/unictype.h: Doc fixes.
20795
20796 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
20797
20798         Port coreutils 7.2 to Solaris 8.
20799
20800         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
20801         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
20802         for Solaris 8.  This is a bit of a hack, as it means it's the
20803         caller's responsibility to add -lnsl if needed, but most likely it
20804         won't be needed since only getaddrinfo uses this and getaddrinfo
20805         isn't needed on Solaris 8.
20806
20807         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
20808         problem to Solaris 8 encountered with coreutils 7.2, which
20809         resulted in a message "fnmatch.c:292: warning: passing argument 4
20810         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
20811         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
20812
20813 2009-04-03  Simon Josefsson  <simon@josefsson.org>
20814
20815         * m4/ld-version-script.m4: Add FIXME comment.
20816
20817 2009-04-02  Simon Josefsson  <simon@josefsson.org>
20818
20819         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
20820         SOVERSION variable.
20821
20822 2009-04-02  Bruno Haible  <bruno@clisp.org>
20823
20824         * Makefile (info, html, dvi, pdf): Combine the rules.
20825         Suggested by Jim Meyering.
20826
20827 2009-04-01  Bruno Haible  <bruno@clisp.org>
20828
20829         * Makefile (info, html, dvi, pdf): New targets.
20830         Reported by Reuben Thomas <rrt@sc3d.org>.
20831
20832 2009-04-01  Bruno Haible  <bruno@clisp.org>
20833
20834         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
20835         can be put into PATH.
20836         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
20837
20838 2009-04-01  Bruno Haible  <bruno@clisp.org>
20839
20840         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
20841
20842 2009-04-01  Bruno Haible  <bruno@clisp.org>
20843
20844         Rename module 'visibility'.
20845         * modules/lib-symbol-visibility: Renamed from modules/visibility.
20846         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
20847         * doc/gnulib.texi: Update.
20848         * MODULES.html.sh (Misc): Update.
20849         * NEWS: Mention the change.
20850
20851 2009-04-01  Simon Josefsson  <simon@josefsson.org>
20852
20853         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
20854         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
20855         Eric Blake <ebb9@byu.net> for review.
20856         * MODULES.html.sh: Add lib-msvc-compat.
20857         * doc/gnulib.texi: Link to new section.
20858         * m4/ld-output-def.m4: New file.
20859         * doc/ld-output-def.texi: New file.
20860
20861 2009-04-01  Simon Josefsson  <simon@josefsson.org>
20862
20863         Rename ld-version-script to lib-symbol-versions.  Suggested by
20864         Bruno Haible <bruno@clisp.org>.
20865         * modules/ld-version-script: Renamed to lib-symbol-versions.
20866         * doc/ld-version-script.texi: Fix module name.
20867         * MODULES.html.sh: Add lib-symbol-versions.
20868
20869 2009-03-31  Simon Josefsson  <simon@josefsson.org>
20870
20871         * modules/u64-tests: New file.
20872         * tests/test-u64.c: New file.
20873
20874 2009-03-04  Simon Josefsson  <simon@josefsson.org>
20875
20876         * MODULES.html.sh: Mention u64.
20877         * modules/u64: New module.
20878         * modules/crypto/sha512: Depend on u64 module instead of providing
20879         u64.h.
20880
20881 2009-03-27  Eric Blake  <ebb9@byu.net>
20882
20883         test-strerror: make debugging EAI_SYSTEM easier
20884         * modules/getaddrinfo-tests (Depends-on): Add strerror.
20885         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
20886         failure was EAI_SYSTEM.
20887
20888 2009-03-25  Bruno Haible  <bruno@clisp.org>
20889
20890         Fix a problem with --enable-relocatable on Solaris 7.
20891         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
20892         since 2008-02-24.
20893
20894 2009-03-25  Eric Blake  <ebb9@byu.net>
20895
20896         test-sockets: avoid gcc warning
20897         * tests/test-sockets.c (main): Silence compiler warning.
20898
20899 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
20900
20901         New modules nproc, pthread, contributed by Glen Lenker.
20902
20903         * MODULES.html.sh: Add pthread, nproc.
20904         * lib/nproc.c: New file.
20905         * lib/nproc.h: New file.
20906         * lib/pthread.in.h: New file.
20907         * m4/pthread.m4: New file.
20908         * modules/nproc: New file.
20909         * modules/pthread: New file.
20910
20911 2009-03-24  Simon Josefsson  <simon@josefsson.org>
20912
20913         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
20914         New variable.
20915
20916 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
20917
20918         filevercmp: handle simple~ and numbered.~3~ backup suffixes
20919         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
20920         * tests/test-filevercmp.c: Add tests for backup suffixes.
20921
20922 2009-03-24  Simon Josefsson  <simon@josefsson.org>
20923
20924         * modules/stdlib (Depends-on): Add stdint, needed when defining
20925         struct random_data on, for example, HP-UX 10.20.  Reported by
20926         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
20927
20928 2009-03-24  Simon Josefsson  <simon@josefsson.org>
20929
20930         * lib/readline.c (readline): Call fflush on stdout after printing
20931         prompt.
20932
20933 2009-03-20  Bruno Haible  <bruno@clisp.org>
20934
20935         Remove dependency from 'close' module to -lws2_32 on native Windows.
20936         * lib/close-hook.h: New file.
20937         * lib/close-hook.c: New file.
20938         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
20939         w32sock.h.
20940         (_gl_close_fd_maybe_socket): Remove function.
20941         (rpl_close): Invoke execute_all_close_hooks instead of
20942         _gl_close_fd_maybe_socket.
20943         * lib/sockets.c: Include close-hook.h, w32sock.h.
20944         (close_fd_maybe_socket): New function, essentially from lib/close.c.
20945         (close_sockets_hook): New variable.
20946         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
20947         (gl_sockets_cleanup): Unregister it.
20948         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
20949         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
20950         * modules/close-hook: New file.
20951         * modules/close (Files): Remove lib/w32sock.h.
20952         (Depends-on): Add close-hook.
20953         (Link): Remove section.
20954         * modules/sockets (Files): Add lib/w32sock.h.
20955         (Depends-on): Add close-hook.
20956         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
20957         invocation.
20958         * NEWS: Mention that LIB_CLOSE is gone.
20959
20960 2009-03-23  Eric Blake  <ebb9@byu.net>
20961
20962         signal-tests: test previous patch
20963         * tests/test-signal.c: New file.
20964         * modules/signal-tests: Likewise.
20965
20966         signal.h: always support 'volatile sig_atomic_t'
20967         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
20968         (gl_SIGNAL_H_DEFAULTS): Add a default.
20969         * modules/signal (Makefile.am): Substitute if needed.
20970         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
20971         users can blindly add volatile.
20972         * doc/posix-headers/signal.texi (signal.h): Document it.
20973         Reported by Matthew Woehlke.
20974
20975 2009-03-23  Jim Meyering  <meyering@redhat.com>
20976
20977         pathmax: PATH_MAX: use pathconf only when available
20978         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
20979         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
20980         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
20981         This avoids a link failure in a PSP cross-compilation environment
20982         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
20983
20984         * lib/vasnprintf.c (divide): Fix typo in comment.
20985
20986 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20987
20988         * gnulib-tool (func_filter_filelist): Fix comment.
20989
20990 2009-03-20  Bruno Haible  <bruno@clisp.org>
20991
20992         Make sockets.h self-contained.
20993         * lib/sockets.c: Include sockets.h first.
20994         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
20995
20996 2009-03-19  Eric Blake  <ebb9@byu.net>
20997
20998         doc: mention more functions added in cygwin 1.7.0
20999         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
21000         addition.
21001         * doc/posix-functions/log2f.texi: Likewise.
21002
21003 2009-03-19  Jim Meyering  <meyering@redhat.com>
21004
21005         fsusage: avoid syntax error due to statement-before-declaration
21006         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
21007         after all declarations.  Reported by Matthew Woehlke in
21008         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
21009
21010 2009-03-18  Eric Blake  <ebb9@byu.net>
21011
21012         build-aux/compile: sync from automake
21013         * build-aux/compile: New file, from automake.
21014         * config/srclist.txt: Mention build-aux/compile.
21015
21016 2009-03-17  Bruno Haible  <bruno@clisp.org>
21017
21018         * lib/git-merge-changelog.c: Fix typo in comment.
21019         Reported by Reuben Thomas <rrt@sc3d.org>.
21020
21021 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
21022
21023         * m4/regex.m4: update and improve help for
21024         --without-included-regex.
21025
21026 2009-03-17  Simon Josefsson  <simon@josefsson.org>
21027
21028         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
21029         failure on missing include files.
21030
21031 2009-03-17  Eric Blake  <ebb9@byu.net>
21032
21033         doc: mention more functions added in cygwin 1.7.0
21034         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
21035         addition.
21036         * doc/posix-functions/fwscanf.texi: Likewise.
21037         * doc/posix-functions/swprintf.texi: Likewise.
21038         * doc/posix-functions/swscanf.texi: Likewise.
21039         * doc/posix-functions/vfwprintf.texi: Likewise.
21040         * doc/posix-functions/vfwscanf.texi: Likewise.
21041         * doc/posix-functions/vswprintf.texi: Likewise.
21042         * doc/posix-functions/vswscanf.texi: Likewise.
21043         * doc/posix-functions/vwprintf.texi: Likewise.
21044         * doc/posix-functions/vwscanf.texi: Likewise.
21045         * doc/posix-functions/wcscasecmp.texi: Likewise.
21046         * doc/posix-functions/wcsdup.texi: Likewise.
21047         * doc/posix-functions/wcsftime.texi: Likewise.
21048         * doc/posix-functions/wcsncasecmp.texi: Likewise.
21049         * doc/posix-functions/wprintf.texi: Likewise.
21050         * doc/posix-functions/wscanf.texi: Likewise.
21051         * doc/glibc-functions/gethostbyname2.texi: Likewise.
21052
21053 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21054
21055         maint.mk: really add $(AM_MAKEFLAGS)
21056         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
21057         was inadvertently omitted in the last commit.
21058         Spotted by Bruno Haible.
21059
21060         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
21061         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
21062         $(AM_MAKEFLAGS)' rather than plain `make'.
21063
21064         gnulib-tool: execute $MAKE not make
21065         * gnulib-tool: Default $MAKE to 'make'.
21066         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
21067         than make.  Initialize $MAKE in the do-autobuild script.
21068
21069         gnulib-tool: use $MAKE not make in generated files
21070         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
21071         make, in generated files.  Initialize $MAKE in the do-autobuild
21072         script.
21073
21074         * top/GNUmakefile (_have-git-version-gen): Fix typo.
21075
21076         GNUmakefile: disable parallelism only for multiple, recursive targets
21077         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
21078         additions in the Makefile.
21079         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
21080         by Automake.
21081         (.NOTPARALLEL): Only disable parallel builds if multiple targets
21082         are listed on the command line and at least one of them is
21083         listed in $(ALL_RECURSIVE_TARGETS).
21084
21085 2009-03-14  Bruno Haible  <bruno@clisp.org>
21086
21087         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
21088         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
21089         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
21090         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
21091         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
21092         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
21093         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
21094         unistr/u8-uctomb.
21095         * modules/unistr/u8-strchr (Depends-on): Likewise.
21096         * modules/unistr/u8-strrchr (Depends-on): Likewise.
21097         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
21098         unistr/u16-uctomb.
21099         * modules/unistr/u16-strchr (Depends-on): Likewise.
21100         * modules/unistr/u16-strrchr (Depends-on): Likewise.
21101
21102 2009-03-12  Bruno Haible  <bruno@clisp.org>
21103
21104         Work around select() bug on Interix 3.5.
21105         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
21106         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
21107         * m4/select.m4: New file.
21108         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
21109         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
21110         * modules/select (Files): Add m4/select.m4.
21111         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
21112         * modules/nanosleep (Depends-on): Add select.
21113         * modules/poll (Depends-on): Likewise.
21114         * doc/posix-functions/select.texi: Mention the Interix bug.
21115         Reported by Markus Duft <mduft@gentoo.org>.
21116
21117         * lib/select.c: Renamed from lib/winsock-select.c.
21118         * modules/select (Files): Add lib/select.c, remove
21119         lib/winsock-select.c.
21120         (configure.ac): Update.
21121
21122 2009-03-12  Jim Meyering  <meyering@redhat.com>
21123
21124         avoid gcc warnings about unused macro definitions
21125         * lib/readtokens.c (STREQ): Remove unused definition.
21126         * lib/xmalloc.c (SIZE_MAX): Likewise.
21127         * lib/openat-die.c (N_): Likewise.
21128         * lib/mountlist.c (SIZE_MAX): Remove definition.
21129         Instead, include <stdint.h>.
21130         * lib/readutmp.c: Likewise.
21131         * modules/readutmp (Depends-on): Add stdint.
21132         * modules/mountlist (Depends-on): Add stdint.
21133         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
21134
21135 2009-03-10  Bruno Haible  <bruno@clisp.org>
21136
21137         Tests for module 'mbmemcasecoll'.
21138         * modules/mbmemcasecoll-tests: New file.
21139         * tests/test-mbmemcasecoll1.sh: New file.
21140         * tests/test-mbmemcasecoll2.sh: New file.
21141         * tests/test-mbmemcasecoll3.sh: New file.
21142         * tests/test-mbmemcasecoll.c: New file.
21143
21144         New module 'mbmemcasecoll'.
21145         * lib/mbmemcasecoll.h: New file.
21146         * lib/mbmemcasecoll.c: New file.
21147         * modules/mbmemcasecoll: New file.
21148
21149         * tests/test-mbmemcasecmp.h: New file, extracted from
21150         tests/test-mbmemcasecmp.c.
21151         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
21152         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
21153         (main): Update.
21154         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
21155
21156 2009-03-09  Bruno Haible  <bruno@clisp.org>
21157
21158         Tests for module 'mbmemcasecmp'.
21159         * modules/mbmemcasecmp-tests: New file.
21160         * tests/test-mbmemcasecmp1.sh: New file.
21161         * tests/test-mbmemcasecmp2.sh: New file.
21162         * tests/test-mbmemcasecmp3.sh: New file.
21163         * tests/test-mbmemcasecmp.c: New file.
21164
21165         New module 'mbmemcasecmp'.
21166         * lib/mbmemcasecmp.h: New file.
21167         * lib/mbmemcasecmp.c: New file.
21168         * modules/mbmemcasecmp: New file.
21169
21170 2009-03-09  Bruno Haible  <bruno@clisp.org>
21171
21172         Tests for module 'unicase/ulc-casecoll'.
21173         * modules/unicase/ulc-casecoll-tests: New file.
21174         * tests/unicase/test-ulc-casecoll1.sh: New file.
21175         * tests/unicase/test-ulc-casecoll2.sh: New file.
21176         * tests/unicase/test-ulc-casecoll.c: New file.
21177
21178         New module 'unicase/ulc-casecoll'.
21179         * lib/unicase.h (ulc_casecoll): New declaration.
21180         * lib/unicase/ulc-casecoll.c: New file.
21181         * modules/unicase/ulc-casecoll: New file.
21182
21183         New module 'unicase/ulc-casexfrm'.
21184         * lib/unicase.h (ulc_casexfrm): New declaration.
21185         * lib/unicase/ulc-casexfrm.c: New file.
21186         * modules/unicase/ulc-casexfrm: New file.
21187
21188 2009-03-09  Bruno Haible  <bruno@clisp.org>
21189
21190         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
21191         invocations.
21192
21193         * m4/mbscasecmp.m4: Remove file.
21194         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
21195         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
21196
21197         * m4/mbscasestr.m4: Remove file.
21198         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
21199         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
21200
21201         * m4/mbschr.m4: Remove file.
21202         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
21203         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
21204
21205         * m4/mbscspn.m4: Remove file.
21206         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
21207         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
21208
21209         * m4/mbslen.m4: Remove file.
21210         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
21211         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
21212
21213         * m4/mbsncasecmp.m4: Remove file.
21214         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
21215         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
21216
21217         * m4/mbsnlen.m4: Remove file.
21218         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
21219         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
21220
21221         * m4/mbspbrk.m4: Remove file.
21222         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
21223         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
21224
21225         * m4/mbspcasecmp.m4: Remove file.
21226         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
21227         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
21228
21229         * m4/mbsrchr.m4: Remove file.
21230         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
21231         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
21232
21233         * m4/mbssep.m4: Remove file.
21234         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
21235         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
21236
21237         * m4/mbsspn.m4: Remove file.
21238         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
21239         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
21240
21241         * m4/mbsstr.m4: Remove file.
21242         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
21243         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
21244
21245         * m4/mbstok_r.m4: Remove file.
21246         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
21247         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
21248
21249         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
21250
21251         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
21252         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
21253
21254         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
21255
21256 2009-03-08  Bruno Haible  <bruno@clisp.org>
21257
21258         Tests for module 'unicase/ulc-casecmp'.
21259         * modules/unicase/ulc-casecmp-tests: New file.
21260         * tests/unicase/test-ulc-casecmp1.sh: New file.
21261         * tests/unicase/test-ulc-casecmp2.sh: New file.
21262         * tests/unicase/test-ulc-casecmp.c: New file.
21263
21264         New module 'unicase/ulc-casecmp'.
21265         * lib/unicase.h (ulc_casecmp): New declaration.
21266         * lib/unicase/ulc-casecmp.c: New file.
21267         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
21268         'const SRC_UNIT *'.
21269         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
21270         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
21271         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
21272         * modules/unicase/ulc-casecmp: New file.
21273
21274         Tests for module 'unicase/u32-is-cased'.
21275         * modules/unicase/u32-is-cased-tests: New file.
21276         * tests/unicase/test-u32-is-cased.c: New file.
21277
21278         Tests for module 'unicase/u16-is-cased'.
21279         * modules/unicase/u16-is-cased-tests: New file.
21280         * tests/unicase/test-u16-is-cased.c: New file.
21281
21282         Tests for module 'unicase/u8-is-cased'.
21283         * modules/unicase/u8-is-cased-tests: New file.
21284         * tests/unicase/test-u8-is-cased.c: New file.
21285         * tests/unicase/test-is-cased.h: New file.
21286
21287         New module 'unicase/u32-is-cased'.
21288         * lib/unicase/u32-is-cased.c: New file.
21289         * modules/unicase/u32-is-cased: New file.
21290
21291         New module 'unicase/u16-is-cased'.
21292         * lib/unicase/u16-is-cased.c: New file.
21293         * modules/unicase/u16-is-cased: New file.
21294
21295         New module 'unicase/u8-is-cased'.
21296         * lib/unicase/u8-is-cased.c: New file.
21297         * lib/unicase/u-is-cased.h: New file.
21298         * modules/unicase/u8-is-cased: New file.
21299
21300         Tests for module 'unicase/u32-is-casefolded'.
21301         * modules/unicase/u32-is-casefolded-tests: New file.
21302         * tests/unicase/test-u32-is-casefolded.c: New file.
21303
21304         Tests for module 'unicase/u16-is-casefolded'.
21305         * modules/unicase/u16-is-casefolded-tests: New file.
21306         * tests/unicase/test-u16-is-casefolded.c: New file.
21307
21308         Tests for module 'unicase/u8-is-casefolded'.
21309         * modules/unicase/u8-is-casefolded-tests: New file.
21310         * tests/unicase/test-u8-is-casefolded.c: New file.
21311         * tests/unicase/test-is-casefolded.h: New file.
21312
21313         New module 'unicase/u32-is-casefolded'.
21314         * lib/unicase/u32-is-casefolded.c: New file.
21315         * modules/unicase/u32-is-casefolded: New file.
21316
21317         New module 'unicase/u16-is-casefolded'.
21318         * lib/unicase/u16-is-casefolded.c: New file.
21319         * modules/unicase/u16-is-casefolded: New file.
21320
21321         New module 'unicase/u8-is-casefolded'.
21322         * lib/unicase/u8-is-casefolded.c: New file.
21323         * modules/unicase/u8-is-casefolded: New file.
21324
21325         Tests for module 'unicase/u32-is-titlecase'.
21326         * modules/unicase/u32-is-titlecase-tests: New file.
21327         * tests/unicase/test-u32-is-titlecase.c: New file.
21328
21329         Tests for module 'unicase/u16-is-titlecase'.
21330         * modules/unicase/u16-is-titlecase-tests: New file.
21331         * tests/unicase/test-u16-is-titlecase.c: New file.
21332
21333         Tests for module 'unicase/u8-is-titlecase'.
21334         * modules/unicase/u8-is-titlecase-tests: New file.
21335         * tests/unicase/test-u8-is-titlecase.c: New file.
21336         * tests/unicase/test-is-titlecase.h: New file.
21337
21338         New module 'unicase/u32-is-titlecase'.
21339         * lib/unicase/u32-is-titlecase.c: New file.
21340         * modules/unicase/u32-is-titlecase: New file.
21341
21342         New module 'unicase/u16-is-titlecase'.
21343         * lib/unicase/u16-is-titlecase.c: New file.
21344         * modules/unicase/u16-is-titlecase: New file.
21345
21346         New module 'unicase/u8-is-titlecase'.
21347         * lib/unicase/u8-is-titlecase.c: New file.
21348         * modules/unicase/u8-is-titlecase: New file.
21349
21350         Tests for module 'unicase/u32-is-lowercase'.
21351         * modules/unicase/u32-is-lowercase-tests: New file.
21352         * tests/unicase/test-u32-is-lowercase.c: New file.
21353
21354         Tests for module 'unicase/u16-is-lowercase'.
21355         * modules/unicase/u16-is-lowercase-tests: New file.
21356         * tests/unicase/test-u16-is-lowercase.c: New file.
21357
21358         Tests for module 'unicase/u8-is-lowercase'.
21359         * modules/unicase/u8-is-lowercase-tests: New file.
21360         * tests/unicase/test-u8-is-lowercase.c: New file.
21361         * tests/unicase/test-is-lowercase.h: New file.
21362
21363         New module 'unicase/u32-is-lowercase'.
21364         * lib/unicase/u32-is-lowercase.c: New file.
21365         * modules/unicase/u32-is-lowercase: New file.
21366
21367         New module 'unicase/u16-is-lowercase'.
21368         * lib/unicase/u16-is-lowercase.c: New file.
21369         * modules/unicase/u16-is-lowercase: New file.
21370
21371         New module 'unicase/u8-is-lowercase'.
21372         * lib/unicase/u8-is-lowercase.c: New file.
21373         * modules/unicase/u8-is-lowercase: New file.
21374
21375         Tests for module 'unicase/u32-is-uppercase'.
21376         * modules/unicase/u32-is-uppercase-tests: New file.
21377         * tests/unicase/test-u32-is-uppercase.c: New file.
21378
21379         Tests for module 'unicase/u16-is-uppercase'.
21380         * modules/unicase/u16-is-uppercase-tests: New file.
21381         * tests/unicase/test-u16-is-uppercase.c: New file.
21382
21383         Tests for module 'unicase/u8-is-uppercase'.
21384         * modules/unicase/u8-is-uppercase-tests: New file.
21385         * tests/unicase/test-u8-is-uppercase.c: New file.
21386         * tests/unicase/test-is-uppercase.h: New file.
21387
21388         New module 'unicase/u32-is-uppercase'.
21389         * lib/unicase/u32-is-uppercase.c: New file.
21390         * modules/unicase/u32-is-uppercase: New file.
21391
21392         New module 'unicase/u16-is-uppercase'.
21393         * lib/unicase/u16-is-uppercase.c: New file.
21394         * modules/unicase/u16-is-uppercase: New file.
21395
21396         New module 'unicase/u8-is-uppercase'.
21397         * lib/unicase/u8-is-uppercase.c: New file.
21398         * modules/unicase/u8-is-uppercase: New file.
21399
21400         New module 'unicase/u32-is-invariant'.
21401         * lib/unicase/u32-is-invariant.c: New file.
21402         * modules/unicase/u32-is-invariant: New file.
21403
21404         New module 'unicase/u16-is-invariant'.
21405         * lib/unicase/u16-is-invariant.c: New file.
21406         * modules/unicase/u16-is-invariant: New file.
21407
21408         New module 'unicase/u8-is-invariant'.
21409         * lib/unicase/u8-is-invariant.c: New file.
21410         * lib/unicase/invariant.h: New file.
21411         * lib/unicase/u-is-invariant.h: New file.
21412         * modules/unicase/u8-is-invariant: New file.
21413
21414         Tests for module 'unicase/u32-casecoll'.
21415         * modules/unicase/u32-casecoll-tests: New file.
21416         * tests/unicase/test-u32-casecoll.c: New file.
21417
21418         Tests for module 'unicase/u16-casecoll'.
21419         * modules/unicase/u16-casecoll-tests: New file.
21420         * tests/unicase/test-u16-casecoll.c: New file.
21421
21422         Tests for module 'unicase/u8-casecoll'.
21423         * modules/unicase/u8-casecoll-tests: New file.
21424         * tests/unicase/test-u8-casecoll.c: New file.
21425
21426         New module 'unicase/u32-casecoll'.
21427         * lib/unicase/u32-casecoll.c: New file.
21428         * modules/unicase/u32-casecoll: New file.
21429
21430         New module 'unicase/u16-casecoll'.
21431         * lib/unicase/u16-casecoll.c: New file.
21432         * modules/unicase/u16-casecoll: New file.
21433
21434         New module 'unicase/u8-casecoll'.
21435         * lib/unicase/u8-casecoll.c: New file.
21436         * lib/unicase/u-casecoll.h: New file.
21437         * modules/unicase/u8-casecoll: New file.
21438
21439         New module 'unicase/u32-casexfrm'.
21440         * lib/unicase/u32-casexfrm.c: New file.
21441         * modules/unicase/u32-casexfrm: New file.
21442
21443         New module 'unicase/u16-casexfrm'.
21444         * lib/unicase/u16-casexfrm.c: New file.
21445         * modules/unicase/u16-casexfrm: New file.
21446
21447         New module 'unicase/u8-casexfrm'.
21448         * lib/unicase/u8-casexfrm.c: New file.
21449         * lib/unicase/u-casexfrm.h: New file.
21450         * modules/unicase/u8-casexfrm: New file.
21451
21452         Tests for module 'unicase/u32-casecmp'.
21453         * modules/unicase/u32-casecmp-tests: New file.
21454         * tests/unicase/test-u32-casecmp.c: New file.
21455
21456         Tests for module 'unicase/u16-casecmp'.
21457         * modules/unicase/u16-casecmp-tests: New file.
21458         * tests/unicase/test-u16-casecmp.c: New file.
21459
21460         Tests for module 'unicase/u8-casecmp'.
21461         * modules/unicase/u8-casecmp-tests: New file.
21462         * tests/unicase/test-u8-casecmp.c: New file.
21463         * tests/unicase/test-casecmp.h: New file.
21464
21465         New module 'unicase/u32-casecmp'.
21466         * lib/unicase/u32-casecmp.c: New file.
21467         * modules/unicase/u32-casecmp: New file.
21468
21469         New module 'unicase/u16-casecmp'.
21470         * lib/unicase/u16-casecmp.c: New file.
21471         * modules/unicase/u16-casecmp: New file.
21472
21473         New module 'unicase/u8-casecmp'.
21474         * lib/unicase/u8-casecmp.c: New file.
21475         * lib/unicase/u-casecmp.h: New file.
21476         * modules/unicase/u8-casecmp: New file.
21477
21478         Tests for module 'unicase/u32-casefold'.
21479         * modules/unicase/u32-casefold-tests: New file.
21480         * tests/unicase/test-u32-casefold.c: New file.
21481
21482         Tests for module 'unicase/u16-casefold'.
21483         * modules/unicase/u16-casefold-tests: New file.
21484         * tests/unicase/test-u16-casefold.c: New file.
21485
21486         Tests for module 'unicase/u8-casefold'.
21487         * modules/unicase/u8-casefold-tests: New file.
21488         * tests/unicase/test-u8-casefold.c: New file.
21489
21490         New module 'unicase/u32-casefold'.
21491         * lib/unicase/u32-casefold.c: New file.
21492         * modules/unicase/u32-casefold: New file.
21493
21494         New module 'unicase/u16-casefold'.
21495         * lib/unicase/u16-casefold.c: New file.
21496         * modules/unicase/u16-casefold: New file.
21497
21498         New module 'unicase/u8-casefold'.
21499         * lib/unicase/u8-casefold.c: New file.
21500         * lib/unicase/u-casefold.h: New file.
21501         * modules/unicase/u8-casefold: New file.
21502
21503         New module 'unicase/tocasefold'.
21504         * lib/unicase/casefold.h: New file.
21505         * lib/unicase/tocasefold.c: New file.
21506         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
21507         * modules/unicase/tocasefold: New file.
21508
21509         Tests for module 'unicase/u32-totitle'.
21510         * modules/unicase/u32-totitle-tests: New file.
21511         * tests/unicase/test-u32-totitle.c: New file.
21512
21513         Tests for module 'unicase/u16-totitle'.
21514         * modules/unicase/u16-totitle-tests: New file.
21515         * tests/unicase/test-u16-totitle.c: New file.
21516
21517         Tests for module 'unicase/u8-totitle'.
21518         * modules/unicase/u8-totitle-tests: New file.
21519         * tests/unicase/test-u8-totitle.c: New file.
21520
21521         New module 'unicase/u32-totitle'.
21522         * lib/unicase/u32-totitle.c: New file.
21523         * modules/unicase/u32-totitle: New file.
21524
21525         New module 'unicase/u16-totitle'.
21526         * lib/unicase/u16-totitle.c: New file.
21527         * modules/unicase/u16-totitle: New file.
21528
21529         New module 'unicase/u8-totitle'.
21530         * lib/unicase/u8-totitle.c: New file.
21531         * lib/unicase/u-totitle.h: New file.
21532         * modules/unicase/u8-totitle: New file.
21533
21534         Tests for module 'unicase/u32-tolower'.
21535         * modules/unicase/u32-tolower-tests: New file.
21536         * tests/unicase/test-u32-tolower.c: New file.
21537
21538         Tests for module 'unicase/u16-tolower'.
21539         * modules/unicase/u16-tolower-tests: New file.
21540         * tests/unicase/test-u16-tolower.c: New file.
21541
21542         Tests for module 'unicase/u8-tolower'.
21543         * modules/unicase/u8-tolower-tests: New file.
21544         * tests/unicase/test-u8-tolower.c: New file.
21545
21546         New module 'unicase/u32-tolower'.
21547         * lib/unicase/u32-tolower.c: New file.
21548         * modules/unicase/u32-tolower: New file.
21549
21550         New module 'unicase/u16-tolower'.
21551         * lib/unicase/u16-tolower.c: New file.
21552         * modules/unicase/u16-tolower: New file.
21553
21554         New module 'unicase/u8-tolower'.
21555         * lib/unicase/u8-tolower.c: New file.
21556         * modules/unicase/u8-tolower: New file.
21557
21558         Tests for module 'unicase/u32-toupper'.
21559         * modules/unicase/u32-toupper-tests: New file.
21560         * tests/unicase/test-u32-toupper.c: New file.
21561
21562         Tests for module 'unicase/u16-toupper'.
21563         * modules/unicase/u16-toupper-tests: New file.
21564         * tests/unicase/test-u16-toupper.c: New file.
21565
21566         Tests for module 'unicase/u8-toupper'.
21567         * modules/unicase/u8-toupper-tests: New file.
21568         * tests/unicase/test-u8-toupper.c: New file.
21569
21570         New module 'unicase/u32-toupper'.
21571         * lib/unicase/u32-toupper.c: New file.
21572         * modules/unicase/u32-toupper: New file.
21573
21574         New module 'unicase/u16-toupper'.
21575         * lib/unicase/u16-toupper.c: New file.
21576         * modules/unicase/u16-toupper: New file.
21577
21578         New module 'unicase/u8-toupper'.
21579         * lib/unicase/u8-toupper.c: New file.
21580         * modules/unicase/u8-toupper: New file.
21581
21582         New module 'unicase/u32-casemap'.
21583         * lib/unicase/u32-casemap.c: New file.
21584         * modules/unicase/u32-casemap: New file.
21585
21586         New module 'unicase/u16-casemap'.
21587         * lib/unicase/u16-casemap.c: New file.
21588         * modules/unicase/u16-casemap: New file.
21589
21590         New module 'unicase/u8-casemap'.
21591         * lib/unicase/unicasemap.h: New file.
21592         * lib/unicase/u8-casemap.c: New file.
21593         * lib/unicase/u-casemap.h: New file.
21594         * modules/unicase/u8-casemap: New file.
21595
21596         New module 'unicase/special-casing'.
21597         * lib/unicase/special-casing.h: New file.
21598         * lib/unicase/special-casing.c: New file.
21599         * lib/unicase/special-casing-table.gperf: New file, generated by
21600         gen-uni-tables.c.
21601         * modules/unicase/special-casing: New file.
21602
21603         Tests for module 'unicase/locale-language'.
21604         * modules/unicase/locale-language-tests: New file.
21605         * tests/unicase/test-locale-language.sh: New file.
21606         * tests/unicase/test-locale-language.c: New file.
21607
21608         New module 'unicase/locale-language'.
21609         * lib/unicase/locale-language.c: New file.
21610         * lib/unicase/locale-languages.gperf: New file.
21611         * modules/unicase/locale-language: New file.
21612
21613         Generate more tables for case conversion and case folding.
21614         * lib/gen-uni-tables.c (SCC_*): New enum items.
21615         (struct special_casing_rule): New type.
21616         (casing_rules, num_casing_rules, allocated_casing_rules): New
21617         variables.
21618         (add_casing_rule, fill_casing_rules): New functions.
21619         (struct casefold_rule): New type.
21620         (casefolding_rules, num_casefolding_rules,
21621         allocated_casefolding_rules): New variables.
21622         (fill_casefolding_rules): New function.
21623         (unicode_casefold): New variable.
21624         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
21625         sort_casing_rules, output_casing_rules): New functions.
21626         (main): Accept to more arguments: SpecialCasing.txt and
21627         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
21628         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
21629         Output mapping for casefolding.
21630
21631         * lib/unicase.h: Include stdbool.h, uninorm.h.
21632         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
21633         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
21634         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
21635         arguments.
21636         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
21637         resultp arguments.
21638         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
21639         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
21640         resultp arguments.
21641         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
21642         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
21643         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
21644         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
21645         declarations.
21646         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
21647
21648 2009-03-08  Bruno Haible  <bruno@clisp.org>
21649
21650         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
21651         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
21652         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
21653         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
21654
21655 2009-03-07  Bruno Haible  <bruno@clisp.org>
21656
21657         Adjust u*_normcmp, u*_normcoll API.
21658         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
21659         u16_normcoll, u32_normcoll): Change failure conventions.
21660         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
21661         errno and return -1.
21662         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
21663
21664 2009-03-07  Bruno Haible  <bruno@clisp.org>
21665
21666         Tests for module 'uninorm/u32-normcoll'.
21667         * modules/uninorm/u32-normcoll-tests: New file.
21668         * tests/uninorm/test-u32-normcoll.c: New file.
21669
21670         Tests for module 'uninorm/u16-normcoll'.
21671         * modules/uninorm/u16-normcoll-tests: New file.
21672         * tests/uninorm/test-u16-normcoll.c: New file.
21673
21674         Tests for module 'uninorm/u8-normcoll'.
21675         * modules/uninorm/u8-normcoll-tests: New file.
21676         * tests/uninorm/test-u8-normcoll.c: New file.
21677
21678 2009-03-07  Bruno Haible  <bruno@clisp.org>
21679
21680         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
21681         tests/uninorm/test-u32-normcmp.c.
21682         * tests/uninorm/test-u32-normcmp.c: Include it.
21683         (test_nonascii): New function, extracted from main. Add some more
21684         tests.
21685         (main): Invoke test_ascii and test_nonascii.
21686         * modules/uninorm/u32-normcmp-tests (Files): Add
21687         tests/uninorm/test-u32-normcmp.h.
21688         (Depends-on): Remove uninorm/u32-normcmp.
21689
21690         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
21691         tests/uninorm/test-u16-normcmp.c.
21692         * tests/uninorm/test-u16-normcmp.c: Include it.
21693         (test_nonascii): New function, extracted from main. Add some more
21694         tests.
21695         (main): Invoke test_ascii and test_nonascii.
21696         * modules/uninorm/u16-normcmp-tests (Files): Add
21697         tests/uninorm/test-u16-normcmp.h.
21698         (Depends-on): Remove uninorm/u16-normcmp.
21699
21700         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
21701         tests/uninorm/test-u8-normcmp.c.
21702         * tests/uninorm/test-u8-normcmp.c: Include it.
21703         (test_nonascii): New function, extracted from main. Add some more
21704         tests.
21705         (main): Invoke test_ascii and test_nonascii.
21706         * modules/uninorm/u8-normcmp-tests (Files): Add
21707         tests/uninorm/test-u8-normcmp.h.
21708         (Depends-on): Remove uninorm/u8-normcmp.
21709
21710 2009-03-07  Bruno Haible  <bruno@clisp.org>
21711
21712         New module 'uninorm/u32-normcoll'.
21713         * lib/uninorm/u32-normcoll.c: New file.
21714         * modules/uninorm/u32-normcoll: New file.
21715
21716         New module 'uninorm/u16-normcoll'.
21717         * lib/uninorm/u16-normcoll.c: New file.
21718         * modules/uninorm/u16-normcoll: New file.
21719
21720         New module 'uninorm/u8-normcoll'.
21721         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
21722         declarations.
21723         * lib/uninorm/u8-normcoll.c: New file.
21724         * lib/uninorm/u-normcoll.h: New file.
21725         * modules/uninorm/u8-normcoll: New file.
21726
21727         New module 'uninorm/u32-normxfrm'.
21728         * lib/uninorm/u32-normxfrm.c: New file.
21729         * modules/uninorm/u32-normxfrm: New file.
21730
21731         New module 'uninorm/u16-normxfrm'.
21732         * lib/uninorm/u16-normxfrm.c: New file.
21733         * modules/uninorm/u16-normxfrm: New file.
21734
21735         New module 'uninorm/u8-normxfrm'.
21736         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
21737         declarations.
21738         * lib/uninorm/u8-normxfrm.c: New file.
21739         * lib/uninorm/u-normxfrm.h: New file.
21740         * modules/uninorm/u8-normxfrm: New file.
21741
21742 2009-03-07  Bruno Haible  <bruno@clisp.org>
21743
21744         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
21745         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
21746         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
21747
21748 2009-03-07  Bruno Haible  <bruno@clisp.org>
21749
21750         New module 'memxfrm'.
21751         * lib/memxfrm.h: New file.
21752         * lib/memxfrm.c: New file.
21753         * modules/memxfrm: New file.
21754
21755 2009-03-07  Bruno Haible  <bruno@clisp.org>
21756
21757         New module 'memcmp2'.
21758         * lib/memcmp2.h: New file.
21759         * lib/memcmp2.c: New file.
21760         * modules/memcmp2: New file.
21761
21762 2009-03-07  Bruno Haible  <bruno@clisp.org>
21763
21764         Tests for module 'uninorm/decomposing-form'.
21765         * modules/uninorm/decomposing-form-tests: New file.
21766         * tests/uninorm/test-decomposing-form.c: New file.
21767
21768         New module 'uninorm/decomposing-form'.
21769         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
21770         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
21771         Add 'decomposing_variant' field.
21772         * lib/uninorm/decomposing-form.c: New file.
21773         * lib/uninorm/nfc.c (uninorm_nfc): Update.
21774         * lib/uninorm/nfd.c (uninorm_nfd): Update.
21775         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
21776         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
21777         * modules/uninorm/decomposing-form: New file.
21778         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
21779         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
21780
21781 2009-03-07  Bruno Haible  <bruno@clisp.org>
21782
21783         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
21784         strings.
21785
21786 2009-03-06  Bruno Haible  <bruno@clisp.org>
21787
21788         Tests for module 'uninorm/u32-normcmp'.
21789         * tests/uninorm/test-u32-normcmp.c: New file.
21790         * modules/uninorm/u32-normcmp-tests: New file.
21791
21792         Tests for module 'uninorm/u16-normcmp'.
21793         * tests/uninorm/test-u16-normcmp.c: New file.
21794         * modules/uninorm/u16-normcmp-tests: New file.
21795
21796         Tests for module 'uninorm/u8-normcmp'.
21797         * tests/uninorm/test-u8-normcmp.c: New file.
21798         * modules/uninorm/u8-normcmp-tests: New file.
21799
21800         New module 'uninorm/u32-normcmp'.
21801         * lib/uninorm/u32-normcmp.c: New file.
21802         * modules/uninorm/u32-normcmp: New file.
21803
21804         New module 'uninorm/u16-normcmp'.
21805         * lib/uninorm/u16-normcmp.c: New file.
21806         * modules/uninorm/u16-normcmp: New file.
21807
21808         New module 'uninorm/u8-normcmp'.
21809         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
21810         declarations.
21811         * lib/uninorm/u8-normcmp.c: New file.
21812         * lib/uninorm/u-normcmp.h: New file.
21813         * modules/uninorm/u8-normcmp: New file.
21814
21815 2009-03-06  Bruno Haible  <bruno@clisp.org>
21816
21817         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
21818         Reported by Eric Blake.
21819
21820 2009-03-06  Eric Blake  <ebb9@byu.net>
21821             Bruno Haible  <bruno@clisp.org>
21822
21823         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
21824         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
21825         condition.
21826         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
21827         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
21828         condition.
21829         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
21830
21831 2009-03-06  Eric Blake  <ebb9@byu.net>
21832
21833         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
21834         to avoid compiler warnings.
21835         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
21836
21837 2009-03-05  Bruno Haible  <bruno@clisp.org>
21838
21839         * tests/test-ftell.c (main): Disable test beyond end of file on
21840         FreeMiNT.
21841         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
21842
21843 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
21844
21845         * lib/filevercmp.c: Move hidden files up in ordering.
21846         * tests/test-filevercmp.c: Add tests for hidden files.
21847
21848 2009-03-04  Bruno Haible  <bruno@clisp.org>
21849
21850         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
21851         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
21852         AM_CFLAGS.
21853         Reported by Simon Josefsson.
21854
21855 2009-03-03  Bruno Haible  <bruno@clisp.org>
21856
21857         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
21858         Reported by Simon Josefsson.
21859
21860         * doc/ld-version-script.texi: Update node reference.
21861
21862 2009-03-03  Bruno Haible  <bruno@clisp.org>
21863
21864         * modules/visibility (License): Change to 'unlimited'.
21865         Suggested by Simon Josefsson.
21866
21867 2009-03-03  Jim Meyering  <meyering@redhat.com>
21868
21869         unlinkdir: cannot_unlink_dir may modify process state
21870         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
21871         it's neither thread-safe nor appropriate for use in a library.
21872
21873 2009-03-03  Eric Blake  <ebb9@byu.net>
21874
21875         test-closein: silence test under Darwin
21876         * tests/test-closein.sh: Ignore stderr from cat, since we don't
21877         care if it dies from EPIPE or EBADF.
21878
21879 2009-03-03  Bruno Haible  <bruno@clisp.org>
21880
21881         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
21882         earlier.
21883         * doc/visibility.texi: Fix @node and @section.
21884
21885 2009-03-03  Simon Josefsson  <simon@josefsson.org>
21886
21887         * doc/gnulib.texi: Link to sections for ld version script and
21888         visibility.
21889         * doc/visibility.texi: Add @node and @section.
21890         * modules/ld-version-script: New module.
21891         * m4/ld-version-script.m4: New file.
21892         * doc/ld-version-script.texi: New file.
21893
21894 2009-03-02  David Lutterkort  <lutter@redhat.com>
21895
21896         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
21897         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
21898
21899 2009-03-02  Bruno Haible  <bruno@clisp.org>
21900
21901         * doc/visibility.texi: Mention libtool's -export-symbols option.
21902
21903 2009-03-02  Jim Meyering  <meyering@redhat.com>
21904
21905         announce-gen: new option: --no-print-checksums
21906         * build-aux/announce-gen (usage): Describe it.
21907         (print_checksums): Print a newline here, not in the [*] footnote.
21908         (main): Honor it.
21909
21910 2009-03-01  Bruno Haible  <bruno@clisp.org>
21911
21912         Use socklen_t in the native Windows replacements prototypes.
21913         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
21914         instead of 'int'.
21915         * lib/getsockopt.c (rpl_getsockopt): Likewise.
21916         * lib/setsockopt.c (rpl_setsockopt): Likewise.
21917         * modules/getsockopt (Depends-on): Add socklen.
21918         * modules/setsockopt (Depends-on): Add socklen.
21919
21920 2009-03-01  Bruno Haible  <bruno@clisp.org>
21921
21922         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
21923         least 4.2.
21924
21925 2009-03-01  Eric Blake  <ebb9@byu.net>
21926             Bruno Haible  <bruno@clisp.org>
21927
21928         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
21929         error messages.
21930         * lib/wait-process.c (wait_subprocess): Omit error message about
21931         deadly signal sent to the child of termsigp != NULL.
21932
21933 2009-03-01  Eric Blake  <ebb9@byu.net>
21934
21935         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
21936
21937 2009-03-01  Bruno Haible  <bruno@clisp.org>
21938
21939         Avoid a gcc warning.
21940         * tests/test-sched.c (b): Make global.
21941         Reported by Eric Blake.
21942
21943 2009-01-19  Martin Lambers  <marlam@marlam.de>
21944
21945         Provide POSIX semantics for socket timeout options on W32.
21946         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
21947         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
21948         * modules/setsockopt: Depend on sys_time module for struct timeval.
21949         * modules/getsockopt: Depend on sys_time module for struct timeval.
21950
21951 2009-03-01  Simon Josefsson  <simon@josefsson.org>
21952
21953         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
21954         __USE_GNU, for consistency with netdb.in.h.
21955         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
21956
21957 2009-03-01  Bruno Haible  <bruno@clisp.org>
21958
21959         More support for FreeMiNT.
21960         * lib/fseeko.c (rpl_fseeko): Complete last commit.
21961         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
21962
21963 2009-03-01  Bruno Haible  <bruno@clisp.org>
21964
21965         More support for FreeMiNT.
21966         * lib/fpurge.c (fpurge): Correct last commit.
21967         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
21968
21969 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21970
21971         Fix unportable awk script in vc-list-files.
21972         * build-aux/vc-list-files: In the replacement awk script, use
21973         substr with a second argument of 1, not zero.
21974         Report by Simon Josefsson.
21975
21976 2009-02-28  Bruno Haible  <bruno@clisp.org>
21977
21978         More support for FreeMiNT.
21979         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
21980         to FreeMiNT today.
21981         * lib/fwriting.c (fwriting): Likewise.
21982         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
21983
21984 2009-02-28  Bruno Haible  <bruno@clisp.org>
21985
21986         * tests/test-freadseek.c (main): Disable test beyond end of file on
21987         FreeMiNT.
21988         * tests/test-ftello.c (main): Likewise.
21989         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
21990
21991 2009-02-28  Bruno Haible  <bruno@clisp.org>
21992
21993         Add tentative support for FreeMiNT.
21994         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
21995         * lib/fpurge.c (fpurge): Likewise.
21996         * lib/freadable.c (freadable): Likewise.
21997         * lib/freading.c (freading): Likewise.
21998         * lib/freadptr.c (freadptr): Likewise.
21999         * lib/freadseek.c (freadptrinc): Likewise.
22000         * lib/fseeko.c (rpl_fseeko): Likewise.
22001         * lib/fseterr.c (fseterr): Likewise.
22002         * lib/fwritable.c (fwritable): Likewise.
22003         * lib/fwriting.c (fwriting): Likewise.
22004         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
22005         Hourihane.
22006         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
22007
22008 2009-02-28  Bruno Haible  <bruno@clisp.org>
22009
22010         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
22011         SIGCHLD.
22012         Reported by Jim Meyering.
22013
22014 2009-02-28  Bruno Haible  <bruno@clisp.org>
22015
22016         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
22017         Mention the results of these tests on various platforms.
22018         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
22019         order.
22020         * doc/posix-functions/printf.texi: Likewise.
22021         * doc/posix-functions/snprintf.texi: Likewise.
22022         * doc/posix-functions/sprintf.texi: Likewise.
22023         * doc/posix-functions/vfprintf.texi: Likewise.
22024         * doc/posix-functions/vprintf.texi: Likewise.
22025         * doc/posix-functions/vsnprintf.texi: Likewise.
22026         * doc/posix-functions/vsprintf.texi: Likewise.
22027         * doc/glibc-functions/obstack_printf.texi: Likewise.
22028         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
22029
22030 2009-02-28  Bruno Haible  <bruno@clisp.org>
22031
22032         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
22033         Reported by Loïc Minier <lool@dooz.org>.
22034
22035 2009-02-27  Bruno Haible  <bruno@clisp.org>
22036
22037         * gnulib-tool (func_import): Make the sed expression used to create the
22038         sed script for updating the .gitignore file POSIX compliant.
22039         Reported by Eric Blake.
22040
22041 2009-02-27  Bruno Haible  <bruno@clisp.org>
22042
22043         * gnulib-tool (sed): Don't alias as "sed --posix".
22044         Reported by Eric Blake.
22045
22046 2009-02-27  Bruno Haible  <bruno@clisp.org>
22047
22048         Avoid test link errors.
22049         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
22050         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
22051         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
22052         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
22053         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
22054
22055 2009-02-27  Bruno Haible  <bruno@clisp.org>
22056
22057         Avoid spurious "(cached)" in configure output.
22058         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
22059         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
22060         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
22061         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
22062         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
22063         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
22064         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
22065         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
22066         Reported by Eric Blake.
22067
22068 2009-02-27  Eric Blake  <ebb9@byu.net>
22069
22070         printf: fix regression in previous patch
22071         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
22072
22073 2009-02-27  Bruno Haible  <bruno@clisp.org>
22074
22075         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
22076         value.
22077         * lib/stdint.in.h: Likewise.
22078         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
22079
22080 2009-02-27  Eric Blake  <ebb9@byu.net>
22081
22082         doc: mention more functions added in cygwin 1.7.0
22083         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
22084         addition.
22085         * doc/posix-functions/open_wmemstream.texi: Likewise.
22086         * doc/posix-functions/wcsnlen.texi: Likewise.
22087         * doc/posix-functions/wcsnrtombs.texi: Likewise.
22088         * doc/posix-functions/wcstod.texi: Likewise.
22089         * doc/posix-functions/wcstof.texi: Likewise.
22090         * doc/posix-functions/wcstoimax.texi: Likewise.
22091         * doc/posix-functions/wcstok.texi: Likewise.
22092         * doc/posix-functions/wcstoumax.texi: Likewise.
22093
22094         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
22095         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
22096         * doc/posix-functions/fprintf.texi: Update.
22097         * doc/posix-functions/printf.texi: Update.
22098         * doc/posix-functions/snprintf.texi: Update.
22099         * doc/posix-functions/sprintf.texi: Update.
22100         * doc/posix-functions/vfprintf.texi: Update.
22101         * doc/posix-functions/vprintf.texi: Update.
22102         * doc/posix-functions/vsnprintf.texi: Update.
22103         * doc/posix-functions/vsprintf.texi: Update.
22104         * doc/glibc-functions/obstack_printf.texi: Update.
22105         * doc/glibc-functions/obstack_vprintf.texi: Update.
22106
22107 2009-02-26  Eric Blake  <ebb9@byu.net>
22108
22109         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
22110         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
22111         compilation bug by using runtime conversion.
22112         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
22113         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
22114         * modules/ceill-tests (Files): Use nan.h.
22115         * modules/floorl-tests (Files): Likewise.
22116         * modules/frexpl-tests (Files): Likewise.
22117         * modules/isnanl-tests (Files): Likewise.
22118         * modules/ldexpl-tests (Files): Likewise.
22119         * modules/roundl-tests (Files): Likewise.
22120         * modules/truncl-tests (Files): Likewise.
22121         * tests/test-ceill.c (main): Use a working NaN.
22122         * tests/test-floorl.c (main): Likewise.
22123         * tests/test-frexpl.c (main): Likewise.
22124         * tests/test-isnan.c (test_long_double): Likewise.
22125         * tests/test-isnanl.h (main): Likewise.
22126         * tests/test-ldexpl.h (main): Likewise.
22127         * tests/test-roundl.h (main): Likewise.
22128         * tests/test-truncl.h (main): Likewise.
22129         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
22130
22131 2009-02-26  Eric Blake  <ebb9@byu.net>
22132             Bruno Haible  <bruno@clisp.org>
22133
22134         Work around a *printf bug with %ls on Solaris.
22135         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
22136         precision is specified, sprintf stops converting the wide string
22137         argument when the number of bytes that have been produced by this
22138         conversion equals or exceeds the precision.
22139         * doc/posix-functions/fprintf.texi: Update.
22140         * doc/posix-functions/printf.texi: Update.
22141         * doc/posix-functions/snprintf.texi: Update.
22142         * doc/posix-functions/sprintf.texi: Update.
22143         * doc/posix-functions/vfprintf.texi: Update.
22144         * doc/posix-functions/vprintf.texi: Update.
22145         * doc/posix-functions/vsnprintf.texi: Update.
22146         * doc/posix-functions/vsprintf.texi: Update.
22147         * doc/glibc-functions/obstack_printf.texi: Update.
22148         * doc/glibc-functions/obstack_vprintf.texi: Update.
22149
22150 2009-02-26  Eric Blake  <ebb9@byu.net>
22151
22152         stdlib: favor compiler check of random.h
22153         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
22154         to avoid an ObjC random.h installed by Swarm.
22155
22156 2009-02-26  Bruno Haible  <bruno@clisp.org>
22157
22158         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
22159         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
22160         Reported by Gary V. Vaughan <gary@gnu.org>.
22161
22162 2009-02-26  Bruno Haible  <bruno@clisp.org>
22163
22164         Fix *printf behaviour regarding the %ls directive.
22165         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
22166         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
22167         NEED_PRINTF_DIRECTIVE_LS.
22168         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
22169         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
22170         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
22171         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
22172         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
22173         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
22174         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
22175         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
22176         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
22177         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
22178         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
22179         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
22180         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
22181         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
22182         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
22183         * doc/posix-functions/fprintf.texi: Update.
22184         * doc/posix-functions/printf.texi: Update.
22185         * doc/posix-functions/snprintf.texi: Update.
22186         * doc/posix-functions/sprintf.texi: Update.
22187         * doc/posix-functions/vfprintf.texi: Update.
22188         * doc/posix-functions/vprintf.texi: Update.
22189         * doc/posix-functions/vsnprintf.texi: Update.
22190         * doc/posix-functions/vsprintf.texi: Update.
22191         * doc/glibc-functions/obstack_printf.texi: Update.
22192         * doc/glibc-functions/obstack_vprintf.texi: Update.
22193         Reported by Eric Blake.
22194
22195 2009-02-25  Bruno Haible  <bruno@clisp.org>
22196
22197         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
22198         with known value.
22199         Reported by Gary V. Vaughan <gary@gnu.org>.
22200
22201 2009-02-25  Bruno Haible  <bruno@clisp.org>
22202
22203         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
22204         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
22205         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
22206         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
22207         Reported by Gary V. Vaughan <gary@gnu.org>.
22208
22209 2009-02-25  Bruno Haible  <bruno@clisp.org>
22210
22211         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
22212         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
22213         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
22214         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
22215         Reported by Gary V. Vaughan <gary@gnu.org>.
22216
22217 2009-02-25  Eric Blake  <ebb9@byu.net>
22218
22219         tests: skip fseek/ftell tests if ungetc is broken
22220         * m4/ungetc.m4: New file.
22221         * modules/fseek-tests: Split test, so ungetc dependency is
22222         separate from rest of test.
22223         * modules/fseeko-tests: Likewise.
22224         * modules/ftell-tests: Likewise.
22225         * modules/ftello-tests: Likewise.
22226         * tests/test-fseek.c (main): Isolate ungetc dependency.
22227         * tests/test-fseeko.c (main): Likewise.
22228         * tests/test-ftell.c (main): Likewise.
22229         * tests/test-ftello.c (main): Likewise.
22230         * tests/test-fseek2.sh: New file.
22231         * tests/test-fseeko2.sh: Likewise.
22232         * tests/test-ftell2.sh: Likewise.
22233         * tests/test-ftello2.sh: Likewise.
22234
22235 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
22236
22237         test-getaddrinfo: fix usage of skip return code 77
22238         * tests/test-gettaddrinfo.c: Return skip code 77 only
22239         for first occurance of skip (4x77 is not 77)
22240
22241 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
22242
22243         strtod: avoid C99 decl-after-statement
22244         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
22245
22246 2009-02-24  Eric Blake  <ebb9@byu.net>
22247
22248         strtod: detect HP-UX 11.31 bug
22249         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
22250         Reported by Gary V. Vaughan.
22251
22252 2009-02-23  Bruno Haible  <bruno@clisp.org>
22253
22254         Fix invalid read past end of memory block.
22255         * lib/vasnprintf.c (DCHAR_SET): Define.
22256         (local_wcslen): Define only when needed.
22257         (local_strnlen, local_wcsnlen): New functions.
22258         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
22259         directives that involve a conversion ourselves.
22260         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
22261         wcsnlen, mbrtowc, wcrtomb.
22262         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
22263         * tests/test-vasprintf-posix.c (test_function): Likewise.
22264         * tests/test-snprintf-posix.h (test_function): Likewise.
22265         * tests/test-sprintf-posix.h (test_function): Likewise.
22266         Reported by Ben Pfaff <blp@cs.stanford.edu>.
22267
22268 2009-02-22  Bruno Haible  <bruno@clisp.org>
22269
22270         Implement new clarified decomposition of Hangul syllables.
22271         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
22272         of type LTV, return only a pairwise decomposition.
22273         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
22274         Likewise.
22275         * tests/uninorm/test-decomposition.c (main): Updated expected result.
22276         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
22277         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
22278
22279 2009-02-22  Bruno Haible  <bruno@clisp.org>
22280
22281         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
22282         zero-length results and shrink excess allocated memory.
22283         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
22284         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
22285         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
22286         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
22287         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
22288         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
22289         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
22290         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
22291         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
22292         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
22293         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
22294         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
22295
22296 2009-02-21  Bruno Haible  <bruno@clisp.org>
22297
22298         * doc/gnulib.texi: Include safe-alloc.texi earlier.
22299         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
22300         spaces after a period. Put a space between a macro name and its
22301         argument list. Trivial rewordings.
22302         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
22303         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
22304         (main): Return 0 explicitly.
22305
22306 2009-02-21  Bruno Haible  <bruno@clisp.org>
22307
22308         Tests for module 'uninorm/filter'.
22309         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
22310         * modules/uninorm/filter-tests: New file.
22311
22312         New module 'uninorm/filter'.
22313         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
22314         uninorm_filter_flush, uninorm_filter_free): New declarations.
22315         * lib/uninorm/uninorm-filter.c: New file.
22316         * modules/uninorm/filter: New file.
22317
22318 2009-02-21  Bruno Haible  <bruno@clisp.org>
22319
22320         Tests for module 'uninorm/nfkc'.
22321         * tests/uninorm/test-nfkc.c: New file.
22322         * tests/uninorm/test-u8-nfkc.c: New file.
22323         * tests/uninorm/test-u16-nfkc.c: New file.
22324         * tests/uninorm/test-u32-nfkc.c: New file.
22325         * tests/uninorm/test-u32-nfkc-big.sh: New file.
22326         * tests/uninorm/test-u32-nfkc-big.c: New file.
22327         * modules/uninorm/nfkc-tests: New file.
22328
22329         New module 'uninorm/nfkc'.
22330         * lib/uninorm/nfkc.c: New file.
22331         * modules/uninorm/nfkc: New file.
22332
22333         Tests for module 'uninorm/nfkd'.
22334         * tests/uninorm/test-nfkd.c: New file.
22335         * tests/uninorm/test-u8-nfkd.c: New file.
22336         * tests/uninorm/test-u16-nfkd.c: New file.
22337         * tests/uninorm/test-u32-nfkd.c: New file.
22338         * tests/uninorm/test-u32-nfkd-big.sh: New file.
22339         * tests/uninorm/test-u32-nfkd-big.c: New file.
22340         * modules/uninorm/nfkd-tests: New file.
22341
22342         New module 'uninorm/nfkd'.
22343         * lib/uninorm/nfkd.c: New file.
22344         * modules/uninorm/nfkd: New file.
22345
22346         Tests for module 'uninorm/nfc'.
22347         * tests/uninorm/test-nfc.c: New file.
22348         * tests/uninorm/test-u8-nfc.c: New file.
22349         * tests/uninorm/test-u16-nfc.c: New file.
22350         * tests/uninorm/test-u32-nfc.c: New file.
22351         * tests/uninorm/test-u32-nfc-big.sh: New file.
22352         * tests/uninorm/test-u32-nfc-big.c: New file.
22353         * modules/uninorm/nfc-tests: New file.
22354
22355         New module 'uninorm/nfc'.
22356         * lib/uninorm/nfc.c: New file.
22357         * modules/uninorm/nfc: New file.
22358
22359         Tests for module 'uninorm/nfd'.
22360         * tests/uninorm/test-nfd.c: New file.
22361         * tests/uninorm/test-u8-nfd.c: New file.
22362         * tests/uninorm/test-u16-nfd.c: New file.
22363         * tests/uninorm/test-u32-nfd.c: New file.
22364         * tests/uninorm/test-u32-nfd-big.sh: New file.
22365         * tests/uninorm/test-u32-nfd-big.c: New file.
22366         * tests/uninorm/test-u32-normalize-big.h: New file.
22367         * tests/uninorm/test-u32-normalize-big.c: New file.
22368         * tests/uninorm/NormalizationTest.txt: New file, created from
22369         Unicode 5.1.0 NormalizationTest.txt.
22370         * modules/uninorm/nfd-tests: New file.
22371
22372         New module 'uninorm/nfd'.
22373         * lib/uninorm/nfd.c: New file.
22374         * modules/uninorm/nfd: New file.
22375
22376         New module 'uninorm/u32-normalize'.
22377         * lib/uninorm/u32-normalize.c: New file.
22378         * modules/uninorm/u32-normalize: New file.
22379
22380         New module 'uninorm/u16-normalize'.
22381         * lib/uninorm/u16-normalize.c: New file.
22382         * modules/uninorm/u16-normalize: New file.
22383
22384         New module 'uninorm/u8-normalize'.
22385         * lib/uninorm/u8-normalize.c: New file.
22386         * lib/uninorm/normalize-internal.h: New file.
22387         * lib/uninorm/u-normalize-internal.h: New file.
22388         * modules/uninorm/u8-normalize: New file.
22389
22390         New module 'uninorm/decompose-internal'.
22391         * lib/uninorm/decompose-internal.c: New file.
22392         * modules/uninorm/decompose-internal: New file.
22393
22394         Tests for module 'uninorm/composition'.
22395         * tests/uninorm/test-composition.c: New file.
22396         * modules/uninorm/composition-tests: New file.
22397
22398         New module 'uninorm/composition'.
22399         * lib/uninorm/composition.c: New file.
22400         * lib/uninorm/composition-table.gperf: New file, generated by
22401         gen-uni-tables.
22402         * modules/uninorm/composition: New file.
22403
22404         Tests for module 'uninorm/compat-decomposition'.
22405         * tests/uninorm/test-compat-decomposition.c: New file.
22406         * modules/uninorm/compat-decomposition-tests: New file.
22407
22408         New module 'uninorm/compat-decomposition'.
22409         * lib/uninorm/decompose-internal.h: New file.
22410         * lib/uninorm/compat-decomposition.c: New file.
22411         * modules/uninorm/compat-decomposition: New file.
22412
22413         Tests for module 'uninorm/canonical-decomposition'.
22414         * tests/uninorm/test-canonical-decomposition.c: New file.
22415         * modules/uninorm/canonical-decomposition-tests: New file.
22416
22417         New module 'uninorm/canonical-decomposition'.
22418         * lib/uninorm/canonical-decomposition.c: New file.
22419         * modules/uninorm/canonical-decomposition: New file.
22420
22421         Tests for module 'uninorm/decomposition'.
22422         * tests/uninorm/test-decomposition.c: New file.
22423         * modules/uninorm/decomposition-tests: New file.
22424
22425         New module 'uninorm/decomposition'.
22426         * lib/uninorm/decomposition.c: New file.
22427         * modules/uninorm/decomposition: New file.
22428
22429         New module 'uninorm/decomposition-table'.
22430         * lib/uninorm/decomposition-table.h: New file.
22431         * lib/uninorm/decomposition-table.c: New file.
22432         * lib/uninorm/decomposition-table1.h: New file, generated by
22433         gen-uni-tables.
22434         * lib/uninorm/decomposition-table2.h: New file, generated by
22435         gen-uni-tables.
22436         * modules/uninorm/decomposition-table: New file.
22437
22438         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
22439         (UC_DECOMP_*): New enumeration items.
22440         (get_decomposition): New function.
22441         (struct decomp_table): New type.
22442         (output_decomposition, output_decomposition_tables): New functions.
22443         (unicode_composition_exclusions): New variable.
22444         (fill_composition_exclusions, debug_output_composition_tables): New
22445         functions.
22446         (main): Accept one more argument. Invoke fill_composition_exclusions.
22447         Output decomposition and composition tables.
22448
22449         New module 'uninorm/base'.
22450         * lib/uninorm.h: New file.
22451         * lib/unictype.h: Update comment.
22452         * modules/uninorm/base: New file.
22453
22454 2009-02-21  David Lutterkort  <lutter@redhat.com>
22455
22456         Tests for module 'safe-alloc'.
22457         * tests/test-safe-alloc.c: New file.
22458         * modules/safe-alloc-tests: New file.
22459
22460         New module 'safe-alloc'.
22461         * lib/safe-alloc.h: New file.
22462         * lib/safe-alloc.c: New file.
22463         * m4/safe-alloc.m4: New file.
22464         * modules/safe-alloc: New file.
22465         * doc/safe-alloc.texi: New file.
22466         * doc/gnulib.texi: Include it.
22467         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
22468         safe-alloc.
22469
22470 2009-02-18  Bruno Haible  <bruno@clisp.org>
22471
22472         Fix link error on non-glibc systems.
22473         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
22474         variable.
22475         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
22476
22477 2009-02-18  Jim Meyering  <meyering@redhat.com>
22478
22479         fts: avoid used-uninitialized error due to recent change
22480         * lib/fts.c (fts_read): Guard uses of the new member,
22481         parent->fts_n_dirs_remaining, since it's not relevant for
22482         the parent of a directory specified on the command-line.
22483
22484 2009-02-17  James Youngman  <jay@gnu.org>
22485             Bruno Haible  <bruno@clisp.org>
22486
22487         * m4/include_next.m4: Reformulate comment.
22488
22489 2009-02-16  Jim Meyering  <meyering@redhat.com>
22490
22491         fts: add #if guards so that the fts_lgpl module still builds
22492         * lib/fts.c: Guard just-added hash-table-using parts with
22493         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
22494         Reported by Simon Josefsson.
22495
22496 2009-02-15  Bruno Haible  <bruno@clisp.org>
22497
22498         * modules/array-mergesort-tests: New file.
22499         * tests/test-array-mergesort.c: New file.
22500
22501         New module 'array-mergesort'.
22502         * modules/array-mergesort: New file.
22503         * lib/array-mergesort.h: New file.
22504
22505 2009-02-15  Bruno Haible  <bruno@clisp.org>
22506
22507         Fix 2009-02-07 commit.
22508         * lib/gen-uni-tables.c (output_predicate, output_category,
22509         output_combclass, output_bidi_category, output_decimal_digit,
22510         output_digit, output_numeric, output_mirror, output_scripts,
22511         output_ident_category, output_simple_mapping): Fix format directives.
22512         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
22513
22514 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
22515
22516         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
22517         fixes are available from IBM.
22518
22519 2009-02-13  Jim Meyering  <meyering@redhat.com>
22520
22521         fts: arrange not to stat non-directories in more cases
22522         This makes GNU find (when it doesn't need to stat each file)
22523         *much* more efficient at traversing reiserfs file systems.
22524         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
22525         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
22526         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
22527         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
22528         (leaf_optimization_applies): New function.
22529         (LCO_hash, LCO_compare): New helper functions.
22530         (link_count_optimize_ok): New function.
22531         (fts_stat): Initialize new member (if dir).
22532         (fts_read): Decrement parent's fts_n_dirs_remaining count if
22533         we've just stat'ed a directory.  Skip the stat call when possible.
22534         ---
22535         Note this AFS-related exchange:
22536         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
22537         and note find's pioctl call in find/fstype.c.
22538         But that is necessary only if you want to enable the
22539         optimization for AFS, and for now, I don't.
22540
22541         fts: move a function definition "up" (no semantic change)
22542         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
22543         "up" to precede upcoming use of a related function.
22544
22545 2009-02-11  Jim Meyering  <meyering@redhat.com>
22546
22547         fts: correct internal computation of nlinks (optimization-related)
22548         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
22549         whether the current entry is a directory, so don't test it.
22550
22551 2009-02-10  Bruno Haible  <bruno@clisp.org>
22552
22553         Tests for module 'uniwbrk/ulc-wordbreaks'.
22554         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
22555         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
22556         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
22557
22558         Tests for module 'uniwbrk/u32-wordbreaks'.
22559         * modules/uniwbrk/u32-wordbreaks-tests: New file.
22560         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
22561
22562         Tests for module 'uniwbrk/u16-wordbreaks'.
22563         * modules/uniwbrk/u16-wordbreaks-tests: New file.
22564         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
22565
22566         Tests for module 'uniwbrk/u8-wordbreaks'.
22567         * modules/uniwbrk/u8-wordbreaks-tests: New file.
22568         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
22569
22570 2009-02-10  Bruno Haible  <bruno@clisp.org>
22571
22572         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
22573         property.
22574         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
22575         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
22576         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
22577
22578 2009-02-10  Simon Josefsson  <simon@josefsson.org>
22579
22580         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
22581         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
22582
22583 2009-02-10  Bruno Haible  <bruno@clisp.org>
22584
22585         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
22586         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
22587         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
22588         * lib/unilbrk/u8-possible-linebreaks.c: Update.
22589         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
22590         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
22591
22592 2009-02-09  Simon Josefsson  <simon@josefsson.org>
22593
22594         * lib/sockets.h (gl_fd_to_handle): New function.
22595
22596         * tests/test-sockets.c: Call gl_fd_to_handle.
22597
22598 2009-02-09  Bruno Haible  <bruno@clisp.org>
22599
22600         * doc/havelib.texi: Document the conventions on bi-arch systems.
22601
22602 2009-02-08  Bruno Haible  <bruno@clisp.org>
22603
22604         Document the AC_LIB_LINKFLAGS macro.
22605         * doc/havelib.texi: New file, mostly written on 2005-05-24.
22606         * doc/gnulib.texi: Include it.
22607
22608 2009-02-08  Bruno Haible  <bruno@clisp.org>
22609
22610         Fix wrong order of sections, compared to TOC.
22611         * doc/gnulib.texi: Include relocatable-maint.texi after the
22612         "Regular expressions" node, not before.
22613
22614 2009-02-08  Bruno Haible  <bruno@clisp.org>
22615
22616         Tests for module 'unicase/totitle'.
22617         * modules/unicase/totitle-tests: New file.
22618
22619         Tests for module 'unicase/tolower'.
22620         * modules/unicase/tolower-tests: New file.
22621
22622         Tests for module 'unicase/toupper'.
22623         * modules/unicase/toupper-tests: New file.
22624         * tests/unicase/test-mapping-part1.h: New file.
22625         * tests/unicase/test-mapping-part2.h: New file.
22626
22627         New module 'unicase/totitle'.
22628         * modules/unicase/totitle: New file.
22629         * lib/unicase/totitle.c: New file.
22630
22631         New module 'unicase/tolower'.
22632         * modules/unicase/tolower: New file.
22633         * lib/unicase/tolower.c: New file.
22634
22635         New module 'unicase/toupper'.
22636         * modules/unicase/toupper: New file.
22637         * lib/unicase/toupper.c: New file.
22638         * lib/unicase/simple-mapping.h: New file.
22639
22640         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
22641         (mapping_table): New structure.
22642         (output_simple_mapping): New function.
22643         (main): Invoke output_simple_mapping_test and output_simple_mapping.
22644         * modules/gen-uni-tables (Description): Update.
22645         * lib/unicase/toupper.h: New file, automatically generated by
22646         gen-uni-tables.
22647         * lib/unicase/tolower.h: New file, automatically generated by
22648         gen-uni-tables.
22649         * lib/unicase/totitle.h: New file, automatically generated by
22650         gen-uni-tables.
22651         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
22652         gen-uni-tables.
22653         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
22654         gen-uni-tables.
22655         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
22656         gen-uni-tables.
22657
22658         New module 'unicase/base'.
22659         * modules/unicase/base: New file.
22660         * lib/unicase.h: New file.
22661
22662 2009-02-08  Bruno Haible  <bruno@clisp.org>
22663
22664         New module 'uniwbrk/ulc-wordbreaks'.
22665         * modules/uniwbrk/ulc-wordbreaks: New file.
22666         * lib/uniwbrk/ulc-wordbreaks.c: New file.
22667
22668         New module 'uniwbrk/u32-wordbreaks'.
22669         * modules/uniwbrk/u32-wordbreaks: New file.
22670         * lib/uniwbrk/u32-wordbreaks.c: New file.
22671
22672         New module 'uniwbrk/u16-wordbreaks'.
22673         * modules/uniwbrk/u16-wordbreaks: New file.
22674         * lib/uniwbrk/u16-wordbreaks.c: New file.
22675
22676         New module 'uniwbrk/u8-wordbreaks'.
22677         * modules/uniwbrk/u8-wordbreaks: New file.
22678         * lib/uniwbrk/u8-wordbreaks.c: New file.
22679         * lib/uniwbrk/u-wordbreaks.h: New file.
22680
22681         New module 'uniwbrk/table'.
22682         * modules/uniwbrk/table: New file.
22683         * lib/uniwbrk/wbrktable.h: New file.
22684         * lib/uniwbrk/wbrktable.c: New file.
22685
22686         New module 'uniwbrk/wordbreak-property'.
22687         * modules/uniwbrk/wordbreak-property: New file.
22688         * lib/uniwbrk/wordbreak-property.c: New file.
22689
22690         * lib/gen-uni-tables.c (WBP_*): New enum items.
22691         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
22692         (unicode_org_wbp): New variable.
22693         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
22694         New functions.
22695         (wbp_table): New structure.
22696         (output_wbp, output_wbrk_tables): New functions.
22697         (main): Accept additional argument. Invoke fill_org_wbp,
22698         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
22699         output_wbrk_tables.
22700         * modules/gen-uni-tables (Description): Update.
22701         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
22702         gen-uni-tables.
22703
22704         New module 'uniwbrk/base'.
22705         * modules/uniwbrk/base: New file.
22706         * lib/uniwbrk.h: New file.
22707
22708 2009-02-08  Bruno Haible  <bruno@clisp.org>
22709
22710         Update to Unicode 5.1.0.
22711         * lib/gen-uni-tables.c (is_property_alphabetic): Include
22712         U+2185..U+2188.
22713         (is_property_default_ignorable_code_point): Don't include characters
22714         of category Cc or Cs and not-a-characters.
22715         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
22716         U+0D79, U+109E, U+109F, U+A60C.
22717         * lib/unictype/bidi_of.h: Regenerated.
22718         * lib/unictype/blocks.h: Regenerated.
22719         * lib/unictype/categ_C.h: Regenerated.
22720         * lib/unictype/categ_Cf.h: Regenerated.
22721         * lib/unictype/categ_Cn.h: Regenerated.
22722         * lib/unictype/categ_L.h: Regenerated.
22723         * lib/unictype/categ_Ll.h: Regenerated.
22724         * lib/unictype/categ_Lm.h: Regenerated.
22725         * lib/unictype/categ_Lo.h: Regenerated.
22726         * lib/unictype/categ_Lu.h: Regenerated.
22727         * lib/unictype/categ_M.h: Regenerated.
22728         * lib/unictype/categ_Mc.h: Regenerated.
22729         * lib/unictype/categ_Me.h: Regenerated.
22730         * lib/unictype/categ_Mn.h: Regenerated.
22731         * lib/unictype/categ_N.h: Regenerated.
22732         * lib/unictype/categ_Nd.h: Regenerated.
22733         * lib/unictype/categ_Nl.h: Regenerated.
22734         * lib/unictype/categ_No.h: Regenerated.
22735         * lib/unictype/categ_P.h: Regenerated.
22736         * lib/unictype/categ_Pd.h: Regenerated.
22737         * lib/unictype/categ_Pe.h: Regenerated.
22738         * lib/unictype/categ_Pf.h: Regenerated.
22739         * lib/unictype/categ_Pi.h: Regenerated.
22740         * lib/unictype/categ_Po.h: Regenerated.
22741         * lib/unictype/categ_Ps.h: Regenerated.
22742         * lib/unictype/categ_S.h: Regenerated.
22743         * lib/unictype/categ_Sk.h: Regenerated.
22744         * lib/unictype/categ_Sm.h: Regenerated.
22745         * lib/unictype/categ_So.h: Regenerated.
22746         * lib/unictype/categ_of.h: Regenerated.
22747         * lib/unictype/combining.h: Regenerated.
22748         * lib/unictype/ctype_alnum.h: Regenerated.
22749         * lib/unictype/ctype_alpha.h: Regenerated.
22750         * lib/unictype/ctype_graph.h: Regenerated.
22751         * lib/unictype/ctype_lower.h: Regenerated.
22752         * lib/unictype/ctype_print.h: Regenerated.
22753         * lib/unictype/ctype_punct.h: Regenerated.
22754         * lib/unictype/ctype_upper.h: Regenerated.
22755         * lib/unictype/decdigit.h: Regenerated.
22756         * lib/unictype/digit.h: Regenerated.
22757         * lib/unictype/mirror.h: Regenerated.
22758         * lib/unictype/numeric.h: Regenerated.
22759         * lib/unictype/pr_alphabetic.h: Regenerated.
22760         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
22761         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
22762         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
22763         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
22764         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
22765         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
22766         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
22767         * lib/unictype/pr_combining.h: Regenerated.
22768         * lib/unictype/pr_dash.h: Regenerated.
22769         * lib/unictype/pr_decimal_digit.h: Regenerated.
22770         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
22771         * lib/unictype/pr_deprecated.h: Regenerated.
22772         * lib/unictype/pr_diacritic.h: Regenerated.
22773         * lib/unictype/pr_extender.h: Regenerated.
22774         * lib/unictype/pr_format_control.h: Regenerated.
22775         * lib/unictype/pr_grapheme_base.h: Regenerated.
22776         * lib/unictype/pr_grapheme_extend.h: Regenerated.
22777         * lib/unictype/pr_grapheme_link.h: Regenerated.
22778         * lib/unictype/pr_id_continue.h: Regenerated.
22779         * lib/unictype/pr_id_start.h: Regenerated.
22780         * lib/unictype/pr_ideographic.h: Regenerated.
22781         * lib/unictype/pr_ignorable_control.h: Regenerated.
22782         * lib/unictype/pr_lowercase.h: Regenerated.
22783         * lib/unictype/pr_math.h: Regenerated.
22784         * lib/unictype/pr_numeric.h: Regenerated.
22785         * lib/unictype/pr_other_alphabetic.h: Regenerated.
22786         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
22787         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
22788         * lib/unictype/pr_other_id_continue.h: Regenerated.
22789         * lib/unictype/pr_other_lowercase.h: Regenerated.
22790         * lib/unictype/pr_other_math.h: Regenerated.
22791         * lib/unictype/pr_punctuation.h: Regenerated.
22792         * lib/unictype/pr_sentence_terminal.h: Regenerated.
22793         * lib/unictype/pr_soft_dotted.h: Regenerated.
22794         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
22795         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
22796         * lib/unictype/pr_unified_ideograph.h: Regenerated.
22797         * lib/unictype/pr_uppercase.h: Regenerated.
22798         * lib/unictype/pr_xid_continue.h: Regenerated.
22799         * lib/unictype/pr_xid_start.h: Regenerated.
22800         * lib/unictype/pr_zero_width.h: Regenerated.
22801         * lib/unictype/scripts.h: Regenerated.
22802         * lib/unictype/scripts_byname.gperf: Regenerated.
22803         * lib/unictype/sy_java_ident.h: Regenerated.
22804         * lib/unilbrk/lbrkprop1.h: Regenerated.
22805         * lib/unilbrk/lbrkprop2.h: Regenerated.
22806         * tests/unictype/test-categ_C.c: Regenerated.
22807         * tests/unictype/test-categ_Cf.c: Regenerated.
22808         * tests/unictype/test-categ_Cn.c: Regenerated.
22809         * tests/unictype/test-categ_L.c: Regenerated.
22810         * tests/unictype/test-categ_Ll.c: Regenerated.
22811         * tests/unictype/test-categ_Lm.c: Regenerated.
22812         * tests/unictype/test-categ_Lo.c: Regenerated.
22813         * tests/unictype/test-categ_Lu.c: Regenerated.
22814         * tests/unictype/test-categ_M.c: Regenerated.
22815         * tests/unictype/test-categ_Mc.c: Regenerated.
22816         * tests/unictype/test-categ_Me.c: Regenerated.
22817         * tests/unictype/test-categ_Mn.c: Regenerated.
22818         * tests/unictype/test-categ_N.c: Regenerated.
22819         * tests/unictype/test-categ_Nd.c: Regenerated.
22820         * tests/unictype/test-categ_Nl.c: Regenerated.
22821         * tests/unictype/test-categ_No.c: Regenerated.
22822         * tests/unictype/test-categ_P.c: Regenerated.
22823         * tests/unictype/test-categ_Pd.c: Regenerated.
22824         * tests/unictype/test-categ_Pe.c: Regenerated.
22825         * tests/unictype/test-categ_Pf.c: Regenerated.
22826         * tests/unictype/test-categ_Pi.c: Regenerated.
22827         * tests/unictype/test-categ_Po.c: Regenerated.
22828         * tests/unictype/test-categ_Ps.c: Regenerated.
22829         * tests/unictype/test-categ_S.c: Regenerated.
22830         * tests/unictype/test-categ_Sk.c: Regenerated.
22831         * tests/unictype/test-categ_Sm.c: Regenerated.
22832         * tests/unictype/test-categ_So.c: Regenerated.
22833         * tests/unictype/test-ctype_alnum.c: Regenerated.
22834         * tests/unictype/test-ctype_alpha.c: Regenerated.
22835         * tests/unictype/test-ctype_graph.c: Regenerated.
22836         * tests/unictype/test-ctype_lower.c: Regenerated.
22837         * tests/unictype/test-ctype_print.c: Regenerated.
22838         * tests/unictype/test-ctype_punct.c: Regenerated.
22839         * tests/unictype/test-ctype_upper.c: Regenerated.
22840         * tests/unictype/test-decdigit.h: Regenerated.
22841         * tests/unictype/test-digit.h: Regenerated.
22842         * tests/unictype/test-numeric.h: Regenerated.
22843         * tests/unictype/test-pr_alphabetic.c: Regenerated.
22844         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
22845         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
22846         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
22847         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
22848         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
22849         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
22850         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
22851         * tests/unictype/test-pr_combining.c: Regenerated.
22852         * tests/unictype/test-pr_dash.c: Regenerated.
22853         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
22854         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
22855         * tests/unictype/test-pr_deprecated.c: Regenerated.
22856         * tests/unictype/test-pr_diacritic.c: Regenerated.
22857         * tests/unictype/test-pr_extender.c: Regenerated.
22858         * tests/unictype/test-pr_format_control.c: Regenerated.
22859         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
22860         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
22861         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
22862         * tests/unictype/test-pr_id_continue.c: Regenerated.
22863         * tests/unictype/test-pr_id_start.c: Regenerated.
22864         * tests/unictype/test-pr_ideographic.c: Regenerated.
22865         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
22866         * tests/unictype/test-pr_lowercase.c: Regenerated.
22867         * tests/unictype/test-pr_math.c: Regenerated.
22868         * tests/unictype/test-pr_numeric.c: Regenerated.
22869         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
22870         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
22871         Regenerated.
22872         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
22873         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
22874         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
22875         * tests/unictype/test-pr_other_math.c: Regenerated.
22876         * tests/unictype/test-pr_punctuation.c: Regenerated.
22877         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
22878         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
22879         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
22880         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
22881         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
22882         * tests/unictype/test-pr_uppercase.c: Regenerated.
22883         * tests/unictype/test-pr_xid_continue.c: Regenerated.
22884         * tests/unictype/test-pr_xid_start.c: Regenerated.
22885         * tests/unictype/test-pr_zero_width.c: Regenerated.
22886
22887         Update to Unicode 5.1.0.
22888         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
22889         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
22890         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
22891         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
22892         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
22893         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
22894         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
22895         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
22896         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
22897         (nonspacing_table_ind): Update.
22898         * tests/uniwidth/test-uc_width2.sh: Update expected result.
22899
22900         Update to Unicode 5.1.0.
22901         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
22902         code transform.
22903         * lib/uniname/uniname.c (unicode_character_name,
22904         unicode_name_character): Add the range 0x1Fxxx to the code transform.
22905         * lib/uniname/uninames.h: Regenerated.
22906         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
22907
22908 2009-02-07  Bruno Haible  <bruno@clisp.org>
22909
22910         Merge gen-ctype and gen-lbrk into a single program.
22911         * lib/gen-uni-tables.c: New file, incorporating
22912         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
22913         Add directory prefixes to the names of the generated files.
22914         * lib/unictype/gen-ctype.c: Remove file.
22915         * lib/unilbrk/gen-lbrk.c: Remove file.
22916         * modules/gen-uni-tables: New file.
22917         * modules/unictype/gen-ctype: Remove file.
22918         * modules/unilbrk/gen-lbrk: Remove file.
22919
22920 2009-02-07  Bruno Haible  <bruno@clisp.org>
22921
22922         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
22923
22924         New module 'unistr/u32-strcoll'.
22925         * modules/unistr/u32-strcoll: New file.
22926         * lib/unistr/u32-strcoll.c: New file.
22927
22928         New module 'unistr/u16-strcoll'.
22929         * modules/unistr/u16-strcoll: New file.
22930         * lib/unistr/u16-strcoll.c: New file.
22931
22932         New module 'unistr/u8-strcoll'.
22933         * modules/unistr/u8-strcoll: New file.
22934         * lib/unistr/u8-strcoll.c: New file.
22935         * lib/unistr/u-strcoll.h: New file.
22936
22937 2009-02-07  Bruno Haible  <bruno@clisp.org>
22938
22939         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
22940         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
22941         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
22942         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
22943         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
22944         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
22945
22946 2009-02-07  Bruno Haible  <bruno@clisp.org>
22947
22948         Make 64-bit clean.
22949         * lib/unictype/gen-ctype.c (output_predicate, output_category,
22950         output_combclass, output_bidi_category, output_decimal_digit,
22951         output_digit, output_numeric, output_mirror, output_scripts,
22952         output_ident_category): Use proper width specifier in format strings.
22953
22954 2009-02-07  Bruno Haible  <bruno@clisp.org>
22955
22956         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
22957         failure behaviour.
22958
22959 2009-02-07  Jim Meyering  <meyering@redhat.com>
22960
22961         regex: avoid compilation failure with upcoming gcc-4.4
22962         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
22963         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
22964         "... error: integer overflow in preprocessor expression".
22965
22966 2009-02-05  Ben Pfaff  <blp@gnu.org>
22967
22968         Fix link errors on Windows when close module is used.
22969         * modules/close: Add $(LIB_CLOSE) to Link section.
22970         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
22971         $(LIB_CLOSE) on Windows.
22972
22973 2009-02-05  Jim Meyering  <meyering@redhat.com>
22974
22975         still avoid unused-parameter warnings, but do it cleanly
22976         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
22977         (get_fs_usage): Cast to void instead.
22978         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
22979         (dev_from_mount_options, read_file_system_list): Cast to void.
22980         Prompted by Bruno Haible.
22981
22982 2009-02-04  Jim Meyering  <meyering@redhat.com>
22983
22984         fsusage.c: correct copyright year
22985         * lib/fsusage.c: Reflect year in which the change is pushed into
22986
22987         avoid misc. warnings
22988         * lib/fsusage.c (UNUSED_PARAM): Define.
22989         (get_fs_usage): Mark parameter "disk" as unused.
22990         * lib/getugroups.c (getgrent): Use "void" in prototype.
22991         * lib/mountlist.c: Mark unused parameters.
22992         (read_file_system_list): Declare a local with "const".
22993         * lib/nanosleep.c (getnow): Declare static.
22994         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
22995
22996         dirfd: set errno upon failure
22997         * lib/dirfd.c: Include <errno.h>.
22998         Set errno to ENOTSUP when returning -1.
22999         * modules/dirfd (Depends-on): Add errno.
23000         Suggested by John Kodis <kodis@comcast.net>.
23001
23002 2009-02-01  Bruno Haible  <bruno@clisp.org>
23003
23004         Don't assume sizeof (long) >= sizeof (void *).
23005         * lib/memcmp.c: Include stdint.h.
23006         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
23007         srcp2 to 'const byte *'.
23008         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
23009         types to uintptr_t.
23010         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
23011         * modules/memcmp (Depends-on): Add stdint.
23012         Reported by Ozkan Sezer <sezeroz@gmail.com>.
23013
23014 2009-01-30  Eric Blake  <ebb9@byu.net>
23015
23016         fix more require-before-expand issues
23017         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
23018         expand, AC_PROG_AWK.
23019         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
23020
23021 2009-01-28  Eric Blake  <ebb9@byu.net>
23022
23023         version-etc: use consistent URL formatting
23024         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
23025         Improve formatting.  Use fputs for string without %.
23026
23027 2009-01-28  Jim Meyering  <meyering@redhat.com>
23028
23029         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
23030         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
23031         "underquoted definition of NAME" from autoconf-2.59.
23032
23033 2009-01-28  Bruno Haible  <bruno@clisp.org>
23034
23035         * doc/gnulib.texi: Add "Obsolete modules" to index.
23036
23037 2009-01-28  Jim Meyering  <meyering@redhat.com>
23038
23039         useless-if-before-free: recognize more variants
23040         * build-aux/useless-if-before-free: Also recognize e.g.,
23041         if (NULL != p) free (p);
23042
23043 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
23044
23045         test-getaddrinfo: skip (don't fail) this test when there's no network
23046         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
23047         on the presumption that it means you lack network access.
23048
23049 2009-01-26  Jim Meyering  <meyering@redhat.com>
23050
23051         fflush: avoid warnings on modern systems
23052         * lib/fflush.c (rpl_fflush): Move declarations of locals,
23053         pos and result, into scopes where they're used.
23054
23055 2009-01-26  Eric Blake  <ebb9@byu.net>
23056
23057         Silence warning reintroduced by recent extensions patch.
23058         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
23059         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
23060         autoconf.
23061
23062         Backport improved autoconf semantics of AC_DEFUN_ONCE.
23063         * m4/00gnulib.m4: New file.
23064         * gnulib-tool (func_get_filelist): Always use it.
23065         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
23066         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
23067
23068 2009-01-25  Bruno Haible  <bruno@clisp.org>
23069
23070         Make test-quotearg work on MacOS X and AIX.
23071         * tests/test-quotearg.sh: New file.
23072         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
23073         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
23074         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
23075         include <libintl.h>.
23076         (fake_locale): Remove variable.
23077         (gettext, dgettext, dcgettext): Remove functions.
23078         (main): Instead of setting a fake locale, set a real locale. Call
23079         textdomain and bindtextdomain.
23080         * modules/quotearg-tests (Files): Add the new files.
23081         (Depends-on): Add gettext, setenv, unsetenv.
23082         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
23083         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
23084         Augment TESTS_ENVIRONMENT.
23085
23086 2009-01-25  Bruno Haible  <bruno@clisp.org>
23087
23088         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
23089         fr_FR.ISO8859-1 locale on MacOS X.
23090         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
23091         ja_JP.eucJP locale on MacOS X.
23092         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
23093         zh_CN.GB18030 locale on MacOS X.
23094
23095 2009-01-25  Bruno Haible  <bruno@clisp.org>
23096
23097         Avoid link errors on MacOS X 10.3.
23098         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
23099         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
23100
23101 2009-01-25  Bruno Haible  <bruno@clisp.org>
23102
23103         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
23104         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
23105         * modules/pipe (Files): Remove m4/posix_spawn.m4.
23106         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
23107         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
23108         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
23109         posix_spawnattr_init, posix_spawnattr_setsigmask,
23110         posix_spawnattr_setflags, posix_spawnattr_destroy.
23111
23112         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
23113         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
23114         * modules/execute (Files): Remove m4/posix_spawn.m4.
23115         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
23116         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
23117         posix_spawnattr_init, posix_spawnattr_setsigmask,
23118         posix_spawnattr_setflags, posix_spawnattr_destroy.
23119
23120 2009-01-25  Bruno Haible  <bruno@clisp.org>
23121
23122         * lib/glthread/threadlib.c: Include <stdlib.h>.
23123
23124 2009-01-25  Bruno Haible  <bruno@clisp.org>
23125
23126         * lib/glthread/threadlib.c (dummy): New declaration.
23127
23128 2009-01-25  Bruno Haible  <bruno@clisp.org>
23129
23130         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
23131         multibyte characters also for the GB18030 encoding. Don't crash when
23132         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
23133
23134 2009-01-25  Bruno Haible  <bruno@clisp.org>
23135
23136         Avoid redefining 'struct random_data' on OSF/1 5.1.
23137         * lib/stdlib.in.h: Include <random.h> if it exists.
23138         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
23139         HAVE_RANDOM_H. Include <random.h> when testing whether
23140         'struct random_data' exists.
23141         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
23142
23143 2009-01-25  Bruno Haible  <bruno@clisp.org>
23144
23145         Don't install charset.alias on MacOS X >= 10.3.
23146         * lib/localcharset.c (DARWIN7): New macro.
23147         (get_charset_aliases): Hardcode the result for Darwin7.
23148         * modules/localcharset (install-exec-local): Don't install
23149         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
23150
23151 2009-01-25  Bruno Haible  <bruno@clisp.org>
23152
23153         Don't install charset.alias on mingw and Cygwin.
23154         * modules/localcharset (install-exec-local): Don't install
23155         charset.alias on mingw and Cygwin, if the file does not yet exist.
23156         The result for these platforms is hardcoded in localcharset.c.
23157
23158 2009-01-25  Bruno Haible  <bruno@clisp.org>
23159
23160         Make it possible again to use AC_GNU_SOURCE together with gnulib.
23161         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
23162         before requiring AC_USE_SYSTEM_EXTENSIONS.
23163
23164 2009-01-25  Jim Meyering  <meyering@redhat.com>
23165
23166         c-strtod: avoid warnings
23167         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
23168         "assignment discards qualifiers from pointer target type" warnings.
23169
23170 2009-01-24  Bruno Haible  <bruno@clisp.org>
23171
23172         Add support for non-UTF-8 locales on MacOS X.
23173         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
23174         canonical encodings. For Darwin 7 and newer, don't map traditional
23175         encodings to UTF-8.
23176         Reported by Vincent Lefevre <vincent@vinc17.org>
23177         at <http://savannah.gnu.org/bugs/?25235>.
23178
23179 2009-01-24  Bruno Haible  <bruno@clisp.org>
23180
23181         * doc/gnulib.texi (Obsolete modules): New section.
23182         Reported by Mike Frysinger <vapier@gentoo.org>.
23183
23184 2009-01-24  Bruno Haible  <bruno@clisp.org>
23185
23186         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
23187         (%.dvi): New rule.
23188
23189 2009-01-24  Bruno Haible  <bruno@clisp.org>
23190
23191         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
23192         Reported by Eric Blake.
23193
23194 2009-01-24  Bruno Haible  <bruno@clisp.org>
23195
23196         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
23197         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
23198         Reported by Gary V. Vaughan <gary@gnu.org>.
23199
23200 2009-01-24  Bruno Haible  <bruno@clisp.org>
23201
23202         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
23203
23204 2009-01-23  Bruno Haible  <bruno@clisp.org>
23205
23206         Make c-strtod, c-strtold usable in libraries.
23207         * lib/c-strtod.c: Include string.h instead of xalloc.h.
23208         (C_STRTOD): Call strdup instead of xstrdup.
23209         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
23210         * modules/c-strtold (Depends-on): Likewise.
23211         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
23212         * NEWS: Mention the change.
23213         Reported by Michael Gold <mgold@ncf.ca>.
23214
23215 2009-01-23  Jim Meyering  <meyering@redhat.com>
23216
23217         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
23218         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
23219         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
23220
23221 2009-01-23  Simon Josefsson  <simon@josefsson.org>
23222
23223         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
23224         GNU CoreUtils.
23225         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
23226         * modules/version-etc (Description): Update.
23227
23228 2009-01-22  Bruno Haible  <bruno@clisp.org>
23229
23230         Cache the C locale object.
23231         * lib/c-strtod.c (c_locale_cache): New variable.
23232         (c_locale): New function.
23233         (C_STRTOD): Use it, and don't call freelocale.
23234         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
23235         Suggested by Paolo Bonzini.
23236
23237 2009-01-21  Bruno Haible  <bruno@clisp.org>
23238
23239         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
23240         conditions other than overflow.
23241
23242 2009-01-21  Bruno Haible  <bruno@clisp.org>
23243
23244         * lib/c-strtod.c: Include errno.h.
23245         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
23246         value from STRTOD_L and STRTOD.
23247
23248 2009-01-21  Bruno Haible  <bruno@clisp.org>
23249         and Jim Meyering  <meyering@redhat.com>
23250
23251         nanosleep: skip configure test (fail it) for apple universal builds
23252         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
23253         universal builds, assume that nanosleep does not work.
23254         * modules/nanosleep (Depends-on): Add multiarch.
23255
23256         mktime: skip configure test (fail it) for apple universal builds
23257         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
23258         universal builds, assume that mktime does not work.
23259         * modules/mktime (Depends-on): Add multiarch.
23260
23261 2009-01-21  Eric Blake  <ebb9@byu.net>
23262
23263         multiarch: avoid expand-before-require warning
23264         * modules/multiarch (configure.ac): Require, rather than expand,
23265         gl_MULTIARCH.
23266         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
23267         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
23268         enforce that all clients require it.  Partial reversion of
23269         2008-12-29 patch.
23270
23271         error: avoid expand-before-require warning
23272         * modules/errno (configure.ac): Require, rather than expand,
23273         gl_HEADER_ERRNO_H.
23274         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
23275         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
23276         enforce that all clients require it.
23277
23278         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
23279         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
23280         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
23281         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
23282
23283 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
23284
23285         Revert:
23286         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
23287
23288         regex: do not depend on obsolete modules.
23289         * modules/regex: Remove memcmp and memmove.
23290
23291 2009-01-20  Bruno Haible  <bruno@clisp.org>
23292
23293         Make the 'link' module link on Windows NT 4.
23294         * lib/link.c (_WIN32_WINNT): Don't define.
23295         (CreateHardLinkFuncType): New type.
23296         (CreateHardLinkFunc, initialized): New variables.
23297         (initialize): New function.
23298         (link): Invoke CreateHardLink indirectly through the function pointer.
23299
23300 2009-01-20  Bruno Haible  <bruno@clisp.org>
23301
23302         Fix compilation failure on mingw.
23303         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
23304
23305 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
23306
23307         * doc/c-strtod.texi: Mention a couple of restrictions.
23308
23309 2009-01-20  Jim Meyering  <meyering@redhat.com>
23310
23311         gettimeofday: move more declarations out of functions
23312         * lib/gettimeofday.c: Move extern declarations of tzset and
23313         gmtime out of containing functions.  Prompted by Bruno Haible.
23314
23315 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
23316
23317         regex: do not depend on obsolete modules.
23318         * modules/regex: Remove memcmp and memmove.
23319
23320 2009-01-19  Bruno Haible  <bruno@clisp.org>
23321
23322         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
23323         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
23324         gl_BIGENDIAN, not AC_C_BIGENDIAN.
23325         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
23326         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
23327
23328 2009-01-19  Bruno Haible  <bruno@clisp.org>
23329
23330         * tests/test-link.c: Include <errno.h>.
23331         (main): Exit with code 77 when a hard link cannot be created due to
23332         the file system.
23333         * tests/test-link.sh: Skip test when a hard link cannot be created due
23334         to the file system.
23335         Suggested by Eric Blake.
23336
23337 2009-01-19  Martin Lambers  <marlam@marlam.de>
23338
23339         * modules/link-tests: New file.
23340         * tests/test-link.sh: New file.
23341         * tests/test-link.c: New file.
23342
23343 2009-01-19  Eric Blake  <ebb9@byu.net>
23344
23345         doc: mention another function added in cygwin 1.7.0
23346         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
23347         Another new function in cygwin 1.7.
23348
23349 2009-01-19  Bruno Haible  <bruno@clisp.org>
23350
23351         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
23352         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
23353         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
23354         gl_BIGENDIAN, not AC_C_BIGENDIAN.
23355         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
23356         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
23357         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
23358         * m4/md4.m4 (gl_MD4): Likewise.
23359         * m4/md5.m4 (gl_MD5): Likewise.
23360         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
23361         * m4/sha1.m4 (gl_SHA1): Likewise.
23362         * m4/sha256.m4 (gl_SHA256): Likewise.
23363         * m4/sha512.m4 (gl_SHA512): Likewise.
23364
23365 2009-01-19  Bruno Haible  <bruno@clisp.org>
23366
23367         * modules/uniname/uniname-tests (Depends-on): Add progname.
23368         * tests/uniname/test-uninames.c: Include progname.h.
23369         (main): Call set_program_name.
23370
23371         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
23372         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
23373         (main): Call set_program_name.
23374
23375         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
23376         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
23377         (main): Call set_program_name.
23378
23379         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
23380         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
23381         (main): Call set_program_name.
23382
23383         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
23384         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
23385         (main): Call set_program_name.
23386
23387         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
23388         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
23389         (main): Call set_program_name.
23390
23391         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
23392         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
23393         (main): Call set_program_name.
23394
23395         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
23396         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
23397         (main): Call set_program_name.
23398
23399         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
23400         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
23401         (main): Call set_program_name.
23402
23403 2009-01-19  Eric Blake  <ebb9@byu.net>
23404
23405         test-unistd: test previous patch
23406         * tests/test-unistd.c: Test *_FILENO macros.
23407
23408         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
23409         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
23410         Guarantee a definition.
23411         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
23412         * modules/unistd-safer (Depends-on): Add dependency on unistd.
23413         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
23414         * lib/dup-safer.c (STDERR_FILENO): Likewise.
23415         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
23416         Likewise.
23417         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
23418         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
23419         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
23420         Likewise.
23421         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
23422         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
23423         (STDERR_FILENO): Likewise.
23424         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
23425         (STDERR_FILENO): Likewise.
23426         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
23427         (STDERR_FILENO): Likewise.
23428         Reported by Elbert Pol.
23429
23430 2009-01-19  Eric Blake  <ebb9@byu.net>
23431
23432         doc: mention more functions added in cygwin 1.7.0
23433         * doc/posix-functions/abort.texi (abort): Update wording related
23434         to cygwin.
23435         * doc/posix-functions/daylight.texi (daylight): Likewise.
23436         * doc/posix-functions/optarg.texi (optarg): Likewise.
23437         * doc/posix-functions/optarg.texi (opterr): Likewise.
23438         * doc/posix-functions/optarg.texi (optind): Likewise.
23439         * doc/posix-functions/optarg.texi (optopt): Likewise.
23440         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
23441         worked in 1.5.x, and was withdrawn in 1.7.
23442         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
23443         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
23444         cygwin versions.
23445         * doc/posix-functions/perror.texi (perror): Likewise.
23446         * doc/posix-functions/printf.texi (printf): Likewise.
23447         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
23448         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
23449         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
23450         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
23451         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
23452         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
23453         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
23454         Likewise.
23455         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
23456         Likewise.
23457         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
23458         this function.
23459         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
23460         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
23461         Likewise.
23462         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
23463         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
23464         * doc/posix-functions/confstr.texi (confstr): Likewise.
23465         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
23466         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
23467         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
23468         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
23469         * doc/posix-functions/fputws.texi (fputws): Likewise.
23470         * doc/posix-functions/fwide.texi (fwide): Likewise.
23471         * doc/posix-functions/getwc.texi (getwc): Likewise.
23472         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
23473         * doc/posix-functions/putwc.texi (putwc): Likewise.
23474         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
23475         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
23476         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
23477         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
23478         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
23479         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
23480         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
23481         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
23482         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
23483         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
23484         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
23485
23486 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
23487
23488         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
23489         * lib/ioctl.c: Include <sys/ioctl.h>.
23490
23491 2009-01-19  Simon Josefsson  <simon@josefsson.org>
23492
23493         * modules/getdate-tests (Depends-on): Add progname.
23494         * tests/test-getdate.c: Use progname module, to avoid link errors
23495         on non-glibc systems.
23496
23497 2009-01-18  Simon Josefsson  <simon@josefsson.org>
23498
23499         * modules/filenamecat-tests (Depends-on): Add progname.
23500         * modules/fstrcmp-tests (Depends-on): Likewise.
23501
23502         * tests/test-filenamecat.c: Use progname module, to avoid link
23503         errors on non-glibc systems.
23504         * tests/test-fstrcmp.c: Likewise.
23505
23506 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
23507
23508         gettimeofday: avoid warning: nested extern declaration of 'localtime'
23509         * lib/gettimeofday.c: Move extern declaration out of function.
23510
23511 2009-01-18  Bruno Haible  <bruno@clisp.org>
23512
23513         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
23514         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
23515         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
23516
23517 2009-01-18  Bruno Haible  <bruno@clisp.org>
23518
23519         * lib/strftime.c (MEMPCPY): Remove unused macro.
23520         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
23521
23522 2009-01-18  Martin Lambers  <marlam@marlam.de>
23523
23524         New module 'link'.
23525         * lib/unistd.in.h (link): New declaration.
23526         * lib/link.c: New file.
23527         * m4/link.m4: New file.
23528         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
23529         HAVE_LINK.
23530         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
23531         * modules/link: New file.
23532         * doc/posix-functions/link.texi: Mention the new module.
23533
23534 2009-01-18  Bruno Haible  <bruno@clisp.org>
23535
23536         * tests/test-avltree_list.c (main): Call set_program_name.
23537         * tests/test-avltree_oset.c (main): Likewise.
23538         * tests/test-obstack-printf.c: Include progname.h.
23539         (main): Call set_program_name.
23540         * tests/test-quotearg.c: Include progname.h.
23541         (main): Call set_program_name.
23542         * tests/test-xmemdup0.c: Include progname.h.
23543         (main): Call set_program_name.
23544
23545 2009-01-18  Bruno Haible  <bruno@clisp.org>
23546
23547         New module 'alphasort'.
23548         * lib/dirent.in.h (alphasort): New declaration.
23549         * lib/alphasort.c: New file, from glibc with modifications.
23550         * m4/alphasort.m4: New file.
23551         * modules/alphasort: New file.
23552         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
23553         HAVE_ALPHASORT.
23554         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
23555         HAVE_ALPHASORT.
23556         * doc/posix-functions/alphasort.texi: Mention the new module and the
23557         portability problems.
23558
23559 2009-01-18  Bruno Haible  <bruno@clisp.org>
23560
23561         New module 'scandir'.
23562         * lib/dirent.in.h (scandir): New declaration.
23563         * lib/scandir.c: New file, from glibc with modifications.
23564         * m4/scandir.m4: New file.
23565         * modules/scandir: New file.
23566         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
23567         HAVE_SCANDIR.
23568         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
23569         HAVE_SCANDIR.
23570         * doc/posix-functions/scandir.texi: Mention the new module and the
23571         portability problems.
23572
23573 2009-01-17  Bruno Haible  <bruno@clisp.org>
23574
23575         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
23576         Update documentation.
23577         (func_remove_suffix): Escape all dots in the suffix. Update
23578         documentation.
23579         (func_filter_filelist): Update documentation.
23580         Reported by Ralf Wildenhues.
23581
23582 2009-01-17  Bruno Haible  <bruno@clisp.org>
23583
23584         * modules/dprintf-posix-tests: New file.
23585         * tests/test-dprintf-posix.sh: New file.
23586         * tests/test-dprintf-posix.c: New file.
23587
23588         New modules 'dprintf', 'dprintf-posix'.
23589         * lib/stdio.in.h (dprintf): New declaration.
23590         * lib/dprintf.c: New file.
23591         * m4/dprintf.m4: New file.
23592         * m4/dprintf-posix.m4: New file.
23593         * modules/dprintf: New file.
23594         * modules/dprintf-posix: New file.
23595         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
23596         HAVE_DPRINTF, REPLACE_DPRINTF.
23597         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
23598         HAVE_DPRINTF, REPLACE_DPRINTF.
23599         * doc/posix-functions/dprintf.texi: Mention the new modules.
23600
23601 2009-01-17  Bruno Haible  <bruno@clisp.org>
23602
23603         * modules/vdprintf-posix-tests: New file.
23604         * tests/test-vdprintf-posix.sh: New file.
23605         * tests/test-vdprintf-posix.c: New file.
23606
23607         New modules 'vdprintf', 'vdprintf-posix'.
23608         * lib/stdio.in.h (vdprintf): New declaration.
23609         * lib/vdprintf.c: New file.
23610         * m4/vdprintf.m4: New file.
23611         * m4/vdprintf-posix.m4: New file.
23612         * modules/vdprintf: New file.
23613         * modules/vdprintf-posix: New file.
23614         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
23615         HAVE_VDPRINTF, REPLACE_VDPRINTF.
23616         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
23617         HAVE_VDPRINTF, REPLACE_VDPRINTF.
23618         * doc/posix-functions/vdprintf.texi: Mention the new modules.
23619
23620 2009-01-17  Bruno Haible  <bruno@clisp.org>
23621
23622         Fix replacement of fopen on mingw.
23623         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
23624         mingw.
23625
23626 2009-01-17  Bruno Haible  <bruno@clisp.org>
23627
23628         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
23629         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
23630
23631 2009-01-17  Bruno Haible  <bruno@clisp.org>
23632
23633         Avoid test-fflush2.sh failure on mingw.
23634         * tests/test-fflush2.c: Include binary-io.h.
23635         (main): Put standard input into binary mode.
23636         * modules/fflush-tests (Depends-on): Add binary-io.
23637
23638 2009-01-17  Bruno Haible  <bruno@clisp.org>
23639
23640         * lib/wchar.in.h: In another particular situation, include only the
23641         system's <wchar.h> file.
23642         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
23643         Reported by Albert Chin-A-Young <china@thewrittenword.com>
23644         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
23645
23646 2009-01-17  Bruno Haible  <bruno@clisp.org>
23647
23648         Support for stripping executables in --enable-relocatable.
23649         * build-aux/install-reloc: Expect one more argument, or an environment
23650         variable RELOC_STRIP_PROG. If set, strip the destination program and
23651         its wrapper.
23652         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
23653         RELOC_STRIP_PROG.
23654         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
23655         to set RELOCATABLE_STRIP.
23656         * NEWS: Mention the new Makefile requirement.
23657
23658 2009-01-17  Bruno Haible  <bruno@clisp.org>
23659
23660         * build-aux/install-reloc: Remove debugging information left over by
23661         C compiler on MacOS X.
23662
23663 2009-01-17  Bruno Haible  <bruno@clisp.org>
23664
23665         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
23666         * lib/progreloc.c (find_executable): Fix type of pointer passed to
23667         _NSGetExecutablePath.
23668
23669 2009-01-16  Jim Meyering  <meyering@redhat.com>
23670
23671         strerror: avoid warnings about discarding "const"
23672         * lib/strerror.c (rpl_strerror): Instead of returning a const
23673         string from each and every "case", use a variable, and add a single
23674         cast after the switch.
23675
23676 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
23677
23678         * lib/arpa_inet.in.h: Add extern "C" block for C++.
23679
23680 2009-01-16  Bruno Haible  <bruno@clisp.org>
23681
23682         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
23683         array initializer syntax that also works in C++ mode.
23684         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
23685
23686 2009-01-16  Jim Meyering  <meyering@redhat.com>
23687
23688         poll: suppress a warning
23689         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
23690         to ignore "...unsigned expression < 0 is always false" warnings.
23691
23692 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
23693
23694         poll: remove declarations of unused variables
23695         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
23696         sockbuf and optlen.
23697
23698 2009-01-15  Bruno Haible  <bruno@clisp.org>
23699
23700         Make fflush-after-ungetc POSIX compliant on BSD systems.
23701         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
23702         (clear_ungetc_buffer): Implement also for other systems.
23703         (rpl_fflush): On glibc systems, invoke
23704         clear_ungetc_buffer_preserving_position. Otherwise, invoke
23705         clear_ungetc_buffer after fetching the stream's position, not before.
23706
23707 2009-01-15  Bruno Haible  <bruno@clisp.org>
23708
23709         Make fflush-after-ungetc POSIX compliant on glibc systems.
23710         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
23711         after ungetc.
23712         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
23713         (rpl_fflush): On glibc systems, simply call the system's fflush
23714         function after clearing the ungetc buffer.
23715         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
23716         Instead, lseek only to the end of file, then use the system's fseeko
23717         for the rest. On glibc systems, reset the EOF indicator bit.
23718
23719 2009-01-15  Jim Meyering  <meyering@redhat.com>
23720
23721         openmp.m4: revert quote-adding change, for portability to older autoconf
23722         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
23723         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
23724         Simon Josefsson noticed the problem when using autoconf-2.61.
23725
23726 2009-01-15  Bruno Haible  <bruno@clisp.org>
23727
23728         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
23729         * tests/test-fflush2.c (ASSERT): Always fail.
23730         (main): Add two tests for fflush() after ungetc(), taking into account
23731         the Austin Group's clarification.
23732         Suggested by Eric Blake.
23733
23734 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
23735
23736         mktime.m4: remove K&R-style function prototypes
23737         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
23738         for the Sun C++ compiler.
23739
23740 2009-01-14  Bruno Haible  <bruno@clisp.org>
23741
23742         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
23743         while including <wchar.h>.
23744         * lib/wchar.in.h: In two particular situations on HP-UX, include only
23745         the system's <wchar.h> file.
23746         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
23747
23748 2009-01-14  Bruno Haible  <bruno@clisp.org>
23749
23750         * m4/csharp.m4: Don't mention gettext on the serial number line.
23751         * m4/csharpexec.m4: Likewise.
23752         * m4/eaccess.m4: Likewise.
23753         * m4/javaexec.m4: Likewise.
23754         * m4/sig_atomic_t.m4: Likewise.
23755         * m4/tmpdir.m4: Likewise.
23756         * m4/intldir.m4: Bump gettext version.
23757         * m4/lib-ld.m4: Likewise.
23758
23759 2009-01-14  Bruno Haible  <bruno@clisp.org>
23760
23761         * lib/progname.c (set_program_name): Add more comments.
23762         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
23763
23764 2009-01-14  Simon Josefsson  <simon@josefsson.org>
23765
23766         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
23767         were sys/stat.h does not define it.
23768
23769 2009-01-14  Jim Meyering  <meyering@redhat.com>
23770
23771         many *.m4 files: improve m4 quoting
23772         99% of this change was performed by running the following commands:
23773         git ls-files | grep '\.m4$' | xargs perl -pi \
23774           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
23775           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
23776           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
23777           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
23778         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
23779         The remainder were to add Copyright dates, increment serial numbers,
23780         undo some changes in comments, exclude m4/intl.m4, and add quotes
23781         around the "1" in ",1" where the unusual spacing prohibited the
23782         above regexps from doing the job.  For more details, see
23783         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
23784         * m4/acl.m4: Modified.
23785         * m4/afs.m4: Likewise.
23786         * m4/alloca.m4: Likewise.
23787         * m4/argp.m4: Likewise.
23788         * m4/argz.m4: Likewise.
23789         * m4/atexit.m4: Likewise.
23790         * m4/bison-i18n.m4: Likewise.
23791         * m4/bison.m4: Likewise.
23792         * m4/byteswap.m4: Likewise.
23793         * m4/c-stack.m4: Likewise.
23794         * m4/c-strtod.m4: Likewise.
23795         * m4/calloc.m4: Likewise.
23796         * m4/canonicalize-lgpl.m4: Likewise.
23797         * m4/chown.m4: Likewise.
23798         * m4/clock_time.m4: Likewise.
23799         * m4/codeset.m4: Likewise.
23800         * m4/copy-file.m4: Likewise.
23801         * m4/csharp.m4: Likewise.
23802         * m4/csharpcomp.m4: Likewise.
23803         * m4/csharpexec.m4: Likewise.
23804         * m4/d-ino.m4: Likewise.
23805         * m4/d-type.m4: Likewise.
23806         * m4/dirfd.m4: Likewise.
23807         * m4/double-slash-root.m4: Likewise.
23808         * m4/eaccess.m4: Likewise.
23809         * m4/eealloc.m4: Likewise.
23810         * m4/environ.m4: Likewise.
23811         * m4/errno_h.m4: Likewise.
23812         * m4/euidaccess.m4: Likewise.
23813         * m4/execute.m4: Likewise.
23814         * m4/fatal-signal.m4: Likewise.
23815         * m4/fchdir.m4: Likewise.
23816         * m4/fcntl_h.m4: Likewise.
23817         * m4/fileblocks.m4: Likewise.
23818         * m4/filenamecat.m4: Likewise.
23819         * m4/findprog.m4: Likewise.
23820         * m4/flexmember.m4: Likewise.
23821         * m4/fnmatch.m4: Likewise.
23822         * m4/fopen.m4: Likewise.
23823         * m4/fpending.m4: Likewise.
23824         * m4/fprintf-posix.m4: Likewise.
23825         * m4/free.m4: Likewise.
23826         * m4/frexp.m4: Likewise.
23827         * m4/frexpl.m4: Likewise.
23828         * m4/fsusage.m4: Likewise.
23829         * m4/ftruncate.m4: Likewise.
23830         * m4/gc-camellia.m4: Likewise.
23831         * m4/gc-random.m4: Likewise.
23832         * m4/gc.m4: Likewise.
23833         * m4/getaddrinfo.m4: Likewise.
23834         * m4/getcwd-abort-bug.m4: Likewise.
23835         * m4/getcwd-path-max.m4: Likewise.
23836         * m4/getdate.m4: Likewise.
23837         * m4/getdomainname.m4: Likewise.
23838         * m4/getgroups.m4: Likewise.
23839         * m4/gethostname.m4: Likewise.
23840         * m4/gethrxtime.m4: Likewise.
23841         * m4/getline.m4: Likewise.
23842         * m4/getloadavg.m4: Likewise.
23843         * m4/getndelim2.m4: Likewise.
23844         * m4/getpass.m4: Likewise.
23845         * m4/gettext.m4: Likewise.
23846         * m4/gettime.m4: Likewise.
23847         * m4/gettimeofday.m4: Likewise.
23848         * m4/gnulib-common.m4: Likewise.
23849         * m4/group-member.m4: Likewise.
23850         * m4/host-os.m4: Likewise.
23851         * m4/iconv.m4: Likewise.
23852         * m4/iconv_open.m4: Likewise.
23853         * m4/inet_ntop.m4: Likewise.
23854         * m4/inet_pton.m4: Likewise.
23855         * m4/inline.m4: Likewise.
23856         * m4/intldir.m4: Likewise.
23857         * m4/intlmacosx.m4: Likewise.
23858         * m4/intmax.m4: Likewise.
23859         * m4/intmax_t.m4: Likewise.
23860         * m4/inttypes.m4: Likewise.
23861         * m4/inttypes_h.m4: Likewise.
23862         * m4/inttypes-pri.m4: Likewise.
23863         * m4/isapipe.m4: Likewise.
23864         * m4/isnand.m4: Likewise.
23865         * m4/isnanf.m4: Likewise.
23866         * m4/isnanl.m4: Likewise.
23867         * m4/javacomp.m4: Likewise.
23868         * m4/javaexec.m4: Likewise.
23869         * m4/jm-winsz1.m4: Likewise.
23870         * m4/jm-winsz2.m4: Likewise.
23871         * m4/lchown.m4: Likewise.
23872         * m4/lcmessage.m4: Likewise.
23873         * m4/ldexpl.m4: Likewise.
23874         * m4/lib-ld.m4: Likewise.
23875         * m4/lib-link.m4: Likewise.
23876         * m4/libsigsegv.m4: Likewise.
23877         * m4/link-follow.m4: Likewise.
23878         * m4/localcharset.m4: Likewise.
23879         * m4/locale-fr.m4: Likewise.
23880         * m4/locale-ja.m4: Likewise.
23881         * m4/locale-tr.m4: Likewise.
23882         * m4/locale-zh.m4: Likewise.
23883         * m4/lock.m4: Likewise.
23884         * m4/longlong.m4: Likewise.
23885         * m4/ls-mntd-fs.m4: Likewise.
23886         * m4/lstat.m4: Likewise.
23887         * m4/malloc.m4: Likewise.
23888         * m4/mathl.m4: Likewise.
23889         * m4/mbrtowc.m4: Likewise.
23890         * m4/mbstate_t.m4: Likewise.
23891         * m4/mbswidth.m4: Likewise.
23892         * m4/memchr.m4: Likewise.
23893         * m4/memcmp.m4: Likewise.
23894         * m4/memcpy.m4: Likewise.
23895         * m4/memmem.m4: Likewise.
23896         * m4/memmove.m4: Likewise.
23897         * m4/mempcpy.m4: Likewise.
23898         * m4/memrchr.m4: Likewise.
23899         * m4/memset.m4: Likewise.
23900         * m4/minmax.m4: Likewise.
23901         * m4/mkdir-slash.m4: Likewise.
23902         * m4/mkdtemp.m4: Likewise.
23903         * m4/mktime.m4: Likewise.
23904         * m4/mmap-anon.m4: Likewise.
23905         * m4/mountlist.m4: Likewise.
23906         * m4/nanosleep.m4: Likewise.
23907         * m4/nls.m4: Likewise.
23908         * m4/nocrash.m4: Likewise.
23909         * m4/open.m4: Likewise.
23910         * m4/openat.m4: Likewise.
23911         * m4/openmp.m4: Likewise.
23912         * m4/pathmax.m4: Likewise.
23913         * m4/perl.m4: Likewise.
23914         * m4/physmem.m4: Likewise.
23915         * m4/pipe.m4: Likewise.
23916         * m4/po.m4: Likewise.
23917         * m4/poll.m4: Likewise.
23918         * m4/posixtm.m4: Likewise.
23919         * m4/posixver.m4: Likewise.
23920         * m4/printf-frexp.m4: Likewise.
23921         * m4/printf-frexpl.m4: Likewise.
23922         * m4/printf-posix.m4: Likewise.
23923         * m4/printf-posix-rpl.m4: Likewise.
23924         * m4/printf.m4: Likewise.
23925         * m4/progtest.m4: Likewise.
23926         * m4/putenv.m4: Likewise.
23927         * m4/readline.m4: Likewise.
23928         * m4/readlink.m4: Likewise.
23929         * m4/readutmp.m4: Likewise.
23930         * m4/realloc.m4: Likewise.
23931         * m4/regex.m4: Likewise.
23932         * m4/relocatable.m4: Likewise.
23933         * m4/relocatable-lib.m4: Likewise.
23934         * m4/rename-dest-slash.m4: Likewise.
23935         * m4/rename.m4: Likewise.
23936         * m4/rmdir-errno.m4: Likewise.
23937         * m4/rmdir.m4: Likewise.
23938         * m4/roundf.m4: Likewise.
23939         * m4/roundl.m4: Likewise.
23940         * m4/rpmatch.m4: Likewise.
23941         * m4/save-cwd.m4: Likewise.
23942         * m4/selinux-selinux-h.m4: Likewise.
23943         * m4/setenv.m4: Likewise.
23944         * m4/settime.m4: Likewise.
23945         * m4/sig2str.m4: Likewise.
23946         * m4/sig_atomic_t.m4: Likewise.
23947         * m4/signalblocking.m4: Likewise.
23948         * m4/signbit.m4: Likewise.
23949         * m4/sigpipe.m4: Likewise.
23950         * m4/sockets.m4: Likewise.
23951         * m4/sockpfaf.m4: Likewise.
23952         * m4/st_dm_mode.m4: Likewise.
23953         * m4/stat-time.m4: Likewise.
23954         * m4/stdbool.m4: Likewise.
23955         * m4/stdint.m4: Likewise.
23956         * m4/stdint_h.m4: Likewise.
23957         * m4/stpcpy.m4: Likewise.
23958         * m4/stpncpy.m4: Likewise.
23959         * m4/strcase.m4: Likewise.
23960         * m4/strchrnul.m4: Likewise.
23961         * m4/strcspn.m4: Likewise.
23962         * m4/strdup.m4: Likewise.
23963         * m4/strftime.m4: Likewise.
23964         * m4/strndup.m4: Likewise.
23965         * m4/strnlen.m4: Likewise.
23966         * m4/strpbrk.m4: Likewise.
23967         * m4/strptime.m4: Likewise.
23968         * m4/strsep.m4: Likewise.
23969         * m4/strtod.m4: Likewise.
23970         * m4/strtoimax.m4: Likewise.
23971         * m4/strtok_r.m4: Likewise.
23972         * m4/strtol.m4: Likewise.
23973         * m4/strtoll.m4: Likewise.
23974         * m4/strtoul.m4: Likewise.
23975         * m4/strtoull.m4: Likewise.
23976         * m4/strtoumax.m4: Likewise.
23977         * m4/strverscmp.m4: Likewise.
23978         * m4/threadlib.m4: Likewise.
23979         * m4/timegm.m4: Likewise.
23980         * m4/tm_gmtoff.m4: Likewise.
23981         * m4/tmpdir.m4: Likewise.
23982         * m4/tmpfile.m4: Likewise.
23983         * m4/tzset.m4: Likewise.
23984         * m4/uintmax_t.m4: Likewise.
23985         * m4/unlinkdir.m4: Likewise.
23986         * m4/unlocked-io.m4: Likewise.
23987         * m4/uptime.m4: Likewise.
23988         * m4/userspec.m4: Likewise.
23989         * m4/utimbuf.m4: Likewise.
23990         * m4/utime.m4: Likewise.
23991         * m4/utimes-null.m4: Likewise.
23992         * m4/utimes.m4: Likewise.
23993         * m4/vararrays.m4: Likewise.
23994         * m4/vasnprintf.m4: Likewise.
23995         * m4/vfprintf-posix.m4: Likewise.
23996         * m4/vprintf-posix.m4: Likewise.
23997         * m4/wait-process.m4: Likewise.
23998         * m4/wchar_t.m4: Likewise.
23999         * m4/wint_t.m4: Likewise.
24000         * m4/write-any-file.m4: Likewise.
24001         * m4/yield.m4: Likewise.
24002
24003 2009-01-13  Bruno Haible  <bruno@clisp.org>
24004
24005         Avoid test-copy-file.sh failures when ACL support insufficient.
24006         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
24007         TESTS_ENVIRONMENT.
24008         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
24009         Reported by Jim Meyering.
24010
24011 2009-01-13  Bruno Haible  <bruno@clisp.org>
24012
24013         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
24014         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
24015         * modules/unistdio/u8-printf-parse (Files): Likewise.
24016         * modules/unistdio/u32-printf-parse (Files): Likewise.
24017         * modules/unistdio/ulc-printf-parse (Files): Likewise.
24018
24019 2009-01-13  Simon Josefsson  <simon@josefsson.org>
24020
24021         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
24022         and m4/inttypes_h.m4 too.
24023
24024 2009-01-12  Eric Blake  <ebb9@byu.net>
24025
24026         tests: IRIX 6.2 cc can't compile -0.0 into .data
24027         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
24028         rather than at compile-time.
24029         * tests/test-floorl.c (minus_zero): Likewise.
24030         * tests/test-frexpl.c (minus_zero): Likewise.
24031         * tests/test-isnan.c (minus_zerol): Likewise.
24032         * tests/test-isnanl.h (minus_zero): Likewise.
24033         * tests/test-ldexpl.c (minus_zero): Likewise.
24034         * tests/test-roundl.c (minus_zero): Likewise.
24035         * tests/test-signbit.c (minus_zerol): Likewise.
24036         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
24037         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
24038         * tests/test-truncl.c (minus_zero): Likewise.
24039         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
24040         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
24041         Reported by Tom G. Christensen and Nelson H. F. Beebe.
24042
24043 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
24044
24045         regex: fix glibc bug 9697
24046         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
24047         handling.
24048
24049 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
24050
24051         regex: fix glibc bug 697
24052         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
24053         being NULL also if there are no backreferences.
24054
24055 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
24056
24057         regex: merge glibc changes
24058         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
24059         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
24060         re_string_skip_chars, re_string_reconstruct): Likewise.
24061         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
24062
24063 2009-01-07  Jim Meyering  <meyering@redhat.com>
24064
24065         poll: filter through cppi
24066         * lib/poll.c: Indent cpp directives to reflect nesting.
24067
24068 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
24069
24070         poll: don't return uninitialized
24071         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
24072
24073 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
24074
24075         avoid compile failure on AIX 6.1
24076         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
24077         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
24078
24079 2009-01-04  Jim Meyering  <meyering@redhat.com>
24080
24081         remove duplicate inclusion of <stdio.h>
24082         * tests/test-fprintf-posix.c: Likewise.
24083         * tests/test-printf-posix.c: Likewise.
24084         * tests/test-snprintf-posix.c: Likewise.
24085         * tests/test-sprintf-posix.c: Likewise.
24086         * tests/test-vasprintf-posix.c: Likewise.
24087         * tests/test-vfprintf-posix.c: Likewise.
24088         * tests/test-vprintf-posix.c: Likewise.
24089         * tests/test-vsnprintf-posix.c: Likewise.
24090         * tests/test-vsprintf-posix.c: Likewise.
24091
24092 2009-01-03  Jim Meyering  <meyering@redhat.com>
24093
24094         gnulib-tool: fix sed-based filtering
24095         * gnulib-tool (func_filter_filelist): Remove extra backslash
24096         in sed_fff_filter definition.
24097
24098 2009-01-02  Jim Meyering  <meyering@redhat.com>
24099
24100         strftime: avoid compilation failure on Solaris 2.6
24101         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
24102         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
24103         Don't #define mbrlen or mbsinit, since now they're guaranteed to
24104         be available.  Reported by Tom G. Christensen.  Details in
24105         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
24106
24107 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24108             Bruno Haible  <bruno@clisp.org>
24109
24110         Speed up gnulib-tool by doing more string processing through shell
24111         built-ins.
24112         * gnulib-tool (fast_func_append): New variable.
24113         (func_remove_prefix, func_remove_suffix): New functions.
24114         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
24115         (func_filter_filelist): New function.
24116         (func_get_dependencies): Use func_remove_suffix instead of sed.
24117         (func_get_automake_snippet): Use func_filter_filelist instead of a
24118         subshell and sed invocation.
24119
24120 2009-01-01  Bruno Haible  <bruno@clisp.org>
24121
24122         Fix a security bug.
24123         * gnulib-tool (func_import, import, update): Don't allow the characters
24124         '"', '$', '`', '\' in macro arguments that become part of commands that
24125         are evaluated.
24126
24127 2009-01-01  Bruno Haible  <bruno@clisp.org>
24128
24129         * gnulib-tool (func_reset_sigpipe): Add more comments.
24130
24131 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24132
24133         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
24134         func_emit_tests_Makefile_am, func_import): Abort loops early if we
24135         already know the answer.
24136
24137 2009-01-01  Jim Meyering  <meyering@redhat.com>
24138
24139         * lib/version-etc.c (version_etc_va): Update copyright year.
24140
24141 2008-12-30  Bruno Haible  <bruno@clisp.org>
24142
24143         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
24144         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
24145         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
24146
24147 2008-12-29  Eric Blake  <ebb9@byu.net>
24148
24149         multiarch: avoid autoconf AC_REQUIRE bug
24150         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
24151         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
24152         2.63 and older.
24153         Reported by Bruno Haible, and analyzed in
24154         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
24155
24156 2008-12-29  Bruno Haible  <bruno@clisp.org>
24157
24158         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
24159         files in subdirectories correctly.
24160         Reported by Ralf Wildenhues.
24161
24162 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24163
24164         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
24165         rather than 'join FILE -', for Solaris join.
24166
24167 2008-12-29  Bruno Haible  <bruno@clisp.org>
24168
24169         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
24170         quoting.
24171         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
24172         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
24173         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
24174         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
24175         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
24176         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
24177         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
24178         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
24179         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
24180         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
24181         * m4/nls.m4 (AM_NLS): Likewise.
24182         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
24183         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
24184         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
24185         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
24186         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
24187         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
24188         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
24189         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
24190         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
24191         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
24192         * m4/xsize.m4 (gl_XSIZE): Likewise.
24193         Suggested by Jim Meyering.
24194
24195 2008-11-17  Bruce Korb  <bkorb@gnu.org>
24196
24197         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
24198         * lib/parse-duration.c: use a switch instead of cascading if's.
24199
24200 2008-12-29  Eric Blake  <ebb9@byu.net>
24201
24202         wchar.h: supply WEOF on Irix 5.3
24203         * lib/wchar.in.h (wint_t): Also supply WEOF.
24204         * lib/wctype.in.h (wint_t): Likewise.
24205         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
24206         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
24207         Reported by Tom G. Christensen.
24208
24209 2008-12-26  Bruno Haible  <bruno@clisp.org>
24210
24211         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
24212         i486, i586, i686.
24213
24214 2008-12-26  Bruno Haible  <bruno@clisp.org>
24215
24216         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
24217
24218 2008-12-26  Bruno Haible  <bruno@clisp.org>
24219
24220         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
24221         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
24222         not __STDC_CONSTANT_MACROS.
24223         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
24224
24225 2008-12-25  Bruno Haible  <bruno@clisp.org>
24226
24227         Add support for universal builds to vasnprintf.
24228         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
24229         universal builds, guess no.
24230         * modules/vasnprintf-posix (Depends-on): Add multiarch.
24231         * modules/vasprintf-posix (Depends-on): Likewise.
24232         * modules/fprintf-posix (Depends-on): Likewise.
24233         * modules/vfprintf-posix (Depends-on): Likewise.
24234         * modules/snprintf-posix (Depends-on): Likewise.
24235         * modules/vsnprintf-posix (Depends-on): Likewise.
24236         * modules/sprintf-posix (Depends-on): Likewise.
24237         * modules/vsprintf-posix (Depends-on): Likewise.
24238         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
24239         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
24240         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
24241         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
24242         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
24243         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
24244         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
24245
24246         Add support for universal builds to <inttypes.h>.
24247         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
24248         _SCNu64_PREFIX): In Apple
24249         universal builds, define directly, using _LP64.
24250         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
24251         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
24252         * modules/inttypes (Depends-on): Add multiarch.
24253         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
24254
24255         Add support for universal builds to <stdint.h>.
24256         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
24257         universal builds, define directly, using _LP64.
24258         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
24259         Apple universal builds, don't test for the size and suffix of ptrdiff_t
24260         and size_t.
24261         * modules/stdint (Depends-on): Add multiarch.
24262         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
24263
24264         New module 'multiarch'.
24265         * modules/multiarch: New file.
24266         * m4/multiarch.m4: New file.
24267
24268 2008-12-25  Bruno Haible  <bruno@clisp.org>
24269
24270         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
24271
24272 2008-12-25  Bruno Haible  <bruno@clisp.org>
24273
24274         * modules/btowc (License): Relicense under LGPLv2+.
24275         * modules/mbsinit (License): Likewise.
24276         * modules/mbrtowc (License): Likewise.
24277         * modules/wcrtomb (License): Likewise.
24278         * modules/streq (License): Likewise.
24279         Reported by David Lutterkort <lutter@redhat.com>.
24280
24281 2008-12-23  Bruno Haible  <bruno@clisp.org>
24282
24283         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
24284
24285 2008-12-23  Bruno Haible  <bruno@clisp.org>
24286
24287         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
24288         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
24289         GETADDRINFO_LIB, not in LIBS.
24290         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
24291         * modules/canon-host (Link): Likewise.
24292         * NEWS: Mention the change.
24293         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
24294         GETADDRINFO_LIB.
24295
24296 2008-12-22  Bruno Haible  <bruno@clisp.org>
24297
24298         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
24299         * doc/posix-functions/iswalpha_l.texi: Likewise.
24300         * doc/posix-functions/iswblank_l.texi: Likewise.
24301         * doc/posix-functions/iswcntrl_l.texi: Likewise.
24302         * doc/posix-functions/iswctype_l.texi: Likewise.
24303         * doc/posix-functions/iswdigit_l.texi: Likewise.
24304         * doc/posix-functions/iswgraph_l.texi: Likewise.
24305         * doc/posix-functions/iswlower_l.texi: Likewise.
24306         * doc/posix-functions/iswprint_l.texi: Likewise.
24307         * doc/posix-functions/iswpunct_l.texi: Likewise.
24308         * doc/posix-functions/iswspace_l.texi: Likewise.
24309         * doc/posix-functions/iswupper_l.texi: Likewise.
24310         * doc/posix-functions/iswxdigit_l.texi: Likewise.
24311         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
24312         * doc/posix-functions/open_wmemstream.texi: Likewise.
24313         * doc/posix-functions/swscanf.texi: Likewise.
24314         * doc/posix-functions/towctrans_l.texi: Likewise.
24315         * doc/posix-functions/towlower.texi: Likewise.
24316         * doc/posix-functions/towlower_l.texi: Likewise.
24317         * doc/posix-functions/towupper.texi: Likewise.
24318         * doc/posix-functions/towupper_l.texi: Likewise.
24319         * doc/posix-functions/vfwprintf.texi: Likewise.
24320         * doc/posix-functions/vfwscanf.texi: Likewise.
24321         * doc/posix-functions/vswscanf.texi: Likewise.
24322         * doc/posix-functions/vwprintf.texi: Likewise.
24323         * doc/posix-functions/vwscanf.texi: Likewise.
24324         * doc/posix-functions/wcpcpy.texi: Likewise.
24325         * doc/posix-functions/wcpncpy.texi: Likewise.
24326         * doc/posix-functions/wcscasecmp.texi: Likewise.
24327         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
24328         * doc/posix-functions/wcscoll_l.texi: Likewise.
24329         * doc/posix-functions/wcsdup.texi: Likewise.
24330         * doc/posix-functions/wcsncasecmp.texi: Likewise.
24331         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
24332         * doc/posix-functions/wcsnlen.texi: Likewise.
24333         * doc/posix-functions/wcsnrtombs.texi: Likewise.
24334         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
24335         * doc/posix-functions/wctrans_l.texi: Likewise.
24336         * doc/posix-functions/wctype_l.texi: Likewise.
24337         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
24338         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
24339         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
24340         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
24341         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
24342         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
24343         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
24344         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
24345         * doc/glibc-functions/wcschrnul.texi: Likewise.
24346         * doc/glibc-functions/wcsftime_l.texi: Likewise.
24347         * doc/glibc-functions/wcstod_l.texi: Likewise.
24348         * doc/glibc-functions/wcstof_l.texi: Likewise.
24349         * doc/glibc-functions/wcstol_l.texi: Likewise.
24350         * doc/glibc-functions/wcstold_l.texi: Likewise.
24351         * doc/glibc-functions/wcstoll_l.texi: Likewise.
24352         * doc/glibc-functions/wcstoq.texi: Likewise.
24353         * doc/glibc-functions/wcstoul_l.texi: Likewise.
24354         * doc/glibc-functions/wcstoull_l.texi: Likewise.
24355         * doc/glibc-functions/wcstouq.texi: Likewise.
24356         * doc/glibc-functions/wmempcpy.texi: Likewise.
24357
24358 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
24359             Eric Blake  <ebb9@byu.net>
24360             Paolo Bonzini  <bonzini@gnu.org>
24361             Bruno Haible  <bruno@clisp.org>
24362
24363         Make c-stack work on Haiku.
24364         * lib/c-stack.c (SA_ONSTACK): Define fallback.
24365         (c_stack_action): Use SA_ONSTACK flag.
24366
24367 2008-12-22  Bruno Haible  <bruno@clisp.org>
24368
24369         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
24370
24371 2008-12-22  Bruno Haible  <bruno@clisp.org>
24372
24373         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
24374         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
24375         being overridden.
24376         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
24377         New macros.
24378         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
24379         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
24380         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
24381         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
24382
24383 2008-12-22  Bruno Haible  <bruno@clisp.org>
24384
24385         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
24386         from test code.
24387
24388 2008-12-22  Eric Blake  <ebb9@byu.net>
24389
24390         Avoid gcc warnings on cygwin.
24391         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
24392         Avoid unused variable.
24393         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
24394         Likewise.
24395
24396 2008-12-22  Bruno Haible  <bruno@clisp.org>
24397
24398         Remove HAVE_MBRTOWC conditionals.
24399         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
24400         (mbscasecmp): Assume mbrtowc function.
24401         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
24402         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
24403         * lib/mbschr.c: Include mbuiter.h unconditionally.
24404         (mbschr): Assume mbrtowc function.
24405         * lib/mbscspn.c: Include mbuiter.h unconditionally.
24406         (mbscspn): Assume mbrtowc function.
24407         * lib/mbslen.c: Include mbuiter.h unconditionally.
24408         (mbslen): Assume mbrtowc function.
24409         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
24410         (mbsncasecmp): Assume mbrtowc function.
24411         * lib/mbsnlen.c: Include mbiter.h unconditionally.
24412         (mbsnlen): Assume mbrtowc function.
24413         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
24414         (mbspbrk): Assume mbrtowc function.
24415         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
24416         (mbspcasecmp): Assume mbrtowc function.
24417         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
24418         (mbsrchr): Assume mbrtowc function.
24419         * lib/mbssep.c: Include mbuiter.h unconditionally.
24420         (mbssep): Assume mbrtowc function.
24421         * lib/mbsspn.c: Include mbuiter.h unconditionally.
24422         (mbsspn): Assume mbrtowc function.
24423         * lib/mbsstr.c: Include mbuiter.h unconditionally.
24424         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
24425         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
24426         (mbstok_r): Assume mbrtowc function.
24427         * lib/propername.c: Include mbuiter.h unconditionally.
24428         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
24429         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
24430         (trim2): Assume mbrtowc function.
24431         * lib/mbswidth.c (mbsinit): Remove fallback definition.
24432         (mbsnwidth): Assume mbrtowc function.
24433         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
24434         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
24435         fallback definitions.
24436         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
24437
24438 2008-12-22  Bruno Haible  <bruno@clisp.org>
24439
24440         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
24441
24442 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
24443
24444         * modules/regex: Request emulations for the mb*/wc* functions we need.
24445         * m4/regex.m4: Don't look for those functions here.
24446         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
24447
24448 2008-12-22  Bruno Haible  <bruno@clisp.org>
24449
24450         * modules/fnmatch (Depends-on): Remove duplicated dependency.
24451
24452 2008-12-21  Bruno Haible  <bruno@clisp.org>
24453
24454         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
24455         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
24456         (Include): Remove conditionalization.
24457         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
24458         (Include): Remove conditionalization.
24459         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
24460         (Include): Remove conditionalization.
24461         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
24462         * m4/mbfile.m4 (gl_MBFILE): Likewise.
24463         * NEWS: Mention the change.
24464         Reported by Alan Hourihane <alanh@fairlite.co.uk>
24465         via Sergey Poznyakoff <gray@gnu.org.ua>.
24466
24467 2008-12-21  Bruno Haible  <bruno@clisp.org>
24468
24469         * MODULES.html.sh (Extended multibyte and wide character utilities
24470         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
24471         wcrtomb, wcsrtombs.
24472         (Support for systems lacking POSIX:2008): Add accept, bind, close,
24473         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
24474         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
24475         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
24476
24477 2008-12-21  Bruno Haible  <bruno@clisp.org>
24478
24479         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
24480
24481 2008-12-21  Bruno Haible  <bruno@clisp.org>
24482
24483         * modules/wcsnrtombs-tests: New file.
24484         * tests/test-wcsnrtombs1.sh: New file.
24485         * tests/test-wcsnrtombs2.sh: New file.
24486         * tests/test-wcsnrtombs3.sh: New file.
24487         * tests/test-wcsnrtombs4.sh: New file.
24488         * tests/test-wcsnrtombs.c: New file.
24489
24490         New module 'wcsnrtombs'.
24491         * lib/wchar.in.h (wcsnrtombs): New declaration.
24492         * lib/wcsnrtombs.c: New file.
24493         * lib/wcsrtombs-state.c: New file.
24494         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
24495         (internal_state): Remove variable.
24496         * m4/wcsnrtombs.m4: New file.
24497         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
24498         compilation units.
24499         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
24500         HAVE_WCSNRTOMBS.
24501         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
24502         HAVE_WCSNRTOMBS.
24503         * modules/wcsnrtombs: New file.
24504         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
24505         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
24506
24507 2008-12-21  Bruno Haible  <bruno@clisp.org>
24508
24509         * modules/wcsrtombs-tests: New file.
24510         * tests/test-wcsrtombs1.sh: New file.
24511         * tests/test-wcsrtombs2.sh: New file.
24512         * tests/test-wcsrtombs3.sh: New file.
24513         * tests/test-wcsrtombs4.sh: New file.
24514         * tests/test-wcsrtombs.c: New file.
24515
24516         New module 'wcsrtombs'.
24517         * lib/wchar.in.h (wcsrtombs): New declaration.
24518         * lib/wcsrtombs.c: New file.
24519         * m4/wcsrtombs.m4: New file.
24520         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
24521         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
24522         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
24523         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
24524         * modules/wcsrtombs: New file.
24525         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
24526         bugs.
24527
24528 2008-12-21  Bruno Haible  <bruno@clisp.org>
24529
24530         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
24531         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
24532         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
24533         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
24534         if not correct.
24535         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
24536         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
24537         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
24538         m4/locale-zh.m4, m4/codeset.m4.
24539         * doc/posix-functions/wcrtomb.texi: Document the bug.
24540
24541 2008-12-21  Bruno Haible  <bruno@clisp.org>
24542
24543         Work around a btowc() bug on IRIX 6.5.
24544         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
24545         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
24546         REPLACE_WTOBC if not.
24547         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
24548         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
24549         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
24550
24551 2008-12-21  Bruno Haible  <bruno@clisp.org>
24552
24553         * modules/wcrtomb-tests: New file.
24554         * tests/test-wcrtomb.sh: New file.
24555         * tests/test-wcrtomb.c: New file.
24556
24557         New module 'wcrtomb'.
24558         * lib/wchar.in.h (wcrtomb): New declaration.
24559         * lib/wcrtomb.c: New file.
24560         * m4/wcrtomb.m4: New file.
24561         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
24562         HAVE_WCRTOMB.
24563         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
24564         HAVE_WCRTOMB.
24565         * modules/wcrtomb: New file.
24566         * doc/posix-functions/wcrtomb.texi: Mention the new module.
24567
24568 2008-12-21  Bruno Haible  <bruno@clisp.org>
24569
24570         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
24571         * modules/mbsrtowcs (Files): Likewise.
24572         * modules/wctob (Files): Likewise.
24573         * modules/c-strcase-tests (Files): Likewise.
24574         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
24575         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
24576         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
24577         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
24578         * modules/vasnprintf-posix-tests (Files): Likewise.
24579
24580 2008-12-21  William Pursell  <bill.pursell@gmail.com>
24581
24582         gitlog-to-changelog: pass all command-line arguments to git-log
24583         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
24584         it is sometimes convenient to filter the commits in various ways.
24585         gitlog-to-changelog only allows --since to specify a start date,
24586         but git-log itself supports many other filtering mechanisms.
24587         At the moment, I want to filter by branch name.  Rather than
24588         adding a --branch option to gitlog-to-changelog, it seems more
24589         flexible to simply pass all options directly to git-log and let
24590         git do the work.  Notice that this effectively makes --since a
24591         redundant option for gitlog-to-changelog, but removing it would
24592         require current usage to change since calls would then require
24593         an additional '--'.
24594
24595 2008-12-21  Bruno Haible  <bruno@clisp.org>
24596
24597         * modules/mbsnrtowcs-tests: New file.
24598         * tests/test-mbsnrtowcs1.sh: New file.
24599         * tests/test-mbsnrtowcs2.sh: New file.
24600         * tests/test-mbsnrtowcs3.sh: New file.
24601         * tests/test-mbsnrtowcs4.sh: New file.
24602         * tests/test-mbsnrtowcs.c: New file.
24603
24604         New module 'mbsnrtowcs'.
24605         * lib/wchar.in.h (mbsnrtowcs): New declaration.
24606         * lib/mbsnrtowcs.c: New file.
24607         * lib/mbsrtowcs-state.c: New file.
24608         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
24609         (internal_state): Remove variable.
24610         * m4/mbsnrtowcs.m4: New file.
24611         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
24612         compilation units.
24613         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
24614         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
24615         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
24616         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
24617         * modules/mbsnrtowcs: New file.
24618         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
24619         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
24620         portability problem.
24621
24622 2008-12-21  Bruno Haible  <bruno@clisp.org>
24623
24624         Work around mbsrtowcs bug.
24625         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
24626         (gl_FUNC_MBSRTOWCS): Invoke it.
24627         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
24628         m4/locale-zh.m4.
24629         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
24630
24631 2008-12-21  Bruno Haible  <bruno@clisp.org>
24632
24633         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
24634
24635 2008-12-21  Bruno Haible  <bruno@clisp.org>
24636
24637         Update doc for AIX.
24638         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
24639         16-bit wchar_t type.
24640         * doc/posix-functions/btowc.texi: Likewise.
24641         * doc/posix-functions/fgetwc.texi: Likewise.
24642         * doc/posix-functions/fgetws.texi: Likewise.
24643         * doc/posix-functions/fputwc.texi: Likewise.
24644         * doc/posix-functions/fputws.texi: Likewise.
24645         * doc/posix-functions/fwide.texi: Likewise.
24646         * doc/posix-functions/fwprintf.texi: Likewise.
24647         * doc/posix-functions/fwscanf.texi: Likewise.
24648         * doc/posix-functions/getwchar.texi: Likewise.
24649         * doc/posix-functions/getwc.texi: Likewise.
24650         * doc/posix-functions/iswalnum.texi: Likewise.
24651         * doc/posix-functions/iswalpha.texi: Likewise.
24652         * doc/posix-functions/iswblank.texi: Likewise.
24653         * doc/posix-functions/iswcntrl.texi: Likewise.
24654         * doc/posix-functions/iswctype.texi: Likewise.
24655         * doc/posix-functions/iswdigit.texi: Likewise.
24656         * doc/posix-functions/iswgraph.texi: Likewise.
24657         * doc/posix-functions/iswlower.texi: Likewise.
24658         * doc/posix-functions/iswprint.texi: Likewise.
24659         * doc/posix-functions/iswpunct.texi: Likewise.
24660         * doc/posix-functions/iswspace.texi: Likewise.
24661         * doc/posix-functions/iswupper.texi: Likewise.
24662         * doc/posix-functions/iswxdigit.texi: Likewise.
24663         * doc/posix-functions/mbrtowc.texi: Likewise.
24664         * doc/posix-functions/mbsrtowcs.texi: Likewise.
24665         * doc/posix-functions/mbstowcs.texi: Likewise.
24666         * doc/posix-functions/mbtowc.texi: Likewise.
24667         * doc/posix-functions/putwchar.texi: Likewise.
24668         * doc/posix-functions/putwc.texi: Likewise.
24669         * doc/posix-functions/swprintf.texi: Likewise.
24670         * doc/posix-functions/tolower.texi: Likewise.
24671         * doc/posix-functions/toupper.texi: Likewise.
24672         * doc/posix-functions/towctrans.texi: Likewise.
24673         * doc/posix-functions/ungetwc.texi: Likewise.
24674         * doc/posix-functions/vswprintf.texi: Likewise.
24675         * doc/posix-functions/wcrtomb.texi: Likewise.
24676         * doc/posix-functions/wcscat.texi: Likewise.
24677         * doc/posix-functions/wcschr.texi: Likewise.
24678         * doc/posix-functions/wcscmp.texi: Likewise.
24679         * doc/posix-functions/wcscoll.texi: Likewise.
24680         * doc/posix-functions/wcscpy.texi: Likewise.
24681         * doc/posix-functions/wcscspn.texi: Likewise.
24682         * doc/posix-functions/wcsftime.texi: Likewise.
24683         * doc/posix-functions/wcslen.texi: Likewise.
24684         * doc/posix-functions/wcsncat.texi: Likewise.
24685         * doc/posix-functions/wcsncmp.texi: Likewise.
24686         * doc/posix-functions/wcsncpy.texi: Likewise.
24687         * doc/posix-functions/wcspbrk.texi: Likewise.
24688         * doc/posix-functions/wcsrchr.texi: Likewise.
24689         * doc/posix-functions/wcsrtombs.texi: Likewise.
24690         * doc/posix-functions/wcsspn.texi: Likewise.
24691         * doc/posix-functions/wcsstr.texi: Likewise.
24692         * doc/posix-functions/wcstod.texi: Likewise.
24693         * doc/posix-functions/wcstof.texi: Likewise.
24694         * doc/posix-functions/wcstoimax.texi: Likewise.
24695         * doc/posix-functions/wcstok.texi: Likewise.
24696         * doc/posix-functions/wcstold.texi: Likewise.
24697         * doc/posix-functions/wcstoll.texi: Likewise.
24698         * doc/posix-functions/wcstol.texi: Likewise.
24699         * doc/posix-functions/wcstombs.texi: Likewise.
24700         * doc/posix-functions/wcstoull.texi: Likewise.
24701         * doc/posix-functions/wcstoul.texi: Likewise.
24702         * doc/posix-functions/wcstoumax.texi: Likewise.
24703         * doc/posix-functions/wcswidth.texi: Likewise.
24704         * doc/posix-functions/wcsxfrm.texi: Likewise.
24705         * doc/posix-functions/wctob.texi: Likewise.
24706         * doc/posix-functions/wctomb.texi: Likewise.
24707         * doc/posix-functions/wctrans.texi: Likewise.
24708         * doc/posix-functions/wctype.texi: Likewise.
24709         * doc/posix-functions/wcwidth.texi: Likewise.
24710         * doc/posix-functions/wmemchr.texi: Likewise.
24711         * doc/posix-functions/wmemcmp.texi: Likewise.
24712         * doc/posix-functions/wmemcpy.texi: Likewise.
24713         * doc/posix-functions/wmemmove.texi: Likewise.
24714         * doc/posix-functions/wmemset.texi: Likewise.
24715         * doc/posix-functions/wprintf.texi: Likewise.
24716         * doc/posix-functions/wscanf.texi: Likewise.
24717
24718 2008-12-21  Bruno Haible  <bruno@clisp.org>
24719
24720         Update doc for HP-UX 11.11.
24721         * doc/posix-functions/btowc.texi: Clarify that the function is missing
24722         in HP-UX version 11.00, not in all versions of HP-UX 11.
24723         * doc/posix-functions/fwide.texi: Likewise.
24724         * doc/posix-functions/fwprintf.texi: Likewise.
24725         * doc/posix-functions/fwscanf.texi: Likewise.
24726         * doc/posix-functions/inet_ntop.texi: Likewise.
24727         * doc/posix-functions/inet_pton.texi: Likewise.
24728         * doc/posix-functions/mbrlen.texi: Likewise.
24729         * doc/posix-functions/mbrtowc.texi: Likewise.
24730         * doc/posix-functions/mbsinit.texi: Likewise.
24731         * doc/posix-functions/mbsrtowcs.texi: Likewise.
24732         * doc/posix-functions/swprintf.texi: Likewise.
24733         * doc/posix-functions/swscanf.texi: Likewise.
24734         * doc/posix-functions/towctrans.texi: Likewise.
24735         * doc/posix-functions/vfwprintf.texi: Likewise.
24736         * doc/posix-functions/vswprintf.texi: Likewise.
24737         * doc/posix-functions/vwprintf.texi: Likewise.
24738         * doc/posix-functions/wcrtomb.texi: Likewise.
24739         * doc/posix-functions/wcsrtombs.texi: Likewise.
24740         * doc/posix-functions/wcsstr.texi: Likewise.
24741         * doc/posix-functions/wctob.texi: Likewise.
24742         * doc/posix-functions/wctrans.texi: Likewise.
24743         * doc/posix-functions/wmemchr.texi: Likewise.
24744         * doc/posix-functions/wmemcmp.texi: Likewise.
24745         * doc/posix-functions/wmemcpy.texi: Likewise.
24746         * doc/posix-functions/wmemmove.texi: Likewise.
24747         * doc/posix-functions/wmemset.texi: Likewise.
24748         * doc/posix-functions/wprintf.texi: Likewise.
24749         * doc/posix-functions/wscanf.texi: Likewise.
24750
24751 2008-12-21  Bruno Haible  <bruno@clisp.org>
24752
24753         Work around a portability problem.
24754         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
24755         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
24756
24757 2008-12-20  Bruno Haible  <bruno@clisp.org>
24758
24759         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
24760         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
24761         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
24762         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
24763         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
24764
24765         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
24766         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
24767         set.
24768         (GNULIB_defined_mbstate_t): New macro.
24769         (mbsinit): Redefine if REPLACE_MBSINIT is set.
24770         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
24771         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
24772         reuses the system's mbrtowc function but works around the bugs.
24773         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
24774         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
24775         macros.
24776         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
24777         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
24778         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
24779         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
24780         REPLACE_MBSINIT if mbsinit needs to be overridden.
24781         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
24782         REPLACE_MBSINIT, REPLACE_MBRTOWC.
24783         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
24784         REPLACE_MBSINIT, REPLACE_MBRTOWC.
24785         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
24786         m4/locale-zh.m4.
24787         (Depends): Add mbsinit.
24788         * modules/mbsinit (Depends): Add mbrtowc.
24789         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
24790
24791 2008-12-20  Bruno Haible  <bruno@clisp.org>
24792
24793         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
24794         so that there are no conversion errors on AIX.
24795         * tests/test-mbsrtowcs.c (main): LIkewise.
24796
24797 2008-12-20  Bruno Haible  <bruno@clisp.org>
24798
24799         Work around wctob bug on Solaris <= 9.
24800         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
24801         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
24802         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
24803         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
24804         * modules/wctob (Files): Add m4/locale-fr.m4.
24805         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
24806
24807 2008-12-20  Bruno Haible  <bruno@clisp.org>
24808
24809         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
24810         /dev/null.
24811         * tests/test-select-in.sh: Likewise.
24812         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
24813
24814 2008-12-20  Bruno Haible  <bruno@clisp.org>
24815
24816         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
24817         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
24818         Cygwin 1.5.x.
24819
24820 2008-12-20  Bruno Haible  <bruno@clisp.org>
24821
24822         Ensure mbstate_t is defined on HP-UX 11.11.
24823         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
24824         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
24825         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
24826         AC_USE_SYSTEM_EXTENSIONS.
24827         * modules/fnmatch (Depends-on): Add extensions.
24828         * modules/mbrlen (Depends-on): Likewise.
24829         * modules/mbrtowc (Depends-on): Likewise.
24830         * modules/mbsinit (Depends-on): Likewise.
24831         * modules/mbsrtowcs (Depends-on): Likewise.
24832         * modules/mbswidth (Depends-on): Likewise.
24833         * modules/quotearg (Depends-on): Likewise.
24834         * modules/strftime (Depends-on): Likewise.
24835
24836 2008-12-20  Bruno Haible  <bruno@clisp.org>
24837
24838         Ensure wctob is declared on IRIX 6.5.
24839         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
24840         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
24841         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
24842         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
24843         of HAVE_WCTOB.
24844         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
24845         HAVE_WCTOB.
24846         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
24847
24848 2008-12-19  Bruno Haible  <bruno@clisp.org>
24849
24850         * modules/mbsrtowcs-tests: New file.
24851         * tests/test-mbsrtowcs1.sh: New file.
24852         * tests/test-mbsrtowcs2.sh: New file.
24853         * tests/test-mbsrtowcs3.sh: New file.
24854         * tests/test-mbsrtowcs4.sh: New file.
24855         * tests/test-mbsrtowcs.c: New file.
24856
24857         New module 'mbsrtowcs'.
24858         * lib/wchar.in.h (mbsrtowcs): New declaration.
24859         * lib/mbsrtowcs.c: New file.
24860         * m4/mbsrtowcs.m4: New file.
24861         * modules/mbsrtowcs: New file.
24862         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
24863         HAVE_MBSRTOWCS.
24864         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
24865         HAVE_MBSRTOWCS.
24866         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
24867
24868 2008-12-19  Bruno Haible  <bruno@clisp.org>
24869
24870         New module 'mbrlen'.
24871         * lib/wchar.in.h (mbrlen): New declaration.
24872         * lib/mbrlen.c: New file.
24873         * m4/mbrlen.m4: New file.
24874         * modules/mbrlen: New file.
24875         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
24876         HAVE_MBRLEN.
24877         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
24878         HAVE_MBRLEN.
24879         * doc/posix-functions/mbrlen.texi: Document the new module.
24880
24881 2008-12-19  Bruno Haible  <bruno@clisp.org>
24882
24883         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
24884         * modules/mbrtowc (Depends-on): Add verify.
24885         Suggested by Paul Eggert.
24886
24887 2008-12-18  Bruno Haible  <bruno@clisp.org>
24888
24889         * modules/mbsinit-tests: New file.
24890         * tests/test-mbsinit.sh: New file.
24891         * tests/test-mbsinit.c: New file.
24892
24893 2008-12-18  Bruno Haible  <bruno@clisp.org>
24894
24895         * modules/mbrtowc-tests: New file.
24896         * tests/test-mbrtowc1.sh: New file.
24897         * tests/test-mbrtowc2.sh: New file.
24898         * tests/test-mbrtowc3.sh: New file.
24899         * tests/test-mbrtowc4.sh: New file.
24900         * tests/test-mbrtowc.c: New file.
24901
24902         New module 'mbrtowc'.
24903         * lib/wchar.in.h (mbstate_t): Override when the system does not have
24904         mbsinit and mbrtowc.
24905         (mbrtowc): New declaration.
24906         * lib/mbrtowc.c: New file.
24907         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
24908         * modules/mbrtowc: New file.
24909         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
24910         HAVE_MBRTOWC.
24911         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
24912         HAVE_MBRTOWC.
24913         * doc/posix-functions/mbrtowc.texi: Document the new module.
24914
24915 2008-12-18  Bruno Haible  <bruno@clisp.org>
24916
24917         New module 'wctob'.
24918         * lib/wchar.in.h (wctob): New declaration.
24919         * lib/wctob.c: New file.
24920         * m4/wctob.m4: New file.
24921         * modules/wctob: New file.
24922         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
24923         HAVE_WCTOB.
24924         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
24925         * doc/posix-functions/wctob.texi: Document the new module.
24926
24927 2008-12-18  Bruno Haible  <bruno@clisp.org>
24928
24929         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
24930         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
24931
24932 2008-12-18  Simon Josefsson  <simon@josefsson.org>
24933
24934         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
24935         G. Christensen" <tgc@jupiterrise.com>.
24936
24937         * lib/flock.c: Need to include errno.h.  Reported by "Tom
24938         G. Christensen" <tgc@jupiterrise.com>.
24939
24940         * lib/flock.c: Need to include string.h.  Reported by "Tom
24941         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
24942         <ebb9@byu.net>.
24943
24944 2008-12-18  Bruno Haible  <bruno@clisp.org>
24945
24946         * m4/locale-ja.m4: New file, from GNU gettext.
24947
24948 2008-12-17  Bruno Haible  <bruno@clisp.org>
24949
24950         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
24951         Suggested by Eric Blake.
24952
24953 2008-12-17  Bruno Haible  <bruno@clisp.org>
24954
24955         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
24956
24957 2008-12-17  Bruno Haible  <bruno@clisp.org>
24958
24959         * lib/mbsinit.c: Include verify.h. Verify an assumption.
24960         * modules/mbsinit (Depends-on): Add verify.
24961         Suggested by Paul Eggert.
24962
24963 2008-12-17  Bruno Haible  <bruno@clisp.org>
24964
24965         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
24966         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
24967         gl_FUNC_MBRTOWC.
24968         * m4/mbiter.m4 (gl_MBITER): LIkewise.
24969         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
24970         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
24971         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
24972         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
24973         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
24974         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
24975         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
24976         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
24977         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
24978         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
24979         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
24980         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
24981         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
24982         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
24983         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
24984         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
24985         * modules/trim (configure.ac): Likewise.
24986
24987 2008-12-17  Bruno Haible  <bruno@clisp.org>
24988
24989         * modules/btowc-tests: New file.
24990         * tests/test-btowc1.sh: New file.
24991         * tests/test-btowc2.sh: New file.
24992         * tests/test-btowc.c: New file.
24993
24994         New module 'btowc'.
24995         * lib/wchar.in.h (btowc): New declaration.
24996         * lib/btowc.c: New file.
24997         * m4/btowc.m4: New file.
24998         * modules/btowc: New file.
24999         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
25000         HAVE_BTOWC.
25001         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
25002         * doc/posix-functions/btowc.texi: Document the new module.
25003
25004 2008-12-17  Bruno Haible  <bruno@clisp.org>
25005
25006         New module 'mbsinit'.
25007         * lib/wchar.in.h (mbsinit): New declaration.
25008         * lib/mbsinit.c: New file.
25009         * m4/mbsinit.m4: New file.
25010         * modules/mbsinit: New file.
25011         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
25012         HAVE_MBSINIT.
25013         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
25014         HAVE_MBSINIT.
25015         * doc/posix-functions/mbsinit.texi: Document the new module.
25016
25017 2008-12-16  Bruno Haible  <bruno@clisp.org>
25018
25019         * lib/unistd.in.h: Add comment.
25020         * tests/test-environ.c: Don't include <stdlib.h>.
25021
25022 2008-12-16  Bruno Haible  <bruno@clisp.org>
25023
25024         * lib/parse-duration.h (parse_duration): Document return value
25025         convention.
25026         * lib/parse-duration.c: Include specification header first. Add
25027         comments.
25028         (_): Remove macro.
25029         (parse_year_month_day, parse_hour_minute_second): Move side effects
25030         outside of strchr call.
25031         (parse_non_iso8601): Move side effects outside of isspace call.
25032         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
25033         call.
25034
25035 2008-12-16  Bruno Haible  <bruno@clisp.org>
25036
25037         * tests/test-parse-duration.sh: Produce no output when the test
25038         succeeds.
25039
25040 2008-12-16  Bruno Haible  <bruno@clisp.org>
25041
25042         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
25043         expressions.
25044
25045 2008-12-15  Bruno Haible  <bruno@clisp.org>
25046
25047         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
25048         * doc/glibc-functions/flistxattr.texi: Likewise.
25049         * doc/glibc-functions/fopencookie.texi: Likewise.
25050         * doc/glibc-functions/fremovexattr.texi: Likewise.
25051         * doc/glibc-functions/fsetxattr.texi: Likewise.
25052         * doc/glibc-functions/getxattr.texi: Likewise.
25053         * doc/glibc-functions/lgetxattr.texi: Likewise.
25054         * doc/glibc-functions/listxattr.texi: Likewise.
25055         * doc/glibc-functions/llistxattr.texi: Likewise.
25056         * doc/glibc-functions/lremovexattr.texi: Likewise.
25057         * doc/glibc-functions/lsetxattr.texi: Likewise.
25058         * doc/glibc-functions/removexattr.texi: Likewise.
25059         * doc/glibc-functions/setxattr.texi: Likewise.
25060         * doc/posix-functions/open_memstream.texi: Likewise.
25061
25062 2008-12-15  Eric Blake  <ebb9@byu.net>
25063
25064         Update doc for cygwin 1.7.
25065         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
25066         functions.
25067         * doc/posix-functions/fchmodat.texi: Likewise.
25068         * doc/posix-functions/fchownat.texi: Likewise.
25069         * doc/posix-functions/fdopendir.texi: Likewise.
25070         * doc/posix-functions/fmemopen.texi: Likewise.
25071         * doc/posix-functions/freeaddrinfo.texi: Likewise.
25072         * doc/posix-functions/fstatat.texi: Likewise.
25073         * doc/posix-functions/futimens.texi: Likewise.
25074         * doc/posix-functions/gai_strerror.texi: Likewise.
25075         * doc/posix-functions/getaddrinfo.texi: Likewise.
25076         * doc/posix-functions/getnameinfo.texi: Likewise.
25077         * doc/posix-functions/if_freenameindex.texi: Likewise.
25078         * doc/posix-functions/if_indextoname.texi: Likewise.
25079         * doc/posix-functions/if_nameindex.texi: Likewise.
25080         * doc/posix-functions/if_nametoindex.texi: Likewise.
25081         * doc/posix-functions/insque.texi: Likewise.
25082         * doc/posix-functions/linkat.texi: Likewise.
25083         * doc/posix-functions/llrint.texi: Likewise.
25084         * doc/posix-functions/llrintf.texi: Likewise.
25085         * doc/posix-functions/llrintl.texi: Likewise.
25086         * doc/posix-functions/lockf.texi: Likewise.
25087         * doc/posix-functions/lrintl.texi: Likewise.
25088         * doc/posix-functions/mkdirat.texi: Likewise.
25089         * doc/posix-functions/mkfifoat.texi: Likewise.
25090         * doc/posix-functions/mknodat.texi: Likewise.
25091         * doc/posix-functions/mq_close.texi: Likewise.
25092         * doc/posix-functions/mq_getattr.texi: Likewise.
25093         * doc/posix-functions/mq_notify.texi: Likewise.
25094         * doc/posix-functions/mq_open.texi: Likewise.
25095         * doc/posix-functions/mq_receive.texi: Likewise.
25096         * doc/posix-functions/mq_send.texi: Likewise.
25097         * doc/posix-functions/mq_setattr.texi: Likewise.
25098         * doc/posix-functions/mq_timedreceive.texi: Likewise.
25099         * doc/posix-functions/mq_timedsend.texi: Likewise.
25100         * doc/posix-functions/mq_unlink.texi: Likewise.
25101         * doc/posix-functions/open_memstream.texi: Likewise.
25102         * doc/posix-functions/openat.texi: Likewise.
25103         * doc/posix-functions/posix_fadvise.texi: Likewise.
25104         * doc/posix-functions/posix_fallocate.texi: Likewise.
25105         * doc/posix-functions/posix_madvise.texi: Likewise.
25106         * doc/posix-functions/posix_memalign.texi: Likewise.
25107         * doc/posix-functions/posix_openpt.texi: Likewise.
25108         * doc/posix-functions/readlinkat.texi: Likewise.
25109         * doc/posix-functions/remque.texi: Likewise.
25110         * doc/posix-functions/renameat.texi: Likewise.
25111         * doc/posix-functions/rintl.texi: Likewise.
25112         * doc/posix-functions/sem_unlink.texi: Likewise.
25113         * doc/posix-functions/shm_open.texi: Likewise.
25114         * doc/posix-functions/shm_unlink.texi: Likewise.
25115         * doc/posix-functions/signgam.texi: Likewise.
25116         * doc/posix-functions/sigset.texi: Likewise.
25117         * doc/posix-functions/stpcpy.texi: Likewise.
25118         * doc/posix-functions/stpncpy.texi: Likewise.
25119         * doc/posix-functions/strerror.texi: Likewise.
25120         * doc/posix-functions/strtod.texi: Likewise.
25121         * doc/posix-functions/symlinkat.texi: Likewise.
25122         * doc/posix-functions/unlinkat.texi: Likewise.
25123         * doc/posix-functions/utimensat.texi: Likewise.
25124         * doc/glibc-functions/bindresvport.texi: Likewise.
25125         * doc/glibc-functions/dn_expand.texi: Likewise.
25126         * doc/glibc-functions/exp10.texi: Likewise.
25127         * doc/glibc-functions/exp10f.texi: Likewise.
25128         * doc/glibc-functions/fgetxattr.texi: Likewise.
25129         * doc/glibc-functions/flistxattr.texi: Likewise.
25130         * doc/glibc-functions/fopencookie.texi: Likewise.
25131         * doc/glibc-functions/freeifaddrs.texi: Likewise.
25132         * doc/glibc-functions/fremovexattr.texi: Likewise.
25133         * doc/glibc-functions/fsetxattr.texi: Likewise.
25134         * doc/glibc-functions/getifaddrs.texi: Likewise.
25135         * doc/glibc-functions/getxattr.texi: Likewise.
25136         * doc/glibc-functions/lgetxattr.texi: Likewise.
25137         * doc/glibc-functions/listxattr.texi: Likewise.
25138         * doc/glibc-functions/llistxattr.texi: Likewise.
25139         * doc/glibc-functions/lremovexattr.texi: Likewise.
25140         * doc/glibc-functions/lsetxattr.texi: Likewise.
25141         * doc/glibc-functions/pow10.texi: Likewise.
25142         * doc/glibc-functions/pow10f.texi: Likewise.
25143         * doc/glibc-functions/rcmd_af.texi: Likewise.
25144         * doc/glibc-functions/removexattr.texi: Likewise.
25145         * doc/glibc-functions/res_init.texi: Likewise.
25146         * doc/glibc-functions/res_mkquery.texi: Likewise.
25147         * doc/glibc-functions/res_query.texi: Likewise.
25148         * doc/glibc-functions/res_querydomain.texi: Likewise.
25149         * doc/glibc-functions/res_send.texi: Likewise.
25150         * doc/glibc-functions/rresvport_af.texi: Likewise.
25151         * doc/glibc-functions/setxattr.texi: Likewise.
25152         * doc/glibc-functions/strcasestr.texi: Likewise.
25153
25154 2008-12-15  Bruno Haible  <bruno@clisp.org>
25155
25156         Fix compilation error on OSF/1 4.0.
25157         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
25158         <sys/time.h>, simply delegate to the system header.
25159         Reported by Daniel Richard G. <oss@teragram.com>.
25160
25161 2008-12-15  Bruno Haible  <bruno@clisp.org>
25162
25163         * doc/posix-functions/openat.texi: Mention the 'openat' module.
25164         * doc/posix-functions/fchmodat.texi: Likewise.
25165         * doc/posix-functions/fchownat.texi: Likewise.
25166         * doc/posix-functions/fdopendir.texi: Likewise.
25167         * doc/posix-functions/fstatat.texi: Likewise.
25168         * doc/posix-functions/mkdirat.texi: Likewise.
25169         * doc/posix-functions/unlinkat.texi: Likewise.
25170
25171 2008-12-14  Bruno Haible  <bruno@clisp.org>
25172
25173         Update doc for POSIX:2008.
25174         * doc/posix-functions/faccessat.texi: New file.
25175         * doc/posix-functions/fchmodat.texi: New file.
25176         * doc/posix-functions/fchownat.texi: New file.
25177         * doc/posix-functions/fdopendir.texi: New file.
25178         * doc/posix-functions/fstatat.texi: New file.
25179         * doc/posix-functions/futimens.texi: New file.
25180         * doc/posix-functions/linkat.texi: New file.
25181         * doc/posix-functions/mkdirat.texi: New file.
25182         * doc/posix-functions/mkfifoat.texi: New file.
25183         * doc/posix-functions/mknodat.texi: New file.
25184         * doc/posix-functions/open_wmemstream.texi: New file.
25185         * doc/posix-functions/openat.texi: New file.
25186         * doc/posix-functions/psiginfo.texi: New file.
25187         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
25188         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
25189         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
25190         * doc/posix-functions/readlinkat.texi: New file.
25191         * doc/posix-functions/renameat.texi: New file.
25192         * doc/posix-functions/strerror_l.texi: New file.
25193         * doc/posix-functions/symlinkat.texi: New file.
25194         * doc/posix-functions/unlinkat.texi: New file.
25195         * doc/posix-functions/utimensat.texi: New file.
25196         * doc/gnulib.texi (Function Substitutes): Add these subsections.
25197
25198 2008-12-14  Bruno Haible  <bruno@clisp.org>
25199
25200         Update doc for POSIX:2008.
25201         * doc/posix-functions/alphasort.texi: Renamed from
25202         doc/glibc-functions/alphasort.texi.
25203         * doc/posix-functions/dirfd.texi: Renamed from
25204         doc/glibc-functions/dirfd.texi.
25205         * doc/posix-functions/dprintf.texi: Renamed from
25206         doc/glibc-functions/dprintf.texi.
25207         * doc/posix-functions/duplocale.texi: Renamed from
25208         doc/glibc-functions/duplocale.texi.
25209         * doc/posix-functions/fexecve.texi: Renamed from
25210         doc/glibc-functions/fexecve.texi.
25211         * doc/posix-functions/fmemopen.texi: Renamed from
25212         doc/glibc-functions/fmemopen.texi.
25213         * doc/posix-functions/freelocale.texi: Renamed from
25214         doc/glibc-functions/freelocale.texi.
25215         * doc/posix-functions/getdate_err.texi: Renamed from
25216         doc/glibc-functions/getdate_err.texi.
25217         * doc/posix-functions/isalnum_l.texi: Renamed from
25218         doc/glibc-functions/isalnum_l.texi.
25219         * doc/posix-functions/isalpha_l.texi: Renamed from
25220         doc/glibc-functions/isalpha_l.texi.
25221         * doc/posix-functions/isblank_l.texi: Renamed from
25222         doc/glibc-functions/isblank_l.texi.
25223         * doc/posix-functions/iscntrl_l.texi: Renamed from
25224         doc/glibc-functions/iscntrl_l.texi.
25225         * doc/posix-functions/isdigit_l.texi: Renamed from
25226         doc/glibc-functions/isdigit_l.texi.
25227         * doc/posix-functions/isgraph_l.texi: Renamed from
25228         doc/glibc-functions/isgraph_l.texi.
25229         * doc/posix-functions/islower_l.texi: Renamed from
25230         doc/glibc-functions/islower_l.texi.
25231         * doc/posix-functions/isprint_l.texi: Renamed from
25232         doc/glibc-functions/isprint_l.texi.
25233         * doc/posix-functions/ispunct_l.texi: Renamed from
25234         doc/glibc-functions/ispunct_l.texi.
25235         * doc/posix-functions/isspace_l.texi: Renamed from
25236         doc/glibc-functions/isspace_l.texi.
25237         * doc/posix-functions/isupper_l.texi: Renamed from
25238         doc/glibc-functions/isupper_l.texi.
25239         * doc/posix-functions/iswalnum_l.texi: Renamed from
25240         doc/glibc-functions/iswalnum_l.texi.
25241         * doc/posix-functions/iswalpha_l.texi: Renamed from
25242         doc/glibc-functions/iswalpha_l.texi.
25243         * doc/posix-functions/iswblank_l.texi: Renamed from
25244         doc/glibc-functions/iswblank_l.texi.
25245         * doc/posix-functions/iswcntrl_l.texi: Renamed from
25246         doc/glibc-functions/iswcntrl_l.texi.
25247         * doc/posix-functions/iswctype_l.texi: Renamed from
25248         doc/glibc-functions/iswctype_l.texi.
25249         * doc/posix-functions/iswdigit_l.texi: Renamed from
25250         doc/glibc-functions/iswdigit_l.texi.
25251         * doc/posix-functions/iswgraph_l.texi: Renamed from
25252         doc/glibc-functions/iswgraph_l.texi.
25253         * doc/posix-functions/iswlower_l.texi: Renamed from
25254         doc/glibc-functions/iswlower_l.texi.
25255         * doc/posix-functions/iswprint_l.texi: Renamed from
25256         doc/glibc-functions/iswprint_l.texi.
25257         * doc/posix-functions/iswpunct_l.texi: Renamed from
25258         doc/glibc-functions/iswpunct_l.texi.
25259         * doc/posix-functions/iswspace_l.texi: Renamed from
25260         doc/glibc-functions/iswspace_l.texi.
25261         * doc/posix-functions/iswupper_l.texi: Renamed from
25262         doc/glibc-functions/iswupper_l.texi.
25263         * doc/posix-functions/iswxdigit_l.texi: Renamed from
25264         doc/glibc-functions/iswxdigit_l.texi.
25265         * doc/posix-functions/isxdigit_l.texi: Renamed from
25266         doc/glibc-functions/isxdigit_l.texi.
25267         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
25268         doc/glibc-functions/mbsnrtowcs.texi.
25269         * doc/posix-functions/mkdtemp.texi: Renamed from
25270         doc/glibc-functions/mkdtemp.texi.
25271         * doc/posix-functions/newlocale.texi: Renamed from
25272         doc/glibc-functions/newlocale.texi.
25273         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
25274         doc/glibc-functions/nl_langinfo_l.texi.
25275         * doc/posix-functions/open_memstream.texi: Renamed from
25276         doc/glibc-functions/open_memstream.texi.
25277         * doc/posix-functions/opterr.texi: Renamed from
25278         doc/glibc-functions/opterr.texi.
25279         * doc/posix-functions/optind.texi: Renamed from
25280         doc/glibc-functions/optind.texi.
25281         * doc/posix-functions/optopt.texi: Renamed from
25282         doc/glibc-functions/optopt.texi.
25283         * doc/posix-functions/psignal.texi: Renamed from
25284         doc/glibc-functions/psignal.texi.
25285         * doc/posix-functions/scandir.texi: Renamed from
25286         doc/glibc-functions/scandir.texi.
25287         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
25288         doc/glibc-functions/sched_get_priority_min.texi.
25289         * doc/posix-functions/signgam.texi: Renamed from
25290         doc/glibc-functions/signgam.texi.
25291         * doc/posix-functions/stpcpy.texi: Renamed from
25292         doc/glibc-functions/stpcpy.texi.
25293         * doc/posix-functions/stpncpy.texi: Renamed from
25294         doc/glibc-functions/stpncpy.texi.
25295         * doc/posix-functions/strcasecmp_l.texi: Renamed from
25296         doc/glibc-functions/strcasecmp_l.texi.
25297         * doc/posix-functions/strcoll_l.texi: Renamed from
25298         doc/glibc-functions/strcoll_l.texi.
25299         * doc/posix-functions/strfmon_l.texi: Renamed from
25300         doc/glibc-functions/strfmon_l.texi.
25301         * doc/posix-functions/strftime_l.texi: Renamed from
25302         doc/glibc-functions/strftime_l.texi.
25303         * doc/posix-functions/strncasecmp_l.texi: Renamed from
25304         doc/glibc-functions/strncasecmp_l.texi.
25305         * doc/posix-functions/strndup.texi: Renamed from
25306         doc/glibc-functions/strndup.texi.
25307         * doc/posix-functions/strnlen.texi: Renamed from
25308         doc/glibc-functions/strnlen.texi.
25309         * doc/posix-functions/strsignal.texi: Renamed from
25310         doc/glibc-functions/strsignal.texi.
25311         * doc/posix-functions/strxfrm_l.texi: Renamed from
25312         doc/glibc-functions/strxfrm_l.texi.
25313         * doc/posix-functions/timer_gettime.texi: Renamed from
25314         doc/glibc-functions/timer_gettime.texi.
25315         * doc/posix-functions/tolower_l.texi: Renamed from
25316         doc/glibc-functions/tolower_l.texi.
25317         * doc/posix-functions/toupper_l.texi: Renamed from
25318         doc/glibc-functions/toupper_l.texi.
25319         * doc/posix-functions/towctrans_l.texi: Renamed from
25320         doc/glibc-functions/towctrans_l.texi.
25321         * doc/posix-functions/towlower_l.texi: Renamed from
25322         doc/glibc-functions/towlower_l.texi.
25323         * doc/posix-functions/towupper_l.texi: Renamed from
25324         doc/glibc-functions/towupper_l.texi.
25325         * doc/posix-functions/uselocale.texi: Renamed from
25326         doc/glibc-functions/uselocale.texi.
25327         * doc/posix-functions/vdprintf.texi: Renamed from
25328         doc/glibc-functions/vdprintf.texi.
25329         * doc/posix-functions/wcpcpy.texi:
25330         Renamed from doc/glibc-functions/wcpcpy.texi.
25331         * doc/posix-functions/wcpncpy.texi: Renamed from
25332         doc/glibc-functions/wcpncpy.texi.
25333         * doc/posix-functions/wcscasecmp.texi: Renamed from
25334         doc/glibc-functions/wcscasecmp.texi.
25335         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
25336         doc/glibc-functions/wcscasecmp_l.texi.
25337         * doc/posix-functions/wcscoll_l.texi: Renamed from
25338         doc/glibc-functions/wcscoll_l.texi.
25339         * doc/posix-functions/wcsdup.texi: Renamed from
25340         doc/glibc-functions/wcsdup.texi.
25341         * doc/posix-functions/wcsncasecmp.texi: Renamed from
25342         doc/glibc-functions/wcsncasecmp.texi.
25343         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
25344         doc/glibc-functions/wcsncasecmp_l.texi.
25345         * doc/posix-functions/wcsnlen.texi: Renamed from
25346         doc/glibc-functions/wcsnlen.texi.
25347         * doc/posix-functions/wcsnrtombs.texi: Renamed from
25348         doc/glibc-functions/wcsnrtombs.texi.
25349         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
25350         doc/glibc-functions/wcsxfrm_l.texi.
25351         * doc/posix-functions/wctrans_l.texi: Renamed from
25352         doc/glibc-functions/wctrans_l.texi.
25353         * doc/posix-functions/wctype_l.texi: Renamed from
25354         doc/glibc-functions/wctype_l.texi.
25355         * doc/gnulib.texi (Function Substitutes): Add these subsections.
25356         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
25357         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
25358         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
25359         these subsections.
25360         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
25361         Remove sections.
25362
25363 2008-12-14  Bruno Haible  <bruno@clisp.org>
25364
25365         Update doc for POSIX:2008.
25366         * doc/posix-functions/*.texi: Update URL of POSIX specification.
25367
25368 2008-12-14  Bruno Haible  <bruno@clisp.org>
25369
25370         Update doc for POSIX:2008.
25371         * doc/pastposix-functions/bcmp.texi: Renamed from
25372         doc/posix-functions/bcmp.texi.
25373         * doc/pastposix-functions/bcopy.texi: Renamed from
25374         doc/posix-functions/bcopy.texi.
25375         * doc/pastposix-functions/bsd_signal.texi: Renamed from
25376         doc/posix-functions/bsd_signal.texi.
25377         * doc/pastposix-functions/bzero.texi: Renamed from
25378         doc/posix-functions/bzero.texi.
25379         * doc/pastposix-functions/ecvt.texi: Renamed from
25380         doc/posix-functions/ecvt.texi.
25381         * doc/pastposix-functions/fcvt.texi: Renamed from
25382         doc/posix-functions/fcvt.texi.
25383         * doc/pastposix-functions/ftime.texi: Renamed from
25384         doc/posix-functions/ftime.texi.
25385         * doc/pastposix-functions/gcvt.texi: Renamed from
25386         doc/posix-functions/gcvt.texi.
25387         * doc/pastposix-functions/getcontext.texi: Renamed from
25388         doc/posix-functions/getcontext.texi.
25389         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
25390         doc/posix-functions/gethostbyaddr.texi.
25391         * doc/pastposix-functions/gethostbyname.texi: Renamed from
25392         doc/posix-functions/gethostbyname.texi.
25393         * doc/pastposix-functions/getwd.texi: Renamed from
25394         doc/posix-functions/getwd.texi.
25395         * doc/pastposix-functions/h_errno.texi: Renamed from
25396         doc/posix-functions/h_errno.texi.
25397         * doc/pastposix-functions/index.texi: Renamed from
25398         doc/posix-functions/index.texi.
25399         * doc/pastposix-functions/makecontext.texi: Renamed from
25400         doc/posix-functions/makecontext.texi.
25401         * doc/pastposix-functions/mktemp.texi: Renamed from
25402         doc/posix-functions/mktemp.texi.
25403         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
25404         doc/posix-functions/pthread_attr_getstackaddr.texi.
25405         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
25406         doc/posix-functions/pthread_attr_setstackaddr.texi.
25407         * doc/pastposix-functions/rindex.texi: Renamed from
25408         doc/posix-functions/rindex.texi.
25409         * doc/pastposix-functions/scalb.texi: Renamed from
25410         doc/posix-functions/scalb.texi.
25411         * doc/pastposix-functions/setcontext.texi: Renamed from
25412         doc/posix-functions/setcontext.texi.
25413         * doc/pastposix-functions/swapcontext.texi: Renamed from
25414         doc/posix-functions/swapcontext.texi.
25415         * doc/pastposix-functions/ualarm.texi: Renamed from
25416         doc/posix-functions/ualarm.texi.
25417         * doc/pastposix-functions/usleep.texi: Renamed from
25418         doc/posix-functions/usleep.texi.
25419         * doc/pastposix-functions/vfork.texi: Renamed from
25420         doc/posix-functions/vfork.texi.
25421         * doc/pastposix-functions/wcswcs.texi: Renamed from
25422         doc/posix-functions/wcswcs.texi.
25423         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
25424         (Function Substitutes): Update.
25425
25426 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25427
25428         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
25429         m4/strerror.m4.
25430
25431 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25432             Bruno Haible  <bruno@clisp.org>
25433
25434         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
25435
25436 2008-12-13  Bruno Haible  <bruno@clisp.org>
25437
25438         * modules/strtoull (Depends-on): Remove unistd.
25439
25440 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25441
25442         * modules/strtoull (Depends-on): Add stdlib.
25443
25444 2008-12-11  Simon Josefsson  <simon@josefsson.org>
25445
25446         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
25447
25448 2008-12-10  Jim Meyering  <meyering@redhat.com>
25449
25450         gl_ASSERT: don't say assertions are disabled when they're not
25451         * m4/assert.m4 (gl_ASSERT): Do not make configure report
25452         "checking whether to enable assertions... no", when they are in
25453         fact enabled.  This is solely a bug in the output of configure.
25454         In spite of saying "no", NDEBUG was not defined in that case.
25455         Also, as noted by Eric Blake, leave assertions enabled upon
25456         --enable-assert=INVALID.
25457
25458 2008-12-10  Bruno Haible  <bruno@clisp.org>
25459
25460         Change MODULES.html to refer to POSIX:2008 where possible.
25461         * MODULES.html.sh (POSIX2008_URL): New variable.
25462         (posix_headers): Remove sys/timeb, ucontext.
25463         (posix2001_headers): New variable.
25464         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
25465         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
25466         index, makecontext, mktemp, pthread_attr_getstackaddr,
25467         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
25468         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
25469         (posix2001_functions): New variable.
25470         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
25471         otherwise.
25472
25473 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25474
25475         add missing include to parse-duration.c
25476         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
25477         * modules/parse-duration (Depends-on): Add xalloc.
25478
25479         fix sed script reading maint.mk
25480         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
25481         (syntax-check-rules): Use it.
25482
25483 2008-12-09  Bruno Haible  <bruno@clisp.org>
25484
25485         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
25486         MacOS X 10.4/PowerPC.
25487         Reported by Simon Josefsson.
25488
25489 2008-12-08  Jim Meyering  <meyering@redhat.com>
25490
25491         work around mingw's lack of some S_IF definitions
25492         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
25493         Reported by Simon Josefsson.
25494
25495 2008-12-08  Bruno Haible  <bruno@clisp.org>
25496
25497         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
25498         applied to variables. Needed on MacOS X 10.4/PowerPC.
25499         Reported by Simon Josefsson.
25500
25501 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
25502         and Eric Blake  <ebb9@byu.net>
25503
25504         assert: honor --enable-assert
25505         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
25506         order to honor --enable-assert, rather than treating it as a
25507         synonym for --disable-assert.
25508
25509 2008-12-08  Jim Meyering  <meyering@redhat.com>
25510
25511         * lib/posixtm.c: Remove now-useless declaration of mktime.
25512
25513         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
25514
25515 2008-12-07  Bruno Haible  <bruno@clisp.org>
25516
25517         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
25518         test_once): Mark functions as static.
25519         * tests/test-tls.c (test_tls): Likewise.
25520
25521 2008-12-07  Bruno Haible  <bruno@clisp.org>
25522
25523         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
25524         iconv_register_autodetect.
25525
25526 2008-12-07  Jim Meyering  <meyering@redhat.com>
25527
25528         posixtm.c: avoid a warning
25529         * lib/posixtm.c (posixtime): Don't initialize tm0.
25530         It's no longer needed to placate gcc4's -Wuninitialized,
25531         and the attempt to placate would elicit a new warning.
25532
25533         unicodeio.c: mark unused parameters
25534         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
25535         (fallback_failure_callback): Likewise.
25536
25537 2008-12-07  Bruno Haible  <bruno@clisp.org>
25538
25539         * gnulib-tool (func_create_testdir): When building the tests
25540         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
25541         Reported by Simon Josefsson.
25542
25543 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25544
25545         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
25546
25547 2008-12-06  Bruno Haible  <bruno@clisp.org>
25548
25549         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
25550         Suggested by Eric Blake.
25551
25552 2008-12-06  Bruno Haible  <bruno@clisp.org>
25553
25554         Fix a c-stack test failure on MacOS X.
25555         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
25556         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
25557         handler for SIGBUS as well.
25558         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
25559         install a signal handler for SIGBUS as well.
25560         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
25561
25562 2008-12-06  Bruno Haible  <bruno@clisp.org>
25563
25564         Advocacy documentation.
25565         * doc/gnulib-intro.texi (Benefits): New section.
25566         * doc/gnulib.texi: Update.
25567
25568 2008-12-06  Bruno Haible  <bruno@clisp.org>
25569
25570         Document the 'manywarnings' module.
25571         * doc/manywarnings.texi: New file.
25572         * doc/gnulib.texi: Include it.
25573
25574 2008-12-05  Eric Blake  <ebb9@byu.net>
25575
25576         tests: silence some gcc warnings
25577         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
25578         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
25579         type mismatches.
25580
25581 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25582             Bruno Haible  <bruno@clisp.org>
25583
25584         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
25585
25586 2008-11-29  Jim Meyering  <meyering@redhat.com>
25587
25588         unicodeio.c: mark unused parameters
25589         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
25590         (fallback_failure_callback): Likewise.
25591
25592         fts: fix a thinko
25593         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
25594         (set_stat_type): Return S_IF*-valued "type" directly.
25595         Prompted by James Youngman's spotting a related bug.
25596         Confirmed by further testing through find.
25597
25598         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
25599         * lib/fts.c (D_TYPE): Define.
25600         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
25601         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
25602         (s_ifmt_shift_bits): New function.
25603         (set_stat_type): New function.
25604         (fts_build): When not calling fts_stat, call set_stat_type
25605         to propagate dirent.d_type info to fts_read caller.
25606         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
25607         fts_statp->st_mode type information may be valid.
25608
25609 2008-11-28  Simon Josefsson  <simon@josefsson.org>
25610
25611         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
25612         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
25613         <sds@gnu.org>.
25614
25615 2008-11-20  Bruno Haible  <bruno@clisp.org>
25616
25617         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
25618         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
25619         INCLUDE_NEXT.
25620         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
25621         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
25622         * modules/math (Makefile.am): Substitute
25623         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
25624         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
25625
25626 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
25627             Bruno Haible  <bruno@clisp.org>
25628
25629         * lib/stdint.in.h: Define all type macros so that their expansion is
25630         a single typedef'ed token. Fixes a compilation failure in Boost which
25631         does "using ::int8_t;".
25632
25633 2008-11-18  Simon Josefsson  <simon@josefsson.org>
25634
25635         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
25636         gl_MANYWARN_ALL_GCC.
25637         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
25638         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
25639         * modules/manywarnings: New file.
25640         * MODULES.html.sh: Mention manywarnings module.
25641
25642 2008-11-18  Bruno Haible  <bruno@clisp.org>
25643
25644         * doc/gnulib-tool.texi (Unit tests): New section.
25645
25646 2008-11-18  Simon Josefsson  <simon@josefsson.org>
25647
25648         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
25649         paths like 'lib/po/foo.po'.
25650
25651 2008-11-17  Simon Josefsson  <simon@josefsson.org>
25652
25653         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
25654         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
25655
25656 2008-11-17  Simon Josefsson  <simon@josefsson.org>
25657
25658         * m4/warnings.m4: Use CPPFLAGS to really check whether the
25659         parameter works.
25660
25661 2008-11-17  Simon Josefsson  <simon@josefsson.org>
25662
25663         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
25664
25665 2008-11-17  Bruce Korb  <bkorb@gnu.org>
25666
25667         * modules/parse-duration-tests: New file.
25668         * tests/test-parse-duration.sh: New file.
25669         * tests/test-parse-duration.c: New file.
25670
25671         New module 'parse-duration'.
25672         * lib/parse-duration.h: New file.
25673         * lib/parse-duration.c: New file.
25674         * modules/parse-duration: New file.
25675
25676 2008-11-17  Bruno Haible  <bruno@clisp.org>
25677
25678         * tests/test-select-out.sh: Comment out the first pipe test.
25679         Reported by Simon Josefsson.
25680
25681 2008-11-17  Bruno Haible  <bruno@clisp.org>
25682
25683         * modules/getaddrinfo (Depends-on): Add servent, hostent.
25684         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
25685         gl_HOSTENT.
25686
25687 2008-11-17  Bruno Haible  <bruno@clisp.org>
25688
25689         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
25690         -lnetwork and -lnet. Needed for Haiku and BeOS.
25691
25692 2008-11-16  Bruno Haible  <bruno@clisp.org>
25693
25694         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
25695
25696 2008-11-16  Bruno Haible  <bruno@clisp.org>
25697
25698         Avoid test failure on Haiku.
25699         * tests/test-fsync.c: Include <errno.h>.
25700         (main): Don't require that fsync (0) fails.
25701
25702 2008-11-15  Bruno Haible  <bruno@clisp.org>
25703
25704         New module 'hostent'.
25705         * modules/hostent: New file.
25706         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
25707
25708 2008-11-15  Bruno Haible  <bruno@clisp.org>
25709
25710         New module 'servent'.
25711         * modules/servent: New file.
25712         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
25713
25714 2008-11-15  Bruno Haible  <bruno@clisp.org>
25715
25716         Avoid generating same test program with two different rules.
25717         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
25718         test-frexp to test-frexp-nolibm.
25719         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
25720         test-frexpl to test-frexpl-nolibm.
25721
25722 2008-11-15  Bruno Haible  <bruno@clisp.org>
25723
25724         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
25725         $(FREXPL_LIBM).
25726
25727 2008-11-15  Bruno Haible  <bruno@clisp.org>
25728
25729         * lib/netdb.in.h: Activate the definitions also when the system's
25730         <netdb.h> has 'struct addrinfo'.
25731         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
25732         EAI_OVERFLOW or AI_NUMERICSERV.
25733         * doc/posix-headers/netdb.texi: Document the problem.
25734
25735 2008-11-15  Bruno Haible  <bruno@clisp.org>
25736
25737         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
25738
25739         Make the 'sched' module work on platforms where <sched.h> exists but
25740         is incomplete (such as Haiku).
25741         * lib/sched.in.h; Include the system's <sched.h> if it exists.
25742         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
25743         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
25744         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
25745         HAVE_STRUCT_SCHED_PARAM.
25746         * modules/sched (Depends-on): Add include_next.
25747         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
25748         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
25749         * doc/posix-headers/sched.texi: Document the issue.
25750
25751 2008-11-13  Jim Meyering  <meyering@redhat.com>
25752
25753         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
25754         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
25755         test would fail due to the difference in the Report bugs to ...
25756         line.  The expected address is empty, "<>", while the actual
25757         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
25758
25759 2008-11-12  Bruno Haible  <bruno@clisp.org>
25760
25761         lstat: don't compile lstat.c on systems lacking lstat
25762         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
25763         which don't have lstat; this is handled by lib/sys_stat.in.h already.
25764         Reported by Daniel P. Berrange via Jim Meyering.
25765
25766 2008-11-12  Jim Meyering  <meyering@redhat.com>
25767
25768         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
25769
25770 2008-11-12  Simon Josefsson  <simon@josefsson.org>
25771
25772         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
25773         instead.
25774
25775 2008-11-12  Bruno Haible  <bruno@clisp.org>
25776
25777         * lib/unicodeio.c: Include unistr.h.
25778         (utf8_wctomb): Remove function.
25779         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
25780
25781 2008-11-12  Simon Josefsson  <simon@josefsson.org>
25782
25783         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
25784         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
25785         <bruno@clisp.org>.
25786         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
25787
25788 2008-11-12  Simon Josefsson  <simon@josefsson.org>
25789
25790         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
25791         * doc/gnulib.texi: Add section for warnings.
25792
25793 2008-11-11  Bruno Haible  <bruno@clisp.org>
25794
25795         * lib/sockets.h: Add a comment.
25796
25797 2008-11-11  Karl Berry  <karl@gnu.org>
25798
25799         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
25800
25801 2008-11-11  Eric Blake  <ebb9@byu.net>
25802
25803         fdl.texi: avoid git symlinks
25804         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
25805
25806 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
25807
25808         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
25809
25810 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
25811
25812         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
25813         (gl_WARN_ADD): Substitute $2 if literal.
25814
25815 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
25816
25817         * m4/warning.m4: Remove.
25818
25819 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
25820
25821         * m4/warnings.m4: Almost complete rewrite. :-)
25822
25823 2008-11-10  Simon Josefsson  <simon@josefsson.org>
25824
25825         * modules/warnings: New module.
25826         * m4/warnings.m4: New file.
25827         * MODULES.html.sh: Mention warnings module.
25828         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
25829         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
25830
25831 2008-11-10  Eric Blake  <ebb9@byu.net>
25832
25833         fdl.texi: make a symlink to the latest version
25834         * doc/standards.texi: Revert today's earlier change.
25835         * doc/fdl-1.2.texi: Rename from old fdl.texi...
25836         * doc/fdl.texi: ...and replace this with a symlink to the newer
25837         fdl-1.3.texi.
25838
25839 2008-11-10  Bruno Haible  <bruno@clisp.org>
25840
25841         * tests/test-select-fd.c (main): Accept the result file name as fourth
25842         argument.
25843         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
25844         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
25845
25846 2008-11-10  Bruno Haible  <bruno@clisp.org>
25847
25848         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
25849         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
25850         as autoconf-substituted macros.
25851         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
25852         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
25853         gl_NETDB_H_DEFAULTS. Set these variables.
25854         * modules/netdb (Makefile.am): Substitute these variables.
25855
25856 2008-11-10  Eric Blake  <ebb9@byu.net>
25857
25858         standards.texi: include correct file for FDL 1.3
25859         * doc/standards.texi (GNU Free Documentation License): Change
25860         include file to pull in FDL 1.3, not 1.2.
25861
25862         fdl.texi: revert accidental change to license
25863         * doc/fdl.texi: This is FDL 1.2, not 1.3.
25864
25865 2008-11-10  Bruno Haible  <bruno@clisp.org>
25866
25867         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
25868         cross-compiling guesses also when the native compile gives no result.
25869
25870 2008-11-10  Bruno Haible  <bruno@clisp.org>
25871
25872         * lib/spawni.c (__spawni): Force variable into the stack.
25873
25874 2008-11-10  Bruno Haible  <bruno@clisp.org>
25875
25876         Add support for Haiku.
25877         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
25878         glibc and BeOS, but also on Haiku.
25879         * lib/fpurge.c (fpurge): Likewise.
25880         * lib/freadable.c (freadable): Likewise.
25881         * lib/freadahead.c (freadahead): Likewise.
25882         * lib/freading.c (freading): Likewise.
25883         * lib/freadptr.c (freadptr): Likewise.
25884         * lib/freadseek.c (freadptrinc): Likewise.
25885         * lib/fseeko.c (rpl_fseeko): Likewise.
25886         * lib/fseterr.c (fseterr): Likewise.
25887         * lib/fwritable.c (fwritable): Likewise.
25888         * lib/fwriting.c (fwriting): Likewise.
25889         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
25890
25891 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
25892
25893         * lib/config.charset: Treat Haiku like BeOS.
25894
25895 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
25896
25897         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
25898         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
25899
25900 2008-11-08  Bruno Haible  <bruno@clisp.org>
25901
25902         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
25903         AC_CACHE_CHECK.
25904
25905 2008-11-08  Bruno Haible  <bruno@clisp.org>
25906
25907         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
25908
25909 2008-11-08  Bruno Haible  <bruno@clisp.org>
25910
25911         * tests/test-select-fd.c: New file.
25912         * tests/test-select-in.sh: New file.
25913         * tests/test-select-out.sh: New file.
25914         * tests/test-select-stdin.c: New file.
25915         * modules/select-tests (Files): Add the new files.
25916         (Depends-on): Add gettimeofday.
25917         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
25918         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
25919         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
25920
25921 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
25922             Bruno Haible  <bruno@clisp.org>
25923
25924         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
25925
25926 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
25927
25928         * build-aux/pmccabe2html: Added support for C++ source files.
25929
25930 2008-11-05  Ben Pfaff  <blp@gnu.org>
25931
25932         Fix lib/close.c build on Windows.
25933         * modules/close (Files): Add lib/w32sock.h.
25934
25935 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
25936
25937         Accept Bison's NEWS format.
25938         * build-aux/announce-gen (print_news_deltas): Tweak
25939         $re_prefix.
25940
25941 2008-11-04  Bruno Haible  <bruno@clisp.org>
25942
25943         * modules/random_r (Maintainer): Add glibc.
25944
25945 2008-11-04  Simon Josefsson  <simon@josefsson.org>
25946
25947         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
25948         by karl@freefriends.org (Karl Berry).
25949         * doc/alloca.texi: Likewise.
25950         * doc/c-ctype.texi: Likewise.
25951         * doc/c-strcase.texi: Likewise.
25952         * doc/c-strcaseeq.texi: Likewise.
25953         * doc/c-strcasestr.texi: Likewise.
25954         * doc/c-strstr.texi: Likewise.
25955         * doc/c-strtod.texi: Likewise.
25956         * doc/c-strtold.texi: Likewise.
25957         * doc/ctime.texi: Likewise.
25958         * doc/error.texi: Likewise.
25959         * doc/fdl.texi: Likewise.
25960         * doc/gcd.texi: Likewise.
25961         * doc/getdate.texi: Likewise.
25962         * doc/gnulib-intro.texi: Likewise.
25963         * doc/gnulib-tool.texi: Likewise.
25964         * doc/gnulib.texi: Likewise.
25965         * doc/inet_ntoa.texi: Likewise.
25966         * doc/maintain.texi: Likewise.
25967         * doc/make-stds.texi: Likewise.
25968         * doc/quote.texi: Likewise.
25969         * doc/regexprops-generic.texi: Likewise.
25970         * doc/standards.texi: Likewise.
25971         * doc/verify.texi: Likewise.
25972         * doc/visibility.texi: Likewise.
25973         * doc/gnulib.texi (GNU Free Documentation License): Include
25974         fdl-1.3.texi instead of fdl.texi.
25975
25976 2008-11-04  Simon Josefsson  <simon@josefsson.org>
25977
25978         * doc/fdl-1.3.texi: New file, from
25979         <http://www.gnu.org/licenses/fdl-1.3.texi>.
25980         * modules/fdl-1.3: Add.
25981         * MODULES.html.sh: Add fdl-1.3.
25982
25983 2008-11-03  Bruno Haible  <bruno@clisp.org>
25984
25985         Make determination of absolute name of header file work with AIX xlc.
25986         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
25987         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
25988         preprocessing.
25989         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
25990         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
25991
25992 2008-11-03  Simon Josefsson  <simon@josefsson.org>
25993
25994         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
25995         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
25996         <ludo@gnu.org>.
25997
25998 2008-11-02  Bruno Haible  <bruno@clisp.org>
25999
26000         Mark 'strpbrk' obsolete.
26001         * modules/strpbrk (Status, Notice): New sections.
26002         * modules/strtok_r (Depends-on): Add strpbrk.
26003
26004 2008-11-02  Bruno Haible  <bruno@clisp.org>
26005
26006         Mark 'strdup' obsolete.
26007         * modules/strdup (Status, Notice): New sections.
26008         * modules/findprog (Depends-on): Add strdup.
26009         * modules/getaddrinfo (Depends-on): Likewise.
26010         * modules/localename (Depends-on): Likewise.
26011         * modules/relocatable-lib (Depends-on): Likewise.
26012         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
26013         * modules/relocatable-prog (Depends-on): Likewise.
26014         * modules/trim (Depends-on): Likewise.
26015         * modules/unictype/gen-ctype (Depends-on): Likewise.
26016         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
26017
26018 2008-11-02  Bruno Haible  <bruno@clisp.org>
26019
26020         Mark 'strcspn' obsolete.
26021         * modules/strcspn (Status, Notice): New sections.
26022
26023 2008-11-02  Bruno Haible  <bruno@clisp.org>
26024
26025         Mark 'rmdir' obsolete.
26026         * modules/rmdir (Status, Notice): New sections.
26027         * modules/clean-temp (Depends-on): Add rmdir.
26028         * modules/openat (Depends-on): Likewise.
26029
26030 2008-11-02  Bruno Haible  <bruno@clisp.org>
26031
26032         Mark 'raise' obsolete.
26033         * modules/raise (Status, Notice): New sections.
26034         (Include): Specify <signal.h>.
26035         * modules/stdio (Depends-on): Add raise.
26036         * modules/write (Depends-on): Likewise.
26037
26038 2008-11-02  Bruno Haible  <bruno@clisp.org>
26039
26040         Mark 'memset' obsolete.
26041         * modules/memset (Status, Notice): New sections.
26042
26043 2008-11-02  Bruno Haible  <bruno@clisp.org>
26044
26045         Mark 'memmove' obsolete.
26046         * modules/memmove (Status, Notice): New sections.
26047         * modules/argp (Depends-on): Add memmove.
26048         * modules/argz (Depends-on): Likewise.
26049         * modules/canonicalize (Depends-on): Likewise.
26050         * modules/canonicalize-lgpl (Depends-on): Likewise.
26051         * modules/fts (Depends-on): Likewise.
26052         * modules/getcwd (Depends-on): Likewise.
26053         * modules/human (Depends-on): Likewise.
26054         * modules/regex (Depends-on): Likewise.
26055         * modules/striconveh (Depends-on): Likewise.
26056         * modules/trim (Depends-on): Likewise.
26057         * modules/unistr/u8-move (Depends-on): Likewise.
26058         * modules/unistr/u16-move (Depends-on): Likewise.
26059         * modules/unistr/u32-move (Depends-on): Likewise.
26060
26061 2008-11-02  Bruno Haible  <bruno@clisp.org>
26062
26063         Mark 'memcpy' obsolete.
26064         * modules/memcpy (Status, Notice): New sections.
26065
26066 2008-11-02  Bruno Haible  <bruno@clisp.org>
26067
26068         Mark 'memcmp' obsolete.
26069         * modules/memcmp (Status, Notice): New sections.
26070         * modules/argmatch (Depends-on): Add memchr.
26071         * modules/backupfile (Depends-on): Likewise.
26072         * modules/c-strcasestr (Depends-on): Likewise.
26073         * modules/crypto/des (Depends-on): Likewise.
26074         * modules/csharpcomp (Depends-on): Likewise.
26075         * modules/fnmatch (Depends-on): Likewise.
26076         * modules/git-merge-changelog (Depends-on): Likewise.
26077         * modules/isnand (Depends-on): Likewise.
26078         * modules/isnand-nolibm (Depends-on): Likewise.
26079         * modules/isnanf (Depends-on): Likewise.
26080         * modules/isnanf-nolibm (Depends-on): Likewise.
26081         * modules/isnanl (Depends-on): Likewise.
26082         * modules/isnanl-nolibm (Depends-on): Likewise.
26083         * modules/mbchar (Depends-on): Likewise.
26084         * modules/memcoll (Depends-on): Likewise.
26085         * modules/quotearg (Depends-on): Likewise.
26086         * modules/regex (Depends-on): Likewise.
26087         * modules/relocatable-prog (Depends-on): Likewise.
26088         * modules/same (Depends-on): Likewise.
26089         * modules/signbit (Depends-on): Likewise.
26090         * modules/strcasestr-simple (Depends-on): Likewise.
26091         * modules/unictype/gen-ctype (Depends-on): Likewise.
26092         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
26093         * modules/uniname/uniname (Depends-on): Likewise.
26094         * modules/unistr/u8-cmp (Depends-on): Likewise.
26095
26096 2008-11-02  Bruno Haible  <bruno@clisp.org>
26097
26098         Mark 'memchr' obsolete.
26099         * modules/memchr (Status, Notice): New sections.
26100         * modules/argp (Depends-on): Add memchr.
26101         * modules/base64 (Depends-on): Likewise.
26102         * modules/c-strcasestr (Depends-on): Likewise.
26103         * modules/chdir-long (Depends-on): Likewise.
26104         * modules/fnmatch (Depends-on): Likewise.
26105         * modules/getsubopt (Depends-on): Likewise.
26106         * modules/git-merge-changelog (Depends-on): Likewise.
26107         * modules/glob (Depends-on): Likewise.
26108         * modules/strcasestr-simple (Depends-on): Likewise.
26109         * modules/strnlen (Depends-on): Likewise.
26110
26111 2008-11-02  Bruno Haible  <bruno@clisp.org>
26112
26113         Mark 'atexit' obsolete.
26114         * modules/atexit (Status, Notice): New sections.
26115         * modules/chdir-long (Depends-on): Add atexit.
26116         * modules/wait-process (Depends-on): Likewise.
26117
26118 2008-11-02  Bruno Haible  <bruno@clisp.org>
26119
26120         * gnulib-tool: New option --with-obsolete.
26121         (func_usage): Document it.
26122         (func_modules_transitive_closure): Drop obsolete dependencies if
26123         incobsolete is not true.
26124         (func_import): Read and save the incobsolete variable to the cache.
26125
26126 2008-11-02  Bruno Haible  <bruno@clisp.org>
26127
26128         * modules/TEMPLATE-EXTENDED: New field 'Status'.
26129         * gnulib-tool: New option --extract-status.
26130         (func_usage): Document it.
26131         (sed_extract_prog): Recognize it.
26132         (func_get_status): New function.
26133
26134 2008-10-30  Simon Josefsson  <simon@josefsson.org>
26135
26136         * modules/sockets (License): Change from LGPL to LGPLv2+.
26137
26138 2008-10-28  Simon Josefsson  <simon@josefsson.org>
26139
26140         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
26141
26142 2008-10-28  Simon Josefsson  <simon@josefsson.org>
26143
26144         * MODULES.html.sh (Support for systems lacking POSIX:2001):
26145         Mention times and sys_times.
26146         * modules/sys_times, modules/sys_times-tests: New modules.
26147         * modules/times, modules/times-tests: Likewise
26148         * m4/sys_times_h.m4: New file.
26149         * lib/sys_times.in.h: Likewise
26150         * lib/times.c: Likewise.
26151         * tests/test-sys_times.c: Likewise.
26152         * tests/test-times.c: Likewise.
26153         * doc/posix-headers/sys_times.texi: Update.
26154         * doc/posix-functions/times.texi: Update.
26155
26156 2008-10-28  Jim Meyering  <meyering@redhat.com>
26157
26158         * modules/tempname (Depends-on): Add lstat.
26159
26160         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
26161
26162 2008-10-28  Simon Josefsson  <simon@josefsson.org>
26163
26164         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
26165         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
26166         using idiom used elsewhere in gnulib.
26167
26168 2008-10-27  Jim Meyering  <meyering@redhat.com>
26169
26170         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
26171
26172 2008-10-27  Simon Josefsson  <simon@josefsson.org>
26173
26174         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
26175         TESTS_ENVIRONMENT, for shell scripts that needs to call built
26176         programs.
26177         * tests/test-argp-2.sh: Use $EXEEXT when needed.
26178
26179 2008-10-27  Simon Josefsson  <simon@josefsson.org>
26180
26181         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
26182
26183 2008-10-27  Bruno Haible  <bruno@clisp.org>
26184
26185         * tests/test-lstat.c: Include <stdio.h>.
26186
26187 2008-10-27  Simon Josefsson  <simon@josefsson.org>
26188
26189         * modules/lstat-tests: New module.
26190         * tests/test-lstat.c: New file.
26191
26192 2008-10-26  Jim Meyering  <meyering@redhat.com>
26193
26194         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
26195
26196 2008-10-26  Simon Josefsson  <simon@josefsson.org>
26197             Bruno Haible  <bruno@clisp.org>
26198
26199         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
26200         * modules/configmake (Include): Add a note that the include must come
26201         after all system headers.
26202         * lib/javaversion.c: Include configmake.h after all other includes.
26203
26204 2008-10-26  Bruno Haible  <bruno@clisp.org>
26205
26206         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
26207         HAVE_STRUCT_RANDOM_DATA to 1.
26208         (gl_STDLIB_H): Simplify.
26209
26210 2008-10-26  Simon Josefsson  <simon@josefsson.org>
26211
26212         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
26213         substitute HAVE_STRUCT_RANDOM_DATA.
26214         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
26215         random_data.
26216         * modules/stdlib (Makefile.am): Substitute
26217         HAVE_STRUCT_RANDOM_DATA.
26218
26219 2008-10-26  Simon Josefsson  <simon@josefsson.org>
26220
26221         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
26222         * doc/gnulib-intro.texi (Copyright): Likewise.
26223
26224 2008-10-26  Simon Josefsson  <simon@josefsson.org>
26225
26226         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
26227         findings.
26228
26229 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
26230             Bruno Haible  <bruno@clisp.org>
26231
26232         * lib/unistd.in.h: Include <winsock2.h>.
26233         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
26234         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
26235         Provide dummy declarations.
26236         (gethostname): Override.
26237         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
26238         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
26239         gl_PREREQ_SYS_H_WINSOCK2.
26240         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
26241         * doc/posix-functions/gethostname.texi: More details.
26242
26243 2008-10-25  Bruno Haible  <bruno@clisp.org>
26244
26245         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
26246         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
26247         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
26248
26249         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
26250         here ...
26251         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
26252         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
26253         gl_UNISTD_H_DEFAULTS.
26254
26255 2008-10-25  Eric Blake  <ebb9@byu.net>
26256
26257         signbit: avoid spurious compiler failure
26258         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
26259         declarations inside function.
26260
26261 2008-10-24  Simon Josefsson  <simon@josefsson.org>
26262             Bruno Haible  <bruno@clisp.org>
26263
26264         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
26265         * modules/random_r (Depends-on): Add stdint.
26266
26267 2008-10-24  Bruno Haible  <bruno@clisp.org>
26268
26269         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
26270         Eggert.
26271         * modules/strerror (License): Likewise.
26272
26273 2008-10-24  Jim Meyering  <meyering@redhat.com>
26274
26275         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
26276         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
26277
26278 2008-10-24  Eric Blake  <ebb9@byu.net>
26279
26280         getgroups: fix compilation when getgroups is available
26281         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
26282         but with <config.h> override of getgroups disabled.
26283
26284 2008-10-24  Simon Josefsson  <simon@josefsson.org>
26285
26286         * doc/gnulib.texi (Header files): Add note about C++ problems.
26287         Explained by Bruno Haible <bruno@clisp.org>.
26288
26289 2008-10-23  Bruno Haible  <bruno@clisp.org>
26290
26291         Define a dummy SA_NODEFER macro on Interix.
26292         * lib/signal.in.h (SA_NODEFER): Define fallback.
26293         Reported by Aleksey Cheusov <cheusov@tut.by> via
26294         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
26295
26296 2008-10-23  Bruno Haible  <bruno@clisp.org>
26297
26298         * modules/freadahead (License): Change to LGPLv2+.
26299         Suggested by Simon Josefsson.
26300
26301 2008-10-23  Jim Meyering  <meyering@redhat.com>
26302
26303         random_r: new module
26304         * modules/random_r: New file.
26305         * m4/random_r.m4: New file.
26306         * lib/random_r.c: New file, from glibc.
26307         * modules/random_r-tests: New file.
26308         * tests/test-random_r.c: New file.
26309         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
26310          Declare.
26311         (RAND_MAX): Define.
26312         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
26313         * modules/stdlib: Substitute them, too.
26314         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
26315         * doc/glibc-functions/initstate_r.texi: Mention the new module.
26316         * doc/glibc-functions/random_r.texi: Likewise.
26317         * doc/glibc-functions/setstate_r.texi: Likewise.
26318         * doc/glibc-functions/srandom_r.texi: Likewise.
26319         * config/srclist.txt: Mention it.
26320
26321 2008-10-23  David Lutterkort  <lutter@redhat.com>
26322
26323         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
26324         link requirement
26325
26326 2008-10-23  Jim Meyering  <meyering@redhat.com>
26327
26328         selinux-h: mark parameters of stub functions as intentionally unused
26329         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
26330         * lib/se-context.in.h: Likewise.
26331
26332 2008-10-22  Simon Josefsson  <simon@josefsson.org>
26333
26334         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
26335
26336 2008-10-22  Simon Josefsson  <simon@josefsson.org>
26337
26338         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
26339
26340 2008-10-22  Eric Blake  <ebb9@byu.net>
26341
26342         glthread/thread: avoid compiler warning
26343         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
26344         Add unreachable abort to silence compiler.
26345
26346 2008-10-22  Eric Blake  <ebb9@byu.net>
26347
26348         netdb: also supply struct addrinfo for cygwin 1.5.x
26349         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
26350         older cygwin.
26351         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
26352         cygwin.
26353         * doc/posix-headers/netdb.texi (netdb.h): Document this.
26354
26355 2008-10-22  Bruno Haible  <bruno@clisp.org>
26356
26357         * users.txt: Update entry about pspp.
26358
26359 2008-10-21  Bruno Haible  <bruno@clisp.org>
26360
26361         Simplification.
26362         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
26363         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
26364
26365         Simplification.
26366         * lib/ioctl.c (ioctl): Don't undefine.
26367         * lib/socket.c (socket): Don't undefine.
26368
26369         Remove unused module indicator macros.
26370         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
26371         GNULIB_$1 as a C macro.
26372
26373         * doc/posix-functions/close.texi: Undo last change.
26374         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
26375         Windows platforms.
26376
26377 2008-10-21  Bruno Haible  <bruno@clisp.org>
26378
26379         Add gethostname() declaration to <unistd.h>.
26380         * lib/unistd.in.h (gethostname): New declaration.
26381         * lib/gethostname.c: Include <unistd.h>.
26382         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
26383         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
26384         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
26385         and HAVE_GETHOSTNAME.
26386         * modules/gethostname (Depends-on): Add unistd.
26387         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
26388         (Include): Specify <unistd.h>.
26389         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
26390         HAVE_GETHOSTNAME.
26391         * tests/test-gethostname.c: Include <unistd.h> first.
26392
26393 2008-10-21  Bruno Haible  <bruno@clisp.org>
26394
26395         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
26396         * modules/select-tests (Depends-on): Likewise.
26397         Reported by Simon Josefsson.
26398
26399 2008-10-21  Simon Josefsson  <simon@josefsson.org>
26400
26401         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
26402         * lib/accept.c: New file, based on winsock.c.
26403         * lib/bind.c: New file, based on winsock.c.
26404         * lib/connect.c: New file, based on winsock.c.
26405         * lib/getpeername.c: New file, based on winsock.c.
26406         * lib/getsockname.c: New file, based on winsock.c.
26407         * lib/getsockopt.c: New file, based on winsock.c.
26408         * lib/ioctl.c: New file, based on winsock.c.
26409         * lib/listen.c: New file, based on winsock.c.
26410         * lib/recv.c: New file, based on winsock.c.
26411         * lib/recvfrom.c: New file, based on winsock.c.
26412         * lib/send.c: New file, based on winsock.c.
26413         * lib/sendto.c: New file, based on winsock.c.
26414         * lib/setsockopt.c: New file, based on winsock.c.
26415         * lib/shutdown.c: New file, based on winsock.c.
26416         * lib/socket.c: New file, based on winsock.c.
26417         * lib/w32sock.h: New file, based on winsock.c.
26418         * lib/winsock.c: Remove file.
26419         * modules/accept: Likewise.
26420         * modules/bind: Likewise.
26421         * modules/connect: Likewise.
26422         * modules/getpeername: Likewise.
26423         * modules/getsockname: Likewise.
26424         * modules/getsockopt: Likewise.
26425         * modules/ioctl: Likewise.
26426         * modules/listen: Likewise.
26427         * modules/recv: Likewise.
26428         * modules/recvfrom: Likewise.
26429         * modules/send: Likewise.
26430         * modules/sendto: Likewise.
26431         * modules/setsockopt: Likewise.
26432         * modules/shutdown: Likewise.
26433         * modules/socket: Use socket.c instead of winsock.c.
26434         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
26435         * doc/posix-functions/accept.texi: Doc fix.
26436         * doc/posix-functions/bind.texi: Doc fix.
26437         * doc/posix-functions/close.texi: Doc fix.
26438         * doc/posix-functions/connect.texi: Doc fix.
26439         * doc/posix-functions/getpeername.texi: Doc fix.
26440         * doc/posix-functions/getsockname.texi: Doc fix.
26441         * doc/posix-functions/getsockopt.texi: Doc fix.
26442         * doc/posix-functions/ioctl.texi: Doc fix.
26443         * doc/posix-functions/listen.texi: Doc fix.
26444         * doc/posix-functions/recv.texi: Doc fix.
26445         * doc/posix-functions/recvfrom.texi: Doc fix.
26446         * doc/posix-functions/send.texi: Doc fix.
26447         * doc/posix-functions/sendto.texi: Doc fix.
26448         * doc/posix-functions/setsockopt.texi: Doc fix.
26449         * doc/posix-functions/shutdown.texi: Doc fix.
26450         * doc/posix-functions/socket.texi: Doc fix.
26451
26452 2008-10-20  Bruno Haible  <bruno@clisp.org>
26453
26454         Take into account the role of SIGABRT_COMPAT on Windows 2008.
26455         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
26456         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
26457         as an alias for SIGABRT.
26458         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
26459         (sigaction): Map it to SIGABRT.
26460         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
26461
26462 2008-10-20  Bruno Haible  <bruno@clisp.org>
26463
26464         * lib/fts.c: Don't include lstat.h.
26465         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
26466
26467         Move the lstat() declaration to <sys/stat.h>.
26468         * lib/lstat.h: Remove file.
26469         * lib/sys_stat.in.h: Add special invocation convention.
26470         (lstat): New declaration.
26471         * lib/lstat.c (orig_lstat): New function.
26472         (rpl_lstat): Use orig_lstat instead of lstat.
26473         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
26474         AC_C_INLINE. Set REPLACE_LSTAT.
26475         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
26476         and REPLACE_LSTAT.
26477         * modules/lstat (Files): Remove lib/lstat.h.
26478         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
26479         (Include): Specify <sys/stat.h> instead of lstat.h.
26480         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
26481         REPLACE_LSTAT.
26482         * NEWS: Mention the change.
26483
26484 2008-10-20  Bruno Haible  <bruno@clisp.org>
26485
26486         * modules/posix_spawn-tests: New file.
26487         * tests/test-posix_spawn3.c: New file.
26488
26489 2008-10-20  Bruno Haible  <bruno@clisp.org>
26490
26491         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
26492         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
26493         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
26494         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
26495         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
26496
26497 2008-10-20  Bruno Haible  <bruno@clisp.org>
26498
26499         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
26500         of posix_spawn on AIX 5.3.
26501
26502 2008-10-20  Bruno Haible  <bruno@clisp.org>
26503
26504         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
26505
26506 2008-10-20  Bruno Haible  <bruno@clisp.org>
26507
26508         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
26509         of AC_LANG_PROGRAM.
26510
26511 2008-10-20  Simon Josefsson  <simon@josefsson.org>
26512
26513         * lib/netdb.in.h: Don't define GNU specific constants until they
26514         are supported or needed.  Reported by Bruno Haible
26515         <bruno@clisp.org>.
26516
26517 2008-10-20  Simon Josefsson  <simon@josefsson.org>
26518
26519         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
26520
26521 2008-10-20  Simon Josefsson  <simon@josefsson.org>
26522
26523         * lib/getaddrinfo.h: Remove file.
26524         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
26525         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
26526         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
26527         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
26528         * modules/netdb: Substitute GNULIB_GETADDRINFO.
26529         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
26530         * tests/test-getaddrinfo.c: Likewise.
26531         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
26532         * NEWS: Mention change.
26533
26534 2008-10-19  Bruno Haible  <bruno@clisp.org>
26535
26536         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
26537
26538 2008-10-19  Bruno Haible  <bruno@clisp.org>
26539
26540         * lib/wait-process.c: Include simply <sys/wait.h>.
26541         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
26542         WIFSTOPPED): Remove fallback definitions.
26543         * modules/wait-process (Depends-on): Add sys_wait.
26544
26545         New module 'sys_wait'.
26546         * modules/sys_wait: New file.
26547         * lib/sys_wait.in.h: New file, partially copied from
26548         lib/wait-process.c.
26549         * m4/sys_wait_h.m4: New file.
26550         * doc/posix-headers/sys_wait.texi: Mention the new module.
26551
26552 2008-10-19  Bruno Haible  <bruno@clisp.org>
26553
26554         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
26555
26556 2008-10-19  Bruno Haible  <bruno@clisp.org>
26557
26558         Assume that waitpid() fills an 'int' status, not a 'union wait'.
26559         * lib/wait-process.c (WAIT_T): Remove type.
26560         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
26561         (wait_subprocess): Update.
26562
26563 2008-10-19  Bruno Haible  <bruno@clisp.org>
26564
26565         New module 'atoll'.
26566         * modules/atoll: New file.
26567         * lib/stdlib.in.h (atoll): New declaration.
26568         * lib/atoll.c: New file, from glibc with modifications.
26569         * m4/atoll.m4: New file.
26570         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
26571         HAVE_ATOLL.
26572         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
26573         * doc/posix-functions/atoll.texi: Mention the new module.
26574
26575 2008-10-19  Bruno Haible  <bruno@clisp.org>
26576
26577         Add strtoull() declaration to <stdlib.h>.
26578         * lib/stdlib.in.h (strtoull): New declaration.
26579         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
26580         Set HAVE_STRTOULL.
26581         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
26582         HAVE_STRTOULL.
26583         * modules/strtoull (Depends-on): Add stdlib.
26584         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
26585         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
26586         HAVE_STRTOULL.
26587
26588 2008-10-19  Bruno Haible  <bruno@clisp.org>
26589
26590         Add strtoll() declaration to <stdlib.h>.
26591         * lib/stdlib.in.h (strtoll): New declaration.
26592         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
26593         Set HAVE_STRTOLL.
26594         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
26595         HAVE_STRTOLL.
26596         * modules/strtoll (Depends-on): Add stdlib.
26597         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
26598         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
26599
26600 2008-10-19  Bruno Haible  <bruno@clisp.org>
26601
26602         * modules/bcopy (Depends-on): Add strings.
26603         (Include): Specify <strings.h>.
26604
26605 2008-10-19  Bruno Haible  <bruno@clisp.org>
26606
26607         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
26608
26609 2008-10-19  Bruno Haible  <bruno@clisp.org>
26610
26611         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
26612         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
26613         mingw.
26614
26615 2008-10-19  Bruno Haible  <bruno@clisp.org>
26616
26617         * lib/atanl.c: Don't include isnanl.h.
26618         * lib/cosl.c: Likewise.
26619         * lib/ldexpl.c: Likewise.
26620         * lib/logl.c: Likewise.
26621         * lib/sinl.c: Likewise.
26622         * lib/sqrtl.c: Likewise.
26623         * lib/tanl.c: Likewise.
26624
26625         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
26626         * lib/isnanf.h: Remove file.
26627         * lib/isnand.h: Remove file.
26628         * lib/isnanl.h: Remove file.
26629         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
26630         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
26631         macros.
26632         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
26633         HAVE_ISNANF, don't define it as a C macro.
26634         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
26635         HAVE_ISNAND, don't define it as a C macro.
26636         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
26637         HAVE_ISNANL, don't define it as a C macro.
26638         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
26639         HAVE_ISNAN[FDL].
26640         * modules/isnanf (Files): Remove lib/isnanf.h.
26641         (Depends-on): Add math.
26642         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
26643         (Include): Specify <math.h> instead of isnanf.h.
26644         * modules/isnand (Files): Remove lib/isnand.h.
26645         (Depends-on): Add math.
26646         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
26647         (Include): Specify <math.h> instead of isnand.h.
26648         * modules/isnanl (Files): Remove lib/isnanl.h.
26649         (Depends-on): Add math.
26650         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
26651         (Include): Specify <math.h> instead of isnanl.h.
26652         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
26653         HAVE_ISNAN[FDL].
26654         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
26655         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
26656         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
26657         * NEWS: Mention the change.
26658
26659 2008-10-18  Bruno Haible  <bruno@clisp.org>
26660
26661         Add getusershell(), setusershell(), endusershell() declarations to
26662         <unistd.h>.
26663         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
26664         declarations.
26665         * lib/getusershell.c: Include unistd.h.
26666         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
26667         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
26668         HAVE_GETUSERSHELL.
26669         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
26670         and HAVE_GETUSERSHELL.
26671         * modules/getusershell (Depends-on): Add unistd, extensions.
26672         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
26673         (Include): Specify <unistd.h>.
26674         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
26675         HAVE_GETUSERSHELL.
26676
26677 2008-10-18  Bruno Haible  <bruno@clisp.org>
26678
26679         Add a getloadavg() declaration to <stdlib.h>.
26680         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
26681         getloadavg declaration.
26682         (getloadavg): New declaration.
26683         * lib/getloadavg.c: Include <stdlib.h> first.
26684         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
26685         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
26686         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
26687         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
26688         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
26689         * modules/getloadavg (Depends-on): Add stdlib, extensions.
26690         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
26691         (Include): Specify <stdlib.h>.
26692         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
26693         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
26694
26695 2008-10-18  Bruno Haible  <bruno@clisp.org>
26696
26697         * lib/dirchownmod.c: Don't include lchmod.h.
26698
26699         Move the lchmod() declaration to <sys/stat.h>.
26700         * lib/lchmod.h: Remove file.
26701         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
26702         (lchmod): New declaration, moved here from lib/lchown.h.
26703         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
26704         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
26705         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
26706         and HAVE_LCHMOD.
26707         * modules/lchmod (Files): Remove lib/lchmod.h.
26708         (Depends-on): Add sys_stat, extensions.
26709         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
26710         (Include): Specify <sys/stat.h> instead of lchmod.h.
26711         * modules/sys_stat (Depends-on): Add link-warning.
26712         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
26713         definition of GL_LINK_WARNING.
26714         * NEWS: Mention the change.
26715
26716 2008-10-18  Bruno Haible  <bruno@clisp.org>
26717
26718         * lib/fchdir.c: Don't include dirfd.h.
26719         * lib/fts.c: Likewise.
26720         * lib/getcwd.c: Likewise.
26721         * lib/glob.c: Likewise.
26722
26723         Move the dirfd() declaration to <dirent.h>.
26724         * lib/dirfd.h: Remove file.
26725         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
26726         (dirfd): New declaration.
26727         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
26728         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
26729         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
26730         HAVE_DECL_DIRFD.
26731         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
26732         HAVE_DECL_DIRFD.
26733         * modules/dirfd (Files): Remove lib/dirfd.h.
26734         (Depends-on): Add dirent, extensions.
26735         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
26736         (Include): Specify <dirent.h> instead of dirfd.h.
26737         * modules/dirent (Depends-on): Add link-warning.
26738         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
26739         definition of GL_LINK_WARNING.
26740         * NEWS: Mention the change.
26741
26742 2008-10-18  Bruno Haible  <bruno@clisp.org>
26743
26744         Move the euidaccess() declaration to <unistd.h>.
26745         * lib/euidaccess.h: Remove file.
26746         * lib/unistd.in.h (euidaccess): New declaration.
26747         * lib/euidaccess.c: Don't include euidaccess.h.
26748         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
26749         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
26750         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
26751         and HAVE_EUIDACCESS.
26752         * modules/euidaccess (Files): Remove lib/euidaccess.h.
26753         (Depends-on): Add unistd.
26754         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
26755         (Include): Specify <unistd.h> instead of euidaccess.h.
26756         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
26757         HAVE_EUIDACCESS.
26758         * NEWS: Mention the change.
26759
26760 2008-10-18  Bruno Haible  <bruno@clisp.org>
26761
26762         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
26763
26764         Move the getdomainname() declaration to <unistd.h>.
26765         * lib/getdomainname.h: Remove file.
26766         * lib/unistd.in.h (getdomainname): New declaration.
26767         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
26768         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
26769         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
26770         HAVE_GETDOMAINNAME.
26771         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
26772         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
26773         * modules/getdomainname (Files): Remove lib/getdomainname.h.
26774         (Depends-on): Add unistd, extensions.
26775         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
26776         (Includes): Specify <unistd.h> instead of getdomainname.h.
26777         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
26778         HAVE_GETDOMAINNAME.
26779         * NEWS: Mention the change.
26780
26781 2008-10-18  Bruno Haible  <bruno@clisp.org>
26782
26783         * modules/dirent: New file.
26784         * m4/dirent_h.m4: New file.
26785         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
26786         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
26787         * modules/fchdir (Files): Remove lib/dirent.in.h.
26788         (Depends-on): Add dirent.
26789         (Makefile.am): Move rules to modules/dirent.
26790         * doc/posix-headers/dirent.texi: Mention the new module.
26791
26792 2008-10-18  Bruno Haible  <bruno@clisp.org>
26793
26794         Avoid -Wunused-parameter warnings in public gnulib header files.
26795         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
26796         macro.
26797         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
26798
26799 2008-10-18  Bruno Haible  <bruno@clisp.org>
26800
26801         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
26802         * doc/glibc-functions/error.texi: Mention the module 'error'.
26803         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
26804         * doc/glibc-functions/getdomainname.texi: Mention the module
26805         'getdomainname'.
26806         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
26807         * doc/glibc-functions/getpagesize.texi: Mention the module
26808         'getpagesize'.
26809         * doc/glibc-functions/getusershell.texi: Mention the module
26810         'getusershell'.
26811         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
26812         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
26813         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
26814         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
26815         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
26816         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
26817         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
26818         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
26819         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
26820         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
26821         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
26822         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
26823         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
26824         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
26825
26826 2008-10-17  Bruno Haible  <bruno@clisp.org>
26827
26828         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
26829         HP-UX and IRIX, use -0.0L.
26830         * tests/test-ceill.c (minus_zero): Likewise.
26831         * tests/test-floorl.c (minus_zero): Likewise.
26832         * tests/test-frexpl.c (minus_zero): Likewise.
26833         * tests/test-isnan.c (minus_zerol): Likewise.
26834         * tests/test-isnanl.h (minus_zero): Likewise.
26835         * tests/test-ldexpl.c (minus_zero): Likewise.
26836         * tests/test-roundl.c (minus_zero): Likewise.
26837         * tests/test-signbit.c (minus_zerol): Likewise.
26838         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
26839         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
26840         * tests/test-truncl.c (minus_zero): Likewise.
26841         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
26842         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
26843         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
26844         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
26845
26846 2008-10-17  Bruno Haible  <bruno@clisp.org>
26847
26848         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
26849         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
26850         that it gets activated only for gcc >= 3.0.
26851         * lib/dirent.in.h: Likewise.
26852         * lib/errno.in.h: Likewise.
26853         * lib/fcntl.in.h: Likewise.
26854         * lib/float.in.h: Likewise.
26855         * lib/iconv.in.h: Likewise.
26856         * lib/inttypes.in.h: Likewise.
26857         * lib/locale.in.h: Likewise.
26858         * lib/math.in.h: Likewise.
26859         * lib/netdb.in.h: Likewise.
26860         * lib/netinet_in.in.h: Likewise.
26861         * lib/search.in.h: Likewise.
26862         * lib/signal.in.h: Likewise.
26863         * lib/spawn.in.h: Likewise.
26864         * lib/stdarg.in.h: Likewise.
26865         * lib/stdint.in.h: Likewise.
26866         * lib/stdio.in.h: Likewise.
26867         * lib/stdlib.in.h: Likewise.
26868         * lib/string.in.h: Likewise.
26869         * lib/strings.in.h: Likewise.
26870         * lib/sys_file.in.h: Likewise.
26871         * lib/sys_ioctl.in.h: Likewise.
26872         * lib/sys_select.in.h: Likewise.
26873         * lib/sys_socket.in.h: Likewise.
26874         * lib/sys_stat.in.h: Likewise.
26875         * lib/sys_time.in.h: Likewise.
26876         * lib/sysexits.in.h: Likewise.
26877         * lib/time.in.h: Likewise.
26878         * lib/unistd.in.h: Likewise.
26879         * lib/wchar.in.h: Likewise.
26880         * lib/wctype.in.h: Likewise.
26881         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
26882
26883 2008-10-17  Jim Meyering  <meyering@redhat.com>
26884
26885         ignore-value: don't depend on inline module
26886         * modules/ignore-value (Depends-on): Remove 'inline'.
26887         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
26888         Suggestion from Bruno Haible.
26889
26890 2008-10-17  Bruno Haible  <bruno@clisp.org>
26891
26892         New implementation of condition variables for Win32.
26893         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
26894         (gl_linked_waitqueue_t): New type.
26895         (gl_cond_t): Use it.
26896         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
26897         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
26898         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
26899         (glthread_cond_init_func, glthread_cond_wait_func,
26900         glthread_cond_timedwait_func, glthread_cond_signal_func,
26901         glthread_cond_broadcast_func, glthread_cond_destroy_func):
26902         Reimplemented on the basis of gl_linked_waitqueue_t.
26903         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
26904         gl_waitqueue_t.
26905         (gl_rwlock_t): Update.
26906         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
26907
26908 2008-10-17  Simon Josefsson  <simon@josefsson.org>
26909
26910         * modules/recvfrom (Depends-on): Add dependency on getpeername.
26911         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
26912
26913 2008-10-17  Jim Meyering  <meyering@redhat.com>
26914
26915         ignore-value: new module
26916         * modules/ignore-value: New file.
26917         * lib/ignore-value.h: New file.
26918         * MODULES.html.sh (Compiler warning management): New section,
26919         just for this module.  More to come.
26920
26921 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
26922
26923         open-safer.c: avoid 'signed and unsigned in conditional...' warning
26924         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
26925         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
26926
26927 2008-10-16  Jim Meyering  <meyering@redhat.com>
26928
26929         openat-die.c: avoid 'no previous prototype' warning
26930         * lib/openat-die.c: Include "openat.h".
26931         Reported by Reuben Thomas <rrt@sc3d.org>.
26932
26933 2008-10-16  Simon Josefsson  <simon@josefsson.org>
26934
26935         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
26936         * lib/netdb.in.h: Fix typo.
26937         Reported by Bruno Haible  <bruno@clisp.org>
26938
26939         * lib/netdb.in.h: Include sys/socket.h for platforms without
26940         netdb.h, to get structures like hostent on MinGW.
26941         * modules/netdb (Depends-on): Add sys_socket.
26942
26943 2008-10-15  Simon Josefsson  <simon@josefsson.org>
26944
26945         * modules/netdb, modules/netdb-tests: New file.
26946         * m4/netdb_h.m4: New file.
26947         * lib/netdb.in.h: Add, currently just an empty file pending
26948         definitions.
26949         * tests/test-netdb.c: New file.
26950         * doc/posix-headers/netdb.texi: Mention that we replace it if
26951         needed.
26952         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
26953         netdb.
26954
26955 2008-10-15  Simon Josefsson  <simon@josefsson.org>
26956
26957         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
26958         with code.
26959
26960 2008-10-13  Bruno Haible  <bruno@clisp.org>
26961
26962         * lib/glthread/cond.c (glthread_cond_wait_func,
26963         glthread_cond_timedwait_func): Add a comment.
26964
26965 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
26966
26967         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
26968         * tests/test-select.c: Likewise,
26969
26970 2008-10-13  Bruno Haible  <bruno@clisp.org>
26971
26972         * lib/glthread/cond.c (glthread_cond_wait_func,
26973         glthread_cond_timedwait_func): Fix variable name.
26974         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
26975
26976 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
26977
26978         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
26979         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
26980         struct sockaddr.sa_len.
26981         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
26982
26983 2008-10-13  Simon Josefsson  <simon@josefsson.org>
26984
26985         * build-aux/pmccabe2html: Add css and css_url parameters.
26986
26987 2008-10-12  Bruno Haible  <bruno@clisp.org>
26988
26989         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
26990         calling aclx_get.
26991         Reported by Rainer Tammer <tammer@tammer.net>.
26992
26993 2008-10-12  Bruno Haible  <bruno@clisp.org>
26994
26995         Use msvcrt aware primitives for creation/termination of Win32 threads.
26996         * lib/glthread/thread.c: Include <process.h>.
26997         (glthread_create_func): Use _beginthreadex instead of CreateThread.
26998         (wrapper_func): Update signature.
26999         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
27000
27001 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
27002             Bruno Haible  <bruno@clisp.org>
27003
27004         Provide a Win32 implementation of the 'cond' module.
27005         * lib/glthread/cond.h [USE_WIN32]: New implementation.
27006         * lib/glthread/cond.c (glthread_cond_init_func,
27007         glthread_cond_wait_func, glthread_cond_timedwait_func,
27008         glthread_cond_signal_func, glthread_cond_broadcast_func,
27009         glthread_cond_destroy_func) [USE_WIN32]: New functions.
27010         * modules/cond (Dependencies): Add gettimeofday.
27011
27012 2008-10-11  Bruno Haible  <bruno@clisp.org>
27013
27014         Make sleep work on older versions of mingw.
27015         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
27016         only whether it exists.
27017         * doc/posix-functions/sleep.texi: Mention the problem with older
27018         versions of mingw.
27019
27020 2008-10-11  Bruno Haible  <bruno@clisp.org>
27021
27022         New module 'shutdown'.
27023         * modules/shutdown: New file.
27024         * lib/sys_socket.in.h (shutdown): New declaration.
27025         * lib/winsock.c (shutdown): New function.
27026         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
27027         GNULIB_SHUTDOWN.
27028         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
27029         * doc/posix-functions/shutdown.texi: Document the new module.
27030
27031 2008-10-11  Jim Meyering  <meyering@redhat.com>
27032
27033         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
27034
27035 2008-10-11  Bruno Haible  <bruno@clisp.org>
27036
27037         New module 'fclose'.
27038         * modules/fclose: New file.
27039         * lib/stdio.in.h (fclose): New declaration.
27040         * lib/fclose.c: New file.
27041         * m4/fclose.m4: New file.
27042         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
27043         REPLACE_FCLOSE.
27044         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
27045         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
27046         REPLACE_FCLOSE.
27047         * modules/close (Depends-on): fclose.
27048         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
27049
27050 2008-10-11  Bruno Haible  <bruno@clisp.org>
27051
27052         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
27053         set errno and don't call _close.
27054
27055 2008-10-10  Bruno Haible  <bruno@clisp.org>
27056
27057         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
27058         ACL, not afterwards. Fixes test failure on Cygwin.
27059
27060 2008-10-09  Ben Pfaff  <blp@gnu.org>
27061
27062         * build-aux/announce-gen: Fix gnulib version related part of usage
27063         message.  Die with a useful error message if no tarballs are
27064         found.
27065
27066 2008-10-10  Jim Meyering  <meyering@redhat.com>
27067
27068         bootstrap: use git's --depth=N option only if it's supported
27069         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
27070         recognize the --depth option.  Reported by Pádraig Brady.
27071
27072 2008-10-09  Bruno Haible  <bruno@clisp.org>
27073
27074         New module 'ioctl'.
27075         * modules/ioctl: New file.
27076         * lib/sys_socket.in.h (ioctl): Remove declaration.
27077         * lib/winsock.c: Include <sys/ioctl.h>.
27078         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
27079         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
27080         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
27081         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
27082         * doc/posix-functions/ioctl.texi: Mention the new module.
27083
27084 2008-10-09  Bruno Haible  <bruno@clisp.org>
27085
27086         New module 'sys_ioctl'.
27087         * lib/sys_ioctl.in.h: New file.
27088         * m4/sys_ioctl_h.m4: New file.
27089         * modules/sys_ioctl: New file.
27090         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
27091
27092 2008-10-09  Bruno Haible  <bruno@clisp.org>
27093
27094         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
27095         * lib/winsock.c: Include <stdarg.h>.
27096         (rpl_ioctl): Change to second argument 'int' and then varargs.
27097
27098 2008-10-09  Bruno Haible  <bruno@clisp.org>
27099
27100         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
27101         when the sys_socket module is present and the system has <winsock2.h>.
27102
27103 2008-10-09  Bruno Haible  <bruno@clisp.org>
27104
27105         * doc/posix-functions/close.texi: Mention module 'close' instead of
27106         module 'sys_socket'.
27107
27108 2008-10-09  Bruno Haible  <bruno@clisp.org>
27109
27110         * doc/glibc-headers/sys_ioctl.texi: New file.
27111         * doc/gnulib.texi: Include it.
27112
27113 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
27114             Bruno Haible  <bruno@clisp.org>
27115
27116         Combine the two replacements of 'close'.
27117         * lib/sys_socket.in.h (close): Define to a reminder to include
27118         <unistd.h>.
27119         (_gl_close_fd_maybe_socket): New declaration.
27120         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
27121         * lib/winsock.c (close): Remove undefinition.
27122         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
27123         needed for the gnulib module 'close'.
27124         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
27125         define to an error symbol or to a warning, if suitable.
27126         * lib/close.c: Include <sys/socket.h>.
27127         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
27128         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
27129         UNISTD_H_HAVE_WINSOCK2_H.
27130         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
27131         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
27132         UNISTD_H_HAVE_WINSOCK2_H.
27133         * modules/sys_socket (Files): Add m4/unistd_h.m4.
27134         (configure.ac): Set a module indicator.
27135         (Makefile.am): Substitute GNULIB_CLOSE.
27136         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
27137         * modules/poll-tests (Depends-on): Add close.
27138         * modules/select-tests (Depends-on): Likewise.
27139
27140 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
27141             Bruno Haible  <bruno@clisp.org>
27142
27143         New module 'close'.
27144         * modules/close: New file.
27145         * lib/unistd.in.h (close): Move declaration out of the
27146         FCHDIR_REPLACEMENT scope.
27147         (_gl_unregister_fd): New declaration.
27148         * lib/close.c: New file.
27149         * lib/fchdir.c (rpl_close): Remove function.
27150         * m4/close.m4: New file.
27151         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
27152         close.
27153         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
27154         REPLACE_CLOSE.
27155         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
27156         REPLACE_CLOSE.
27157         * modules/fchdir (Depends-on): Add close.
27158
27159 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
27160             Bruno Haible  <bruno@clisp.org>
27161
27162         * lib/fcntl.in.h (open): Simplify conditionals.
27163         (_gl_register_fd): New declaration.
27164         * lib/fchdir.c (rpl_open): Remove function.
27165         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
27166         also.
27167         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
27168         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
27169         open.
27170
27171 2008-10-09  Jim Meyering  <meyering@redhat.com>
27172
27173         GNUmakefile: use the more name-space-friendly "_version"
27174         * top/GNUmakefile (_dummy): Update.
27175         (_version): Rename from "version".
27176
27177 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
27178             Bruno Haible  <bruno@clisp.org>
27179
27180         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
27181         rpl_close.
27182         (_gl_register_fd): New function, extracted from rpl_open.
27183         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
27184         (rpl_open, rpl_opendir): Use _gl_register_fd.
27185
27186 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
27187
27188         Fix organization of 'open' replacement.
27189         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
27190         (gl_FUNC_OPEN): Use it.
27191         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
27192
27193 2008-10-08  Bruno Haible  <bruno@clisp.org>
27194
27195         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
27196
27197 2008-10-08  Simon Josefsson  <simon@josefsson.org>
27198
27199         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
27200         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
27201         listen).
27202
27203 2008-10-08  Eric Blake  <ebb9@byu.net>
27204
27205         GNUmakefile: add 'make version' target
27206         * top/GNUmakefile (_curr-ver): Split version update rules...
27207         (version): ...into a target.
27208
27209 2008-10-07  Bruno Haible  <bruno@clisp.org>
27210
27211         Use a more portable replacement expression for -0.0L.
27212         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
27213         instead of -0.0L. Fix m4 quotation.
27214
27215         * tests/test-signbit.c: Include <float.h>.
27216         (minus_zero): New variable.
27217         (test_signbitl): Use minus_zero instead of -zero.
27218         * modules/signbit-tests (Depends-on): Add float.
27219
27220         * tests/test-ceill.c: Include <float.h>.
27221         (zero): Remove variable.
27222         (minus_zero): New variable.
27223         (main): Use minus_zero instead of -zero.
27224         * modules/ceill-tests (Depends-on): Add float.
27225
27226         * tests/test-floorl.c: Include <float.h>.
27227         (zero): Remove variable.
27228         (minus_zero): New variable.
27229         (main): Use minus_zero instead of -zero.
27230         * modules/floorl-tests (Depends-on): Add float.
27231
27232         * tests/test-roundl.c: Include <float.h>.
27233         (zero): Remove variable.
27234         (minus_zero): New variable.
27235         (main): Use minus_zero instead of -zero.
27236         * modules/roundl-tests (Depends-on): Add float.
27237
27238         * tests/test-truncl.c: Include <float.h>.
27239         (zero): Remove variable.
27240         (minus_zero): New variable.
27241         (main): Use minus_zero instead of -zero.
27242         * modules/truncl-tests (Depends-on): Add float.
27243
27244         * tests/test-frexpl.c (zero): Remove variable.
27245         (minus_zero): New variable.
27246         (main): Use minus_zero instead of -zero.
27247         * modules/frexpl-tests (Depends-on): Add float.
27248
27249         * tests/test-isnan.c (zerol): Remove variable.
27250         (minus_zerol): New variable.
27251         (test_long_double): Use minus_zerol instead of -zerol.
27252         * modules/isnan-tests (Depends-on): Add float.
27253
27254         * tests/test-isnanl.h (zero): Remove variable.
27255         (minus_zero): New variable.
27256         (main): Use minus_zero instead of -zero.
27257         * modules/isnanl-nolibm-tests (Depends-on): Add float.
27258         * modules/isnanl-tests (Depends-on): Add float.
27259
27260         * tests/test-ldexpl.c (zero): Remove variable.
27261         (minus_zero): New variable.
27262         (main): Use minus_zero instead of -zero.
27263         * modules/ldexpl-tests (Depends-on): Add float.
27264
27265         * tests/test-snprintf-posix.h (zerol): Remove variable.
27266         (minus_zerol): New variable.
27267         (test_function): Use minus_zerol instead of -zerol.
27268         * modules/snprintf-posix-tests (Depends-on): Add float.
27269         * modules/vsnprintf-posix-tests (Depends-on): Add float.
27270
27271         * tests/test-sprintf-posix.h (zerol): Remove variable.
27272         (minus_zerol): New variable.
27273         (test_function): Use minus_zerol instead of -zerol.
27274         * modules/sprintf-posix-tests (Depends-on): Add float.
27275         * modules/vsprintf-posix-tests (Depends-on): Add float.
27276
27277         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
27278         (minus_zerol): New variable.
27279         (test_function): Use minus_zerol instead of -zerol.
27280         * modules/vasnprintf-posix-tests (Depends-on): Add float.
27281
27282         * tests/test-vasprintf-posix.c (zerol): Remove variable.
27283         (minus_zerol): New variable.
27284         (test_function): Use minus_zerol instead of -zerol.
27285         * modules/vasprintf-posix-tests (Depends-on): Add float.
27286
27287 2008-10-07  Simon Josefsson  <simon@josefsson.org>
27288
27289         * MODULES.html.sh (Support for building documentation): Mention
27290         pmccabe2html.  Sort entries.
27291
27292         Add pmccabe2html module, from gnupdf.
27293         * build-aux/pmccabe.css: New file.
27294         * build-aux/pmccabe2html: New file.
27295         * m4/pmccabe2html.m4: New file.
27296         * modules/pmccabe2html: New file.
27297
27298 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
27299
27300         flock: new module
27301         * MODULES.html.sh: Add to list of modules.
27302         * lib/flock.c: flock implementation for Windows and Unix systems
27303         which have fcntl.
27304         * doc/glibc-functions/flock.texi: Update documentation.
27305         * lib/sys_file.in.h: <sys/file.h> header file.
27306         * m4/flock.m4: M4 macros.
27307         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
27308         * modules/flock: flock module.
27309         * modules/flock-tests: flock tests module.
27310         * modules/sys_file: sys/file.h module.
27311         * tests/test-flock.c: test suite for flock.
27312
27313 2008-10-06  Jim Meyering  <meyering@redhat.com>
27314
27315         bootstrap: check for LT_INIT more portably still ;-)
27316         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
27317         Spotted by Bruno Haible.
27318
27319 2008-10-06  Eric Blake  <ebb9@byu.net>
27320
27321         test-signbit: avoid tripping Irix cc bug on -0.0L
27322         * tests/test-signbit.c (minus_zerol): Delete, and replace with
27323         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
27324         entire testsuite consistent and avoids an Irix 6.2 bug.
27325
27326 2008-10-05  Bruno Haible  <bruno@clisp.org>
27327             Jim Meyering  <jim@meyering.net>
27328
27329         Add an option for ignoring EPIPE during close_stdout.
27330         * lib/closeout.h: Include <stdbool.h>.
27331         (close_stdout_set_ignore_EPIPE): New declaration.
27332         * lib/closeout.c: Include <stdbool.h>.
27333         (ignore_EPIPE): New variable.
27334         (close_stdout_set_ignore_EPIPE): New function.
27335         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
27336         * lib/close-stream.c (close_stream): Mention the possible EPIPE
27337         failure.
27338         * modules/closeout (Depends-on): Add stdbool.
27339
27340 2008-10-05  Bruno Haible  <bruno@clisp.org>
27341
27342         * modules/accept: New file.
27343         * modules/bind: New file.
27344         * modules/connect: New file.
27345         * modules/getpeername: New file.
27346         * modules/getsockname: New file.
27347         * modules/getsockopt: New file.
27348         * modules/listen: New file.
27349         * modules/recv: New file.
27350         * modules/recvfrom: New file.
27351         * modules/send: New file.
27352         * modules/sendto: New file.
27353         * modules/setsockopt: New file.
27354         * modules/socket: New file.
27355         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
27356         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
27357         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
27358         the particular module is requested. Add a link warning when the
27359         particular module is not requested.
27360         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
27361         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
27362         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
27363         the particular module is requested.
27364         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
27365         gl_SYS_SOCKET_H_DEFAULTS): New macros.
27366         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
27367         * modules/sys_socket (Depends-on): Add link-warning.
27368         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
27369         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
27370         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
27371         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
27372         GL_LINK_WARNING.
27373         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
27374         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
27375         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
27376         * doc/posix-functions/getpeername.texi: Mention the new module
27377         'getpeername'.
27378         * doc/posix-functions/getsockname.texi: Mention the new module
27379         'getsockname'.
27380         * doc/posix-functions/getsockopt.texi: Mention the new module
27381         'getsockopt'.
27382         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
27383         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
27384         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
27385         * doc/posix-functions/send.texi: Mention the new module 'send'.
27386         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
27387         * doc/posix-functions/setsockopt.texi: Mention the new module
27388         'setsockopt'.
27389         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
27390         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
27391         listen, connect, accept.
27392         * modules/select-tests (Depends-on): Likewise.
27393
27394 2008-10-05  Bruno Haible  <bruno@clisp.org>
27395
27396         * lib/winsock.c (strerror): Remove unused #undef.
27397         (rpl_close): Remove unused local variable.
27398
27399         * modules/sys_socket (Depends-on); Add errno.
27400
27401 2008-10-05  Bruno Haible  <bruno@clisp.org>
27402
27403         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
27404         (select): Add a link warning when the 'select' module is not used.
27405         * modules/sys_select (Depends-on): Add link-warning.
27406         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
27407         Suggested by Paolo Bonzini.
27408
27409 2008-10-05  Jim Meyering  <meyering@redhat.com>
27410
27411         bootstrap: check for LT_INIT more portably
27412         * build-aux/bootstrap: Avoid using grep -E, since it's not
27413         portable enough.  Suggestion from Bruno Haible.
27414
27415 2008-10-05  Bruno Haible  <bruno@clisp.org>
27416
27417         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
27418         as being fixed by gnulib.
27419
27420 2008-10-05  Bruno Haible  <bruno@clisp.org>
27421
27422         * modules/select-tests: New file, mostly copied from
27423         modules/sys_select-tests.
27424         * tests/test-select.c: New file, mostly copied from
27425         tests/test-sys_select.c.
27426         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
27427         * modules/sys_select-tests (Depends-on): Remove all dependencies.
27428         (Makefile.am): Remove test_sys_select_LDADD.
27429
27430         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
27431         to an undefined symbol, for an error message.
27432         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
27433         (gl_SYS_SELECT_H_DEFAULTS): New macro.
27434         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
27435         winsock-select.c here.
27436         * modules/sys_select (Files): Remove lib/winsock-select.c.
27437         (Depends-on): Remove alloca.
27438         (Makefile.am): Substitute GNULIB_SELECT.
27439         * modules/select: New file.
27440         * doc/posix-functions/select.texi: Update.
27441
27442 2008-10-05  Bruno Haible  <bruno@clisp.org>
27443
27444         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
27445         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
27446         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
27447         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
27448         getdtablesize.
27449         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
27450         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
27451
27452 2008-10-05  Bruno Haible  <bruno@clisp.org>
27453
27454         * modules/getdtablesize-tests: New file.
27455         * tests/test-getdtablesize.c: New file.
27456
27457         New module 'getdtablesize'.
27458         * lib/unistd.in.h (getdtablesize): New declaration.
27459         * lib/getdtablesize.c: New file.
27460         * m4/getdtablesize.m4: New file.
27461         * modules/getdtablesize: New file.
27462         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
27463         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
27464         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
27465         HAVE_GETDTABLESIZE.
27466         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
27467
27468 2008-10-05  Bruno Haible  <bruno@clisp.org>
27469
27470         * modules/sched (Makefile.am): Fix typo.
27471         Reported by Simon Josefsson.
27472
27473 2008-10-05  Jim Meyering  <meyering@redhat.com>
27474
27475         bootstrap: check for LT_INIT, too
27476         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
27477         are deprecated.  Suggestion from Ralf Wildenhues.
27478
27479 2008-10-05  Bruno Haible  <bruno@clisp.org>
27480
27481         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
27482         overriding them by ours.
27483         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
27484
27485 2008-10-05  Jim Meyering  <meyering@redhat.com>
27486
27487         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
27488         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
27489         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
27490
27491 2008-10-04  Bruno Haible  <bruno@clisp.org>
27492
27493         * modules/dup2 (License): Change to LGPLv2+.
27494         * modules/sleep (License): Likewise.
27495         * modules/perror (License): Likewise.
27496         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
27497         Blake.
27498         * modules/signal (License): Likewise.
27499         * modules/sigprocmask (License): Likewise.
27500         * modules/raise (License): Change to LGPLv2+, with approval by Jim
27501         Meyering.
27502
27503 2008-10-04  Bruno Haible  <bruno@clisp.org>
27504
27505         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
27506         Reported by Rainer Tammer <tammer@tammer.net>.
27507
27508 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
27509             Bruno Haible  <bruno@clisp.org>
27510
27511         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
27512         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
27513         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
27514
27515 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
27516
27517         filevercmp: new module
27518         * lib/filevercmp.h: New function filevercmp comparing version strings.
27519         * lib/filevercmp.c: Implementation of filevercmp function.
27520         * modules/filevercmp: Module metadata.
27521         * tests/test-filevercmp.c: Unit test for new module.
27522         * modules/filevercmp-tests: Unit test metadata.
27523         * MODULES.html.sh: Add filevercmp module.
27524
27525 2008-10-03  Bruno Haible  <bruno@clisp.org>
27526
27527         * lib/c-ctype.h: Add comment.
27528         Reported by Jim Meyering.
27529
27530 2008-10-02  Bruno Haible  <bruno@clisp.org>
27531
27532         * modules/posix_spawn-internal (Depends-on): Add 'open'.
27533
27534 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
27535
27536         * build-aux/bootstrap: Allow renaming bootstrap, and change the
27537         name of bootstrap.conf accordingly.
27538
27539 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
27540
27541         * build-aux/bootstrap: Install git-merge-changelog configuration
27542         items into .gitconfig if needed.
27543
27544 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
27545
27546         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
27547         git repository, and initialize/update it accordingly.
27548
27549 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
27550
27551         * modules/fsync-tests: New file.
27552         * tests/test-fsync.c: New file.
27553
27554         New module 'fsync'.
27555         * lib/fsync.c: New file.
27556         * m4/fsync.m4: New file.
27557         * modules/fsync: New file.
27558         * lib/unistd.in.h (fsync): New declaration.
27559         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
27560         GNULIB_FSYNC and HAVE_FSYNC.
27561         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
27562         * MODULES.html.sh (posix_functions): Add fsync.
27563         * doc/posix-functions/fsync.texi: Mention the new module.
27564
27565 2008-10-02  Jim Meyering  <meyering@redhat.com>
27566
27567         fts.c: sync with similar code from coreutils' remove.c
27568         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
27569         Guard also with "#if defined __linux__", since for now at least,
27570         this code is Linux-kernel-specific.
27571
27572 2008-10-02  Jim Meyering  <meyering@redhat.com>
27573
27574         fts: bug fixes
27575         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
27576         Include <sys/vfs.h>, not <sys/statfs.h>.
27577
27578         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
27579         Include <sys/vfs.h>, not <sys/statfs.h>.
27580
27581 2008-10-01  Bruno Haible  <bruno@clisp.org>
27582
27583         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
27584         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
27585         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
27586         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
27587         * doc/posix-functions/posix_spawnp.texi: Likewise.
27588         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
27589         whether posix_spawn actually works.
27590         * m4/pipe.m4 (gl_PIPE): Likewise.
27591         * modules/execute (Files): Add m4/posix_spawn.m4.
27592         * modules/pipe (Files): Add m4/posix_spawn.m4.
27593         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
27594
27595 2008-10-01  Jim Meyering  <meyering@redhat.com>
27596
27597         remove trailing spaces
27598         * NEWS: Likewise.
27599         * lib/poll.c (poll): Likewise.
27600         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
27601         * lib/winsock.c (rpl_close): Likewise.
27602         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
27603         * modules/yield: Likewise.
27604         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
27605         * tests/test-sys_select.c (connect_to_socket): Likewise.
27606
27607         fts.c: adjust a new interface to be more generally useful
27608         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
27609         (fts_build): Adjust caller.
27610
27611 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
27612
27613         * modules/cond-tests: New file.
27614         * tests/test-cond.c: New file.
27615
27616 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
27617             Bruno Haible  <bruno@clisp.org>
27618
27619         * modules/cond (Dependencies): Add errno, time.
27620         * lib/glthread/cond.h: Include <time.h>.
27621         (gl_cond_define, gl_cond_define_initialized): Use the same definition
27622         across platforms.
27623
27624 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
27625             Bruno Haible  <bruno@clisp.org>
27626
27627         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
27628
27629 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
27630             Bruno Haible  <bruno@clisp.org>
27631
27632         * modules/tls-tests (Depends-on): Add thread, yield.
27633         (configure.ac): Remove all checks.
27634         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
27635         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
27636         gl_thread_self): Remove definitions. Include glthread/thread.h and
27637         glthread/yield.h instead.
27638         (test_tls): Pass an additional NULL argument to gl_thread_join.
27639
27640 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
27641             Bruno Haible  <bruno@clisp.org>
27642
27643         * modules/lock-tests (Depends-on): Add thread, yield.
27644         (configure.ac): Remove all checks.
27645         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
27646         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
27647         gl_thread_self): Remove definitions. Include glthread/thread.h and
27648         glthread/yield.h instead.
27649         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
27650         additional NULL argument to gl_thread_join.
27651
27652 2008-09-30  Bruno Haible  <bruno@clisp.org>
27653
27654         Fix the Win32 implementation of the 'thread' module.
27655         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
27656         pointer type.
27657         (gl_thread_self): Invoke gl_thread_self_func.
27658         (gl_thread_self_func): New declaration.
27659         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
27660         (do_init_self_key, init_self_key): New functions.
27661         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
27662         Remove some fields.
27663         (running_threads, running_lock): Remove variables.
27664         (get_current_thread_handle): New function.
27665         (gl_thread_self_func, wrapper_func, glthread_create_func,
27666         glthread_join_func, gl_thread_exit_func): Largely rewritten and
27667         simplified.
27668
27669 2008-09-30  Bruno Haible  <bruno@clisp.org>
27670
27671         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
27672         files.
27673
27674 2008-09-30  Jim Meyering  <meyering@redhat.com>
27675
27676         fts.m4: correct the test for statfs.f_type
27677         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
27678         when checking for statfs.f_type.
27679
27680 2008-09-15  Simon Josefsson  <simon@josefsson.org>
27681
27682         tests: avoid some compiler warnings
27683         * tests/test-memchr.c (main): Pass NULL indirectly.
27684         * tests/test-getdate.c (main): Remove unused variable 'ret'.
27685
27686 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
27687
27688         getdate.y: disallow countable dayshifts like "4 yesterday ago"
27689         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
27690         exactly specified dayshifts.
27691         (dayshift): New rule.
27692         (rel): Add dayshift.
27693         (relative_time_table) [tomorrow, yesterday, today, now]:
27694         Use tDAY_SHIFT in place of tDAY_UNIT.
27695         * tests/test-getdate.c: Add tests for now-disallowed countable
27696         dayshifts, e.g., "4 yesterday ago".
27697
27698 2008-09-29  Bruno Haible  <bruno@clisp.org>
27699
27700         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
27701         * tests/test-posix_spawn1.in.sh: Renamed from
27702         tests/test-posix_spawn.in.sh.
27703         * tests/test-posix_spawn2.c: New file.
27704         * tests/test-posix_spawn2.in.sh: New file.
27705         * modules/posix_spawnp-tests (Files): Update.
27706         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
27707
27708 2008-09-29  Bruno Haible  <bruno@clisp.org>
27709
27710         Propagate effects of putenv/setenv/unsetenv to child processes.
27711         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
27712         * lib/pipe.c (create_pipe): Likewise.
27713
27714 2008-09-29  Bruno Haible  <bruno@clisp.org>
27715
27716         Enable use of shell scripts as executables in mingw.
27717         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
27718         run the program as a shell script.
27719         * lib/pipe.c (create_pipe): Likewise.
27720         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
27721         resulting array.
27722
27723 2008-09-29  Eric Blake  <ebb9@byu.net>
27724
27725         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
27726
27727 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
27728
27729         * doc/posix-functions/accept.texi: Update mingw problems.
27730         * doc/posix-functions/bind.texi: Update mingw problems.
27731         * doc/posix-functions/close.texi: Update mingw problems.
27732         * doc/posix-functions/connect.texi: Update mingw problems.
27733         * doc/posix-functions/getpeername.texi: Update mingw problems.
27734         * doc/posix-functions/getsockname.texi: Update mingw problems.
27735         * doc/posix-functions/getsockopt.texi: Update mingw problems.
27736         * doc/posix-functions/ioctl.texi: Update mingw problems.
27737         * doc/posix-functions/listen.texi: Update mingw problems.
27738         * doc/posix-functions/recv.texi: Update mingw problems.
27739         * doc/posix-functions/recvfrom.texi: Update mingw problems.
27740         * doc/posix-functions/select.texi: Update mingw problems.
27741         * doc/posix-functions/send.texi: Update mingw problems.
27742         * doc/posix-functions/sendto.texi: Update mingw problems.
27743         * doc/posix-functions/setsockopt.texi: Update mingw problems.
27744         * doc/posix-functions/socket.texi: Update mingw problems.
27745
27746 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
27747             Bruno Haible  <bruno@clisp.org>
27748
27749         * lib/sys_select.in.h: Include sys/time.h.
27750         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
27751         * modules/sys_select: Depend on sys_time.
27752         * tests/test-sys_select.c: Test that sys/select.h defines struct
27753         timeval fully.
27754
27755 2008-09-29  Bruno Haible  <bruno@clisp.org>
27756
27757         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
27758         * lib/sys_select.in.h: Likewise.
27759
27760 2008-09-29  Bruno Haible  <bruno@clisp.org>
27761
27762         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
27763
27764 2008-09-29  Bruno Haible  <bruno@clisp.org>
27765
27766         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
27767         Set LIBSOCKET instead of augmenting LIBS.
27768         * modules/sockets (Link): New section.
27769         * modules/sockets-tests (test_sockets_LDADD): New variable.
27770         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
27771         * modules/poll-tests (test_poll_LDADD): New variable.
27772         * NEWS: Document the change.
27773
27774 2008-09-29  Bruno Haible  <bruno@clisp.org>
27775
27776         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
27777         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
27778         ARPA_INET_H directly.
27779         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
27780
27781 2008-09-28  Bruno Haible  <bruno@clisp.org>
27782
27783         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
27784         from gl_HEADER_SYS_SOCKET.
27785         (gl_HEADER_SYS_SOCKET): Invoke it.
27786         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
27787
27788 2008-09-28  Bruno Haible  <bruno@clisp.org>
27789
27790         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
27791         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
27792         Needed on OSF/1 4.0.
27793
27794 2008-09-28  Bruno Haible  <bruno@clisp.org>
27795
27796         Override open more carefully.
27797         * lib/open.c (orig_open): New function.
27798         (rpl_open): Use orig_open instead of open.
27799         * lib/fcntl.in.h: Add special invocation convention.
27800         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
27801         (gl_FUNC_OPEN): Invoke it.
27802
27803         Override freopen more carefully.
27804         * lib/freopen.c (orig_freopen): New function.
27805         (rpl_freopen): Use orig_freopen instead of freopen.
27806         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
27807         (gl_FUNC_FREOPEN): Invoke it.
27808
27809         Override fopen more carefully.
27810         * lib/fopen.c (orig_fopen): New function.
27811         (rpl_fopen): Use orig_fopen instead of fopen.
27812         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
27813         (gl_FUNC_FOPEN): Invoke it.
27814         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
27815
27816 2008-09-28  Bruno Haible  <bruno@clisp.org>
27817
27818         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
27819         SIGPIPE.
27820
27821 2008-09-28  Bruno Haible  <bruno@clisp.org>
27822
27823         * tests/test-sigaction.c (handler, main): Disable the check whether
27824         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
27825         glibc systems with LinuxThreads.
27826
27827 2008-09-28  Bruno Haible  <bruno@clisp.org>
27828
27829         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
27830
27831         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
27832         with AIX xlc.
27833         * lib/fcntl.in.h (open): Likewise.
27834         Reported by Rainer Tammer <tammer@tammer.net>.
27835
27836 2008-09-28  Bruno Haible  <bruno@clisp.org>
27837
27838         * modules/posix_spawnp-tests: New file.
27839         * tests/test-posix_spawn.c: New file.
27840         * tests/test-posix_spawn.in.sh: New file.
27841
27842         New module 'posix_spawnp'.
27843         * modules/posix_spawnp: New file.
27844         * lib/spawnp.c: New file, from GNU libc with modifications.
27845         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
27846
27847         New module 'posix_spawn'.
27848         * modules/posix_spawn: New file.
27849         * lib/spawn.c: New file, from GNU libc with modifications.
27850         * doc/posix-functions/posix_spawn.texi: Mention the new module.
27851
27852         New module 'posix_spawnattr_destroy'.
27853         * modules/posix_spawnattr_destroy: New file.
27854         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
27855         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
27856         module.
27857
27858         New module 'posix_spawnattr_setsigmask'.
27859         * modules/posix_spawnattr_setsigmask: New file.
27860         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
27861         modifications.
27862         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
27863         new module.
27864
27865         New module 'posix_spawnattr_getsigmask'.
27866         * modules/posix_spawnattr_getsigmask: New file.
27867         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
27868         modifications.
27869         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
27870         new module.
27871
27872         New module 'posix_spawnattr_setsigdefault'.
27873         * modules/posix_spawnattr_setsigdefault: New file.
27874         * lib/spawnattr_setdefault.c: New file, from GNU libc with
27875         modifications.
27876         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
27877         new module.
27878
27879         New module 'posix_spawnattr_getsigdefault'.
27880         * modules/posix_spawnattr_getsigdefault: New file.
27881         * lib/spawnattr_getdefault.c: New file, from GNU libc with
27882         modifications.
27883         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
27884         new module.
27885
27886         New module 'posix_spawnattr_setschedpolicy'.
27887         * modules/posix_spawnattr_setschedpolicy: New file.
27888         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
27889         modifications.
27890         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
27891         new module.
27892
27893         New module 'posix_spawnattr_getschedpolicy'.
27894         * modules/posix_spawnattr_getschedpolicy: New file.
27895         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
27896         modifications.
27897         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
27898         new module.
27899
27900         New module 'posix_spawnattr_setschedparam'.
27901         * modules/posix_spawnattr_setschedparam: New file.
27902         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
27903         modifications.
27904         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
27905         new module.
27906
27907         New module 'posix_spawnattr_getschedparam'.
27908         * modules/posix_spawnattr_getschedparam: New file.
27909         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
27910         modifications.
27911         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
27912         new module.
27913
27914         New module 'posix_spawnattr_setpgroup'.
27915         * modules/posix_spawnattr_setpgroup: New file.
27916         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
27917         modifications.
27918         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
27919         module.
27920
27921         New module 'posix_spawnattr_getpgroup'.
27922         * modules/posix_spawnattr_getpgroup: New file.
27923         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
27924         modifications.
27925         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
27926         module.
27927
27928         New module 'posix_spawnattr_setflags'.
27929         * modules/posix_spawnattr_setflags: New file.
27930         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
27931         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
27932         module.
27933
27934         New module 'posix_spawnattr_getflags'.
27935         * modules/posix_spawnattr_getflags: New file.
27936         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
27937         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
27938         module.
27939
27940         New module 'posix_spawnattr_init'.
27941         * modules/posix_spawnattr_init: New file.
27942         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
27943         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
27944         module.
27945
27946         New module 'posix_spawn_file_actions_destroy'.
27947         * modules/posix_spawn_file_actions_destroy: New file.
27948         * lib/spawn_faction_destroy.c: New file, from GNU libc with
27949         modifications.
27950         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
27951         the new module.
27952
27953         New module 'posix_spawn_file_actions_addopen'.
27954         * modules/posix_spawn_file_actions_addopen: New file.
27955         * lib/spawn_faction_addopen.c: New file, from GNU libc with
27956         modifications.
27957         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
27958         the new module.
27959
27960         New module 'posix_spawn_file_actions_adddup2'.
27961         * modules/posix_spawn_file_actions_adddup2: New file.
27962         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
27963         modifications.
27964         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
27965         the new module.
27966
27967         New module 'posix_spawn_file_actions_addclose'.
27968         * modules/posix_spawn_file_actions_addclose: New file.
27969         * lib/spawn_faction_addclose.c: New file, from GNU libc with
27970         modifications.
27971         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
27972         the new module.
27973
27974         New module 'posix_spawn_file_actions_init'.
27975         * modules/posix_spawn_file_actions_init: New file.
27976         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
27977         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
27978         new module.
27979
27980         New module 'posix_spawn-internal'.
27981         * modules/posix_spawn-internal: New file.
27982         * lib/spawn_int.h: New file, from GNU libc with modifications.
27983         * lib/spawni.c: New file, from GNU libc with modifications.
27984         * m4/posix_spawn.m4: New file.
27985
27986         New module 'spawn'.
27987         * modules/spawn: New file.
27988         * lib/spawn.in.h: New file, from GNU libc with modifications.
27989         * m4/spawn_h.m4: New file.
27990         * doc/posix-headers/spawn.texi: Mention the new module.
27991
27992 2008-09-28  Bruno Haible  <bruno@clisp.org>
27993
27994         * modules/sched-tests: New file.
27995         * tests/test-sched.c: New file.
27996
27997         New module 'sched'.
27998         * modules/sched: New file.
27999         * lib/sched.in.h: New file.
28000         * m4/sched_h.m4: New file.
28001         * doc/posix-headers/sched.texi: Mention the new module.
28002
28003 2008-09-27  Eric Blake  <ebb9@byu.net>
28004
28005         Fix previous patch, and tweak references to $0.
28006         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
28007         (func_version, func_gnulib_dir): Don't call this program
28008         gnulib-tool.
28009         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
28010         with using $0 in function.
28011         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
28012         (func_fatal_error): Reuse the name the user invoked us with.
28013
28014 2008-09-27  Bruno Haible  <bruno@clisp.org>
28015
28016         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
28017         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
28018         (gl_ICONV_H): Not here.
28019         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
28020         instead of assigning ICONV_H directly.
28021
28022         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
28023         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
28024         WCHAR_H directly.
28025
28026 2008-09-27  Bruno Haible  <bruno@clisp.org>
28027
28028         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
28029         * modules/arpa_inet (Depends-on): Add link-warning.
28030         (Makefile.am): Insert the definition of GL_LINK-WARNING.
28031         * modules/unistd (Makefile.am): Likewise.
28032
28033 2008-09-26  Bruno Haible  <bruno@clisp.org>
28034
28035         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
28036         variables.
28037         (func_version): Essentially copied from gnulib-tool.
28038         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
28039         func_readlink): Copied from gnulib-tool.
28040
28041 2008-09-26  Bruno Haible  <bruno@clisp.org>
28042
28043         * gnulib-tool (func_version): Change directory to $gnulib_dir before
28044         invoking git-version-gen.
28045
28046 2008-09-26  Bruno Haible  <bruno@clisp.org>
28047
28048         * posix-modules: Update to directory names changed on 2008-01-19.
28049         Remove commas in output before splitting into words. No more need to
28050         avoid 'ftruncate' since 2007-02-19.
28051
28052 2008-09-26  Bruno Haible  <bruno@clisp.org>
28053
28054         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
28055
28056 2008-09-26  Bruno Haible  <bruno@clisp.org>
28057
28058         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
28059         * modules/fwriteerror (Depends-on): Add errno.
28060
28061 2008-09-26  Bruno Haible  <bruno@clisp.org>
28062
28063         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
28064         * tests/test-vc-list-files-cvs.sh: Likewise.
28065
28066 2008-09-26  Bruno Haible  <bruno@clisp.org>
28067
28068         * doc/posix-headers/sys_resource.texi: Reorder items.
28069
28070 2008-09-26  Jim Meyering  <meyering@redhat.com>
28071
28072         fts: tweak inode comparison function
28073         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
28074         inode numbers, as documented.
28075
28076         fts: sort dirent entries on inode number before traversing
28077         This avoids a quadratic, seek-related performance penalty when
28078         operating on a directory containing many entries (measurable at 10k;
28079         3.5 hours at 2 million entries with a cold cache) on certain types
28080         of file systems, including ext3 and ext4, but not tmpfs.
28081         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
28082         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
28083         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
28084         (fs_handles_readdir_ordered_dirents_efficiently): New function.
28085         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
28086         (fts_build): Set the stat.st_ino member from D_INO.
28087         If it is likely to be useful, sort dirent entries on inode number.
28088
28089         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
28090         and the struct statfs.f_type member.
28091         * modules/fts (Depends-on): Add d-ino.
28092
28093 2008-09-26  Bruno Haible  <bruno@clisp.org>
28094
28095         * modules/sigpipe-die (Depends-on): Add sigpipe.
28096
28097         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
28098         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
28099         and GNULIB_STDIO_H_SIGPIPE are set.
28100         * lib/stdio-write.c: New file.
28101         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
28102         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
28103         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
28104         REPLACE_STDIO_WRITE_FUNCS.
28105         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
28106         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
28107         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
28108         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
28109         * modules/stdio (Files): Add lib/stdio-write.c.
28110         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
28111         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
28112         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
28113         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
28114         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
28115         REPLACE_FPRINTF_POSIX.
28116         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
28117         REPLACE_PRINTF_POSIX.
28118         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
28119         REPLACE_VFPRINTF_POSIX.
28120         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
28121         REPLACE_VPRINTF_POSIX.
28122         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
28123         SIGPIPE issue.
28124         * doc/posix-functions/fputc.texi: Likewise.
28125         * doc/posix-functions/fputs.texi: Likewise.
28126         * doc/posix-functions/fwrite.texi: Likewise.
28127         * doc/posix-functions/printf.texi: Likewise.
28128         * doc/posix-functions/putc.texi: Likewise.
28129         * doc/posix-functions/putchar.texi: Likewise.
28130         * doc/posix-functions/puts.texi: Likewise.
28131         * doc/posix-functions/vfprintf.texi: Likewise.
28132         * doc/posix-functions/vprintf.texi: Likewise.
28133
28134         * modules/safe-write (Depends-on): Add write.
28135
28136         * modules/sigpipe-tests: New file.
28137         * tests/test-sigpipe.c: New file.
28138         * tests/test-sigpipe.sh: New file.
28139
28140         * modules/write: New file.
28141         * lib/unistd.in.h: Include <sys/types.h>.
28142         (write): New declaration.
28143         * lib/write.c: New file.
28144         * m4/write.m4: New file.
28145         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
28146         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
28147         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
28148         GNULIB_WRITE, REPLACE_WRITE.
28149         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
28150         and the SIGPIPE issue.
28151
28152         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
28153         (raise): New declaration.
28154         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
28155         (ext_signal): New function.
28156         (rpl_raise): New function.
28157         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
28158         GNULIB_SIGNAL_H_SIGPIPE.
28159         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
28160         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
28161
28162         * modules/sigpipe: New file.
28163         * m4/sigpipe.m4: New file.
28164
28165 2008-09-25  Derek Price  <derek@ximbiot.com>
28166             Bruno Haible  <bruno@clisp.org>
28167
28168         * gnulib-tool (func_import): Report all license incompatibilities, not
28169         just the first one.
28170
28171 2008-09-25  Bruno Haible  <bruno@clisp.org>
28172
28173         * gnulib-tool (func_import): When computing the edits, consider not
28174         only the Makefile.ams that exist but also those that will be generated.
28175
28176 2008-09-25  Simon Josefsson  <simon@josefsson.org>
28177
28178         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
28179         fixes gnulib-tool --test warning about duplicate dependency.
28180
28181 2008-09-25  Bruno Haible  <bruno@clisp.org>
28182
28183         * gnulib-tool: Don't ask the user to perform edits in the generated
28184         Makefile.ams.
28185         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
28186         apply to the Makefile.am being generated.
28187         (func_emit_tests_Makefile_am): Execute edits that apply to the
28188         Makefile.am being generated.
28189         (func_import): Setup list of Makefile.am edits before emitting the
28190         Makefile.ams, not at the end.
28191         (func_create_testdir): Update.
28192         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
28193
28194 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
28195
28196         * gnulib-tool (func_import): Store the --tests-base option in the
28197         comment in gnulib-cache.m4.
28198
28199 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
28200
28201         * NEWS: Document increased portability that sys_select now provides.
28202
28203         * lib/sys_select.in.h: Install select wrapper.
28204         * lib/sys_socket.in.h: Use more descriptive name when there is no
28205         select wrapper.
28206         * lib/winsock-select.c: New.
28207         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
28208         Require gl_HEADER_SYS_SOCKET.
28209         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
28210         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
28211         * tests/test-sys_select.c: Add functional tests.
28212
28213 2008-09-24  Eric Blake  <ebb9@byu.net>
28214
28215         open, fopen: close fd leak in last patch
28216         * lib/open.c (rpl_open): Close fd before returning error.
28217         * lib/fopen.c (rpl_fopen): Close fd before returning error.
28218         * doc/posix-functions/open.texi (open): Document that Irix also
28219         has the bug.
28220         * doc/posix-functions/fopen.texi (fopen): Likewise.
28221         Reported by Paolo Bonzini.
28222
28223 2008-09-24  Bruno Haible  <bruno@clisp.org>
28224
28225         Ensure that a filename ending in a slash cannot be used to access a
28226         non-directory.
28227         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
28228         to check whether it's really a directory.
28229         * lib/fopen.c: Include fcntl.h, unistd.h.
28230         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
28231         and fdopen().
28232         * modules/fopen (Depends-on): Add unistd.
28233         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
28234         * tests/test-fopen.c (main): Likewise.
28235         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
28236         * doc/posix-functions/fopen.texi: Likewise.
28237         Reported by Eric Blake.
28238
28239 2008-09-23  Eric Blake  <ebb9@byu.net>
28240
28241         c-stack: avoid compiler optimizations when provoking overflow
28242         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
28243         recursion harder to optimize, to ensure a stack overflow occurs.
28244         * tests/test-c-stack.c (recurse): Likewise.
28245         Borrowed from libsigsegv.
28246
28247         c-stack: work around Irix sigaltstack bug
28248         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
28249         whether sigaltstack uses wrong end of stack_t (copied in part from
28250         libsigsegv).
28251         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
28252         Irix bug, without requiring an over-allocation.
28253         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
28254         bug.
28255
28256         fopen: document mingw bug on directories
28257         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
28258         not allowing a stream visiting a directory, even though reading
28259         from such a stream is not portable.
28260
28261 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
28262
28263         * lib/poll.c: Rewrite.
28264         * modules/poll: Depend on alloca.
28265
28266 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
28267
28268         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
28269         instead define prototypes for a full set of wrappers.  Ensure
28270         that Cygwin does not use the compatibility code, which is only
28271         for MinGW.
28272         * lib/winsock.c: New.
28273         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
28274         * modules/sys_socket: Add lib/winsock.c.
28275
28276         * modules/poll-tests: Add errno and perror.
28277         * tests/test-poll.c: Use ioctl, not ioctlsocket.
28278
28279 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
28280
28281         * tests/test-poll.c: Downgrade minimum needed Winsock version.
28282
28283 2008-09-23  Bruno Haible  <bruno@clisp.org>
28284
28285         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
28286         * doc/glibc-functions/*: Likewise.
28287
28288 2008-09-23  Simon Josefsson  <simon@josefsson.org>
28289
28290         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
28291         success.
28292
28293 2008-09-22  Eric Blake  <ebb9@byu.net>
28294             Bruno Haible  <bruno@clisp.org>
28295
28296         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
28297         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
28298         supply %A but mishandle pseudo-NaN.
28299         Reported by Simon Josefsson.
28300
28301 2008-09-21  Bruno Haible  <bruno@clisp.org>
28302
28303         * tests/test-lock.c (main): Tweak skip message.
28304         * tests/test-tls.c (main): Likewise.
28305
28306 2008-09-21  Bruno Haible  <bruno@clisp.org>
28307
28308         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
28309         whether 'struct sigaction' has sa_sigaction here...
28310         (gl_PREREQ_SIG_HANDLER_H): ... not here.
28311         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
28312
28313 2008-09-21  Bruno Haible  <bruno@clisp.org>
28314
28315         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
28316         section.
28317         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
28318         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
28319         the new section.
28320         (Support for obsolete systems lacking POSIX:2001): New section.
28321         (String handling <string.h>): Move strdup to the new section.
28322         Suggested by Simon Josefsson and Paolo Bonzini.
28323
28324 2008-09-21  Bruno Haible  <bruno@clisp.org>
28325
28326         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
28327         exponents in %e and %g results on 'long double'. Needed for mingw's
28328         improved *printf functions.
28329         * tests/test-vasprintf-posix.c (test_function): Likewise.
28330         * tests/test-snprintf-posix.h (test_function): Likewise.
28331         * tests/test-sprintf-posix.h (test_function): Likewise.
28332         Reported by Eric Blake.
28333
28334 2008-09-21  Bruno Haible  <bruno@clisp.org>
28335
28336         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
28337         * tests/test-sprintf-posix.h (test_function): Likewise.
28338
28339 2008-09-21  Bruno Haible  <bruno@clisp.org>
28340
28341         * modules/getpass (Depends-on): Add strdup-posix.
28342
28343         New module 'strdup-posix'.
28344         * modules/strdup-posix: New file.
28345         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
28346         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
28347         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
28348         REPLACE_STRDUP.
28349         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
28350         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
28351         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
28352         strdup-posix.
28353
28354         * modules/strdup (Depends-on): Remove malloc-posix.
28355
28356 2008-09-20  Bruno Haible  <bruno@clisp.org>
28357
28358         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
28359         Wildenhues.
28360
28361 2008-09-20  Bruno Haible  <bruno@clisp.org>
28362
28363         Ensure that wint_t gets defined on IRIX 5.3.
28364         * lib/wchar.in.h (wint_t): Define if not defined by the system.
28365         * lib/wctype.in.h (wint_t): Likewise.
28366         (__wctype_wint_t): Remove type.
28367         (isw*): Use wint_t instead of __wctype_wint_t.
28368         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
28369         * modules/wchar (Files): Add m4/wint_t.m4.
28370         (Makefile.am): Substitute HAVE_WINT_T.
28371         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
28372         * tests/test-wctype.c: Check that wint_t is defined.
28373         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
28374         * doc/posix-headers/wctype.texi: Likewise.
28375         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
28376
28377 2008-09-18  Bruno Haible  <bruno@clisp.org>
28378
28379         * gnulib-tool (func_exit): Update comment.
28380
28381 2008-09-18  Simon Josefsson  <simon@josefsson.org>
28382
28383         * modules/getaddrinfo (Depends-on): Remove strdup, this module
28384         assumes strdup exists and does not depend on strdup to return
28385         ENOMEM on out of memory conditions.
28386
28387 2008-09-18  Bruno Haible  <bruno@clisp.org>
28388
28389         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
28390         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
28391         digits for the exponent.
28392
28393 2008-09-18  Jim Meyering  <meyering@redhat.com>
28394             Bruno Haible  <bruno@clisp.org>
28395
28396         * lib/vasnprintf.c (decimal_point_char): Define also if
28397         NEED_PRINTF_INFINITE_LONG_DOUBLE.
28398
28399 2008-09-16  Bruno Haible  <bruno@clisp.org>
28400         and Eric Blake  <ebb9@byu.net>
28401
28402         vasnprintf: support Irix 5.3
28403         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
28404         that mishandle long double infinity.
28405         Reported by Tom G. Christensen.
28406
28407 2008-09-16  Bruno Haible  <bruno@clisp.org>
28408
28409         * doc/glibc-functions/scandir.texi: Mention the function is missing on
28410         Solaris 9.
28411         * doc/glibc-functions/alphasort.texi: Likewise.
28412         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
28413
28414 2008-09-16  Jim Meyering  <meyering@redhat.com>
28415
28416         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
28417         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
28418         a umask modification leak out of a subshell.  Otherwise, the
28419         opensolaris /bin/sh would be accepted and thus cause unwarranted
28420         failures in the coreutils test suite.
28421
28422 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
28423
28424         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
28425         to succeed.
28426
28427 2008-09-16  Jim Meyering  <meyering@redhat.com>
28428
28429         avoid spurious test failure when library is built without ACL support
28430         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
28431         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
28432         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
28433         * tests/test-copy-acl.sh: Likewise.
28434
28435 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28436
28437         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
28438         based on character occurrence counts.
28439
28440 2008-09-15  Eric Blake  <ebb9@byu.net>
28441
28442         tests: avoid some compiler warnings
28443         * tests/test-memchr.c (main): Pass NULL indirectly.
28444         * tests/test-closein.c (main): Avoid unused variable.
28445
28446 2008-09-15  Bruno Haible  <bruno@clisp.org>
28447
28448         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
28449         are missing on OpenBSD 4.0 individually.
28450         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
28451
28452 2008-09-15  Bruno Haible  <bruno@clisp.org>
28453
28454         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
28455         * doc/posix-functions/strerror.texi: Mention also Cygwin.
28456         * doc/posix-functions/perror.texi: Likewise.
28457         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
28458         is missing.
28459         Reported by Eric Blake.
28460
28461         * lib/errno.in.h: Use replacement values >= 2000.
28462         Reported by Eric Blake.
28463
28464 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28465
28466         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
28467         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
28468         limit.
28469         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
28470         compareseq was aborted.
28471
28472 2008-09-14  Bruno Haible  <bruno@clisp.org>
28473
28474         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
28475         yvec_edit_count.
28476         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
28477         (fstrcmp_bounded): Simplify result computation accordingly.
28478
28479 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28480
28481         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
28482         (fstrcmp): Define in terms of fstrcmp_bounded.
28483         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
28484         lower_bound argument.
28485         Return quickly if the result is certainly < lower_bound.
28486         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
28487
28488 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28489
28490         * lib/diffseq.h (EARLY_ABORT): New macro.
28491         (compareseq): Change return type to bool. Return true when EARLY_ABORT
28492         evaluates to true.
28493
28494 2008-09-14  Bruno Haible  <bruno@clisp.org>
28495
28496         * modules/perror-tests: New file.
28497         * tests/test-perror.sh: New file.
28498         * tests/test-perror.c: New file.
28499
28500         New module 'perror'.
28501         * lib/stdio.in.h (perror): New declaration.
28502         * lib/perror.c: New file.
28503         * m4/perror.m4: New file.
28504         * modules/perror: New file.
28505         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
28506         * doc/posix-functions/perror.texi: Mention the perror module.
28507         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
28508         REPLACE_PERROR.
28509         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
28510         REPLACE_PERROR.
28511
28512 2008-09-14  Bruno Haible  <bruno@clisp.org>
28513
28514         * modules/stdio (Makefile.am): Reorder to match the order in
28515         lib/stdio.in.h.
28516         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
28517
28518 2008-09-13  Bruno Haible  <bruno@clisp.org>
28519
28520         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
28521
28522 2008-09-13  Bruno Haible  <bruno@clisp.org>
28523
28524         Extend strerror to cover the added errno values.
28525         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
28526         (rpl_strerror): Provide error messages for the added errno values and
28527         for the WSA* values.
28528         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
28529         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
28530         strerror.
28531         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
28532         * modules/strerror (Depends-on): Add errno.
28533         * doc/posix-functions/strerror.texi: Document the change.
28534         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
28535         and EOVERFLOW.
28536
28537 2008-09-13  Bruno Haible  <bruno@clisp.org>
28538
28539         * modules/EOVERFLOW: Remove file.
28540         * m4/eoverflow.m4: Remove file.
28541         * modules/EOVERFLOW-tests: Remove file.
28542         * tests/test-EOVERFLOW.c: Remove file.
28543         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
28544         * modules/ftell (Depends-on): Likewise.
28545         * modules/getdelim (Depends-on): Likewise.
28546         * modules/getugroups (Depends-on): Likewise.
28547         * modules/poll (Depends-on): Likewise.
28548         * modules/snprintf (Depends-on): Likewise.
28549         * modules/sprintf-posix (Depends-on): Likewise.
28550         * modules/vasnprintf (Depends-on): Likewise.
28551         * modules/vasprintf (Depends-on): Likewise.
28552         * modules/vfprintf-posix (Depends-on): Likewise.
28553         * modules/vsnprintf (Depends-on): Likewise.
28554         * modules/vsprintf-posix (Depends-on): Likewise.
28555         * modules/xvasprintf (Depends-on): Likewise.
28556         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
28557         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
28558         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
28559         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
28560         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
28561         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
28562         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
28563         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
28564         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
28565         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
28566         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
28567         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
28568         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
28569         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
28570         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
28571         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
28572         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
28573         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
28574         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
28575         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
28576         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
28577         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
28578         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
28579         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
28580         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
28581         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
28582         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
28583         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
28584         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
28585         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
28586         * MODULES.html.sh: Remove EOVERFLOW.
28587         * NEWS: Mention the change.
28588
28589 2008-09-13  Bruno Haible  <bruno@clisp.org>
28590
28591         * modules/errno-tests: New file.
28592         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
28593
28594         * lib/errno.in.h: New file.
28595         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
28596         * modules/errno: New file.
28597         * doc/posix-headers/errno.texi: Update documentation.
28598         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
28599
28600 2008-09-13  Bruno Haible  <bruno@clisp.org>
28601
28602         * tests/test-poll.c: Use #if for native Windows, rather than testing
28603         __MSVCRT__.
28604
28605 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
28606             Bruno Haible  <bruno@clisp.org>
28607
28608         * lib/glob.c: Don't include <pwd.h> on native Windows.
28609         (WINDOWS32): New macro.
28610         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
28611
28612 2008-09-13  Bruno Haible  <bruno@clisp.org>
28613
28614         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
28615         (ETIMEDOUT): Remove macro.
28616         (glthread_cond_timedwait_multithreaded): New declaration.
28617         (glthread_cond_timedwait): Use it.
28618         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
28619         (glthread_cond_timedwait_multithreaded): New function.
28620
28621 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
28622
28623         * modules/poll-tests: Do not check for io.h.
28624         * tests/test-poll.c: Check for __MSVCRT__ instead.
28625
28626 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
28627
28628         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
28629         * modules/poll-tests: Add inet_pton, stdbool, sockets.
28630         * tests/test-poll.c: Use them.  Use _pipe on Windows.
28631
28632 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
28633
28634         * modules/poll-tests: New.
28635         * tests/test-poll.c: New.
28636
28637 2008-09-12  Eric Blake  <ebb9@byu.net>
28638
28639         frexp: test for NetBSD failure on -0.0
28640         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
28641         not all, bugs from NetBSD 3.0 have been fixed.
28642         * doc/posix-functions/frexp.texi (frexp): Document bug.
28643         Reported by Thomas Klausner.
28644
28645         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
28646         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
28647         literal -0.0.
28648         Reported by Jonathan C. Patschke <jp@centtech.com>.
28649
28650 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
28651
28652         * lib/glthread/cond.h: Use dummy implementation also if
28653         USE_WIN32_THREADS.
28654
28655 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
28656
28657         * modules/fnmatch-posix (License): Change to LGPLv2+.
28658         * modules/fnmatch-gnu (License): Likewise.
28659
28660 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
28661
28662         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
28663
28664 2008-09-11  Jim Meyering  <meyering@redhat.com>
28665
28666         * users.txt: Add gtk-vnc.
28667
28668 2008-09-08  Simon Josefsson  <simon@josefsson.org>
28669
28670         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
28671         rotate amounts.
28672
28673         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
28674         required for 16-bit and 8-bit rotates.
28675         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
28676         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
28677         UINT8_MAX instead of hard-coded constants.
28678         Suggested by Paul Eggert.
28679
28680 2008-09-07  Bruno Haible  <bruno@clisp.org>
28681
28682         * tests/test-striconveh.c (main): Check behaviour when converting from
28683         UTF-7.
28684
28685         Make striconveh work better with stateful encodings.
28686         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
28687         that iconv does not increment the inptr when returning -1/EINVAL.
28688
28689 2008-09-07  Bruno Haible  <bruno@clisp.org>
28690
28691         * build-aux/config.rpath: Update according to libtool-2.2.6.
28692         * build-aux/config.libpath: Likewise.
28693
28694 2008-09-06  Bruno Haible  <bruno@clisp.org>
28695
28696         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
28697         * lib/freadptr.c (freadptr): Likewise.
28698         * lib/freadseek.c (freadptrinc): Likewise.
28699         Reported by Simon Josefsson.
28700
28701 2008-09-06  Bruno Haible  <bruno@clisp.org>
28702
28703         * modules/freadptr (License): Change to LGPLv2+.
28704         * modules/freadseek (License): Likewise.
28705         Suggested by Eric Blake.
28706
28707         * modules/memchr2 (License): Change to LGPLv2+.
28708         Approved by Eric Blake.
28709
28710 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28711             Bruno Haible  <bruno@clisp.org>
28712
28713         Make gnulib-tool work with native 'sed' on AIX.
28714         * gnulib-tool (sed_noop): New variable.
28715         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
28716         func_add_or_update, func_create_testdir): Use it to initialize sed
28717         script variables.
28718         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
28719
28720 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
28721             Bruno Haible  <bruno@clisp.org>
28722
28723         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
28724         also works after #include directives.
28725
28726 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
28727
28728         getdate.y: reject an out-of-range timezone value
28729         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
28730         the range [-24...+24].  When specified with only one or two digits,
28731         * tests/test-getdate.c: Tests for the fix.
28732         * doc/getdate.texi: Document this change.
28733
28734 2008-09-03  Bruno Haible  <bruno@clisp.org>
28735
28736         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
28737
28738 2008-09-02  Simon Josefsson  <simon@josefsson.org>
28739
28740         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
28741         <bruce.korb@gmail.com> with ideas from Ben Pfaff
28742         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
28743         Blake <ebb9@byu.net>.
28744
28745         * tests/test-bitrotate.c: Add more test vectors.
28746
28747 2008-09-02  Eric Blake  <ebb9@byu.net>
28748
28749         vasnprintf-posix: handle large precision via %.*d
28750         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
28751         when handling it ourselves.
28752         * tests/test-vasnprintf-posix.c (test_function): Add test.
28753         * tests/test-snprintf-posix.h (test_function): Likewise.
28754         * tests/test-sprintf-posix.h (test_function): Likewise.
28755         * tests/test-vasprintf-posix.c (test_function): Likewise.
28756         Reported by Alain Guibert.
28757
28758 2008-09-01  Eric Blake  <ebb9@byu.net>
28759
28760         c-stack: make configure-time check more robust
28761         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
28762         successful sigaction call.
28763         Reported by Tom G. Christensen.
28764
28765 2008-09-01  Bruno Haible  <bruno@clisp.org>
28766
28767         New module 'findprog-lgpl'.
28768         * modules/findprog-lgpl: New file.
28769         * lib/findprog-lgpl.c: New file.
28770         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
28771         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
28772         to decide whether to use strdup or xstrdup, concatenated_filename or
28773         xconcatenated_filename.
28774
28775 2008-09-01  Bruno Haible  <bruno@clisp.org>
28776
28777         Split module 'concat-filename' into 'concat-filename' (LGPL) and
28778         'xconcat-filename' (GPL).
28779         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
28780         (License): Change to LGPLv2+.
28781         * modules/xconcat-filename: New file.
28782         * lib/concat-filename.h (concatenated_filename): Change specification.
28783         (xconcatenated_filename): New declaration.
28784         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
28785         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
28786         memory situations.
28787         * lib/xconcat-filename.c: New file.
28788         * NEWS: Mention the change.
28789         * lib/findprog.c: Include concat-filename.h, not filename.h.
28790         (find_in_path): Use xconcatenated_filename instead of
28791         concatenated_filename.
28792         * lib/javacomp.c: Include concat-filename.h, not filename.h.
28793         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
28794         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
28795         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
28796         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
28797         instead of concatenated_filename.
28798         * lib/javaexec.c: Include concat-filename.h, not filename.h.
28799         (execute_java_class): Use xconcatenated_filename instead of
28800         concatenated_filename.
28801         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
28802         * modules/javacomp (Depends-on): Likewise.
28803         * modules/javaexec (Depends-on): Likewise.
28804
28805 2008-09-01  Bruno Haible  <bruno@clisp.org>
28806
28807         Split module 'filename' into 'filename' and 'concat-filename'.
28808         * modules/filename: Keep only lib/filename.h.
28809         (License): Change to LGPLv2+.
28810         * modules/concat-filename: New file, extracted from modules/filename.
28811         * lib/filename.h (concatenated_filename): Remove declaration.
28812         * lib/concat-filename.h: New file, extracted from lib/filename.h.
28813         * lib/concat-filename.c: Include concat-filename.h.
28814         * NEWS: Mention the change.
28815
28816 2008-09-01  Simon Josefsson  <simon@josefsson.org>
28817
28818         * lib/bitrotate.h (rotl8, rotr8): Add.
28819
28820         * modules/bitrotate (configure.ac): Need
28821         AC_REQUIRE([AC_C_INLINE]).
28822         (Description): Mention stdint.h.  Reported by Bruno Haible
28823         <bruno@clisp.org>.
28824
28825         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
28826         Paolo Bonzini <bonzini@gnu.org>.
28827
28828 2008-08-31  Bruno Haible  <bruno@clisp.org>
28829
28830         Assume Solaris specific bi-arch conventions on Solaris systems.
28831         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
28832         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
28833         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
28834         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
28835         like acl_libdirstem.
28836         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
28837         acl_libdirstem.
28838         * NEWS: Mention the change.
28839         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
28840
28841 2008-08-31  Jim Meyering  <meyering@redhat.com>
28842
28843         * lib/strftime.h: Add comments describing the two added arguments.
28844
28845         remove duplicate #include directives
28846         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
28847         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
28848
28849 2008-08-31  Bruno Haible  <bruno@clisp.org>
28850
28851         New module 'sigpipe-die'.
28852         * modules/sigpipe-die: New file.
28853         * lib/sigpipe-die.h: New file.
28854         * lib/sigpipe-die.c: New file.
28855         * MODULES.html.sh (Signal handling): Add sigpipe-die.
28856
28857 2008-08-31  Bruno Haible  <bruno@clisp.org>
28858
28859         Don't override previously installed signal handlers.
28860         * lib/fatal-signal.c (saved_sigactions): New variable.
28861         (uninstall_handlers): Reset the signal to the saved handler, not
28862         to SIG_DFL (except when ignored).
28863         (install_handlers): Save the previous handlers.
28864
28865 2008-08-30  Bruno Haible  <bruno@clisp.org>
28866
28867         * gnulib-tool (func_reset_sigpipe): New function.
28868         (func_get_automake_snippet, func_modules_transitive_closure,
28869         func_import): Invoke it before a join command that reads from stdin,
28870         to avoid "echo: write error: Broken pipe" error messages on stderr.
28871         Reported by Sam Steingold <sds@gnu.org>.
28872
28873 2008-08-30  Bruno Haible  <bruno@clisp.org>
28874
28875         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
28876         Code copied from m4/open.m4.
28877         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
28878         access and the filename ends in a slash. Code copied from lib/open.c.
28879         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
28880         * tests/test-fopen.c (main): Check against bug with trailing slash.
28881
28882 2008-08-29  Bruno Haible  <bruno@clisp.org>
28883
28884         Avoid some "gcc -pedantic" warnings.
28885         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
28886         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
28887         * lib/dirent.in.h: Likewise.
28888         * lib/fcntl.in.h: Likewise.
28889         * lib/float.in.h: Likewise.
28890         * lib/iconv.in.h: Likewise.
28891         * lib/inttypes.in.h: Likewise.
28892         * lib/locale.in.h: Likewise.
28893         * lib/math.in.h: Likewise.
28894         * lib/netinet_in.in.h: Likewise.
28895         * lib/search.in.h: Likewise.
28896         * lib/signal.in.h: Likewise.
28897         * lib/stdarg.in.h: Likewise.
28898         * lib/stdint.in.h: Likewise.
28899         * lib/stdio.in.h: Likewise.
28900         * lib/stdlib.in.h: Likewise.
28901         * lib/string.in.h: Likewise.
28902         * lib/strings.in.h: Likewise.
28903         * lib/sys_select.in.h: Likewise.
28904         * lib/sys_socket.in.h: Likewise.
28905         * lib/sys_stat.in.h: Likewise.
28906         * lib/sys_time.in.h: Likewise.
28907         * lib/sysexits.in.h: Likewise.
28908         * lib/time.in.h: Likewise.
28909         * lib/unistd.in.h: Likewise.
28910         * lib/wchar.in.h: Likewise.
28911         * lib/wctype.in.h: Likewise.
28912         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
28913         * modules/fchdir (Makefile.am): Likewise.
28914         * modules/fcntl (Makefile.am): Likewise.
28915         * modules/float (Makefile.am): Likewise.
28916         * modules/iconv_open (Makefile.am): Likewise.
28917         * modules/inttypes (Makefile.am): Likewise.
28918         * modules/locale (Makefile.am): Likewise.
28919         * modules/math (Makefile.am): Likewise.
28920         * modules/netinet_in (Makefile.am): Likewise.
28921         * modules/search (Makefile.am): Likewise.
28922         * modules/signal (Makefile.am): Likewise.
28923         * modules/stdarg (Makefile.am): Likewise.
28924         * modules/stdint (Makefile.am): Likewise.
28925         * modules/stdio (Makefile.am): Likewise.
28926         * modules/stdlib (Makefile.am): Likewise.
28927         * modules/string (Makefile.am): Likewise.
28928         * modules/strings (Makefile.am): Likewise.
28929         * modules/sys_select (Makefile.am): Likewise.
28930         * modules/sys_socket (Makefile.am): Likewise.
28931         * modules/sys_stat (Makefile.am): Likewise.
28932         * modules/sys_time (Makefile.am): Likewise.
28933         * modules/sysexits (Makefile.am): Likewise.
28934         * modules/time (Makefile.am): Likewise.
28935         * modules/unistd (Makefile.am): Likewise.
28936         * modules/wchar (Makefile.am): Likewise.
28937         * modules/wctype (Makefile.am): Likewise.
28938         Reported by Reuben Thomas <rrt@sc3d.org>.
28939
28940 2008-08-29  Bruno Haible  <bruno@clisp.org>
28941
28942         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
28943         any more.
28944
28945 2008-08-29  Simon Josefsson  <simon@josefsson.org>
28946
28947         * MODULES.html.sh (Misc): Add bitrotate.
28948
28949         * modules/bitrotate: New file.
28950
28951         * lib/bitrotate.h: New file.
28952
28953         * modules/bitrotate-tests: New file.
28954
28955         * tests/test-bitrotate.c: New file.
28956
28957         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
28958         on the bitrotate module.
28959
28960         * lib/arctwo.c: Use new bitrotate module.
28961
28962 2008-08-29  Jim Meyering  <meyering@redhat.com>
28963
28964         bootstrap: merge changes from coreutils
28965         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
28966         of copied files.  Remove a kludge, now that this is fixed.
28967         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
28968         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
28969         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
28970
28971 2008-08-29  Bruno Haible  <bruno@clisp.org>
28972
28973         * MODULES.html.sh: Remove --cvs-urls option.
28974
28975 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
28976
28977         maint.mk: adjust to file name change
28978         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
28979
28980 2008-08-28  Jim Meyering  <meyering@redhat.com>
28981
28982         * modules/getndelim2 (License): Relicense to LGPLv2+.
28983         Approved by Richard Stallman for the version of 1995, and by
28984         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
28985
28986 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
28987
28988         * lib/getdelim.c (flockfile, funlockfile): Make all of them
28989         dummy if one is not available.  Do not touch them if
28990         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
28991         (getc_maybe_unlocked): New.
28992         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
28993
28994 2008-08-26  Eric Blake  <ebb9@byu.net>
28995
28996         doc/INSTALL: resync from autoconf
28997         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
28998         (INSTALL_PRELUDE): Delete; this is done more efficiently by
28999         moving...
29000         * install.texi [!autoconf]: ...here.  Resync from autoconf.
29001         * INSTALL: Regenerate.
29002         * INSTALL.ISO: New file.
29003         * INSTALL.UTF-8: Likewise.
29004
29005 2008-08-26  Jim Meyering  <meyering@redhat.com>
29006
29007         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
29008         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
29009         these definitions conditional, so that they may be overridden, too.
29010
29011 2008-08-26  Bruno Haible  <bruno@clisp.org>
29012
29013         Generate INSTALL file variants with prettier quotes.
29014         * doc/Makefile (INSTALL_PRELUDE): New macro.
29015         (INSTALL): Use it.
29016         (INSTALL.ISO, INSTALL.UTF-8): New rules.
29017
29018 2008-08-26  Bruno Haible  <bruno@clisp.org>
29019
29020         Run makeinfo in an English locale.
29021         * doc/Makefile (MAKEINFO): New variable.
29022
29023 2008-08-26  Bruno Haible  <bruno@clisp.org>
29024
29025         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
29026         Suggested by Eric Blake.
29027
29028 2008-08-25  Bruno Haible  <bruno@clisp.org>
29029
29030         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
29031
29032 2008-08-25  Eric Blake  <ebb9@byu.net>
29033
29034         c-stack: test that stack overflow can be caught
29035         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
29036         that platform allows handling stack overflow; at least OS/2 EMX
29037         has sigaltstack, but crashes before transferring control to
29038         handler on stack overflow.
29039         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
29040         check for HAVE_STACK_OVERFLOW_HANDLING.
29041         Reported by Elbert Pol.
29042
29043 2008-08-25  Bruno Haible  <bruno@clisp.org>
29044
29045         * doc/posix-functions/strftime.texi: Fix description of strftime
29046         module.
29047
29048 2008-08-24  Bruno Haible  <bruno@clisp.org>
29049
29050         * tests/uniwidth/test-uc_width2.c: New file.
29051         * tests/uniwidth/test-uc_width2.sh: New file.
29052         * modules/uniwidth/width-tests (Files): Add the new files.
29053         (TESTS): Add uniwidth/test-uc_width2.sh.
29054         (TESTS_ENVIRONMENT): New variable.
29055         (check_PROGRAMS): Add test-uc_width2.
29056         (test_uc_width2_SOURCES): New variable.
29057
29058         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
29059         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
29060         not 0x00AB.
29061         Reported by Alexander V. Lukyanov <lav@netis.ru>.
29062
29063 2008-08-22  Eric Blake  <ebb9@byu.net>
29064
29065         test-lock, test-tls: mention why a test is skipped
29066         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
29067         skipped.
29068         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
29069
29070         count-one-bits: relax license
29071         * modules/count-one-bits (License): Relicense to LGPLv2+.
29072         Suggested by Ludovic Courtès, approved by Ben Pfaff.
29073
29074 2008-08-22  Andreas Schwab  <schwab@suse.de>
29075
29076         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
29077         Remove spurious space in assignment.
29078
29079 2008-08-21  Simon Josefsson  <simon@josefsson.org>
29080
29081         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
29082         Paul Eggert <eggert@CS.UCLA.EDU>.
29083
29084 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
29085
29086         * modules/gettext: Add m4/threadlib.m4.
29087
29088 2008-08-19  Eric Blake  <ebb9@byu.net>
29089
29090         test-c-stack: fix compilation failure on FreeBSD 5.0
29091         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
29092         headers before <sys/resource.h>.
29093         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
29094         the bug.
29095         Reported by Nelson H. F. Beebe.
29096
29097         strverscmp: migrate from "strverscmp.h" to <string.h>
29098         * modules/string (Makefile.am): Add new hooks.
29099         * modules/strverscmp (Files): Remove strverscmp.h.
29100         (Depends-on): Add string.
29101         (configure.ac): Add indicator.
29102         (Include): Mention new header.
29103         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
29104         defaults.
29105         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
29106         results.
29107         * lib/strverscmp.h: Delete.
29108         * lib/string.in.h (strverscmp): Provide declaration, when needed.
29109         * tests/test-strverscmp.c (includes): Adjust client.
29110         * lib/check-version.c (includes): Likewise.
29111         * NEWS: Document the change.
29112
29113         strverscmp: add unit test
29114         * modules/strverscmp-tests: New file.
29115         * tests/test-strverscmp.c: Likewise.
29116
29117 2008-08-19  Simon Josefsson  <simon@josefsson.org>
29118
29119         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
29120         regarding Windows crypto stuff, from Mono.
29121
29122 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
29123
29124         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
29125         if present, for intel RND.  Return error on failures.
29126
29127 2008-08-18  Ben Pfaff  <blp@gnu.org>
29128
29129         gitlog-to-changelog: give better diagnostic for failed pipe-open
29130         * build-aux/gitlog-to-changelog: Improve error message: suggest
29131         that the version of Git may be too old.
29132
29133 2008-08-18  Simon Josefsson  <simon@josefsson.org>
29134
29135         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
29136         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
29137
29138 2008-08-18  Bruno Haible  <bruno@clisp.org>
29139
29140         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
29141         pthread_in_use().
29142
29143 2008-08-18  Bruno Haible  <bruno@clisp.org>
29144
29145         * lib/glthread/threadlib.c: Include <pthread.h>.
29146
29147 2008-08-18  Bruno Haible  <bruno@clisp.org>
29148
29149         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
29150         glthread_recursive_lock_* macros.
29151         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
29152         Fix syntax error.
29153
29154 2008-08-18  Bruno Haible  <bruno@clisp.org>
29155
29156         * lib/glthread/thread.c: Avoid forcing a context switch right after
29157         thread creation.
29158
29159 2008-08-17  Bruno Haible  <bruno@clisp.org>
29160
29161         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
29162         * lib/glthread/thread.h: Provide Win32 specific implementation.
29163         * modules/thread (Files): Add lib/glthread/thread.c.
29164         (Depends-on): Add lock.
29165         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
29166
29167 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
29168
29169         New module 'yield'.
29170         * modules/yield: New file.
29171         * lib/glthread/yield.h: New file.
29172         * m4/yield.m4: New file.
29173         * MODULES.html.sh (Multithreading): Add yield.
29174
29175 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
29176
29177         New module 'thread'.
29178         * modules/thread: New file.
29179         * lib/glthread/thread.h: New file.
29180         * m4/thread.m4: New file.
29181         * MODULES.html.sh (Multithreading): Add thread.
29182
29183 2008-08-17  Bruno Haible  <bruno@clisp.org>
29184
29185         * lib/glthread/lock.h: Include <stdlib.h> always.
29186         * lib/glthread/tls.h: Likewise.
29187         * lib/glthread/cond.h: Likewise.
29188
29189 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
29190
29191         New module 'cond'.
29192         * modules/cond: New file.
29193         * lib/glthread/cond.h: New file.
29194         * lib/glthread/cond.c: New file.
29195         * m4/cond.m4: New file.
29196         * MODULES.html.sh (Multithreading): Add cond.
29197
29198 2008-08-16  Eric Blake  <ebb9@byu.net>
29199
29200         c-stack: fix regression on Irix 5.3 from 2008-06-21
29201         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
29202         sa_sigaction...
29203         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
29204         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
29205         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
29206         * modules/signal (Makefile.am): Use the value.
29207         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
29208         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
29209         * doc/posix-headers/signal.texi (signal.h): Document this
29210         portability issue.
29211         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
29212         Reported by Tom G. Christensen.
29213
29214 2008-08-17  Bruno Haible  <bruno@clisp.org>
29215
29216         New module 'threadlib'.
29217         * modules/threadlib: New file.
29218         * lib/glthread/threadlib.c: New file, extracted from
29219         lib/glthread/lock.c.
29220         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
29221         functions.
29222         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
29223         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
29224         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
29225         macros.
29226         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
29227         (gl_DISABLE_THREADS): Remove macro.
29228         * modules/lock (Files): Remove build-aux/config.rpath.
29229         (Depends-on): Remove havelib. Add threadlib.
29230         (configure.ac-early): Remove section.
29231         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
29232         * modules/tls (Depends-on): Remove lock. Add threadlib.
29233         (Link): New section, copied from threadlib.
29234         * MODULES.html.sh (Multithreading): Add threadlib.
29235
29236 2008-08-14  Bruno Haible  <bruno@clisp.org>
29237
29238         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
29239         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
29240         glthread_rwlock_unlock, glthread_rwlock_destroy,
29241         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
29242         glthread_recursive_lock_destroy): Define as macros always.
29243         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
29244         glthread_lock_lock.
29245         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
29246         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
29247         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
29248         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
29249         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
29250         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
29251         (glthread_recursive_lock_lock_func): Renamed from
29252         glthread_recursive_lock_lock.
29253         (glthread_recursive_lock_unlock_func): Renamed from
29254         glthread_recursive_lock_unlock.
29255         (glthread_recursive_lock_destroy_func): Renamed from
29256         glthread_recursive_lock_destroy.
29257
29258 2008-08-14  Bruno Haible  <bruno@clisp.org>
29259
29260         * lib/glthread/lock.h: Renamed from lib/lock.h.
29261         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
29262         * lib/glthread/tls.h: Renamed from lib/tls.h.
29263         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
29264         * lib/fstrcmp.c: Update includes.
29265         * lib/strsignal.c: Update includes.
29266         * modules/lock (Files, Makefile.am): Update.
29267         (Include): Change to "glthread/lock.h".
29268         * modules/tls (Files, Makefile.am): Update.
29269         (Include): Change to "glthread/tls.h".
29270         * tests/test-lock.c: Update includes.
29271         * tests/test-tls.c: Update includes.
29272         * NEWS: Mention the renamed header files.
29273
29274 2008-08-11  Jim Meyering  <meyering@redhat.com>
29275
29276         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
29277
29278 2008-08-11  Eric Blake  <ebb9@byu.net>
29279
29280         test-c-stack: avoid C99-ism
29281         * tests/test-c-stack.c (main): Fix whitespace, move declaration
29282         before statement.
29283         Reported by Alain Guibert.
29284
29285 2008-08-10  Jim Meyering  <meyering@redhat.com>
29286
29287         ensure that return value of uinttostr et al are not ignored
29288         * lib/inttostr.h (__GNUC_PREREQ): Define.
29289         (__attribute_warn_unused_result__): Define.
29290         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
29291
29292 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
29293
29294         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
29295         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
29296
29297 2008-08-07  Jim Meyering  <meyering@redhat.com>
29298
29299         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
29300
29301         * modules/mkstemp (License): Relicense under LGPLv2+.
29302         * modules/tempname (License): Likewise.
29303
29304 2008-08-06  Bruno Haible  <bruno@clisp.org>
29305
29306         * lib/poll.c (poll): Further micro-optimization.
29307
29308 2008-08-06  Jim Meyering  <meyering@redhat.com>
29309
29310         inet_pton.c: use locale-independent tolower
29311         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
29312         (inet_pton6): Use c_tolower rather than tolower.
29313         * modules/inet_pton (Depends-on): Add c-ctype.
29314
29315 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
29316
29317         * lib/poll.c (poll): Avoid division when timeout is 0, cache
29318         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
29319
29320 2008-08-06  Jim Meyering  <meyering@redhat.com>
29321
29322         * modules/inet_pton (License): Relicense under LGPLv2+.
29323
29324 2008-08-03  Bruno Haible  <bruno@clisp.org>
29325
29326         Additional non-aborting API for lock and tls.
29327         * lib/lock.h: Include <errno.h>.
29328         (glthread_lock_init): New macro/function.
29329         (gl_lock_init): Define as wrapper around glthread_lock_init.
29330         (glthread_lock_lock): New macro/function.
29331         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
29332         (glthread_lock_unlock): New macro/function.
29333         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
29334         (glthread_lock_destroy): New macro/function.
29335         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
29336         (glthread_rwlock_init): New macro/function.
29337         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
29338         (glthread_rwlock_rdlock): New macro/function.
29339         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
29340         (glthread_rwlock_wrlock): New macro/function.
29341         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
29342         (glthread_rwlock_unlock): New macro/function.
29343         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
29344         (glthread_rwlock_destroy): New macro/function.
29345         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
29346         (glthread_recursive_lock_init): New macro/function.
29347         (gl_recursive_lock_init): Define as wrapper around
29348         glthread_recursive_lock_init.
29349         (glthread_recursive_lock_lock): New macro/function.
29350         (gl_recursive_lock_lock): Define as wrapper around
29351         glthread_recursive_lock_lock.
29352         (glthread_recursive_lock_unlock): New macro/function.
29353         (gl_recursive_lock_unlock): Define as wrapper around
29354         glthread_recursive_lock_unlock.
29355         (glthread_recursive_lock_destroy): New macro/function.
29356         (gl_recursive_lock_destroy): Define as wrapper around
29357         glthread_recursive_lock_destroy.
29358         (glthread_once): New macro/function.
29359         (gl_once): Define as wrapper around glthread_once.
29360         Update function declarations.
29361         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
29362         glthread_rwlock_init. Return error code.
29363         (glthread_rwlock_rdlock_multithreaded): Renamed from
29364         glthread_rwlock_rdlock. Return error code.
29365         (glthread_rwlock_wrlock_multithreaded): Renamed from
29366         glthread_rwlock_wrlock. Return error code.
29367         (glthread_rwlock_unlock_multithreaded): Renamed from
29368         glthread_rwlock_unlock. Return error code.
29369         (glthread_rwlock_destroy_multithreaded): Renamed from
29370         glthread_rwlock_destroy. Return error code.
29371         (glthread_recursive_lock_init_multithreaded): Renamed from
29372         glthread_recursive_lock_init. Return error code.
29373         (glthread_recursive_lock_lock_multithreaded): Renamed from
29374         glthread_recursive_lock_lock. Return error code.
29375         (glthread_recursive_lock_unlock_multithreaded): Renamed from
29376         glthread_recursive_lock_unlock. Return error code.
29377         (glthread_recursive_lock_destroy_multithreaded): Renamed from
29378         glthread_recursive_lock_destroy. Return error code.
29379         (glthread_once_call): Make static.
29380         (glthread_once_multithreaded): Renamed from glthread_once.
29381         * lib/tls.h: Include <errno.h>.
29382         (glthread_tls_key_init): New macro/function.
29383         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
29384         (glthread_tls_set): New macro/function.
29385         (gl_tls_set): Define as wrapper around glthread_tls_set.
29386         (glthread_tls_key_destroy): New macro/function.
29387         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
29388         Update function declarations.
29389         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
29390         glthread_tls_get.
29391         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
29392
29393 2008-08-04  Eric Blake  <ebb9@byu.net>
29394
29395         gnumakefile: use space, not TAB, outside of targets
29396         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
29397
29398 2008-08-02  Jim Meyering  <meyering@redhat.com>
29399
29400         getdate.y: avoid locale-dependent date parsing failure
29401         In Turkish locales, getdate would fail to recognize keywords
29402         containing a lowercase "i".  The solution is not to rely on
29403         locale-sensitive case-conversion.
29404         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
29405         (lookup_word): Use c_toupper in place of toupper.
29406         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
29407         Reported by Vefa Bicakci <bicave@superonline.com> in
29408         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
29409         * modules/getdate (Depends-on): Add c-ctype.
29410
29411 2008-08-02  Bruno Haible  <bruno@clisp.org>
29412
29413         * gnulib-tool (func_import): When updating or creating a .gitignore
29414         file, prepend each added line with a slash, and ignore leading slashes
29415         from the existing lines.
29416         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
29417
29418 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29419
29420         Portability fix for GNU make 3.79.1.
29421         * top/GNUmakefile: Avoid 'else COND', which older GNU make
29422         versions do not understand.
29423
29424 2008-08-01  Bruno Haible  <bruno@clisp.org>
29425
29426         Work around bug of HP-UX 10.20 cc with -0.0 literal.
29427         * tests/test-isnanf.h (zero): New variable.
29428         (main): Avoid literal -0.0f.
29429         * tests/test-isnand.h (zero): New variable.
29430         (main): Avoid literal -0.0.
29431         * tests/test-isnanl.h (zero): New variable.
29432         (main): Avoid literal -0.0L.
29433         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
29434         (test_float, test_double, test_long_double): Avoid literals -0.0f,
29435         -0.0, -0.0L.
29436         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
29437         (test_signbitd): Avoid literal -0.0.
29438         (test_signbitl): Avoid literal -0.0L.
29439         * tests/test-ceilf1.c (zero): New variable.
29440         (main): Avoid literal -0.0f.
29441         * tests/test-ceill.c (zero): New variable.
29442         (main): Avoid literal -0.0L.
29443         * tests/test-floorf1.c (zero): New variable.
29444         (main): Avoid literal -0.0f.
29445         * tests/test-floorl.c (zero): New variable.
29446         (main): Avoid literal -0.0L.
29447         * tests/test-roundf1.c (zero): New variable.
29448         (main): Avoid literal -0.0f.
29449         * tests/test-round1.c (zero): New variable.
29450         (main): Avoid literal -0.0.
29451         * tests/test-roundl.c (zero): New variable.
29452         (main): Avoid literal -0.0L.
29453         * tests/test-truncf1.c (zero): New variable.
29454         (main): Avoid literal -0.0f.
29455         * tests/test-trunc1.c (zero): New variable.
29456         (main): Avoid literal -0.0.
29457         * tests/test-truncl.c (zero): New variable.
29458         (main): Avoid literal -0.0L.
29459         * tests/test-frexp.c (zero): New variable.
29460         (main): Avoid literal -0.0.
29461         * tests/test-frexpl.c (zero): New variable.
29462         (main): Avoid literal -0.0L.
29463         * tests/test-ldexpl.c (zero): New variable.
29464         (main): Avoid literal -0.0L.
29465         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
29466         (zerod, zerol): New variables.
29467         (test_function): Avoid literals -0.0, -0.0L.
29468         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
29469         (zerod, zerol): New variables.
29470         (test_function): Avoid literals -0.0, -0.0L.
29471         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
29472         (zerod, zerol): New variables.
29473         (test_function): Avoid literals -0.0, -0.0L.
29474         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
29475         (zerod, zerol): New variables.
29476         (test_function): Avoid literals -0.0, -0.0L.
29477         * tests/test-strtod.c (zero): New variable.
29478         (main): Avoid literal -0.0.
29479         Reported by Jonathan C. Patschke <jp@centtech.com>.
29480
29481 2008-07-31  Jim Meyering  <meyering@redhat.com>
29482
29483         sha256.h: correct definition of SHA224_DIGEST_SIZE
29484         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
29485         Reported by Paulie Pena IV <paulie4@gmail.com>.
29486         Define as 224 / 8, rather than as a literal.
29487         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
29488         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
29489         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
29490
29491 2008-07-31  Bruno Haible  <bruno@clisp.org>
29492
29493         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
29494         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
29495         Reported by Jonathan Patschke <jp@centtech.com>.
29496
29497 2008-07-31  Bruno Haible  <bruno@clisp.org>
29498
29499         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
29500         Reported by Paolo Bonzini <bonzini@gnu.org>.
29501
29502 2008-07-30  Eric Blake  <ebb9@byu.net>
29503
29504         test-strtod: allow compilation without -lm
29505         * tests/test-strtod.c (main): Avoid link dependence on fabs.
29506         Reported by Dennis Clarke <blastwave@gmail.com>.
29507
29508 2008-07-28  Jim Meyering  <meyering@redhat.com>
29509
29510         bootstrap: work also when there are no .po files in po/
29511         * build-aux/bootstrap (update_po_files): Complete the change
29512         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
29513
29514 2008-07-27  Jim Meyering  <meyering@redhat.com>
29515
29516         * users.txt: Add zile.
29517
29518 2008-07-26  Ben Pfaff  <blp@gnu.org>
29519
29520         Add missing dependencies on new m4/exponent[fdl].m4 files.
29521         * modules/isnanf-nolibm: Add m4/exponentf.m4.
29522         * modules/isnand-nolibm: Add m4/exponentd.m4.
29523         * modules/isnanl-nolibm: Add m4/exponentl.m4.
29524         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
29525         m4/isnan[fdl].m4, because the macros actually used moved.
29526         Reported by Jim Meyering.
29527
29528 2008-07-14  Ben Pfaff  <blp@gnu.org>
29529
29530         Add isinf module.
29531         * lib/isinf.c: New file.
29532         * lib/math.in.h: Define isinf macro if we have decided to replace
29533         it.
29534         * m4/isinf.m4: New file.
29535         * m4/math_h.m4: Initialize and substitute variables for isinf
29536         module.
29537         * modules/isinf: New file.
29538         * modules/isinf-tests: New file.
29539         * modules/math: Add substitutions for new module.
29540         * tests/test-isinf.c: New file.
29541         * doc/posix-functions/isinf.texi: Mention new module.
29542         * MODULES.html.sh: Mention new module.
29543
29544 2008-07-14  Ben Pfaff  <blp@gnu.org>
29545
29546         Factor out some macros for use by additional modules.
29547         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
29548         exponentf.m4.
29549         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
29550         exponentd.m4.
29551         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
29552         file exponentl.m4.
29553         * m4/exponentf.m4: New file.
29554         * m4/exponentd.m4: New file.
29555         * m4/exponentl.m4: New file.
29556         * modules/isnanf: Use new file m4/exponentf.m4.
29557         * modules/isnand: Use new file m4/exponentd.m4.
29558         * modules/isnanl: Use new file m4/exponentl.m4.
29559
29560 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
29561
29562         mktime.c: normalize tp->tm_isdst value to -1/0/1.
29563         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
29564         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
29565         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
29566
29567         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
29568         readlink on platforms without PATH_MAX.
29569
29570 2008-07-21  Eric Blake  <ebb9@byu.net>
29571
29572         Warn, not fail, on stale version.
29573         * top/GNUmakefile (_curr-ver): Tone down previous patch.
29574
29575         Don't allow installation with stale devel version number.
29576         * top/GNUmakefile (_is-install-target): New macro.
29577         (_curr-ver): Forbid installation with stale version number.
29578
29579 2008-07-20  Bruno Haible  <bruno@clisp.org>
29580
29581         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
29582         TESTS_ENVIRONMENT.
29583         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
29584
29585 2008-07-20  Bruno Haible  <bruno@clisp.org>
29586
29587         * lib/c-stack.h (c_stack_action): Add documentation.
29588         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
29589
29590 2008-07-20  Bruno Haible  <bruno@clisp.org>
29591
29592         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
29593         * modules/readlink (License): Likewise.
29594
29595 2008-07-17  Eric Blake  <ebb9@byu.net>
29596
29597         * modules/c-stack (Link): Fix typo.
29598
29599         Make c-stack use libsigsegv, when available.
29600         * modules/c-stack (Depends-on): Add libsigsegv.
29601         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
29602         needed.
29603         * lib/c-stack.c (SIGSTKSZ): Define fallback.
29604         (segv_handler, overflow_handler, c_stack_action)
29605         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
29606         implementation when libsigsegv is available, but only when using
29607         the library is necessary.
29608         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
29609         comment, explaining why XSI check fails on Linux.
29610         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
29611         * tests/test-c-stack2.sh: Tweak skip message.
29612         * NEWS: Document new link-time requirements.
29613
29614 2008-07-16  Eric Blake  <ebb9@byu.net>
29615
29616         c-stack: Expose false positives when not using libsigsegv.
29617         * modules/c-stack-tests (Files): Expand test.
29618         * tests/test-c-stack.c (main): Add means to conditionally trigger
29619         non-overflow SIGSEGV.
29620         * tests/test-c-stack2.sh: New file.
29621
29622 2008-07-14  Bruno Haible  <bruno@clisp.org>
29623
29624         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
29625         Reported by Eric Blake.
29626
29627 2008-07-14  Sam Steingold  <sds@gnu.org>
29628             Bruno Haible  <bruno@clisp.org>
29629
29630         New module libsigsegv.
29631         * modules/libsigsegv: New file.
29632         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
29633         modifications.
29634         * MODULES.html.sh (Signal handling): New section.
29635
29636 2008-07-14  Bruno Haible  <bruno@clisp.org>
29637
29638         * modules/unictype/ctype-* (Description): Add the word "function".
29639         Improves the resulting doc in MODULES.html.
29640
29641 2008-07-12  Ben Pfaff  <blp@gnu.org>
29642
29643         Add longlong module.
29644         * modules/longlong: New file.
29645
29646 2008-07-12  Bruno Haible  <bruno@clisp.org>
29647
29648         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
29649         to empty.
29650
29651 2008-07-10  Ben Pfaff  <blp@gnu.org>
29652
29653         Add isnan module.
29654         * doc/posix-functions/isnan.texi: Mention new module.
29655         * lib/math.in.h: Define isnan macro if we have decided to replace
29656         it.
29657         * m4/isnan.m4: New file.
29658         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
29659         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
29660         also.
29661         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
29662         redundancy.
29663         * m4/math_h.m4: Initialize and substitute variables for isnan
29664         module.
29665         * modules/isnan: New file.
29666         * modules/isnan-tests: New file.
29667         * modules/math: Add substitutions for new module.
29668         * tests/test-isnan.c: New file.
29669         * MODULES.html.sh: Mention new module.
29670
29671 2008-07-10  Ben Pfaff  <blp@gnu.org>
29672
29673         Add isnanf module.
29674         * lib/isnanf.m4: New file.
29675         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
29676         (gl_HAVE_ISNANF_IN_LIBM): New macro.
29677         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
29678         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
29679         * modules/isnanf: New file.
29680         * modules/isnanf-tests: New file.
29681         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
29682         files.
29683         * tests/test-isnanf-nolibm.c: factored most of its contents into
29684         new file tests/test-isnanf.h.
29685         * tests/test-isnanf.h: New file.
29686         * tests/test-isnanf.c: New file.
29687         * MODULES.html.sh: Mention new module.
29688         * doc/glibc-functions/isnanf.texi: Mention new module.
29689
29690 2008-07-10  Ben Pfaff  <blp@gnu.org>
29691
29692         Add isnand module.
29693         * lib/isnand.h: New file.
29694         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
29695         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
29696         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
29697         functionality also.
29698         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
29699         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
29700         (gl_HAVE_ISNAND_IN_LIBM): New macro.
29701         * modules/isnand: New file.
29702         * modules/isnand-tests: New file.
29703         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
29704         files.
29705         * tests/test-isnand-nolibm.c: factored most of its contents into
29706         new file tests/test-isnand.h.
29707         * tests/test-isnand.h: New file.
29708         * tests/test-isnand.c: New file.
29709         * MODULES.html.sh: Mention new module.
29710
29711 2008-07-10  Ben Pfaff  <blp@gnu.org>
29712
29713         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
29714         * lib/isnand.h: Rename lib/isnand-nolibm.h.
29715         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
29716         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
29717         * modules/isnanf-nolibm: Update references to renamed files.
29718         * modules/isnand-nolibm: Likewise.
29719         * modules/isnanf-nolibm-tests: Likewise.
29720         * modules/isnand-nolibm-tests: Likewise.
29721         * lib/frexp.c: Likewise.
29722         * lib/isfinite.c: Likewise.
29723         * lib/signbitd.c: Likewise.
29724         * lib/signbitf.c: Likewise.
29725         * lib/vasnprintf.c: Likewise.
29726         * tests/test-ceilf1.c: Likewise.
29727         * tests/test-ceilf2.c: Likewise.
29728         * tests/test-floorf1.c: Likewise.
29729         * tests/test-floorf2.c: Likewise.
29730         * tests/test-frexp.c: Likewise.
29731         * tests/test-round1.c: Likewise.
29732         * tests/test-round2.c: Likewise.
29733         * tests/test-roundf1.c: Likewise.
29734         * tests/test-strtod.c: Likewise.
29735         * tests/test-trunc1.c: Likewise.
29736         * tests/test-trunc2.c: Likewise.
29737         * tests/test-truncf1.c: Likewise.
29738         * tests/test-truncf2.c: Likewise.
29739         * NEWS: Mention the renamed header files.
29740
29741 2008-07-11  Jim Meyering  <meyering@redhat.com>
29742
29743         vc-list-files: make the last-resort awk code more portable
29744         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
29745         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
29746         does not support it.
29747
29748 2008-07-10  Eric Blake  <ebb9@byu.net>
29749
29750         Work with tar's bootstrap.
29751         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
29752         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
29753         an m4 comment.
29754
29755 2008-07-09  Jim Meyering  <meyering@redhat.com>
29756
29757         posix-shell.m4: fix typo that made this test malfunction
29758         * m4/posix-shell.m4: Remove capitalization in variable name.
29759
29760 2008-07-08  Bruno Haible  <bruno@clisp.org>
29761
29762         * m4/onceonly.m4: Update comments.
29763         Reported by Ben Pfaff <blp@cs.stanford.edu>.
29764
29765 2008-07-04  Jim Meyering  <meyering@redhat.com>
29766
29767         * users.txt: Add vc-dwim.
29768         (bison, coreutils): Use the gitweb URL.
29769
29770 2008-07-03  Jim Meyering  <meyering@redhat.com>
29771
29772         * users.txt: Add libffcall.  From Sam Steingold.
29773
29774 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
29775
29776         getdate.y: do not ignore TZ with relative day, month or year offset
29777         * lib/getdate.y (get_date): Move the tz-handling block to follow the
29778         relative-date-handling, since otherwise, the latter would clobber the
29779         sole output (an updated Start value) of the tz-handling block.
29780         * tests/test-getdate.c: Tests for the fix
29781
29782 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29783
29784         Recognize 'foo_LIBRARIES += libgnu.a'.
29785         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
29786         makefile snippet has already specified an installation location,
29787         also using '+='.
29788
29789 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
29790
29791         getdate.y: factor out common actions
29792         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
29793         Use them in place of open-coded actions.
29794
29795 2008-07-01  Simon Josefsson  <simon@josefsson.org>
29796
29797         Add self-test for getdate module.
29798         * modules/getdate-tests: New file.
29799         * tests/test-getdate.c: New file.
29800
29801 2008-06-29  Bruno Haible  <bruno@clisp.org>
29802
29803         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
29804         .gitignore.
29805         Reported by Sylvain Beucler <beuc@beuc.net>.
29806
29807 2008-06-29  Bruno Haible  <bruno@clisp.org>
29808
29809         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
29810         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
29811
29812 2008-06-29  Bruno Haible  <bruno@clisp.org>
29813
29814         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
29815         EXTRA_DIST.
29816         Reported by Sylvain Beucler <beuc@beuc.net>.
29817
29818 2008-06-26  Jim Meyering  <meyering@redhat.com>
29819
29820         make several modules depend on the "open" module
29821         This provides slightly increased consistency when opening-for-write
29822         the name of a non-directory spelled with a trailing slash.
29823         * modules/chdir-safer: Likewise.
29824         * modules/chown: Likewise.
29825         * modules/clean-temp: Likewise.
29826         * modules/copy-file: Likewise.
29827         * modules/fchdir: Likewise.
29828         * modules/fcntl-safer: Likewise.
29829         * modules/pipe: Likewise.
29830         * modules/utime: Likewise.
29831         Prompted by Eric Blake and Bruno Haible.
29832
29833 2008-06-24  Andreas Schwab  <schwab@suse.de>
29834
29835         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
29836         literals can be used as initializers for global variables.
29837
29838 2008-06-23  Eric Blake  <ebb9@byu.net>
29839
29840         Make gnulib-cache.m4 easier to diff.
29841         * gnulib-tool (func_import): Allow newlines when reading cached
29842         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
29843
29844 2008-06-23  Bruno Haible  <bruno@clisp.org>
29845
29846         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
29847         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
29848         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
29849         m4/signalblocking.m4.
29850         (gl_PREREQ_SIGACTION): Don't invoke it.
29851         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
29852         gl_PREREQ_SIG_HANDLER_H.
29853         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
29854         Don't check for sigaction here.
29855
29856 2008-06-23  Bruno Haible  <bruno@clisp.org>
29857
29858         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
29859         (install_handlers): Don't set the SA_RESETHAND flag.
29860
29861 2008-06-23  Bruno Haible  <bruno@clisp.org>
29862
29863         * m4/sigaction.m4: Comment fixes.
29864         * lib/signal.in.h: Likewise.
29865
29866 2008-06-23  Eric Blake  <ebb9@byu.net>
29867
29868         Fix typo.
29869         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
29870
29871         Avoid SA_ namespace.
29872         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
29873         Reported by Ralf Wildenhues.
29874
29875         Avoid test failure due to SA_RESTORER.
29876         * tests/test-sigaction.c (SA_MASK): New macro.
29877         (main): Avoid failing due to extension flags being set.
29878         Reported by Jim Meyering.
29879
29880         Revert use of sig-handler.h in sigprocmask.c.
29881         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
29882         it requires the existence of struct sigaction.
29883         * lib/sigprocmask.c (handler_t): Restore typedef.
29884         (rpl_signal, old_handlers): Use local type.
29885
29886 2008-06-22  Bruno Haible  <bruno@clisp.org>
29887
29888         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
29889         conditionally.
29890         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
29891
29892 2008-06-22  Bruno Haible  <bruno@clisp.org>
29893
29894         * doc/posix-functions/siginterrupt.texi: Move note.
29895
29896         * lib/signal.in.h (SA_RESTART): New macro.
29897         * lib/sigaction.c: Update comment.
29898
29899         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
29900
29901         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
29902         (gl_PREREQ_SIGPROCMASK): Invoke it.
29903         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
29904
29905         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
29906
29907         * lib/sigprocmask.c: Update a comment.
29908
29909 2008-06-21  Eric Blake  <ebb9@byu.net>
29910
29911         Use sigaction module rather than signal().
29912         * modules/c-stack (Depends-on): Add sigaction.
29913         * modules/fatal-signal (Depends-on): Likewise.
29914         * modules/nanosleep (Depends-on): Likewise.
29915         * modules/sigprocmask (Files): Add sig-handler.h.
29916         * modules/sigaction (Files): Likewise.
29917         * lib/sig-handler.h (get_handler): New file, suggested by Paul
29918         Eggert.
29919         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
29920         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
29921         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
29922         (init_fatal_signals): Likewise.
29923         * lib/nanosleep.c (rpl_nanosleep): Likewise.
29924         (siginterrupt): Delete fallback.
29925         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
29926         instead.
29927         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
29928         siginterrupt.
29929
29930         New module sigaction, for mingw.
29931         * modules/sigaction: New module...
29932         * modules/sigaction-tests: ...and its test.
29933         * m4/sigaction.m4: New file.
29934         * lib/sigaction.c: Likewise.
29935         * tests/test-sigaction.c: Likewise.
29936         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
29937         * modules/signal (Makefile.am): Likewise.
29938         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
29939         needed.
29940         * doc/posix-headers/signal.texi (signal.h): Mention provided
29941         types.
29942         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
29943         that sigaction is preferable.
29944         * doc/posix-functions/sigaction.texi (sigaction): Mention new
29945         module.
29946         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
29947         sigaction.
29948
29949         Improve robustness of sigprocmask by overriding signal.
29950         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
29951         is in use.
29952         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
29953         (SIGKILL, SIGSTOP): Provide fallbacks.
29954         (rpl_signal): Implement.
29955         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
29956         signal can be called inside handlers.
29957
29958         Fix nanosleep module on mingw.
29959         * modules/nanosleep (Depends-on): Add sys_select.
29960         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
29961
29962         Fix licensing of sigprocmask.
29963         * modules/raise (License): Relicense as LGPL.
29964
29965 2008-06-21  Bruno Haible  <bruno@clisp.org>
29966
29967         * lib/propername.c (proper_name_utf8): Don't use the transliterated
29968         result if it contains question marks.
29969         Reported by Michael Geng <linux@michaelgeng.de>.
29970
29971 2008-06-19  Bruno Haible  <bruno@clisp.org>
29972
29973         Fix CVS-ism.
29974         * doc/gnulib.texi: Include updated-stamp.texi.
29975         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
29976         (updated-stamp.texi): New rule.
29977         (gnulib.info): Depend on it.
29978         * doc/.gitignore: Add updated-stamp.texi.
29979         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
29980
29981 2008-06-19  Bruno Haible  <bruno@clisp.org>
29982
29983         * doc/Makefile (gnulib.info): Update and simplify dependencies.
29984         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
29985
29986 2008-06-19  Eric Blake  <ebb9@byu.net>
29987
29988         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
29989         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
29990         Reported by Stepan Kasal.
29991
29992 2008-06-18  Bruno Haible  <bruno@clisp.org>
29993
29994         * lib/fatal-signal.c (init_fatal_signals): Add comment.
29995         Reported by Eric Blake.
29996
29997 2008-06-18  Eric Blake  <ebb9@byu.net>
29998
29999         Work around cygwin 1.5.25 strsignal bug.
30000         * tests/test-strsignal.c: Allow for const char *.
30001         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
30002
30003 2008-06-18  Simon Josefsson  <simon@josefsson.org>
30004
30005         * users.txt: Update URL to article and add author/date
30006         information.
30007
30008 2008-06-17  Bruno Haible  <bruno@clisp.org>
30009
30010         New macro gl_DISABLE_THREADS.
30011         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
30012         if the user did not pass --enable-threads or --disable-threads option.
30013         (gl_DISABLE_THREADS): New macro.
30014         Reported by Eric Blake <ebb9@byu.net>.
30015
30016 2008-06-17  Bruno Haible  <bruno@clisp.org>
30017
30018         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
30019         when the macro ignores it.
30020         Based on a patch by Eric Blake <ebb9@byu.net>.
30021
30022 2008-06-17  Bruno Haible  <bruno@clisp.org>
30023
30024         * modules/tls (License): Change to LGPLv2+.
30025         Reported by Eric Blake.
30026
30027 2008-06-17  Eric Blake  <ebb9@byu.net>
30028
30029         Simplify c-stack prerequisites.
30030         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
30031         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
30032         no longer requires <ucontext.h> to exist.  Optimize setrlimit
30033         check.
30034         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
30035         <sys/resource.h>.
30036
30037         Move c-stack test into testsuite.
30038         * modules/c-stack-tests: New file.
30039         * lib/c-stack.c [DEBUG]: Move test program...
30040         * tests/test-c-stack.c: ...into this new file.  Skip rather than
30041         fail test if sigaltstack is lacking.
30042         * tests/test-c-stack.sh: New driver file.
30043
30044 2008-06-16  Eric Blake  <ebb9@byu.net>
30045
30046         Use raise module consistently.
30047         * modules/fatal-signal (Depends-on): Add raise.
30048         * modules/sigprocmask (Depends-on): Likewise.
30049         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
30050         * lib/sigprocmask.c (sigprocmask): Likewise.
30051         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
30052         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
30053
30054         Fix compliance bug in sigpending.
30055         * lib/sigprocmask.c (sigpending): Return pending array via
30056         parameter, not return value.
30057
30058 2008-06-14  Eric Blake  <ebb9@byu.net>
30059
30060         Improve obstack-printf test code.
30061         * tests/test-obstack-printf.c (test_function): Fix comment, and
30062         simplify usage of obstack_* in macros.  Add a test for coverage.
30063         Reported by Bruno Haible.
30064
30065 2008-06-14  Bruno Haible  <bruno@clisp.org>
30066
30067         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
30068         array size as a constant, not as a const variable.
30069         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
30070         AC_USE_SYSTEM_EXTENSIONS.
30071         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
30072         Test whether the obstack_printf function actually exists.
30073         * modules/obstack-printf (Depends-on): Add extensions.
30074         (Include): Remove obstack.h.
30075         * modules/obstack-printf-posix (Depends-on): Add extensions.
30076         (Include): Remove obstack.h.
30077
30078 2008-06-13  Eric Blake  <ebb9@byu.net>
30079
30080         Add obstack-printf and obstack-printf-posix modules.
30081         * modules/obstack-printf: New file.
30082         * modules/obstack-printf-posix: Likewise.
30083         * MODULES.html.sh (Misc): Mention them.
30084         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
30085         Likewise.
30086         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
30087         Likewise.
30088         * modules/stdio (Makefile.am): Accomodate new modules.
30089         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
30090         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
30091         Declare.
30092         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
30093         functions.
30094         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
30095         (gl_REPLACE_OBSTACK_PRINTF): New macros
30096         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
30097         * tests/test-obstack-printf.c: New file.
30098         * modules/obstack-printf-tests: Likewise.
30099         * modules/obstack-printf-posix-tests: Likewise.
30100
30101 2008-06-11  Bruno Haible  <bruno@clisp.org>
30102
30103         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
30104         * lib/open.c: Include errno.h.
30105         (open): Fail when attempting to write to a file that has a trailing
30106         slash.
30107         * tests/test-open.c (main): Test against trailing slash bug.
30108         * doc/posix-functions/open.texi: Mention the trailing slash bug.
30109
30110 2008-06-10  Bruno Haible  <bruno@clisp.org>
30111
30112         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
30113         for $? to work inside the trap command, with various /bin/sh-s.
30114         * tests/test-vc-list-files-cvs.sh: Likewise.
30115
30116 2008-06-10  Bruno Haible  <bruno@clisp.org>
30117
30118         * lib/acl-internal.h: Don't include gettext.h here.
30119         * lib/set-mode-acl.c: Include gettext.h here.
30120         * lib/copy-acl.c: Likewise.
30121
30122 2008-06-10  Bruno Haible  <bruno@clisp.org>
30123
30124         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
30125         * lib/wait-process.c (wait_subprocess): Likewise.
30126         * lib/execute.h (execute): Add termsigp argument.
30127         * lib/execute.c (execute): Likewise.
30128         * lib/csharpcomp.c (compile_csharp_using_pnet,
30129         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
30130         * lib/csharpexec.c (execute_csharp_using_pnet,
30131         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
30132         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
30133         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
30134         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
30135         is_jikes_present): Update.
30136         * lib/javaexec.c (execute_java_class): Update.
30137         * lib/javaversion.c (execute_and_read_line): Update.
30138         * NEWS: Document the changes.
30139         Reported by Eric Blake.
30140
30141 2008-06-10  Eric Blake  <ebb9@byu.net>
30142
30143         Add missing include.
30144         * tests/test-strstr.c (includes): Add <signal.h>.
30145         * tests/test-strcasestr.c (includes): Likewise.
30146         * tests/test-memmem.c (includes): Likewise.
30147
30148 2008-06-10  Bruno Haible  <bruno@clisp.org>
30149
30150         * lib/wait-process.c (wait_subprocess): Add an assertion.
30151
30152 2008-06-10  Bruno Haible  <bruno@clisp.org>
30153
30154         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
30155
30156 2008-06-10  Bruno Haible  <bruno@clisp.org>
30157
30158         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
30159         using alarm().
30160         * tests/test-strcasestr.c (main): Likewise.
30161         * tests/test-strstr.c (main): Likewise.
30162
30163 2008-06-09  Bruno Haible  <bruno@clisp.org>
30164
30165         Work around the Solaris 10 ACE ACLs ABI change.
30166         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
30167         declare if ACL_NO_TRIVIAL is present.
30168         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
30169         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
30170         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
30171         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
30172         define if ACL_NO_TRIVIAL is present.
30173         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
30174         and use the current ABI.
30175         (file_has_acl): Use same #if condition as elsewhere.
30176         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
30177         in use, and use the current ABI.
30178         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
30179         Reported by Jim Meyering.
30180
30181 2008-06-09  Eric Blake  <ebb9@byu.net>
30182
30183         Work around environments that (stupidly) ignore SIGALRM.
30184         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
30185         before using alarm().
30186         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
30187         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
30188         Reported by Ian Beckwith <ianb@erislabs.net>.
30189
30190         Produce autobuild blurb earlier in log.
30191         * modules/autobuild (configure.ac-early): Move AB_INIT here.
30192
30193 2008-06-09  Jim Meyering  <meyering@redhat.com>
30194         and OndÅ™ej Vašík  <ovasik@redhat.com>
30195
30196         utimens.c: correct kernel bug work-around
30197         OndÅ™ej Vašík found that the invalid return value of 280 indicates
30198         failure, not success, and the kernel bug we're trying to work
30199         around affects not just the utimensat call, but also the fallback
30200         futimens call.
30201         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
30202         not success.
30203         [HAVE_FUTIMENS]: Use the same work-around, here.
30204
30205 2008-06-09  Jim Meyering  <meyering@redhat.com>
30206
30207         add more guards around definition of ACE_-related code
30208         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
30209         ALLOW and ACE_OWNER are also defined.
30210
30211 2008-06-08  Bruno Haible  <bruno@clisp.org>
30212
30213         * lib/acl-internal.h: Add me as co-author.
30214         * lib/file-has-acl.c: Likewise.
30215         * lib/set-mode-acl.c: Likewise.
30216         * lib/copy-acl.c: Likewise.
30217
30218 2008-06-08  Bruno Haible  <bruno@clisp.org>
30219
30220         Add support for AIX ACLs.
30221         * lib/acl-internal.h (acl_nontrivial): New declaration.
30222         * lib/file-has-acl.c (acl_nontrivial): New function.
30223         (file_has_acl): Add implementation using AIX 4 ACL API.
30224         * lib/set-mode-acl.c (qset_acl): Likewise.
30225         * lib/copy-acl.c (qcopy_acl): Likewise.
30226
30227 2008-06-08  Bruno Haible  <bruno@clisp.org>
30228
30229         Add support for HP-UX ACLs.
30230         * lib/acl-internal.h (acl_nontrivial): New declaration.
30231         * lib/file-has-acl.c (acl_nontrivial): New function.
30232         (file_has_acl): Add implementation using HP-UX 11 ACL API.
30233         * lib/set-mode-acl.c (qset_acl): Likewise.
30234         * lib/copy-acl.c (qcopy_acl): Likewise.
30235
30236 2008-06-08  Bruno Haible  <bruno@clisp.org>
30237
30238         Add support for Cygwin ACLs.
30239         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
30240         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
30241         the chmod_or_fchmod call.
30242         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
30243
30244 2008-06-08  Bruno Haible  <bruno@clisp.org>
30245
30246         Fix bug with setuid modes in Solaris 10+ code.
30247         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
30248         succeeded, when the mode contains some special bits.
30249
30250 2008-06-08  Bruno Haible  <bruno@clisp.org>
30251
30252         Add support for Solaris 7..10 ACLs.
30253         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
30254         declarations.
30255         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
30256         functions.
30257         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
30258         * lib/set-mode-acl.c (qset_acl): Likewise.
30259         * lib/copy-acl.c (qcopy_acl): Likewise.
30260
30261 2008-06-08  Bruno Haible  <bruno@clisp.org>
30262
30263         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
30264         declaration.
30265         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
30266         (acl_access_nontrivial): Remove MacOS X case.
30267         (file_has_acl): Use acl_extended_nontrivial.
30268         * lib/copy-acl.c (qcopy_acl): Likewise.
30269
30270 2008-06-08  Bruno Haible  <bruno@clisp.org>
30271
30272         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
30273
30274 2008-06-08  Jim Meyering  <meyering@redhat.com>
30275
30276         * modules/acl (Maintainer): Add Bruno Haible.
30277
30278 2008-06-07  Bruno Haible  <bruno@clisp.org>
30279
30280         Improve support for Tru64 ACLs.
30281         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
30282         ACL on OSF/1.
30283
30284 2008-06-07  Bruno Haible  <bruno@clisp.org>
30285
30286         Add support for MacOS X ACLs.
30287         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
30288         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
30289         * lib/set-mode-acl.c (qset_acl): Likewise.
30290         * lib/copy-acl.c (qcopy_acl): Likewise.
30291
30292 2008-06-07  Bruno Haible  <bruno@clisp.org>
30293
30294         Fix memory leak introduced on 2008-05-22.
30295         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
30296         use.
30297
30298 2008-06-07  Bruno Haible  <bruno@clisp.org>
30299
30300         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
30301         to construct an empty ACL.
30302
30303 2008-06-07  Bruno Haible  <bruno@clisp.org>
30304
30305         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
30306         precisely.
30307         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
30308
30309 2008-06-07  Bruno Haible  <bruno@clisp.org>
30310
30311         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
30312         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
30313
30314 2008-06-07  Bruno Haible  <bruno@clisp.org>
30315
30316         * doc/posix-functions/_setjmp.texi: Explain the use of this function
30317         regardless of POSIX.
30318         * doc/posix-functions/_longjmp.texi: Likewise.
30319         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
30320         SystemV platform in this case.
30321
30322 2008-06-06  Eric Blake  <ebb9@byu.net>
30323
30324         Document abort() bugs.
30325         * doc/posix-functions/abort.texi (abort): Mention anomalies.
30326
30327         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
30328         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
30329         sigsetjmp.
30330         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
30331         siglongjmp, but only as a macro.
30332         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
30333         is obsolete.
30334         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
30335
30336         Tweak documentation to cover cygwin argz bugs.
30337         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
30338         argz bug fix; no code change needed since no cygwin releases
30339         occurred between the last fix and the bug being tested.
30340         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
30341         module and recently fixed cygwin bugs.
30342         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
30343         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
30344         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
30345         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
30346         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
30347         Likewise.
30348         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
30349         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
30350         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
30351         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
30352         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
30353         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
30354         Likewise.
30355
30356         Avoid gcc warning on cygwin.
30357         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
30358         !ACL_NO_TRIVIAL]: Avoid unused variable.
30359
30360 2008-06-05  Eric Blake  <ebb9@byu.net>
30361
30362         Be tolerant of UNKNOWN version in gnulib-tool test dir.
30363         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
30364         git-version-gen fails to come up with a version.
30365         Reported by Simon Josefsson.
30366
30367 2008-06-05  Jim Meyering  <meyering@redhat.com>
30368             Paul Eggert  <eggert@cs.ucla.edu>
30369
30370         utimens.c: work around a probable Linux kernel bug
30371         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
30372         appears to be a kernel bug that causes utimensat to return 280
30373         instead of 0, indicating success.
30374
30375 2008-06-04  Bruno Haible  <bruno@clisp.org>
30376
30377         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
30378         2008-06-01 commit.
30379
30380 2008-06-04  Bruno Haible  <bruno@clisp.org>
30381
30382         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
30383         * lib/file-has-acl.c (acl_access_nontrivial): New function.
30384         (file_has_acl): Use it. Save errno afterwards.
30385         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
30386
30387 2008-06-03  Bruno Haible  <bruno@clisp.org>
30388
30389         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
30390         draft code. Simplify #ifs.
30391         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
30392         Put Solaris code after POSIX-draft code. Fix comments regarding
30393         Solaris 10, HP-UX. Mention Cygwin.
30394         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
30395
30396 2008-06-03  Eric Blake  <ebb9@byu.net>
30397
30398         Provide fallback for older kernels.
30399         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
30400         Provide runtime fallback if kernel lacks support.
30401         Reported by Mike Frysinger.
30402
30403 2008-06-02  Bruno Haible  <bruno@clisp.org>
30404
30405         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
30406         it exists.
30407
30408 2008-06-02  Bruno Haible  <bruno@clisp.org>
30409
30410         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
30411         * lib/copy-acl.c (qcopy_acl): Update comment.
30412
30413 2008-06-02  Bruno Haible  <bruno@clisp.org>
30414
30415         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
30416         like ACL APIs.
30417
30418 2008-06-02  Bruno Haible  <bruno@clisp.org>
30419
30420         * tests/test-file-has-acl.sh: Use different code for Cygwin.
30421         * tests/test-set-mode-acl.sh: Likewise.
30422         * tests/test-copy-acl.sh: Likewise.
30423         * tests/test-copy-file.sh: Likewise.
30424
30425 2008-06-02  Bruno Haible  <bruno@clisp.org>
30426
30427         * tests/test-file-has-acl.sh: Remove unused code.
30428
30429 2008-06-01  Bruno Haible  <bruno@clisp.org>
30430
30431         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
30432         (copy_acl): Just a wrapper around qcopy_acl that emits the error
30433         messages.
30434         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
30435
30436 2008-06-01  Bruno Haible  <bruno@clisp.org>
30437
30438         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
30439         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
30440         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
30441         APIs.
30442         * modules/acl-tests (configure.ac): Remove tests now contained in
30443         m4/acl.m4.
30444
30445 2008-06-02  Jim Meyering  <meyering@redhat.com>
30446
30447         announce-gen: use a better key-server host name
30448         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
30449         it may be more consistently reliable.  Suggested by Werner Koch
30450         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
30451
30452 2008-06-01  Bruno Haible  <bruno@clisp.org>
30453
30454         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
30455         Reported by Voroskoi Andras <voroskoi@gmail.com>.
30456
30457 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
30458
30459         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
30460
30461 2008-06-01  Bruno Haible  <bruno@clisp.org>
30462
30463         New ACL tests.
30464         * tests/test-file-has-acl.sh: New file.
30465         * tests/test-file-has-acl.c: New file.
30466         * tests/test-set-mode-acl.sh: New file.
30467         * tests/test-set-mode-acl.c: New file.
30468         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
30469         * tests/test-copy-acl.c: New file.
30470         * modules/acl-tests: New file, based on modules/copy-file-tests.
30471         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
30472         (Depends-on): Add acl-tests.
30473         (configure.ac): Remove checks.
30474         (Makefile.am): Don't create test-sameacls program here any more.
30475
30476 2008-06-01  Bruno Haible  <bruno@clisp.org>
30477
30478         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
30479         * tests/test-sameacls.c: Include progname.h.
30480         (main): Invoke set_program_name. Portability fixes for MacOS X,
30481         Solaris, HP-UX.
30482
30483 2008-06-01  Bruno Haible  <bruno@clisp.org>
30484
30485         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
30486         function.
30487         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
30488
30489 2008-06-01  Bruno Haible  <bruno@clisp.org>
30490
30491         * modules/rpmatch (Depends-on): Add strdup.
30492
30493 2008-06-01  Bruno Haible  <bruno@clisp.org>
30494
30495         * lib/pipe.c: Include unistd-safer.h.
30496         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
30497         * modules/pipe (Depends-on): Add unistd-safer.
30498
30499 2008-05-30  Simon Josefsson  <simon@josefsson.org>
30500
30501         * modules/autobuild (configure.ac): Call AB_INIT.
30502
30503 2008-05-30  Simon Josefsson  <simon@josefsson.org>
30504
30505         * tests/test-getaddrinfo.c: Don't print debug messages by default.
30506         Suggested by Bruno Haible <bruno@clisp.org>.
30507
30508 2008-05-30  Simon Josefsson  <simon@josefsson.org>
30509
30510         * tests/test-base64.c: Cast size_t to unsigned long when invoking
30511         printf.  Use %lu instead of %d.  Reported by Bruno Haible
30512         <bruno@clisp.org>.
30513
30514 2008-05-29  Eric Blake  <ebb9@byu.net>
30515
30516         Prefer new POSIX 200x interfaces over futimesat.
30517         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
30518         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
30519         when available.
30520         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
30521
30522 2008-05-28  Bruno Haible  <bruno@clisp.org>
30523
30524         * modules/stpcpy (License): Change to LGPLv2+.
30525         Requested by David Lutterkort <dlutter@redhat.com>.
30526
30527 2008-05-27  Bruno Haible  <bruno@clisp.org>
30528
30529         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
30530         current mingw.
30531         Reported by Jose E. Marchesi <jemarch@gnu.org>.
30532
30533 2008-05-27  Bruno Haible  <bruno@clisp.org>
30534
30535         * modules/iconv_open (Link): New section, from module 'iconv'.
30536         * modules/striconv (Link): Likewise.
30537         * modules/striconveh (Link): Likewise.
30538         * modules/xstriconv (Link): Likewise.
30539         * modules/unicodeio (Link): Likewise.
30540         * modules/propername (Link): Likewise.
30541         Reported by Jim Meyering.
30542
30543 2008-05-26  Jim Meyering  <meyering@redhat.com>
30544
30545         sha256: do not artificially restrict buffer length to be < 2^32
30546         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
30547         uint32_t to size_t.
30548         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
30549         to match.
30550
30551         avoid unaligned access errors, e.g., on sparc
30552         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
30553         direct access through a possibly-unaligned uint64* pointer.
30554         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
30555         direct access through a possibly-unaligned uint32* pointer.
30556         Prompted by this patch from Tom "spot" Callaway:
30557         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
30558
30559         sha512.c: fix typo in comment
30560         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
30561
30562 2008-05-25  Bruno Haible  <bruno@clisp.org>
30563
30564         * lib/set-mode-acl.c: Renamed from lib/acl.c.
30565         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
30566         (Makefile.am): Update lib_SOURCES.
30567
30568 2008-05-25  Bruno Haible  <bruno@clisp.org>
30569
30570         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
30571
30572 2008-05-25  Jim Meyering  <meyering@redhat.com>
30573
30574         useless-if-before-free: freed expr may have white-space differences
30575         * build-aux/useless-if-before-free: Recognize cases in which the
30576         freed expression differs from the tested one in embedded white
30577         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
30578         $1 was used, so we can't make any regexp shy.  Improved tests now
30579         detect this.
30580
30581         useless-if-before-free: accept white space in the expression.
30582         * build-aux/useless-if-before-free: For now, any white space
30583         in the expression must be identical in the free argument.
30584
30585         useless-if-before-free: efficiency tweak
30586         * build-aux/useless-if-before-free: Make the expression-matching
30587         regexp "shy".
30588         Make the *outer* regexp shy, not the expr-matching one.
30589
30590         update code-in-comment to accept cast of free arg
30591         * build-aux/useless-if-before-free: Update regexp.
30592
30593 2008-05-25  Bruno Haible  <bruno@clisp.org>
30594
30595         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
30596         * modules/copy-file-tests (Files, Makefile.am): Update.
30597         * tests/test-copy-file.c (func_test_copy): Update.
30598
30599 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
30600
30601         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
30602
30603 2008-05-23  Bruno Haible  <bruno@clisp.org>
30604
30605         Improve support for ACLs on OSF/1.
30606         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
30607         Remove fallback for unknown flavors of ACLs.
30608
30609 2008-05-22  Bruno Haible  <bruno@clisp.org>
30610
30611         Add support for ACLs on OSF/1.
30612         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
30613         replacements.
30614         (acl_free_text): New macro fallback.
30615         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
30616         acl_free.
30617         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
30618         acl_free_text function. Require AC_C_INLINE.
30619
30620 2008-05-22  Bruno Haible  <bruno@clisp.org>
30621
30622         Make copy_acl work on MacOS X 10.5.
30623         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
30624         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
30625         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
30626         If MODE_INSIDE_ACL, don't assume that every system has the same text
30627         representation for ACLs as FreeBSD.
30628         * lib/copy-acl.c (copy_acl): Add support for platforms with
30629         !MODE_INSIDE_ACL.
30630         * lib/file-has-acl.c (file_has_acl): Likewise.
30631         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
30632         FreeBSD, MacOS X, or IRIX, respectively.
30633
30634 2008-05-22  Bruno Haible  <bruno@clisp.org>
30635
30636         * lib/acl.h: Don't include <sys/acl.h>.
30637         (GETACLCNT): Move fallback to lib/acl-internal.h.
30638         * lib/acl-internal.h: Include <sys/acl.h> here.
30639         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
30640
30641 2008-05-22  Bruno Haible  <bruno@clisp.org>
30642
30643         Split off copy_acl function to separate file.
30644         * lib/copy-acl.c: New file, extracted from lib/acl.c.
30645         * lib/acl.c (copy_acl): Moved function to separate file.
30646         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
30647         * modules/acl (Files): Add lib/copy-acl.c.
30648         (Makefiles.am): Augment lib_SOURCES.
30649
30650 2008-05-22  Bruno Haible  <bruno@clisp.org>
30651
30652         * modules/copy-file-tests: New file.
30653         * tests/test-copy-file.sh: New file.
30654         * tests/test-copy-file.c: New file.
30655         * tests/test-copy-file-sameacls.c: New file.
30656
30657 2008-05-22  Eric Blake  <ebb9@byu.net>
30658
30659         Avoid gcc warning.
30660         * tests/test-memcmp.c (main): Pass NULL indirectly.
30661
30662 2008-05-21  Bruno Haible  <bruno@clisp.org>
30663
30664         Add reference doc about ACLs.
30665         * doc/acl-resources.txt: New file.
30666         * doc/acl-cygwin.txt: New file.
30667
30668 2008-05-21  Bruno Haible  <bruno@clisp.org>
30669
30670         Avoid one more warning from gcc.
30671         * lib/vasnprintf.c (IF_LINT): Update comments.
30672         (VASNPRINTF): Use it also for the 'prefix' array initializer.
30673
30674 2008-05-21  Jim Meyering  <meyering@redhat.com>
30675
30676         avoid a warning from gcc
30677         * lib/vasnprintf.c (IF_LINT): Define.
30678         (scale10_round_decimal_long_double):
30679         Use it to avoid a "may be used uninitialized" warning.
30680         (scale10_round_decimal_double): Likewise.
30681
30682 2008-05-21  Simon Josefsson  <simon@josefsson.org>
30683
30684         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
30685         declared.
30686
30687 2008-05-20  Bruno Haible  <bruno@clisp.org>
30688
30689         * tests/test-memcmp.c (main): Test also the sign of the result. Test
30690         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
30691
30692 2008-05-20  Simon Josefsson  <simon@josefsson.org>
30693
30694         * modules/memcmp-tests: New file.
30695         * tests/test-memcmp.c: New file.
30696
30697 2008-05-19  Bruno Haible  <bruno@clisp.org>
30698
30699         * modules/propername (Notice, configure.ac): Put quoted "..." into
30700         --keyword option.
30701         * lib/propername.h: Update comments accordingly.
30702         Reported by Eric Blake.
30703
30704 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
30705
30706         * modules/getpass-gnu (Depends-on): Add fseeko.
30707
30708 2008-05-19  Simon Josefsson  <simon@josefsson.org>
30709
30710         * modules/base64-tests: New file.
30711
30712 2008-05-19  Bo Borgerson <gigabo@gmail.com>
30713
30714         * lib/base64.c (base64_decode_ctx): If a decode context structure
30715         was passed in use it to ignore newlines.  If a context structure
30716         was _not_ passed in, continue to treat newlines as garbage (this
30717         is the historical behavior).  Formerly base64_decode.
30718         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
30719         takes a decode context structure.
30720         * lib/base64.h (base64_decode): Macro for four-argument calls.
30721         (base64_decode_alloc): Likewise.
30722         * lib/base64.c (base64_decode_ctx): If a decode context structure
30723         was passed in use it to ignore newlines.  If a context structure
30724         was _not_ passed in, continue to treat newlines as garbage (this
30725         is the historical behavior).  Formerly base64_decode.
30726         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
30727         takes a decode context structure.
30728         * lib/base64.h (base64_decode): Macro for four-argument calls.
30729         (base64_decode_alloc): Likewise.
30730
30731 2008-05-19  Jim Meyering  <meyering@redhat.com>
30732
30733         avoid a warning from gcc
30734         * lib/trim.c (IF_LINT): Define.
30735         (trim2): Use it to avoid a "may be used uninitialized" warning.
30736
30737         Fix doc typo.
30738         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
30739
30740 2008-05-19  Bruno Haible  <bruno@clisp.org>
30741
30742         * doc/glibc-functions/getpass.texi: Document limits of other
30743         implementations.
30744
30745 2008-05-19  Simon Josefsson  <simon@josefsson.org>
30746             Bruno Haible <bruno@clisp.org>
30747
30748         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
30749
30750 2008-05-18  Bruno Haible  <bruno@clisp.org>
30751
30752         * modules/propername: New file, from GNU gettext.
30753         * lib/propername.h: New file, from GNU gettext.
30754         * lib/propername.c: New file, from GNU gettext.
30755         * MODULES.html.sh (Internationalization functions): Add propername.
30756
30757 2008-05-16  Jim Meyering  <meyering@redhat.com>
30758             Bruno Haible  <bruno@clisp.org>
30759
30760         Avoid some warnings from "gcc -Wshadow".
30761         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
30762
30763 2008-05-15  Eric Blake  <ebb9@byu.net>
30764
30765         Extend previous patch to cygwin 1.7.0.
30766         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
30767         fast implementation in cygwin >= 1.7.0.
30768         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
30769         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
30770
30771 2008-05-15  Bruno Haible  <bruno@clisp.org>
30772
30773         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
30774         implementation in glibc >= 2.9.
30775         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
30776         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
30777
30778 2008-05-15  Bruno Haible  <bruno@clisp.org>
30779
30780         * MODULES.html.sh (Internationalization functions): Remove linebreak.
30781         (Unicode string functions): Add unilbrk/*.
30782         Reported by Karl Berry.
30783
30784 2008-05-15  Eric Blake  <ebb9@byu.net>
30785
30786         Fix violation of <stdbool.h> replacement in regex.
30787         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
30788         * lib/regexec.c (re_search_internal): Likewise.
30789         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
30790
30791 2008-05-15  Jim Meyering  <meyering@redhat.com>
30792
30793         avoid distracting test output when git or cvs is not found
30794         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
30795         * tests/test-vc-list-files-git.sh: Likewise.
30796
30797 2008-05-15  Eric Blake  <ebb9@byu.net>
30798
30799         Glibc finally accepted the memmem speedup code, bugzilla #5514.
30800         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
30801         glibc version.
30802         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
30803         * doc/posix-functions/strstr.texi (strstr): Likewise.
30804         * lib/str-two-way.h (MAX): Sychronize with glibc.
30805
30806 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
30807
30808         * lib/regcomp.c (optimize_utf8): Add a note on why we test
30809         opr.ctx_type.
30810         (calc_first): Initialize constraint field.
30811         (duplicate_node_closure): Use it instead of special casing ANCHORS.
30812         Fix grammar.
30813         (duplicate_node): Merge constraint field for all node types.
30814         (calc_eclosure_iter): Look at constraint field for all node types.
30815         * lib/regex_internal.c (create_cd_newstate): Don't look at
30816         opr.ctx_type.
30817
30818 2008-05-14  Bruno Haible  <bruno@clisp.org>
30819
30820         Help GCC to do better code generation.
30821         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
30822         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
30823         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
30824         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
30825         Declare with attribute 'malloc' if supported.
30826
30827 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
30828
30829         use "echo STR|wc -c" rather than unportable "expr length STR"
30830         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
30831         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
30832
30833 2008-05-14  Jim Meyering  <meyering@redhat.com>
30834
30835         use dd ibs=$n count=1 ... rather than less-portable head -c$n
30836         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
30837         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
30838         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
30839         via Collin Lasse.
30840
30841 2008-05-14  Eric Blake  <ebb9@byu.net>
30842
30843         Avoid quadratic growth in gl_LIBSOURCES.
30844         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
30845         Suggested by Bruno Haible.
30846
30847         Test xmemdup0.
30848         * modules/xmemdup0-tests: New file.
30849         * tests/test-xmemdup0.c: Likewise.
30850
30851 2008-05-13  Eric Blake  <ebb9@byu.net>
30852
30853         Split xmemdup0 into its own module.
30854         * modules/xmemdup0: New file.
30855         * lib/xmemdup0.h: Likewise.
30856         * lib/xmemdup0.c: Likewise.
30857         * MODULES.html.sh (Memory management functions): Add xmemdup0.
30858         * lib/xalloc.h (xmemdup0): Remove.
30859         * lib/xmalloc.c (xmemdup0): Likewise.
30860
30861 2008-05-13  Eric Blake  <ebb9@byu.net>
30862             Bruno Haible  <bruno@clisp.org>
30863
30864         Reduce number of forks required during autoconf.
30865         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
30866         and gl_LIBSOURCES_DIR.
30867         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
30868         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
30869         m4_syscmd per file.
30870         <m4_foreach_w>: Move...
30871         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
30872
30873 2008-05-13  Eric Blake  <ebb9@byu.net>
30874
30875         * gnulib-tool: Fix various comment typos.
30876
30877 2008-05-12  Bruno Haible  <bruno@clisp.org>
30878
30879         Tailor the linebreaking algorithm.
30880         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
30881
30882 2008-05-12  Bruno Haible  <bruno@clisp.org>
30883
30884         Update to Unicode 5.0.0.
30885         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
30886         LBP_JV, LBP_JT. Redistribute values.
30887         (unilbrk_table): Change size.
30888         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
30889         Unicode TR#14 rev. 22.
30890         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
30891         LBP_JV, LBP_JT. Redistribute values.
30892         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
30893         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
30894         Update.
30895         * lib/unilbrk/lbrkprop1.h: Regenerated.
30896         * lib/unilbrk/lbrkprop2.h: Regenerated.
30897         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
30898         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
30899         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
30900         Likewise.
30901         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
30902         Likewise.
30903         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
30904         result.
30905         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
30906         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
30907         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
30908         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
30909         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
30910         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
30911
30912 2008-05-11  Bruno Haible  <bruno@clisp.org>
30913
30914         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
30915
30916 2008-05-11  Bruno Haible  <bruno@clisp.org>
30917
30918         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
30919         * modules/unilbrk/gen-lbrk: New file.
30920
30921 2008-05-11  Bruno Haible  <bruno@clisp.org>
30922
30923         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
30924         * m4/sha512.m4 (gl_SHA512): Likewise.
30925
30926 2008-05-11  Jim Meyering  <meyering@redhat.com>
30927
30928         New modules: crypto/sha256, crypto/sha512 (from coreutils)
30929         * modules/crypto/sha256: New file.
30930         * modules/crypto/sha512: Likewise.
30931         * lib/sha256.c: Likewise.
30932         * lib/sha256.h: Likewise.
30933         * lib/sha512.c: Likewise.
30934         * lib/sha512.h: Likewise.
30935         * lib/u64.h: Likewise.
30936         * m4/sha256.m4: Likewise.
30937         * m4/sha512.m4: Likewise.
30938         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
30939
30940 2008-05-10  Bruno Haible  <bruno@clisp.org>
30941
30942         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
30943         (Input/Output <stdio.h>): Add xprintf.
30944         (Signal handling <signal.h>): Add strsignal.
30945         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
30946         (Core language properties): Add func.
30947         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
30948         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
30949         strings.
30950         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
30951         (Input/output): New section.
30952         (File system functions): Add openat-die, stat-macros.
30953         (Networking functions): Add sockets.
30954         (Unicode string functions): Add unictype/*.
30955         (Support for building libraries and executables): Add gperf.
30956         (Support for building documentation): Add agpl-3.0.
30957         (Misc): Add nocrash.
30958
30959 2008-05-10  Bruno Haible  <bruno@clisp.org>
30960
30961         * modules/unictype/gen-ctype: New file.
30962
30963 2008-05-10  Jim Meyering  <meyering@redhat.com>
30964
30965         Make chdir-safer.c more efficient on a system with no symlinks.
30966         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
30967         also if ELOOP is zero.  Suggested by Bruno Haible.
30968
30969         Make chdir-safer.c slightly safer.
30970         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
30971         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
30972
30973         Avoid compile failure on systems without ELOOP (like mingw).
30974         * lib/chdir-safer.c (ELOOP): Define if not already defined.
30975         Reported by Bruno Haible.
30976
30977 2008-05-10  Bruno Haible  <bruno@clisp.org>
30978
30979         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
30980         (is_utf8_encoding): Use a case-insensitive comparison.
30981         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
30982         streq.
30983
30984 2008-05-10  Bruno Haible  <bruno@clisp.org>
30985
30986         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
30987         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
30988         * lib/unilbrk/ulc-common.h (iconv_string_length,
30989         iconv_string_keeping_offsets): Remove declarations.
30990         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
30991         Don't include <iconv.h>, streq.h, xsize.h.
30992         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
30993         conversion.
30994         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
30995         <iconv.h>, streq.h, xsize.h.
30996         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
30997         conversion.
30998         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
30999         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
31000         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
31001         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
31002
31003 2008-05-10  Bruno Haible  <bruno@clisp.org>
31004
31005         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
31006         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
31007
31008         * modules/unilbrk/u32-width-linebreaks-tests: New file.
31009         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
31010
31011         * modules/unilbrk/u16-width-linebreaks-tests: New file.
31012         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
31013
31014         * modules/unilbrk/u8-width-linebreaks-tests: New file.
31015         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
31016
31017         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
31018         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
31019
31020         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
31021         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
31022
31023         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
31024         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
31025
31026         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
31027         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
31028
31029 2008-05-10  Bruno Haible  <bruno@clisp.org>
31030
31031         Split up 'linebreak' module.
31032         * lib/unilbrk.h: New file, based on lib/linebreak.h.
31033         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
31034         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
31035         modifications.
31036         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
31037         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
31038         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
31039         lib/linebreak.c.
31040         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
31041         lib/linebreak.c.
31042         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
31043         lib/linebreak.c.
31044         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
31045         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
31046         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
31047         lib/linebreak.c.
31048         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
31049         lib/linebreak.c.
31050         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
31051         lib/linebreak.c.
31052         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
31053         lib/linebreak.c.
31054         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
31055         lib/linebreak.c.
31056         * modules/unilbrk/base: New file.
31057         * modules/unilbrk/tables: New file.
31058         * modules/unilbrk/u8-possible-linebreaks: New file.
31059         * modules/unilbrk/u16-possible-linebreaks: New file.
31060         * modules/unilbrk/u32-possible-linebreaks: New file.
31061         * modules/unilbrk/ulc-common: New file.
31062         * modules/unilbrk/ulc-possible-linebreaks: New file.
31063         * modules/unilbrk/u8-width-linebreaks: New file.
31064         * modules/unilbrk/u16-width-linebreaks: New file.
31065         * modules/unilbrk/u32-width-linebreaks: New file.
31066         * modules/unilbrk/ulc-width-linebreaks: New file.
31067         * lib/linebreak.h: Remove file.
31068         * lib/linebreak.c: Remove file.
31069         * m4/linebreak.m4: Remove file.
31070         * modules/linebreak: Remove file.
31071         * NEWS: Mention the changes.
31072
31073 2008-05-09  Eric Blake  <ebb9@byu.net>
31074
31075         Add xmemdup0.
31076         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
31077         implementation.
31078         * lib/xmalloc.c (xmemdup0): New C implementation.
31079
31080 2008-05-08  Bruno Haible  <bruno@clisp.org>
31081
31082         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
31083
31084 2008-05-07  Eric Blake  <ebb9@byu.net>
31085
31086         Support cross-compilation of <wctype.h>.
31087         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
31088         AC_CACHE_CHECK.
31089
31090 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
31091
31092         * build-aux/vc-list-files: Add support for bzr.
31093
31094 2008-05-03  Jim Meyering  <meyering@redhat.com>
31095
31096         avoid failed assertion with tight malloc
31097         * tests/test-getndelim2.c: Correct an off-by-one assertion.
31098
31099 2008-05-03  Simon Josefsson  <simon@josefsson.org>
31100
31101         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
31102         are needed from arpa/inet.h.
31103         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
31104         Reported by Bruno Haible.
31105
31106 2008-05-02  Jim Meyering  <meyering@redhat.com>
31107
31108         avoid compilation error on FreeBSD 6
31109         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
31110
31111 2008-05-01  Jim Meyering  <meyering@redhat.com>
31112
31113         useless-if-before-free: correct --help's exit status description
31114         * build-aux/useless-if-before-free (usage): Like grep, exit 0
31115         for one or more matches, etc.  Reported by Bruno Haible.
31116
31117         vc-list-files: make the stand-alone gnulib test work
31118         * modules/vc-list-files-tests (configure.ac):
31119         Define and AC_SUBST abs_aux_dir.
31120         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
31121         $(abs_top_srcdir) to each script and having each of them
31122         duplicate the work of setting PATH, set PATH here, using
31123         the new variable, abs_aux_dir instead.
31124         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
31125         * tests/test-vc-list-files-git.sh: Likewise.
31126         Reported by Bruno Haible.
31127
31128 2008-05-01  Bruno Haible  <bruno@clisp.org>
31129
31130         * lib/getndelim2.c (getndelim2): Fix newsize computation during
31131         reallocation. Rename 'done' to 'found_delimiter'.
31132
31133 2008-05-01  Jim Meyering  <meyering@redhat.com>
31134
31135         vc-list-files: accommodate /bin/sh like the one from Solaris 10
31136         * build-aux/vc-list-files: Use `...`, not $(...).
31137
31138 2008-04-30  Jim Meyering  <meyering@redhat.com>
31139
31140         add tests for vc-list-files
31141         * modules/vc-list-files-tests: New module.
31142         * tests/test-vc-list-files-cvs.sh: New file.
31143         * tests/test-vc-list-files-git.sh: New file.
31144
31145         avoid a warning from gcc
31146         * lib/getndelim2.c (IF_LINT): Define.
31147         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
31148
31149         vc-list-files: work properly with build-aux/cvsu, too
31150         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
31151         to all cvs-based clauses.
31152
31153         vc-list-files: work properly in the CVS+awk case, too
31154         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
31155
31156         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
31157         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
31158         take more than one file argument, so .  Add quotes, just in case $dir
31159         ever contains a shell meta-character.  Prompted by Soren Hansen in
31160         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
31161
31162 2008-04-29  Eric Blake  <ebb9@byu.net>
31163
31164         Optimize getndelim2 to use block operations when possible.
31165         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
31166         freadseek, and memchr2.
31167         * lib/getndelim2.c (getndelim2): Use them for block reads.
31168
31169 2008-04-29  Bruno Haible  <bruno@clisp.org>
31170
31171         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
31172         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
31173         * modules/inet_ntop (Depends-on): Add extensions.
31174         * modules/inet_pton (Depends-on): Likewise.
31175         Reported by Simon Josefsson.
31176
31177 2008-04-29  Jim Meyering  <meyering@redhat.com>
31178
31179         When the is more than one match in a block, match all of them.
31180         * build-aux/useless-if-before-free: Iterate through each block
31181         until there are no more matches.
31182
31183         Fix broken useless-if-before-free script.
31184         * build-aux/useless-if-before-free: Fix typo: missing "?" after
31185         the expression to match cast of argument to free-like function.
31186
31187 2008-04-29  Eric Blake  <ebb9@byu.net>
31188
31189         Use new header.
31190         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
31191
31192 2008-04-29  Jim Meyering  <meyering@redhat.com>
31193
31194         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
31195         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
31196         by gnulib to exist and to declare e.g., inet_ntop.
31197         Don't include "inet_ntop.h", now removed.
31198
31199         * m4/arpa_inet_h.m4: Remove trailing blanks.
31200
31201 2008-04-29  Eric Blake  <ebb9@byu.net>
31202
31203         Silence valgrind on safe reads beyond potential array bounds.
31204         * lib/rawmemchr.valgrind: New file.
31205         * lib/strchrnul.valgrind: Likewise.
31206         * modules/rawmemchr (Files): Distribute new file.
31207         * modules/strchrnul (Files): Likewise.
31208         Suggested by Bruno Haible.
31209
31210 2008-04-29  Bruno Haible  <bruno@clisp.org>
31211
31212         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
31213         (inet_ntop, inet_pton): Change portability warning's wording.
31214         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
31215         Invoke gl_CHECK_NEXT_HEADERS.
31216         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
31217         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
31218         set ARPA_INET_H.
31219         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
31220         * modules/arpa_inet (Description): No longer only for systems that
31221         lack it.
31222         (Depends-on): Add include_next.
31223         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
31224         HAVE_ARPA_INET_H.
31225
31226 2008-04-29  Jim Meyering  <meyering@redhat.com>
31227
31228         * modules/mkdir (License): Re-license as LGPLv2+.
31229
31230 2008-04-29  Bruno Haible  <bruno@clisp.org>
31231
31232         * modules/rawmemchr (Maintainer): Set to Eric.
31233         * modules/strchrnul (Maintainer): Likewise.
31234
31235 2008-04-29  Simon Josefsson  <simon@josefsson.org>
31236
31237         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
31238         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
31239
31240         * modules/arpa_inet (arpa/inet.h): Use them.
31241
31242 2008-04-28  Eric Blake  <ebb9@byu.net>
31243
31244         Test getndelim2.
31245         * modules/getndelim2-tests: New file.
31246         * tests/test-getndelim2.c: Likewise.
31247         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
31248         stream.
31249         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
31250
31251         * MODULES.html.sh: Document new module.
31252
31253 2008-04-20  Bruno Haible  <bruno@clisp.org>
31254
31255         * lib/c-stack.c (die): Use raise.
31256         * modules/c-stack (Depends-on): Add raise.
31257
31258 2008-04-28  Bruno Haible  <bruno@clisp.org>
31259
31260         Expect rpmatch to be declared.
31261         * lib/yesno.c (rpmatch): Remove declaration.
31262
31263         Declare rpmatch.
31264         * lib/stdlib.in.h (rpmatch): New declaration.
31265         * lib/rpmatch.c: Include <stdlib.h> first.
31266         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
31267         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
31268         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
31269         HAVE_RPMATCH.
31270         * modules/rpmatch (Depends-on): Add stdlib, extensions.
31271         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
31272         (Include): Set to <stdlib.h>.
31273         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
31274         HAVE_RPMATCH.
31275         * NEWS: Document the change.
31276
31277 2008-04-28  Bruno Haible  <bruno@clisp.org>
31278
31279         Change rpmatch to use nl_langinfo when appropriate.
31280         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
31281         (N_): New macro.
31282         (localized_pattern): New function/macro.
31283         (try): Remove match, nomatch arguments. Copy the pattern into safe
31284         memory before caching it.
31285         (rpmatch): Use localized_pattern. Add translator comments.
31286         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
31287         Suggested by Eric Blake.
31288         * modules/rpmatch (Depends-on): Add stdbool.
31289
31290 2008-04-28  Eric Blake  <ebb9@byu.net>
31291
31292         Add rawmemchr module, matching glibc.
31293         * modules/string (Makefile.am): New indicator.
31294         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
31295         * lib/string.in.h (rawmemchr): Declare when appropriate.
31296         * modules/rawmemchr: New file.
31297         * m4/rawmemchr.m4: Likewise.
31298         * lib/rawmemchr.c: Likewise.
31299         * modules/rawmemchr-tests: Likewise.
31300         * tests/test-rawmemchr.c: Likewise.
31301         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
31302         module.
31303         * modules/strchrnul (Depends-on): Add rawmemchr.
31304         * lib/strchrnul.c (strchrnul): Optimize a corner case.
31305
31306         Whitespace cleanup.
31307         * tests/test-strchrnul.c: Reindent.
31308         * lib/strchrnul.c: Likewise.
31309
31310         Optimize and test strchrnul.
31311         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
31312         * modules/strchrnul-tests: New file.
31313         * tests/test-strchrnul.c: Likewise.
31314
31315         Remove intprops dependency.
31316         * modules/memchr (Depends-on): Remove intprops.
31317         * modules/memrchr (Depends-on): Likewise.
31318         * modules/memchr2 (Depends-on): Likewise.
31319         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
31320         * lib/memrchr.c (__memrchr): Likewise.
31321         * lib/memrchr2.c (memchr2): Likewise.
31322         Reported by Simon Josefsson.
31323
31324 2008-04-28  Simon Josefsson  <simon@josefsson.org>
31325
31326         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
31327         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
31328
31329 2008-04-28  Simon Josefsson  <simon@josefsson.org>
31330
31331         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
31332
31333         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
31334
31335         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
31336
31337         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
31338         declarations.
31339         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
31340
31341         * m4/inet_pton.m4: Don't check for header files.
31342
31343         * m4/inet_ntop.m4: Don't check for header files.
31344
31345 2008-04-28  Simon Josefsson  <simon@josefsson.org>
31346
31347         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
31348         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
31349         trigger for cygwin).
31350         Reported by Bruno Haible  <bruno@clisp.org>.
31351
31352 2008-04-28  Bruno Haible  <bruno@clisp.org>
31353
31354         * doc/posix-functions/strdup.texi: Mention mingw problem.
31355
31356 2008-04-27  Bruno Haible  <bruno@clisp.org>
31357
31358         * modules/stat-time-tests (Depends-on): Add sleep.
31359         * tests/test-stat-time.c (force_unlink): New function.
31360         (cleanup): Use it.
31361         (test_mtime): Remove the ctime related tests.
31362         (test_ctime): New function, containing the ctime related tests.
31363         (main): Call test_ctime, except on native Windows platforms.
31364
31365 2008-04-27  Bruno Haible  <bruno@clisp.org>
31366
31367         * lib/rpmatch.c (rpmatch): Add some comments.
31368         Reported by James Youngman <jay@gnu.org>.
31369
31370 2008-04-27  Bruno Haible  <bruno@clisp.org>
31371
31372         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
31373         quiet NaNs.
31374
31375 2008-04-27  Bruno Haible  <bruno@clisp.org>
31376
31377         Make test-yesno.sh work on mingw.
31378         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
31379         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
31380         (main): Set stdin to binary mode.
31381         * modules/yesno-tests (Depends-on): Add binary-io.
31382
31383 2008-04-27  Bruno Haible  <bruno@clisp.org>
31384
31385         Fix 'isfinite' on x86, x86_64, ia64 platforms.
31386         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
31387         argument that lie outside the IEEE 854 domain.
31388         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
31389         (gl_ISFINITE): Use it.
31390         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
31391
31392 2008-04-27  Bruno Haible  <bruno@clisp.org>
31393
31394         Allow local renaming in config.h.
31395         * lib/memrchr.c (memrchr): Don't undefine outside libc.
31396
31397 2008-04-27  Bruno Haible  <bruno@clisp.org>
31398
31399         * lib/memchr.c (__memchr): Change type of 'i'.
31400         * lib/memchr2.c (memchr2): Likewise.
31401
31402 2008-04-26  Eric Blake  <ebb9@byu.net>
31403         and Bruno Haible  <bruno@clisp.org>
31404
31405         Optimize and test memrchr.
31406         * modules/memrchr (Depends-on): Add intprops.
31407         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
31408         * modules/memrchr-tests: New file.
31409         * tests/test-memrchr.c: New file.
31410
31411 2008-04-26  Bruno Haible  <bruno@clisp.org>
31412
31413         Add tentative support for DragonFly BSD.
31414         * lib/stdio-impl.h: Add macros for DragonFly BSD.
31415         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
31416         fp.
31417         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
31418         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
31419         * lib/fpurge.c (fpurge): Likewise.
31420         * lib/freadable.c (freaadable): Likewise.
31421         * lib/freadahead.c (freadahead): Likewise.
31422         * lib/freading.c (freading): Likewise.
31423         * lib/freadptr.c (freadptr): Likewise.
31424         * lib/freadseek.c (freadptrinc): Likewise.
31425         * lib/fseeko.c (fseeko): Likewise.
31426         * lib/fseterr.c (fseterr): Likewise.
31427         * lib/fwritable.c (fwritable): Likewise.
31428         * lib/fwriting.c (fwriting): Likewise.
31429
31430 2008-04-26  Bruno Haible  <bruno@clisp.org>
31431
31432         * lib/stdio-impl.h: New file.
31433         * lib/fbufmode.c: Include stdio-impl.h.
31434         (fbufmode): Use fp_, remove redundant #defines.
31435         * lib/fflush.c: Include stdio-impl.h.
31436         (clear_ungetc_buffer): Remove redundant #defines.
31437         * lib/fpurge.c: Include stdio-impl.h.
31438         (fpurge): Remove redundant #defines.
31439         * lib/freadable.c: Include stdio-impl.h.
31440         (freadable): Remove redundant #defines.
31441         * lib/freadahead.c: Include stdio-impl.h.
31442         (freadahead): Remove redundant #defines.
31443         * lib/freading.c: Include stdio-impl.h.
31444         (freading): Remove redundant #defines.
31445         * lib/freadptr.c: Include stdio-impl.h.
31446         (freadptr): Remove redundant #defines.
31447         * lib/freadseek.c: Include stdio-impl.h.
31448         (freadptrinc): Remove redundant #defines.
31449         * lib/fseeko.c: Include stdio-impl.h.
31450         (rpl_fseeko): Remove redundant #defines.
31451         * lib/fseterr.c: Include stdio-impl.h.
31452         (fseterr): Remove redundant #defines.
31453         * lib/fwritable.c: Include stdio-impl.h.
31454         (fwritable: Remove redundant #defines.
31455         * lib/fwriting.c: Include stdio-impl.h.
31456         (fwriting): Remove redundant #defines.
31457         * modules/fbufmode (Files): Add lib/stdio-impl.h.
31458         * modules/fflush (Files): Likewise.
31459         * modules/fpurge (Files): Likewise.
31460         * modules/freadable (Files): Likewise.
31461         * modules/freadahead (Files): Likewise.
31462         * modules/freading (Files): Likewise.
31463         * modules/freadptr (Files): Likewise.
31464         * modules/freadseek (Files): Likewise.
31465         * modules/fseeko (Files): Likewise.
31466         * modules/fseterr (Files): Likewise.
31467         * modules/fwritable (Files): Likewise.
31468         * modules/fwriting (Files): Likewise.
31469
31470 2008-04-26  Bruno Haible  <bruno@clisp.org>
31471
31472         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
31473         restore_seek_optimization, update_fpos_cache): New functions, extracted
31474         from rpl_fflush.
31475         (rpl_fflush): Use them.
31476         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
31477         (gl_REPLACE_FFLUSH): Use it.
31478
31479 2008-04-26  Bruno Haible  <bruno@clisp.org>
31480
31481         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
31482         on Solaris.
31483         * tests/test-xstrtoimax.sh: Likewise.
31484         * tests/test-xstrtoumax.sh: Likewise.
31485         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
31486
31487 2008-04-26  Bruno Haible  <bruno@clisp.org>
31488
31489         * modules/memchr-tests: New file.
31490         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
31491
31492 2008-04-26  Eric Blake  <ebb9@byu.net>
31493             Bruno Haible  <bruno@clisp.org>
31494
31495         * lib/memchr.c: Include intprops.h.
31496         (__memchr): Optimize parallel detection of matching bytes. Rename local
31497         variables. Add explanatory comments.
31498
31499 2008-04-26  Bruno Haible  <bruno@clisp.org>
31500
31501         Fix module 'memchr', broken since 2000-10-28.
31502         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
31503
31504 2008-04-26  Bruno Haible  <bruno@clisp.org>
31505
31506         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
31507         comments.
31508
31509 2008-04-25  Eric Blake  <ebb9@byu.net>
31510
31511         Use native fstatat on cygwin 1.7.0.
31512         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
31513         first.
31514
31515 2008-04-23  Eric Blake  <ebb9@byu.net>
31516
31517         Improve memchr2 performance.
31518         * lib/memchr2.c (memchr2): Further optimize parallel detection of
31519         NUL bytes.
31520         * modules/memchr2 (Depends-on): Use intprops.h.
31521
31522 2008-04-23  Simon Josefsson  <simon@josefsson.org>
31523
31524         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
31525         an inline function instead of a CPP macro.  Patch by Ben Pfaff
31526         <blp@cs.stanford.edu>.
31527
31528 2008-04-23  Simon Josefsson  <simon@josefsson.org>
31529
31530         * lib/arpa_inet.in.h: New file.
31531
31532         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
31533         (Makefile.am): Sed in substitute header file.
31534
31535         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
31536         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
31537
31538         * modules/inet_ntop (configure.ac): Use
31539         gl_ARPA_INET_MODULE_INDICATOR.
31540
31541         * modules/inet_pton (configure.ac): Use
31542         gl_ARPA_INET_MODULE_INDICATOR.
31543
31544 2008-04-22  Jim Meyering  <meyering@redhat.com>
31545
31546         * modules/verify (License): Re-license as LGPLv2+.
31547
31548 2008-04-22  Simon Josefsson  <simon@josefsson.org>
31549
31550         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
31551         parameter to void* as per POSIX standard (MinGW uses char*).
31552
31553 2008-04-21  Bruno Haible  <bruno@clisp.org>
31554
31555         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
31556         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
31557         Define to replacements if REPLACE_ISWCNTRL is 1.
31558         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
31559         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
31560         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
31561         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
31562         what it fixes.
31563         * doc/posix-functions/iswalpha.texi: Likewise.
31564         * doc/posix-functions/iswblank.texi: Likewise.
31565         * doc/posix-functions/iswcntrl.texi: Likewise.
31566         * doc/posix-functions/iswdigit.texi: Likewise.
31567         * doc/posix-functions/iswgraph.texi: Likewise.
31568         * doc/posix-functions/iswlower.texi: Likewise.
31569         * doc/posix-functions/iswprint.texi: Likewise.
31570         * doc/posix-functions/iswpunct.texi: Likewise.
31571         * doc/posix-functions/iswspace.texi: Likewise.
31572         * doc/posix-functions/iswupper.texi: Likewise.
31573         * doc/posix-functions/iswxdigit.texi: Likewise.
31574         Reported by Alain Guibert.
31575
31576 2008-04-21  Bruno Haible  <bruno@clisp.org>
31577
31578         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
31579         Patch by Alain Guibert.
31580
31581 2008-04-21  Bruno Haible  <bruno@clisp.org>
31582
31583         Fix test failures on mingw.
31584         * tests/test-xstrtol.c (print_no_progname): New function.
31585         (main): Install it in error_print_progname hook.
31586         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
31587         * tests/test-xstrtoimax.sh: Likewise.
31588         * tests/test-xstrtoumax.sh: Likewise.
31589
31590 2008-04-21  Bruno Haible  <bruno@clisp.org>
31591
31592         Fix test failure on mingw.
31593         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
31594
31595 2008-04-21  Bruno Haible  <bruno@clisp.org>
31596
31597         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
31598         Actually assign a value.
31599
31600 2008-04-20  Bruno Haible  <bruno@clisp.org>
31601
31602         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
31603         take 2.
31604         * lib/canonicalize.c (canonicalize_file_name): Elide if the
31605         'canonicalize-lgpl' module is also used.
31606         * lib/canonicalize-lgpl.c: Undo last change.
31607         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
31608
31609 2008-04-20  Bruno Haible  <bruno@clisp.org>
31610
31611         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
31612         config.h. Provide _mkdir based fallback for mingw.
31613         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
31614         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
31615         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
31616         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
31617         rather than defining mkdir in config.h.
31618         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
31619         (gl_SYS_STAT_H_DEFAULTS): New macro.
31620         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
31621         HAVE_IO_H any more.
31622         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
31623         HAVE_DECL_MKDIR and HAVE_IO_H.
31624
31625 2008-04-20  Bruno Haible  <bruno@clisp.org>
31626
31627         * lib/isapipe.c: Port to native Windows platforms.
31628
31629 2008-04-20  Bruno Haible  <bruno@clisp.org>
31630
31631         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
31632
31633 2008-04-21  Eric Blake  <ebb9@byu.net>
31634
31635         Work around preprocessors that don't handle UINTMAX_MAX.
31636         * lib/memchr2.c (memchr2): Avoid embedded #if.
31637         Reported by Alain Guibert, fix suggested by Bruno Haible.
31638
31639 2008-04-21  Simon Josefsson  <simon@josefsson.org>
31640
31641         * doc/posix-functions/strftime.texi (strftime): Explain better
31642         Windows incompatibility.  Suggested by Micah Cowan
31643         <micah@cowan.name>.
31644
31645 2008-04-20  Bruno Haible  <bruno@clisp.org>
31646
31647         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
31648         unistr/u8-mblen.
31649
31650 2008-04-20  Bruno Haible  <bruno@clisp.org>
31651
31652         Fix test failure on platforms with non-GNU iconv.
31653         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
31654         (U_TO_U8): Use it, rather than u16_to_u8.
31655         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
31656         units at the end of the input string.
31657         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
31658
31659 2008-04-20  Bruno Haible  <bruno@clisp.org>
31660
31661         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
31662         when the resulting length is 0.
31663         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
31664
31665 2008-04-20  Bruno Haible  <bruno@clisp.org>
31666
31667         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
31668         works.
31669         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
31670
31671 2008-04-20  Bruno Haible  <bruno@clisp.org>
31672
31673         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
31674         * modules/tsearch-tests (configure.ac): Test for initstate function.
31675
31676 2008-04-20  Bruno Haible  <bruno@clisp.org>
31677
31678         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
31679         for nlink_t if missing.
31680         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
31681
31682 2008-04-19  Bruno Haible  <bruno@clisp.org>
31683
31684         Work around snprintf bug on Linux libc5.
31685         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
31686         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
31687         gl_SNPRINTF_SIZE1.
31688         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
31689         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
31690         that test failed.
31691         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
31692         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
31693         * modules/snprintf (Files): Add m4/printf.m4.
31694         * modules/vsnprintf (Files): Likewise.
31695         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
31696         * doc/posix-functions/vsnprintf.texi: Likewise.
31697
31698 2008-04-19  Bruno Haible  <bruno@clisp.org>
31699
31700         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
31701         from 0.0058 to less than 10^-7.
31702
31703 2008-04-19  Bruno Haible  <bruno@clisp.org>
31704
31705         Fix rounding when a precision is given.
31706         * lib/vasnprintf.c (is_borderline): New function.
31707         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
31708         9...9x.
31709         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
31710         %e, %g.
31711         * tests/test-vasprintf-posix.c (test_function): Likewise.
31712         * tests/test-snprintf-posix.h (test_function): Likewise.
31713         * tests/test-sprintf-posix.h (test_function): Likewise.
31714         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
31715         * tests/test-printf-posix.h (test_function): Likewise.
31716         * tests/test-printf-posix.output: Update.
31717         Reported by John Darrington <john@darrington.wattle.id.au> via
31718         Ben Pfaff <blp@cs.stanford.edu>.
31719
31720 2008-04-18  Simon Josefsson  <simon@josefsson.org>
31721
31722         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
31723         Suggested by Bruno Haible <bruno@clisp.org>.
31724
31725 2008-04-17  Bruno Haible  <bruno@clisp.org>
31726
31727         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
31728         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
31729         implementation.
31730         Patch by Bruce Merry <bmerry@gmail.com>.
31731
31732 2008-04-17  Simon Josefsson  <simon@josefsson.org>
31733
31734         * doc/posix-functions/strftime.texi (strftime): Mention that %e
31735         doesn't work under Windows.
31736
31737 2008-04-16  Bruno Haible  <bruno@clisp.org>
31738
31739         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
31740         New macros.
31741         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
31742         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
31743         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
31744         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
31745         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
31746         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
31747         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
31748         macros.
31749         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
31750         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
31751         Northern Sotho, Uighur.
31752
31753 2008-04-16  Bruno Haible  <bruno@clisp.org>
31754
31755         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
31756         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
31757         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
31758         Reported by Daniel Bergström <daniel@octocode.com>.
31759
31760 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
31761             Bruno Haible  <bruno@clisp.org>
31762
31763         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
31764         function.
31765         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
31766         New functions, mostly extracted from gl_locale_name_default.
31767         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
31768
31769 2008-04-16  Eric Blake  <ebb9@byu.net>
31770
31771         Adjust strtod detection to catch glibc 2.7 bug.
31772         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
31773         Reported by John Gatewood Ham.
31774
31775 2008-04-16  Bruno Haible  <bruno@clisp.org>
31776
31777         Add tentative support for Linux libc5.
31778         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
31779         * lib/fpurge.c (fpurge): Likewise.
31780         * lib/freadable.c (freadable): Likewise.
31781         * lib/freadahead.c (freadahead): Likewise.
31782         * lib/freading.c (freading): Likewise.
31783         * lib/freadptr.c (freadptr): Likewise.
31784         * lib/freadseek.c (freadptrinc): Likewise.
31785         * lib/fseeko.c (rpl_fseeko): Likewise.
31786         * lib/fseterr.c (fseterr): Likewise.
31787         * lib/fwritable.c (fwritable): Likewise.
31788         * lib/fwriting.c (fwriting): Likewise.
31789         Reported by Alain Guibert <alguibert+bts@free.fr>.
31790
31791 2008-04-15  Bruno Haible  <bruno@clisp.org>
31792
31793         * modules/mathl (configure.ac): Define module indicator.
31794
31795 2008-04-15  Bruno Haible  <bruno@clisp.org>
31796
31797         * lib/logl.c (logl): Remove unused variables.
31798
31799 2008-04-15  Bruno Haible  <bruno@clisp.org>
31800
31801         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
31802         fails.
31803
31804 2008-04-15  Bruno Haible  <bruno@clisp.org>
31805
31806         * lib/trim.c (trim2): Fix argument of isspace() macro.
31807
31808 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
31809
31810         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
31811         to 0.
31812         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
31813
31814 2008-04-14  Bruno Haible  <bruno@clisp.org>
31815
31816         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
31817         AC_LANG_PROGRAM argument.
31818         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
31819         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
31820         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
31821         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
31822         * m4/math_h.m4 (gl_MATH_H): Likewise.
31823         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
31824         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
31825         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
31826         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
31827         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
31828         * m4/regex.m4 (gl_REGEX): Likewise.
31829         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
31830         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
31831         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
31832         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
31833         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
31834         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
31835         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
31836         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
31837
31838 2008-04-14  Jim Meyering  <meyering@redhat.com>
31839
31840         test-strtod: fix typos: s/abs/fabs/
31841         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
31842
31843 2008-04-13  Bruno Haible  <bruno@clisp.org>
31844
31845         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
31846         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
31847         module is also used and while not building the reloc-wrapper.
31848
31849 2008-04-13  Bruno Haible  <bruno@clisp.org>
31850
31851         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
31852
31853 2008-04-13  Bruno Haible  <bruno@clisp.org>
31854
31855         Fix AIX compilation failure introduced on 2008-04-02.
31856         * tests/test-frexp.c (exp): Undefine before redefining.
31857         * tests/test-frexpl.c (exp): Likewise.
31858
31859 2008-04-13  Bruno Haible  <bruno@clisp.org>
31860
31861         Work around a HP-UX stdio bug.
31862         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
31863         * tests/test-ftello.c (main): Likewise.
31864         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
31865         * doc/posix-functions/ftello.texi: Likewise.
31866
31867 2008-04-13  Bruno Haible  <bruno@clisp.org>
31868
31869         Make test-signbit pass on HP-UX/hppa.
31870         * tests/test-signbit.c (minus_zerol): New variable.
31871         (test_signbitl): Use it.
31872
31873 2008-04-13  Bruno Haible  <bruno@clisp.org>
31874
31875         Make truncl work on OSF/1 4.0.
31876         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
31877         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
31878         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
31879         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
31880         HAVE_DECL_TRUNCL.
31881         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
31882         HAVE_DECL_TRUNCL.
31883         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
31884
31885 2008-04-13  Bruno Haible  <bruno@clisp.org>
31886
31887         * lib/unictype.h: Remove trailing comma from enumeration definitions.
31888
31889 2008-04-13  Bruno Haible  <bruno@clisp.org>
31890
31891         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
31892         expression, so as to avoid HP-UX 11 cc compiler bug.
31893
31894 2008-04-13  Bruno Haible  <bruno@clisp.org>
31895
31896         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
31897
31898 2008-04-13  Bruno Haible  <bruno@clisp.org>
31899
31900         * lib/git-merge-changelog.c: Remove empty declaration outside of
31901         functions.
31902
31903 2008-04-13  Bruno Haible  <bruno@clisp.org>
31904
31905         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
31906
31907 2008-04-13  Bruno Haible  <bruno@clisp.org>
31908
31909         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
31910         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
31911         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
31912         also if it exists but lacks definitions of the SHUT_* macros.
31913         * modules/sys_socket (Description): Update.
31914         Reported by Elbert Pol <e.pol@chello.nl>.
31915
31916 2008-04-13  Bruno Haible  <bruno@clisp.org>
31917
31918         * lib/localcharset.c (OS2): Don't redefine if already defined.
31919         Reported by Elbert Pol <e.pol@chello.nl>.
31920
31921 2008-04-13  Bruno Haible  <bruno@clisp.org>
31922
31923         * lib/binary-io.h [__EMX__]: Include <io.h>.
31924         Reported by Elbert Pol <e.pol@chello.nl>.
31925
31926 2008-04-12  Bruno Haible  <bruno@clisp.org>
31927
31928         * lib/fpucw.h: Enable the definitions also for x86_64.
31929         Needed for NetBSD/x86_64.
31930         Reported by Thomas Klausner <tk@giga.or.at>.
31931
31932 2008-04-12  Bruno Haible  <bruno@clisp.org>
31933
31934         * tests/test-strtod.c: Include isnand.h.
31935         (main): Use isnand instead of isnan.
31936         Reported by Jim Meyering.
31937
31938 2008-04-12  Bruno Haible  <bruno@clisp.org>
31939
31940         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
31941         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
31942
31943 2008-04-12  Jim Meyering  <meyering@redhat.com>
31944
31945         * m4/math_h.m4 (gl_MATH_H): Fix typos.
31946
31947 2008-04-12  Bruno Haible  <bruno@clisp.org>
31948
31949         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
31950         Reported by Elbert Pol <e.pol@chello.nl>.
31951
31952 2008-04-12  Eric Blake  <ebb9@byu.net>
31953
31954         Work around Solaris 10 math.h bug.
31955         * m4/math_h.m4 (gl_MATH_H): Check for bug.
31956         (gl_MATH_H_DEFAULTS): Set up default.
31957         * modules/math (Makefile.am): Replace new indicators.
31958         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
31959         * tests/test-math.c (main): Test this.
31960         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
31961         * doc/posix-headers/math.texi (math.h): Mention bug.
31962         Reported by Nelson H. F. Beebe and Jim Meyering.
31963
31964 2008-04-11  Bruno Haible  <bruno@clisp.org>
31965
31966         Adapt to future versions of Apple GCC.
31967         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
31968         Reported by Peter O'Gorman <peter@pogma.com>.
31969
31970 2008-04-11  Bruno Haible  <bruno@clisp.org>
31971
31972         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
31973
31974 2008-04-11  Bruno Haible  <bruno@clisp.org>
31975
31976         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
31977
31978         * modules/getaddrinfo-tests (Makefile.am): Define
31979         test_getaddrinfo_LDADD.
31980
31981 2008-04-11  Bruno Haible  <bruno@clisp.org>
31982
31983         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
31984         (init): Fix syntax error.
31985         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
31986         is declared.
31987
31988 2008-04-11  Bruno Haible  <bruno@clisp.org>
31989
31990         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
31991         * modules/glob (Depends-on): Add stdbool.
31992
31993 2008-04-11  Bruno Haible  <bruno@clisp.org>
31994
31995         * lib/trim.c: Include <string.h>.
31996
31997 2008-04-11  Eric Blake  <ebb9@byu.net>
31998
31999         Avoid compile failure on OS/2.
32000         * lib/regex_internal.h (internal_function): Disable optimization
32001         on OS/2 (__EMX__), where it caused compiler error.
32002         Reported by Elbert Pol.
32003
32004 2008-04-11  Bruno Haible  <bruno@clisp.org>
32005
32006         Flush the standard error stream before aborting. Needed on mingw.
32007         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
32008         * tests/test-array_list.c (ASSERT): Likewise.
32009         * tests/test-array_oset.c (ASSERT): Likewise.
32010         * tests/test-avltree_list.c (ASSERT): Likewise.
32011         * tests/test-avltree_oset.c (ASSERT): Likewise.
32012         * tests/test-avltreehash_list.c (ASSERT): Likewise.
32013         * tests/test-binary-io.c (ASSERT): Likewise.
32014         * tests/test-byteswap.c (ASSERT): Likewise.
32015         * tests/test-c-ctype.c (ASSERT): Likewise.
32016         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
32017         * tests/test-c-strcasestr.c (ASSERT): Likewise.
32018         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
32019         * tests/test-c-strstr.c (ASSERT): Likewise.
32020         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
32021         * tests/test-canonicalize.c (ASSERT): Likewise.
32022         * tests/test-carray_list.c (ASSERT): Likewise.
32023         * tests/test-ceilf1.c (ASSERT): Likewise.
32024         * tests/test-ceilf2.c (ASSERT): Likewise.
32025         * tests/test-ceill.c (ASSERT): Likewise.
32026         * tests/test-count-one-bits.c (ASSERT): Likewise.
32027         * tests/test-fbufmode.c (ASSERT): Likewise.
32028         * tests/test-fflush2.c (ASSERT): Likewise.
32029         * tests/test-floorf1.c (ASSERT): Likewise.
32030         * tests/test-floorf2.c (ASSERT): Likewise.
32031         * tests/test-floorl.c (ASSERT): Likewise.
32032         * tests/test-fopen.c (ASSERT): Likewise.
32033         * tests/test-fpending.c (ASSERT): Likewise.
32034         * tests/test-fprintf-posix.c (ASSERT): Likewise.
32035         * tests/test-fpurge.c (ASSERT): Likewise.
32036         * tests/test-freadable.c (ASSERT): Likewise.
32037         * tests/test-freadahead.c (ASSERT): Likewise.
32038         * tests/test-freading.c (ASSERT): Likewise.
32039         * tests/test-freadptr.c (ASSERT): Likewise.
32040         * tests/test-freadptr2.c (ASSERT): Likewise.
32041         * tests/test-freadseek.c (ASSERT): Likewise.
32042         * tests/test-freopen.c (ASSERT): Likewise.
32043         * tests/test-frexp.c (ASSERT): Likewise.
32044         * tests/test-frexpl.c (ASSERT): Likewise.
32045         * tests/test-fseek.c (ASSERT): Likewise.
32046         * tests/test-fseeko.c (ASSERT): Likewise.
32047         * tests/test-fstrcmp.c (ASSERT): Likewise.
32048         * tests/test-ftell.c (ASSERT): Likewise.
32049         * tests/test-ftello.c (ASSERT): Likewise.
32050         * tests/test-func.c (ASSERT): Likewise.
32051         * tests/test-fwritable.c (ASSERT): Likewise.
32052         * tests/test-fwriting.c (ASSERT): Likewise.
32053         * tests/test-getdelim.c (ASSERT): Likewise.
32054         * tests/test-getline.c (ASSERT): Likewise.
32055         * tests/test-i-ring.c (ASSERT): Likewise.
32056         * tests/test-iconv-utf.c (ASSERT): Likewise.
32057         * tests/test-iconv.c (ASSERT): Likewise.
32058         * tests/test-isfinite.c (ASSERT): Likewise.
32059         * tests/test-isnand.c (ASSERT): Likewise.
32060         * tests/test-isnanf.c (ASSERT): Likewise.
32061         * tests/test-isnanl.h (ASSERT): Likewise.
32062         * tests/test-ldexpl.c (ASSERT): Likewise.
32063         * tests/test-linked_list.c (ASSERT): Likewise.
32064         * tests/test-linkedhash_list.c (ASSERT): Likewise.
32065         * tests/test-localename.c (ASSERT): Likewise.
32066         * tests/test-lseek.c (ASSERT): Likewise.
32067         * tests/test-mbscasecmp.c (ASSERT): Likewise.
32068         * tests/test-mbscasestr1.c (ASSERT): Likewise.
32069         * tests/test-mbscasestr2.c (ASSERT): Likewise.
32070         * tests/test-mbscasestr3.c (ASSERT): Likewise.
32071         * tests/test-mbscasestr4.c (ASSERT): Likewise.
32072         * tests/test-mbschr.c (ASSERT): Likewise.
32073         * tests/test-mbscspn.c (ASSERT): Likewise.
32074         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
32075         * tests/test-mbspbrk.c (ASSERT): Likewise.
32076         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
32077         * tests/test-mbsrchr.c (ASSERT): Likewise.
32078         * tests/test-mbsspn.c (ASSERT): Likewise.
32079         * tests/test-mbsstr1.c (ASSERT): Likewise.
32080         * tests/test-mbsstr2.c (ASSERT): Likewise.
32081         * tests/test-mbsstr3.c (ASSERT): Likewise.
32082         * tests/test-memchr2.c (ASSERT): Likewise.
32083         * tests/test-memmem.c (ASSERT): Likewise.
32084         * tests/test-open.c (ASSERT): Likewise.
32085         * tests/test-printf-frexp.c (ASSERT): Likewise.
32086         * tests/test-printf-frexpl.c (ASSERT): Likewise.
32087         * tests/test-printf-posix.c (ASSERT): Likewise.
32088         * tests/test-quotearg.c (ASSERT): Likewise.
32089         * tests/test-rbtree_list.c (ASSERT): Likewise.
32090         * tests/test-rbtree_oset.c (ASSERT): Likewise.
32091         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
32092         * tests/test-round1.c (ASSERT): Likewise.
32093         * tests/test-roundf1.c (ASSERT): Likewise.
32094         * tests/test-roundl.c (ASSERT): Likewise.
32095         * tests/test-signbit.c (ASSERT): Likewise.
32096         * tests/test-sleep.c (ASSERT): Likewise.
32097         * tests/test-snprintf-posix.c (ASSERT): Likewise.
32098         * tests/test-snprintf.c (ASSERT): Likewise.
32099         * tests/test-sprintf-posix.c (ASSERT): Likewise.
32100         * tests/test-stat-time.c (ASSERT): Likewise.
32101         * tests/test-strcasestr.c (ASSERT): Likewise.
32102         * tests/test-strerror.c (ASSERT): Likewise.
32103         * tests/test-striconv.c (ASSERT): Likewise.
32104         * tests/test-striconveh.c (ASSERT): Likewise.
32105         * tests/test-striconveha.c (ASSERT): Likewise.
32106         * tests/test-strsignal.c (ASSERT): Likewise.
32107         * tests/test-strstr.c (ASSERT): Likewise.
32108         * tests/test-strtod.c (ASSERT): Likewise.
32109         * tests/test-trunc1.c (ASSERT): Likewise.
32110         * tests/test-trunc2.c (ASSERT): Likewise.
32111         * tests/test-truncf1.c (ASSERT): Likewise.
32112         * tests/test-truncf2.c (ASSERT): Likewise.
32113         * tests/test-truncl.c (ASSERT): Likewise.
32114         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
32115         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
32116         * tests/test-vasnprintf.c (ASSERT): Likewise.
32117         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
32118         * tests/test-vasprintf.c (ASSERT): Likewise.
32119         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
32120         * tests/test-vprintf-posix.c (ASSERT): Likewise.
32121         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
32122         * tests/test-vsnprintf.c (ASSERT): Likewise.
32123         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
32124         * tests/test-wcwidth.c (ASSERT): Likewise.
32125         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
32126         * tests/test-xprintf-posix.c (ASSERT): Likewise.
32127         * tests/test-xvasprintf.c (ASSERT): Likewise.
32128         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
32129         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
32130         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
32131         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
32132         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
32133         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
32134         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
32135         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
32136         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
32137         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
32138         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
32139         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
32140         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
32141         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
32142         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
32143         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
32144         * tests/unictype/test-block_list.c (ASSERT): Likewise.
32145         * tests/unictype/test-block_of.c (ASSERT): Likewise.
32146         * tests/unictype/test-block_test.c (ASSERT): Likewise.
32147         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
32148         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
32149         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
32150         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
32151         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
32152         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
32153         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
32154         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
32155         * tests/unictype/test-combining.c (ASSERT): Likewise.
32156         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
32157         * tests/unictype/test-digit.c (ASSERT): Likewise.
32158         * tests/unictype/test-mirror.c (ASSERT): Likewise.
32159         * tests/unictype/test-numeric.c (ASSERT): Likewise.
32160         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
32161         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
32162         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
32163         * tests/unictype/test-scripts.c (ASSERT): Likewise.
32164         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
32165         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
32166         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
32167         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
32168         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
32169         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
32170         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
32171         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
32172         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
32173         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
32174         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
32175         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
32176         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
32177         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
32178         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
32179         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
32180         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
32181         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
32182         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
32183         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
32184         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
32185         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
32186         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
32187         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
32188         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
32189         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
32190         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
32191         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
32192         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
32193         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
32194         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
32195         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
32196         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
32197         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
32198         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
32199         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
32200         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
32201         Reported by Eric Blake.
32202
32203 2008-04-11  Bruno Haible  <bruno@clisp.org>
32204
32205         * lib/wchar.in.h: Tweak comment.
32206
32207 2008-04-11  Bruno Haible  <bruno@clisp.org>
32208
32209         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
32210         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
32211         gl_COMMON.
32212         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
32213
32214 2008-04-11  Bruno Haible  <bruno@clisp.org>
32215
32216         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
32217
32218 2008-04-11  Simon Josefsson  <simon@josefsson.org>
32219
32220         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
32221         of attempting to use non-existing /dev/*random.  Based on patch
32222         from Adam Strzelecki <ono@java.pl> in
32223         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
32224
32225 2008-04-08  Bruno Haible  <bruno@clisp.org>
32226
32227         Add tentative support for emx+gcc.
32228         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
32229         * lib/fpurge.c (fpurge): Likewise.
32230         * lib/freadable.c (freadable): Likewise.
32231         * lib/freadahead.c (freadahead): Likewise.
32232         * lib/freading.c (freading): Likewise.
32233         * lib/freadptr.c (freadptr): Likewise.
32234         * lib/freadseek.c (freadptrinc): Likewise.
32235         * lib/fseeko.c (rpl_fseeko): Likewise.
32236         * lib/fseterr.c (fseterr): Likewise.
32237         * lib/fwritable.c (fwritable): Likewise.
32238         * lib/fwriting.c (fwriting): Likewise.
32239         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
32240
32241 2008-04-09  Eric Blake  <ebb9@byu.net>
32242
32243         Avoid some autoconf warnings.
32244         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
32245         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
32246         * m4/afs.m4 (gl_AFS): Likewise.
32247         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
32248         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
32249         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
32250         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
32251         (gl_INTEGER_TYPE_SUFFIX): Likewise.
32252         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
32253         (AC_CHECK_DECLS_ONCE): Likewise.
32254         Rename file...
32255         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
32256         gnulib-tool requires autoconf 2.59 or better.
32257         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
32258
32259 2008-04-08  Eric Blake  <ebb9@byu.net>
32260
32261         Use 'git describe --match' if present (added in git 1.5.5).
32262         * build-aux/git-version-gen: Limit result to tags that match 'v*'
32263         if possible.
32264
32265 2008-04-08  Bruno Haible  <bruno@clisp.org>
32266
32267         Add tentative support for OpenServer.
32268         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
32269         _ptr, _cnt.
32270         * lib/fpurge.c (fpurge): Likewise.
32271         * lib/freadable.c (freadable): Likewise.
32272         * lib/freadahead.c (freadahead): Likewise.
32273         * lib/freading.c (freading): Likewise.
32274         * lib/freadptr.c (freadptr): Likewise.
32275         * lib/freadseek.c (freadptrinc): Likewise.
32276         * lib/fseeko.c (rpl_fseeko): Likewise.
32277         * lib/fseterr.c (fseterr): Likewise.
32278         * lib/fwritable.c (fwritable): Likewise.
32279         * lib/fwriting.c (fwriting): Likewise.
32280         Reported by Roger Cornelius <rac@tenzing.org> and
32281         Brian K. White <brian@aljex.com>.
32282
32283 2008-04-06  Jim Meyering  <meyering@redhat.com>
32284
32285         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
32286
32287 2008-04-06  Bruno Haible  <bruno@clisp.org>
32288
32289         Avoid possible error with non-ASCII bytes in UTF-8 locales.
32290         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
32291         * tests/test-printf-posix.sh: Likewise.
32292         * tests/test-vfprintf-posix.sh: Likewise.
32293         * tests/test-vprintf-posix.sh: Likewise.
32294         * tests/test-xprintf-posix.sh: Likewise.
32295
32296 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32297
32298         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
32299         hide error from 'ls', needed on OS/2.
32300         Report by Elbert Pol <elbert.pol@gmail.com>.
32301
32302 2008-04-04  Eric Blake  <ebb9@byu.net>
32303
32304         Make test-fseeko.c failures meaningful.
32305         * tests/test-fseeko.c: Print line number on failure.
32306         * tests/test-fseek.c: Likewise.
32307         Reported by Nelson H. F. Beebe.
32308
32309         Improve strtod bug detection check.
32310         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
32311         required for Solaris 10.
32312         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
32313
32314 2008-04-04  Bruno Haible  <bruno@clisp.org>
32315
32316         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
32317         by m4/setenv.m4.
32318
32319 2008-04-03  Eric Blake  <ebb9@byu.net>
32320
32321         Ensure sane .version contents.
32322         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
32323         version string.
32324         * build-aux/git-version-gen: Improve documentation.
32325
32326         Make GNU make output nicer.
32327         * top/GNUmakefile [!_have-Makefile]: Add dependency on
32328         MAKECMDGOALS to enforce message for all command line targets.  Set
32329         srcdir for use in maint.mk.
32330
32331         Another maintainer tweak.
32332         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
32333         a target that regenerates version.
32334
32335 2008-04-03  Jim Meyering  <meyering@redhat.com>
32336
32337         vc-list-files: don't cause coreutils "make po-check" failure
32338         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
32339
32340 2008-04-03  Eric Blake  <ebb9@byu.net>
32341
32342         Allow VPATH usage of vc-list-files.
32343         * build-aux/vc-list-files (scriptversion): Add timestamp.
32344         (options): Add --help, --version, -C.
32345         (CVS): Support installed cvsu.
32346
32347 2008-04-02  Bruno Haible  <bruno@clisp.org>
32348
32349         Avoid some "statement with no effect" warnings from gcc.
32350         * tests/test-wctype.c (main): Explicitly ignore unused values.
32351         Reported by Jim Meyering.
32352
32353 2008-04-02  Jim Meyering  <meyering@redhat.com>
32354
32355         Avoid some warnings from "gcc -Wshadow".
32356         * tests/test-frexp.c (exp): Define to a different identifier.
32357         * tests/test-frexpl.c (exp): Likewise.
32358
32359 2008-04-03  Jim Meyering  <meyering@redhat.com>
32360
32361         bootstrap: remove dangling *.[ch] symlinks from lib
32362         * build-aux/bootstrap [dangling symlink removal]: Move find's
32363         -depth option to precede all others, to avoid a warning.
32364         Remove *.[ch] files too, and from "$source_base" (usually lib/).
32365
32366 2008-04-02  Bruno Haible  <bruno@clisp.org>
32367
32368         Avoid some warnings from "gcc -Wshadow".
32369         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
32370         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
32371         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
32372         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
32373         Reported by Jim Meyering.
32374
32375 2008-04-01  Bruno Haible  <bruno@clisp.org>
32376
32377         Fix test to work on IRIX 6.5 with cc.
32378         * tests/test-math.c (numeric_equal): New function.
32379         (main): Use it.
32380
32381 2008-04-01  Bruno Haible  <bruno@clisp.org>
32382
32383         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
32384
32385 2008-04-01  Bruno Haible  <bruno@clisp.org>
32386
32387         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
32388         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
32389         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
32390         (Depends-on): Remove math.
32391
32392         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
32393         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
32394         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
32395         (Depends-on): Remove math.
32396
32397         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
32398         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
32399         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
32400         (Depends-on): Remove math.
32401         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
32402         (Depends-on): Remove math.
32403
32404         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
32405         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
32406         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
32407         (Depends-on): Remove math.
32408         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
32409         (Depends-on): Remove math.
32410
32411         * tests/test-round1.c: Include nan.h.
32412         (main): Use NaNd instead of NAN.
32413         * modules/round-tests (Files): Add tests/nan.h.
32414
32415         * tests/test-trunc1.c: Include nan.h.
32416         (main): Use NaNd instead of NAN.
32417         * modules/trunc-tests (Files): Add tests/nan.h.
32418
32419         * tests/test-roundf1.c: Include nan.h.
32420         (main): Use NaNf instead of NAN.
32421         * modules/roundf-tests (Files): Add tests/nan.h.
32422
32423         * tests/test-truncf1.c: Include nan.h.
32424         (main): Use NaNf instead of NAN.
32425         * modules/truncf-tests (Files): Add tests/nan.h.
32426
32427         * tests/test-ceilf1.c: Include nan.h.
32428         (main): Use NaNf instead of NAN.
32429         * modules/ceilf-tests (Files): Add tests/nan.h.
32430
32431         * tests/test-floorf1.c: Include nan.h.
32432         (main): Use NaNf instead of NAN.
32433         * modules/floorf-tests (Files): Add tests/nan.h.
32434
32435         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
32436         (main): Use NaNf instead of NAN.
32437         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
32438
32439         * tests/test-isnand.c: Include nan.h instead of <math.h>.
32440         (main): Use NaNd instead of NAN.
32441         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
32442
32443         * tests/test-frexp.c: Include nan.h.
32444         (main): Use NaNd instead of NAN.
32445         * modules/frexp-tests (Files): Add tests/nan.h.
32446
32447         * lib/isnan.c: Don't include <math.h>.
32448         (FUNC): Don't use NAN macro.
32449         * modules/isnand-nolibm (Depends-on): Remove math.
32450         * modules/isnanf-nolibm (Depends-on): Remove math.
32451         * modules/isnanl (Depends-on): Remove math.
32452         * modules/isnanl-nolibm (Depends-on): Remove math.
32453
32454         * tests/nan.h: New file.
32455
32456 2008-04-01  Eric Blake  <ebb9@byu.net>
32457
32458         Fix typos.
32459         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
32460         values to be the right type.
32461
32462         For now, cater to gnulib strtod inaccuracies.
32463         * tests/test-strtod.c (main): Allow 1-ulp error on expected
32464         fractional results.  While not as nice from a QoI perspective, it
32465         is a quicker patch than correctly implementing decimal to binary
32466         rounding.
32467
32468 2008-03-31  Eric Blake  <ebb9@byu.net>
32469
32470         Guarantee a definition of NAN.
32471         * lib/math.in.h (NAN): Define if missing.
32472         * tests/test-math.c (main): Test it.
32473         * doc/posix-headers/math.texi (math.h): Document this.
32474         * lib/isnan.c (rpl_isnand): Use it.
32475         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
32476         * tests/test-floorf1.c (NaN): Likewise.
32477         * tests/test-frexp.c (NaN): Likewise.
32478         * tests/test-isnand.c (NaN): Likewise.
32479         * tests/test-isnanf.c (NaN): Likewise.
32480         * tests/test-round1.c (NaN): Likewise.
32481         * tests/test-roundf1.c (NaN): Likewise.
32482         * tests/test-snprintf-posix.h (NaN): Likewise.
32483         * tests/test-sprintf-posix.h (NaN): Likewise.
32484         * tests/test-trunc1.c (NaN): Likewise.
32485         * tests/test-truncf1.c (NaN): Likewise.
32486         * tests/test-vasnprintf-posix.c (NaN): Likewise.
32487         * tests/test-vasprintf-posix.c (NaN): Likewise.
32488         * modules/isnand-nolibm (Depends-on): Add math.
32489         * modules/isnanf-nolibm (Depends-on): Likewise.
32490         * modules/isnanl (Depends-on): Likewise.
32491         * modules/isnanl-nolibm (Depends-on): Likewise.
32492         * modules/snprintf-posix-tests (Depends-on): Likewise.
32493         * modules/sprintf-posix-tests (Depends-on): Likewise.
32494         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
32495         * modules/vsprintf-posix-tests (Depends-on): Likewise.
32496         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
32497         * modules/vasprintf-posix-tests (Depends-on): Likewise.
32498
32499 2008-03-31  Bruno Haible  <bruno@clisp.org>
32500
32501         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
32502         * doc/posix-functions/strtod.texi: Likewise.
32503
32504 2008-03-31  Bruno Haible  <bruno@clisp.org>
32505
32506         * tests/test-strtod.c (main): Don't use C99 syntax.
32507
32508 2008-03-31  Bruno Haible  <bruno@clisp.org>
32509
32510         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
32511         Reported by Eric Blake.
32512
32513 2008-03-31  Jim Meyering  <meyering@redhat.com>
32514
32515         Don't compare actual signbit return values.
32516         * tests/test-strtod.c (main): Rather, compare only their
32517         zero/non-zero nature.
32518
32519 2008-03-31  Eric Blake  <ebb9@byu.net>
32520
32521         More strtod documentation.
32522         * doc/posix-functions/strtod.texi (strtod): Interpret more test
32523         failures as distinct bugs.
32524
32525 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
32526
32527         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
32528         Problem reported by Erik Benada in
32529         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
32530
32531 2008-03-30  Bruno Haible  <bruno@clisp.org>
32532
32533         * tests/test-strtod.c: Add comments about which assertion fails on which
32534         platform.
32535         * doc/posix-functions/strtod.texi: Add info about many more platforms.
32536
32537 2008-03-30  Eric Blake  <ebb9@byu.net>
32538
32539         Test signbit behavior on zeros.
32540         * tests/test-signbit.c (test_signbitf): Add tests for zero.
32541         (test_signbitd, test_signbitl): Likewise.
32542
32543         More strtod touchups.
32544         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
32545         sign of negative underflow, for now.  Use .5, not .1.
32546         * doc/posix-functions/strtod.texi (strtod): Mention these
32547         limitations.
32548         Reported by Jim Meyering.
32549
32550 2008-03-30  Bruno Haible  <bruno@clisp.org>
32551
32552         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
32553         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
32554
32555 2008-03-30  Bruno Haible  <bruno@clisp.org>
32556
32557         Avoid failure when attempting to return empty iconv results on some
32558         platforms.
32559         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
32560         allocation, don't report ENOMEM when the resulting string is empty.
32561
32562 2008-03-30  Bruno Haible  <bruno@clisp.org>
32563
32564         Fix buffer overrun.
32565         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
32566         Don't consider the width for tmp_length. Check count against tmp_length
32567         before doing the padding. Ensure enough allocation during padding.
32568
32569 2008-03-30  Eric Blake  <ebb9@byu.net>
32570
32571         strtod touchups.
32572         * lib/strtod.c (strtod): Avoid compiler warnings.
32573         Reported by Jim Meyering.
32574
32575 2008-03-30  Bruno Haible  <bruno@clisp.org>
32576
32577         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
32578         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
32579         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
32580         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
32581         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
32582         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
32583         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
32584         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
32585
32586         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
32587         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
32588         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
32589         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
32590         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
32591         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
32592         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
32593         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
32594
32595         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
32596         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
32597         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
32598         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
32599         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
32600         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
32601         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
32602         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
32603
32604         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
32605         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
32606
32607         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
32608         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
32609
32610         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
32611         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
32612
32613         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
32614         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
32615         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
32616
32617         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
32618         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
32619         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
32620
32621         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
32622         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
32623         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
32624
32625         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
32626         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
32627         * modules/vasprintf (Depends-on): Add EOVERFLOW.
32628
32629         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
32630         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
32631         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
32632         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
32633         (Depends-on): Add EOVERFLOW.
32634         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
32635         (Depends-on): Add EOVERFLOW.
32636         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
32637         (Depends-on): Add EOVERFLOW.
32638         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
32639         (Depends-on): Add EOVERFLOW.
32640         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
32641         (Depends-on): Add EOVERFLOW.
32642         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
32643         (Depends-on): Add EOVERFLOW.
32644         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
32645         (Depends-on): Add EOVERFLOW.
32646         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
32647         (Depends-on): Add EOVERFLOW.
32648
32649         * lib/sprintf.c (EOVERFLOW): Remove fallback.
32650         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
32651         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
32652
32653         * lib/snprintf.c (EOVERFLOW): Remove fallback.
32654         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
32655         * modules/snprintf (Depends-on): Add EOVERFLOW.
32656
32657         * lib/poll.c (EOVERFLOW): Remove fallback.
32658         * modules/poll (Depends-on): Add EOVERFLOW.
32659
32660         * lib/getugroups.c (EOVERFLOW): Remove fallback.
32661         * modules/getugroups (Depends-on): Add EOVERFLOW.
32662
32663         * lib/getdelim.c (EOVERFLOW): Remove fallback.
32664         * modules/getdelim (Depends-on): Add EOVERFLOW.
32665
32666         * lib/ftell.c (EOVERFLOW): Remove fallback.
32667         * modules/ftell (Depends-on): Add EOVERFLOW.
32668
32669         * lib/fprintf.c (EOVERFLOW): Remove fallback.
32670         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
32671         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
32672
32673         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
32674
32675         * modules/EOVERFLOW-tests: New file.
32676         * tests/test-EOVERFLOW.c: New file.
32677
32678         * modules/EOVERFLOW: New file.
32679         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
32680
32681 2008-03-30  Bruno Haible  <bruno@clisp.org>
32682
32683         Fix bug introduced on 2007-06-10.
32684         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
32685         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
32686
32687 2008-03-30  Bruno Haible  <bruno@clisp.org>
32688
32689         Improve freadseek's efficiency after ungetc.
32690         * lib/freadseek.c: Include freadahead.h.
32691         (freadptrinc): New function, extracted from freadseek.
32692         (freadseek): Use it in a loop. Use freadahead to determine the number
32693         of loop iterations.
32694         * modules/freadseek (Depends-on): Add freadahead.
32695         (configure.ac): Require AC_C_INLINE.
32696
32697 2008-03-30  Bruno Haible  <bruno@clisp.org>
32698
32699         * lib/freadseek.c (freadseek): Don't ignore the return value of
32700         freadptr.
32701
32702 2008-03-29  Eric Blake  <ebb9@byu.net>
32703
32704         Add hex float support.
32705         * modules/strtod (Depends-on): Add c-ctype.
32706         (Link): Mention POW_LIB.
32707         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
32708         whitespace between 'e' and exponent.
32709         * tests/test-strtod.c (main): Enable hex float tests.
32710         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
32711         now provides.
32712
32713         Document various strtod bugs, with some fixes.
32714         * doc/posix-functions/strtod.texi (strtod): Document bugs with
32715         "-0x", "inf", "nan", and hex constants.
32716         * doc/posix-functions/atof.texi (atof): Likewise.
32717         * modules/stdlib (Makefile.am): Support strtod.
32718         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
32719         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
32720         detect additional strtod bugs.
32721         * lib/stdlib.in.h (rpl_strtod): Add declarations.
32722         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
32723         bool where appropriate.  Parse 'inf' and 'nan'.
32724         * tests/test-strtod.c: New file.
32725         * modules/strtod (Depends-on): Add stdbool, stdlib.
32726         (configure.ac): Turn on module indicator.
32727         * modules/strtod-tests: New module.
32728
32729 2008-03-29  Eric Blake  <ebb9@byu.net>
32730
32731         Fix ftell on mingw.
32732         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
32733         * modules/ftell-tests (Depends-on): Add binary-io.
32734         * modules/ftello-tests (Depends-on): Likewise.
32735         * tests/test-ftell.c (main): Enhance test to cover behavior after
32736         ungetc.  Enforce binary mode.
32737         * tests/test-ftello.c (main): Likewise.
32738
32739         Pass test-freadseek on cygwin.
32740         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
32741         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
32742         ungetc buffer.
32743
32744         * tests/test-fflush2.c (main): Fix typo.
32745
32746 2008-03-29  Bruno Haible  <bruno@clisp.org>
32747
32748         * tests/test-fflush2.c (main): Temporarily disable the contents of
32749         this test.
32750         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
32751         Reported by Eric Blake.
32752
32753 2008-03-28  Simon Josefsson  <simon@josefsson.org>
32754
32755         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
32756         (GC_SHA224_DIGEST_SIZE): Add.
32757
32758         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
32759         (gc_hash_digest_length): Likewise.
32760         (gc_hash_buffer): Likewise.
32761
32762 2008-03-25  Bruno Haible  <bruno@clisp.org>
32763
32764         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
32765         detail which gettext release to use.
32766         Reported by Simon Josefsson.
32767
32768 2008-03-26  Jim Meyering  <meyering@redhat.com>
32769
32770         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
32771         * modules/gnumakefile (clean-GNUmakefile): Also, use
32772         test ... && ... || : syntax rather than if-then ... fi.
32773
32774         gnumakefile: Don't double-quote-expand $(VPATH) value.
32775         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
32776
32777 2008-03-24  Eric Blake  <ebb9@byu.net>
32778
32779         Alter GNUmakefile to install into top directory.
32780         * modules/maintainer-makefile: Split, and add dependency...
32781         * modules/gnumakefile: to this new module.
32782         * build-aux/GNUmakefile: Move...
32783         * top/GNUmakefile: ...here.
32784         * build-aux/maint.mk: Move...
32785         * top/maint.mk: ...here.
32786         * MODULES.html.sh (Support for maintaining...): Document new
32787         module.
32788
32789 2008-03-23  Bruno Haible  <bruno@clisp.org>
32790
32791         * gnulib-tool: New options --vc-files, --no-vc-files.
32792         (func_usage): Document them.
32793         (vc_files): New variable.
32794         (func_import): Consider vc_files.
32795         (func_create_testdir): Set vc_files to empty.
32796         Suggested by Jim Meyering and Karl Berry.
32797
32798 2008-03-23  Bruno Haible  <bruno@clisp.org>
32799
32800         Fix regex compilation error on HP-UX 11.
32801         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
32802         * modules/regex (Files): Add m4/mbstate_t.m4.
32803         Reported by Ton Voon <ton.voon@altinity.com>.
32804
32805 2008-03-23  Bruno Haible  <bruno@clisp.org>
32806
32807         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
32808
32809 2008-03-23  Eric Blake  <ebb9@byu.net>
32810             Bruno Haible  <bruno@clisp.org>
32811
32812         Install files from top/ in the destination directory.
32813         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
32814         augmentation also for the files from top/.
32815         (func_import, func_create_testdir): Rewrite file names:
32816         top/filename -> filename.
32817
32818 2008-03-23  Bruno Haible  <bruno@clisp.org>
32819
32820         Tweak "gnulib --version" output.
32821         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
32822
32823 2008-03-23  Bruno Haible  <bruno@clisp.org>
32824
32825         Tweak "gnulib --version" output.
32826         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
32827         rather than contents of ChangeLog, when possible.
32828
32829 2008-03-21  Eric Blake  <ebb9@byu.net>
32830
32831         More --version tweaks.
32832         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
32833         date of last ChangeLog entry.
32834
32835 2008-03-21  Jim Meyering  <meyering@redhat.com>
32836
32837         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
32838
32839 2008-03-20  Eric Blake  <ebb9@byu.net>
32840
32841         VPATH fix.
32842         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
32843
32844 2008-03-20  Simon Josefsson  <simon@josefsson.org>
32845
32846         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
32847         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
32848
32849 2008-03-20  Eric Blake  <ebb9@byu.net>
32850
32851         Sync GNUmakefile with coreutils.
32852         * build-aux/GNUmakefile (have-Makefile): Rename...
32853         (_have-Makefile): ...to this, for namespace consideration.
32854         (GNUmakefile.cfg): Include, if present.
32855         (_autoreconf): Define a default.
32856         (_is-dist-target): New rule for rebuilds to pick up intra-release
32857         version.
32858         (maint-cfg.mk): Rename...
32859         (cfg.mk): ...to this.
32860
32861 2008-03-18  Jim Meyering  <meyering@redhat.com>
32862
32863         New script and module: mktempd
32864         * MODULES.html.sh (maint+release support): Add mktempd.
32865         * build-aux/mktempd: New file.
32866         * modules/mktempd: New file.
32867
32868 2008-03-15  Jim Meyering  <meyering@redhat.com>
32869
32870         Undo last change.
32871         * lib/sha1.c, lib/md5.c: 63 != ~63.
32872         Reported by Andreas Schwab.
32873
32874         sha1.c, md5.c: Hoist a redundant expression.
32875         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
32876         "ctx->buflen" only once, before calling *_process_block.
32877         * lib/md5.c (md5_process_bytes): Likewise.
32878
32879 2008-03-14  Eric Blake  <ebb9@byu.net>
32880
32881         Bump copyright year in files generated by gnulib-tool.
32882         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
32883         gnulib-tool, rather than hard-coding it.
32884
32885         Fix 'gnulib-tool --version' output to work with git.
32886         * gnulib-tool (func_gnulib_dir): New function, extracted from...
32887         (startup): ...here.
32888         (func_version): Use it to invoke git-version-gen, rather than
32889         relying on CVS keyword expansion.  Modernize wording.
32890         (cvsdatestamp, last_checkin_date, version): Kill unused
32891         variables.
32892
32893 2008-03-12  Jim Meyering  <meyering@redhat.com>
32894
32895         Recognize optional cast of the argument to free.
32896         * build-aux/useless-if-before-free: Update regexps.
32897
32898         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
32899
32900 2008-03-11  Bruno Haible  <bruno@clisp.org>
32901
32902         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
32903         by a single package.
32904         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
32905         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
32906         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
32907         Reported by Sam Steingold <sds@gnu.org>.
32908
32909 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
32910
32911         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
32912         repositories.
32913
32914 2008-03-11  Bruno Haible  <bruno@clisp.org>
32915
32916         Avoid conflicts between local macro definitions.
32917         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
32918         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
32919
32920 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
32921             Bruno Haible  <bruno@clisp.org>
32922
32923         Make va_copy work with some version of xlc on AIX 5.1.
32924         * lib/stdarg.in.h: New file.
32925         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
32926         On AIX, use a <stdarg.h> file substitute.
32927         * modules/stdarg (Files): Add lib/stdarg.in.h.
32928         (Depends-on): Add include_next.
32929         (Makefile.am): Build a stdarg.h substitute if requested.
32930         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
32931
32932 2008-03-10  Bruno Haible  <bruno@clisp.org>
32933
32934         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
32935         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
32936         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
32937
32938 2008-03-10  Bruno Haible  <bruno@clisp.org>
32939
32940         * modules/stdlib (Depends-on): Add include_next, remove
32941         absolute-header.
32942
32943 2008-03-09  Bruno Haible  <bruno@clisp.org>
32944
32945         * lib/freadahead.h (freadahead): Document more precisely.
32946         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
32947         the sum of both buffer sizes.
32948         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
32949         * NEWS: Document the change.
32950
32951 2008-03-09  Bruno Haible  <bruno@clisp.org>
32952
32953         Extend freadptr to return also the buffer size.
32954         * lib/freadptr.h (freadptr): Add sizep argument.
32955         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
32956         (freadptr): Add sizep argument. Determine buffer size like freadahead
32957         does.
32958         * tests/test-freadptr.c: Don't include freadahead.h.
32959         (main): Adapt for new calling convention of freadptr.
32960         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
32961         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
32962         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
32963         tests/test-freadptr2.sh.
32964         (Depends): Remove freadahead.
32965         (TESTS): Add test-freadptr2.sh.
32966         (check_PROGRAMS): Add test-freadptr2.
32967
32968 2008-03-09  Bruno Haible  <bruno@clisp.org>
32969
32970         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
32971         Report and solution by Simon Josefsson.
32972
32973 2008-03-06  Bruno Haible  <bruno@clisp.org>
32974
32975         Make fflush after ungetc work on BSD platforms.
32976         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
32977         * tests/test-fflush2.c: New file.
32978         * tests/test-fflush2.sh: New file.
32979         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
32980         tests/test-fflush2.c.
32981         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
32982         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
32983
32984 2008-03-06  Eric Blake  <ebb9@byu.net>
32985
32986         Likewise for ftello.
32987         * modules/ftello (Dependencies): Add extensions.
32988         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
32989
32990 2008-03-06  Bruno Haible  <bruno@clisp.org>
32991
32992         * modules/fseeko (Dependencies): Add extensions.
32993         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
32994         Needed on glibc systems.
32995
32996 2008-03-06  Bruno Haible  <bruno@clisp.org>
32997
32998         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
32999         email address.
33000         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
33001
33002 2008-03-06  Bruno Haible  <bruno@clisp.org>
33003
33004         * users.txt: Add libgnupdf.
33005
33006 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
33007
33008         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
33009         (Header File Substitutes, Function Substitutes,
33010         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
33011         (Build robot for gnulib): Fix typo.
33012
33013 2008-03-06  Bruno Haible  <bruno@clisp.org>
33014
33015         * doc/gnulib-tool.texi (VCS Issues): Small updates.
33016         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
33017
33018 2008-03-06  Bruno Haible  <bruno@clisp.org>
33019
33020         * doc/func.texi: New file, extracted from doc/gnulib.texi.
33021         * doc/gnulib.texi: Include it.
33022
33023 2008-03-06  Simon Josefsson  <simon@josefsson.org>
33024
33025         * modules/func (License): Change license to unlimited; there was
33026         no LGPL parts in the module anyway.
33027
33028 2008-03-06  Simon Josefsson  <simon@josefsson.org>
33029
33030         * modules/__func__: Renamed to modules/func.
33031         * modules/__func__-tests: Renamed to modules/func-tests.
33032         * tests/test-__func__.c: Renamed to tests/test-func.c.
33033         * m4/__func__.m4: Renamed to m4/func.m4.
33034         * doc/gnulib.texi (__func__): Section renamed to func.
33035         Suggested by Eric Blake <ebb9@byu.net>.
33036
33037 2008-03-06  Simon Josefsson  <simon@josefsson.org>
33038
33039         * doc/gnulib.texi (__func__): Use C99 terminology when talking
33040         about __func__.  Make example self-contained.  Suggested by Eric
33041         Blake <ebb9@byu.net>.
33042
33043         * tests/test-__func__.c (main): Avoid extraneous () around __func.
33044         Suggested by Eric Blake <ebb9@byu.net>.
33045
33046 2008-03-06  Simon Josefsson  <simon@josefsson.org>
33047
33048         * modules/__func__: New file.
33049         * modules/__func__-tests: New file.
33050         * tests/test-__func__.c: New file.
33051         * m4/__func__.m4: New file.
33052         * doc/gnulib.texi (__func__): Document __func__ module.
33053
33054 2008-03-05  Simon Josefsson  <simon@josefsson.org>
33055
33056         * modules/byteswap (License): Re-license as LGPLv2+.
33057
33058 2008-03-05  Simon Josefsson  <simon@josefsson.org>
33059
33060         * doc/Makefile: Add pdf target.
33061
33062 2008-03-05  Simon Josefsson  <simon@josefsson.org>
33063
33064         * modules/inline (License): Use 'unlimited', since there are only
33065         *.m4 files in this module.
33066
33067 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
33068             Bruno Haible  <bruno@clisp.org>
33069
33070         Add support for HP C 7.1 on OpenVMS 8.3.
33071         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
33072
33073 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
33074
33075         Update VMS specifics.
33076         * lib/getopt.c [VMS]: Remove include of unixlib.h.
33077
33078 2008-03-02  Jim Meyering  <meyering@redhat.com>
33079
33080         Remove the last dependency on the "free" module.
33081         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
33082         Reported by Bob Proulx.
33083
33084         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
33085
33086         Remove useless "if" tests before free.  Deprecate "free" module.
33087         * doc/posix-functions/free.texi: Mention that this
33088         module is no longer useful.
33089         * modules/free (Notice): Say this module is obsolete.
33090         * modules/readutmp (Depends-on): Remove free.
33091         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
33092         * lib/putenv.c (putenv): Likewise.
33093         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
33094         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
33095         * tests/test-c-strcasestr.c (main): Likewise.
33096         * tests/test-c-strstr.c (main): Likewise.
33097         * tests/test-mbscasestr1.c (main): Likewise.
33098         * tests/test-mbscasestr2.c (main): Likewise.
33099         * tests/test-mbsstr1.c (main): Likewise.
33100         * tests/test-mbsstr2.c (main): Likewise.
33101         * tests/test-memmem.c (main): Likewise.
33102         * tests/test-strcasestr.c (main): Likewise.
33103         * tests/test-striconv.c (main): Likewise.
33104         * tests/test-striconveh.c (main): Likewise.
33105         * tests/test-striconveha.c (main): Likewise.
33106         * tests/test-strstr.c (main): Likewise.
33107
33108         * build-aux/git-version-gen: Adjust a comment and the Usage string.
33109
33110         bootstrap: sync from coreutils again
33111         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
33112
33113 2008-03-01  Jim Meyering  <meyering@redhat.com>
33114
33115         bootstrap: sync from coreutils
33116         * build-aux/bootstrap (update_po_files): Copy a .po file into place
33117         also when the target doesn't exist.
33118
33119 2008-03-01  Eric Blake  <ebb9@byu.net>
33120
33121         Fix bugs in last patch.
33122         * lib/memchr2.c (memchr2): Fix typo.
33123         * tests/test-memchr2.c: Test previous bug, and don't use GNU
33124         extension.
33125         Reported by Bruce Korb.
33126
33127         New module 'memchr2'.
33128         * modules/memchr2: New file.
33129         * modules/memchr2-tests: Likewise.
33130         * lib/memchr2.h: Likewise.
33131         * lib/memchr2.c: Likewise, based on memchr.c.
33132         * tests/test-memchr2.c: New test.
33133         * MODULES.html.sh (String handling): Add memchr2.
33134
33135 2008-02-29  Bruno Haible  <bruno@clisp.org>
33136
33137         * modules/freadseek-tests: New file.
33138         * tests/test-freadseek.sh: New file.
33139         * tests/test-freadseek.c: New file.
33140
33141         New module 'freadseek'.
33142         * modules/freadseek: New file.
33143         * lib/freadseek.h: New file.
33144         * lib/freadseek.c: New file.
33145         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
33146
33147 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
33148
33149         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
33150         wydawca.
33151
33152         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
33153         program_invocation_name and program_invocation_short_name are
33154         present.
33155
33156 2008-02-28  Bruno Haible  <bruno@clisp.org>
33157
33158         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
33159         * tests/test-freadptr.sh: Also test non-seekable stdin.
33160
33161 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
33162
33163         * build-aux/bootstrap (source_base, m4_base)
33164         (doc_base, tests_base): New variables.
33165         (gnulib_tool_options): Do not hardcode base directories, use
33166         the above variables instead.
33167
33168 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
33169
33170         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
33171
33172 2008-02-28  Bruno Haible  <bruno@clisp.org>
33173
33174         * modules/freadptr-tests: New file.
33175         * tests/test-freadptr.sh: New file.
33176         * tests/test-freadptr.c: New file.
33177
33178         New module 'freadptr'.
33179         * modules/freadptr: New file.
33180         * lib/freadptr.h: New file.
33181         * lib/freadptr.c: New file.
33182         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
33183
33184 2008-02-26  Karl Berry  <karl@freefriends.org>
33185
33186         Sync from Libtool:
33187         * libltdl/argz.c (argz_add, argz_count): New functions.
33188         * libltdl/argz.in.h: Declare them.
33189         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
33190
33191 2008-02-22  Bruno Haible  <bruno@clisp.org>
33192
33193         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
33194         is a pointer type.  Needed for HP-UX 10.
33195         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
33196         * doc/posix-functions/gmtime_r.texi: Likewise.
33197         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
33198
33199 2008-02-24  Bruno Haible  <bruno@clisp.org>
33200
33201         * modules/environ-tests: New file.
33202         * tests/test-environ.c: New file.
33203
33204         New module 'environ'.
33205         * modules/environ: New file.
33206         * lib/unistd.in.h (environ): New declaration.
33207         * m4/environ.m4: New file.
33208         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
33209         after use.
33210         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
33211         HAVE_DECL_ENVIRON.
33212         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
33213         HAVE_DECL_ENVIRON.
33214         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
33215         wrong claim that 'environ' is missing on some systems.
33216         * modules/execute (Depends-on): Add environ.
33217         * lib/execute.c (environ): Remove fallback declaration.
33218         * modules/pipe (Depends-on): Add environ.
33219         * lib/pipe.c (environ): Remove fallback declaration.
33220         * modules/setenv (Depends-on): Add environ.
33221         * lib/setenv.c (environ): Remove fallback declaration.
33222         * modules/unsetenv (Depends-on): Add environ.
33223         * lib/unsetenv.c (environ): Remove fallback declaration.
33224         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
33225         m4/environ.m4.
33226         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
33227         (gl_PREREQ_UNSETENV): Likewise.
33228
33229 2008-02-24  Bruno Haible  <bruno@clisp.org>
33230
33231         * doc/posix-functions/environ.texi: Document the MacOS X problem.
33232
33233 2008-02-20  Bob Proulx  <bob@proulx.com>
33234
33235         Enable use of older two part flavor 'git describe'.
33236         * build-aux/git-version-gen: If using the older two part flavor of
33237         git version then recreate the third part now present in the
33238         newer three part flavor of git describe.
33239
33240 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
33241
33242         * lib/fts.c (fts_build): Typo correction to comment.
33243
33244 2008-02-17  Bruno Haible  <bruno@clisp.org>
33245
33246         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
33247         generating no-op conflicts.
33248
33249 2008-02-17  Bruno Haible  <bruno@clisp.org>
33250
33251         Speed up by 10%.
33252         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
33253         result_entries, rather than an index-based loop.
33254
33255 2008-02-17  Bruno Haible  <bruno@clisp.org>
33256
33257         Speed up by 25%.
33258         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
33259         'hashcode_cached'.
33260         (entry_create): New function.
33261         (entry_hashcode): Use the cached hashcode if possible.
33262         (read_changelog_file, try_split_merged_entry): Use entry_create.
33263
33264 2008-02-17  Bruno Haible  <bruno@clisp.org>
33265
33266         Speed up from O(n^2) to O(n) for long ChangeLog files.
33267         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
33268         (read_changelog_file): Change implementation of entries_reversed list
33269         to rbtreehash.
33270         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
33271
33272 2008-02-17  Bruno Haible  <bruno@clisp.org>
33273
33274         New option --split-merged-entry.
33275         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
33276         (find_paragraph_end, try_split_merged_entry): New functions.
33277         (long_options): Add option --split-merged-entry.
33278         (usage): Document option --split-merged-entry.
33279         (main): Implement option --split-merged-entry.
33280         Reported by Eric Blake.
33281
33282 2008-02-17  Bruno Haible  <bruno@clisp.org>
33283
33284         * lib/git-merge-changelog.c: Include c-strstr.h.
33285         (main): Support the "git pull --rebase" situation.
33286         * modules/git-merge-changelog (Depends-on): Add c-strstr.
33287         Reported by Eric Blake.
33288
33289 2008-02-16  Eric Blake  <ebb9@byu.net>
33290
33291         Avoid doubling \ in common case of "c-maybe" quoting style.
33292         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
33293         eliding outer quotes.
33294         * lib/quotearg.h: Document this.
33295         * tests/test-quotearg.c (result_strings, inputs, results_g)
33296         (flag_results, locale_results): Test it by adding a new string to
33297         each test group.
33298         (compare_strings): Test new string.
33299
33300 2008-02-13  Eric Blake  <ebb9@byu.net>
33301
33302         Avoid trigraph quoting in default output.
33303         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
33304         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
33305         unless explicitly requested.
33306         * tests/test-quotearg.c (flag_results, main): Add additional tests.
33307
33308 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
33309
33310         Don't rely on signed integer overflowing to negative value.
33311         * lib/getugroups.c (getugroups): Include <limits.h>.
33312         Instead, compare against INT_MAX, and increment only if the test passes.
33313
33314 2008-02-13  Jim Meyering  <meyering@redhat.com>
33315         and Eric Blake  <ebb9@byu.net>
33316
33317         Avoid shadowing warning and compile errors on Linux.
33318         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
33319         forwarding macros on Linux.
33320         (dcgettext): Define a stub, for Linux.
33321         (results_g, main): Avoid warnings.
33322
33323 2008-02-12  Eric Blake  <ebb9@byu.net>
33324
33325         Silence warning in last patch.
33326         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
33327
33328         Quotearg part 4: add tests, fix c-maybe colon quoting.
33329         * lib/quotearg.h: Improve documentation.
33330         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
33331         escapes when adding outer quotes.  When quoting trigraphs, use
33332         valid C notation.  When quoting NUL, omit extra characters if next
33333         character is not digit.  Alter prototype.
33334         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
33335         callers.
33336         * modules/quotearg-tests: New module.
33337         * tests/test-quotearg.c: New test.
33338
33339 2008-02-07  Eric Blake  <ebb9@byu.net>
33340
33341         Quotearg part 3: add flag to control outer quote elision.
33342         * lib/quotearg.h (c_maybe_quoting_style): New style.
33343         (enum quoting_flags): Better documentation of flags.
33344         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
33345         c-maybe style.
33346         (quotearg_buffer_restyled): Handle new flag to elide outer
33347         quotes.
33348
33349         Quotearg part 2: add flag that can control NUL elision.
33350         * lib/quotearg.h (set_quoting_flags): New prototype.
33351         * lib/quotearg.c (struct quoting_options): Add flag field.
33352         (set_quoting_flags): New function.
33353         (quotearg_buffer_restyled): Add flags parameter.
33354         (quotearg_alloc_mem): Set the flag if length cannot be returned.
33355         (quotearg_n_options): Set the flag, since length cannot be
33356         returned.
33357         (quoting_options_from_style): Default flags correctly.
33358
33359         Quotearg part 1: more wrappers, restore quotearg_char state.
33360         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
33361         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
33362         (quotearg_colon_mem): New wrappers.
33363         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
33364         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
33365         functions.
33366         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
33367         (quotearg_colon_mem): New functions.
33368
33369 2008-02-11  Bruno Haible  <bruno@clisp.org>
33370
33371         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
33372         library in the current directory: it does not work with parallel make.
33373         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
33374
33375 2008-02-11  Bruno Haible  <bruno@clisp.org>
33376
33377         * .gitattributes: New file.
33378
33379 2008-02-11  Jim Meyering  <meyering@redhat.com>
33380
33381         useless-if-before-free: Fix reversed exit values.
33382         * build-aux/useless-if-before-free: Use correct values
33383         for EXIT_MATCH and EXIT_NO_MATCH.
33384
33385         * build-aux/useless-if-before-free: Close stdout carefully.
33386
33387 2008-02-10  Bruno Haible  <bruno@clisp.org>
33388
33389         New module 'git-merge-changelog'.
33390         * modules/git-merge-changelog: New file.
33391         * lib/git-merge-changelog.c: New file.
33392
33393 2008-02-10  Jim Meyering  <meyering@redhat.com>
33394
33395         useless-if-before-free: New option: --list (-l).
33396
33397         useless-if-before-free: Don't exit immediately upon open failure.
33398         * build-aux/useless-if-before-free: Exit 2 for errors.
33399         Upon failure to open a file, don't exit immediately.
33400         Rather, just warn and continue with any remaining files.
33401
33402 2008-02-10  Bruno Haible  <bruno@clisp.org>
33403
33404         New abstract list operation 'node_set_value'.
33405         * lib/gl_list.h (gl_list_node_set_value): New function.
33406         (struct gl_list_implementation): New field node_set_value.
33407         * lib/gl_list.c (gl_list_node_set_value): New function.
33408         * lib/gl_array_list.c (gl_array_node_set_value): New function.
33409         (gl_array_list_implementation): Update.
33410         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
33411         (gl_carray_list_implementation): Update.
33412         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
33413         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
33414         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
33415         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
33416         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
33417         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
33418         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
33419         Update.
33420         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
33421         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
33422         (gl_sublist_list_implementation): Update.
33423
33424 2008-02-10  Bruno Haible  <bruno@clisp.org>
33425
33426         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
33427         Needed when ELEMENT is #defined to 'some_type *'.
33428
33429 2008-02-10  Jim Meyering  <meyering@redhat.com>
33430
33431         New script and module: useless-if-before-free
33432         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
33433         * build-aux/useless-if-before-free: New file.
33434         * modules/useless-if-before-free: New file.
33435
33436         * build-aux/gitlog-to-changelog: Use committer date, not author date.
33437
33438         xstrtol_error: Fix typo.
33439         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
33440         s/exit_failure/exit_status/.
33441
33442 2008-02-09  Jim Meyering  <meyering@redhat.com>
33443
33444         New script and module: gitlog-to-changelog
33445         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
33446         * modules/gitlog-to-changelog: New file.
33447         * build-aux/gitlog-to-changelog: New file.
33448
33449 2008-02-08  Jim Meyering  <meyering@redhat.com>
33450
33451         Avoid two "parameter unused" warnings.
33452         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
33453         Mark "st" as used.
33454
33455         Use "git COMMAND", not "git-COMMAND".
33456         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
33457         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
33458         * build-aux/git-version-gen: Use "git status", not "git-status".
33459
33460 2008-02-07  Bruno Haible  <bruno@clisp.org>
33461
33462         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
33463         Avoids a crash on Windows Vista.
33464         Reported by Adam Strzelecki <ono@java.pl> via
33465         Simon Josefsson <simon@josefsson.org>.
33466
33467 2008-02-06  Bruno Haible  <bruno@clisp.org>
33468
33469         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
33470         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
33471         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
33472         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
33473         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
33474         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
33475         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
33476         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
33477         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
33478         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
33479         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
33480         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
33481         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
33482         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
33483         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
33484         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
33485         left-adjust flag.
33486         * tests/test-snprintf-posix.h (test_function): Likewise.
33487         * tests/test-sprintf-posix.h (test_function): Likewise.
33488         * tests/test-vasprintf-posix.c (test_function): Likewise.
33489         * doc/posix-functions/fprintf.texi: Update.
33490         * doc/posix-functions/printf.texi: Update.
33491         * doc/posix-functions/snprintf.texi: Update.
33492         * doc/posix-functions/sprintf.texi: Update.
33493         * doc/posix-functions/vfprintf.texi: Update.
33494         * doc/posix-functions/vprintf.texi: Update.
33495         * doc/posix-functions/vsnprintf.texi: Update.
33496         * doc/posix-functions/vsprintf.texi: Update.
33497         Reported by Peter Fales <psfales@alcatel-lucent.com>.
33498
33499 2008-02-06  Bruno Haible  <bruno@clisp.org>
33500
33501         Fix bug introduced on 2008-01-26.
33502         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
33503
33504 2008-02-06  Bruno Haible  <bruno@clisp.org>
33505
33506         Fix bug introduced on 2007-06-10.
33507         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
33508         !NEED_PRINTF_FLAG_ZERO.
33509
33510 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
33511
33512         getloadavg: use libperfstat on AIX5
33513         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
33514
33515 2008-02-03  Bruno Haible  <bruno@clisp.org>
33516
33517         * lib/diffseq.h: Add comments about required #includes.
33518         Reported by Michael Biggs <gnulib@doubleplum.net>.
33519
33520 2008-02-01  Bruno Haible  <bruno@clisp.org>
33521
33522         * users.txt: Add gnuit.
33523
33524 2008-01-31  Bruno Haible  <bruno@clisp.org>
33525
33526         * lib/md4.c (set_uint32): Mark as inline.
33527         * lib/md5.c (set_uint32): Likewise.
33528         * lib/sha1.c (set_uint32): Likewise.
33529         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
33530         * m4/md5.m4 (gl_MD5): Likewise.
33531         * m4/sha1.m4 (gl_SHA1): Likewise.
33532
33533 2008-01-31  Jim Meyering  <meyering@redhat.com>
33534
33535         Use "sizeof VAR", rather than a literal "4".
33536         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
33537         * lib/md4.c (md4_read_ctx): Likewise.
33538         * lib/sha1.c (sha1_read_ctx): Likewise.
33539
33540 2008-01-31  Simon Josefsson  <simon@josefsson.org>
33541
33542         * tests/test-sha1.c: New file, based on test-md5.c.
33543
33544         * modules/crypto/sha1-tests: New file.
33545
33546 2008-01-31  Simon Josefsson  <simon@josefsson.org>
33547
33548         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
33549
33550 2008-01-31  Jim Meyering  <meyering@redhat.com>
33551
33552         Prefer "sizeof v" over the equivalent "4".
33553         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
33554         * lib/md5.c (set_uint32): Likewise.
33555         * lib/sha1.c (set_uint32): Likewise.
33556
33557 2008-01-31  Simon Josefsson  <simon@josefsson.org>
33558
33559         * lib/sha1.c (set_uint32): Mark function as static.
33560
33561 2008-01-31  Simon Josefsson  <simon@josefsson.org>
33562
33563         md2: clarify comments to say that alignment is not required.
33564         * lib/md2.h: Remove warning about alignment in comment.
33565         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
33566         never been required.
33567
33568 2008-01-31  Simon Josefsson  <simon@josefsson.org>
33569
33570         md4: adapt alignment constraint fix from sha1.
33571         * lib/md4.c (set_uint32): New function, from sha1.c
33572         (md4_read_ctx): Use it.
33573         (md4_finish_ctx): Doc fix.
33574         * lib/md4.h: Doc fix.
33575
33576 2008-01-31  Simon Josefsson  <simon@josefsson.org>
33577
33578         md5: adapt alignment constraint fix from sha1.
33579         * lib/md5.c (set_uint32): New function, from sha1.c
33580         (md5_read_ctx): Use it.
33581         (md5_finish_ctx): Doc fix.
33582         * lib/md5.h: Doc fix.
33583
33584 2008-01-30  Peter Palfrader  <weasel@debian.org>
33585
33586         sha1: remove the result buffer alignment constraint
33587         * lib/sha1.c (set_uint32): New function.
33588         (sha1_read_ctx): Rewrite to remove the result buffer alignment
33589         constraint.
33590         (sha1_finish_ctx): Remove comment warning about alignment constraint.
33591         * lib/sha1.h: Likewise.
33592
33593 2008-01-30  Andreas Schwab  <schwab@suse.de>
33594             Bruno Haible  <bruno@clisp.org>
33595
33596         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
33597         correct definition of LDBL_MIN_EXP.
33598
33599 2008-01-30  Karl Berry  <karl@gnu.org>
33600
33601         * config/srclist-update: try to preserve x bit on updates.
33602         * config/srclistvars.sh: update for karl.
33603
33604 2008-01-29  Jim Meyering  <meyering@redhat.com>
33605
33606         vasnprintf.c: Avoid warning about unused label
33607         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
33608         "overflow" label definition and associated code with the
33609         same cpp condition that guards the sole use of that label.
33610
33611 2008-01-26  Bruno Haible  <bruno@clisp.org>
33612
33613         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
33614         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
33615         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
33616         * lib/isnanl-nolibm.h (isnanl): Likewise.
33617         Reported by Paul Eggert <eggert@cs.ucla.edu>.
33618
33619 2008-01-26  Bruno Haible  <bruno@clisp.org>
33620
33621         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
33622         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
33623
33624 2008-01-26  Bruno Haible  <bruno@clisp.org>
33625
33626         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
33627         GCC >= 4.0 built-in.
33628         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
33629
33630 2008-01-26  Bruno Haible  <bruno@clisp.org>
33631
33632         Rename isnan, applicable to 'double' only, to isnand.
33633         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
33634         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
33635         (configure.ac): Update.
33636         (Include): Replace "isnan.h" with "isnand.h".
33637         * m4/isnand.m4: Renamed from m4/isnan.m4.
33638         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
33639         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
33640         instead of isnan.c.
33641         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
33642         instead of HAVE_ISNAN_IN_LIBC.
33643         (isnand): Renamed from isnan.
33644         * lib/isnand.c: New file.
33645         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
33646         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
33647         (Makefile.am): Update.
33648         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
33649         Include isnand.h instead of isnan.h.
33650         (main): Test isnand instead of isnan.
33651         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
33652         isnan-nolibm.
33653         * modules/frexp (Depends-on): Likewise.
33654         * modules/frexp-tests (Depends-on): Likewise.
33655         * modules/frexp-nolibm (Depends-on): Likewise.
33656         * modules/frexp-nolibm-tests (Depends-on): Likewise.
33657         * modules/isfinite (Depends-on): Likewise.
33658         * modules/round-tests (Depends-on): Likewise.
33659         * modules/signbit (Depends-on): Likewise.
33660         * modules/signbit-tests (Depends-on): Likewise.
33661         * modules/snprintf-posix (Depends-on): Likewise.
33662         * modules/sprintf-posix (Depends-on): Likewise.
33663         * modules/trunc-tests (Depends-on): Likewise.
33664         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
33665         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
33666         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
33667         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
33668         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
33669         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
33670         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
33671         * modules/vasnprintf-posix (Depends-on): Likewise.
33672         * modules/vasprintf-posix (Depends-on): Likewise.
33673         * modules/vfprintf-posix (Depends-on): Likewise.
33674         * modules/vsnprintf-posix (Depends-on): Likewise.
33675         * modules/vsprintf-posix (Depends-on): Likewise.
33676         * lib/frexp.c: Include isnand.h instead of isnan.h.
33677         (ISNAN): Set to isnand instead of isnan.
33678         * lib/isfinite.c: Include isnand.h instead of isnan.h.
33679         (gl_isfinited): Use isnand instead of isnan.
33680         * lib/signbitd.c: Include isnand.h instead of isnan.h.
33681         (gl_signbitd): Use isnand instead of isnan.
33682         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
33683         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
33684         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
33685         (main): Use isnand instead of isnan.
33686         * tests/test-round1.c: Include isnand.h.
33687         (main): Use isnand instead of isnan.
33688         * tests/test-round2.c: Include isnand.h instead of isnan.h.
33689         (ISNAN): Set to isnand instead of isnan.
33690         * tests/test-trunc1.c: Include isnand.h.
33691         (main): Use isnand instead of isnan.
33692         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
33693         (equal): Use isnand instead of isnan.
33694         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
33695         isnand-nolibm.
33696         * NEWS: Mention the change.
33697
33698 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
33699             Bruno Haible  <bruno@clisp.org>
33700
33701         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
33702         the GCC builtins for signbits are present and set
33703         REPLACE_SIGNBIT_USING_GCC if so.
33704         * lib/math.in.h (signbit): Define using GCC builtins if
33705         REPLACE_SIGNBIT_USING_GCC is set.
33706         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
33707         REPLACE_SIGNBIT_USING_GCC.
33708         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
33709
33710 2008-01-25  Jim Meyering  <meyering@redhat.com>
33711
33712         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
33713         * lib/poll.c: Include <config.h>, not "config.h".
33714         * tests/test-getaddrinfo.c: Likewise.
33715
33716 2008-01-25  Simon Josefsson  <simon@josefsson.org>
33717
33718         * modules/sockets-tests: New file.
33719
33720 2008-01-24  Simon Josefsson  <simon@josefsson.org>
33721
33722         * modules/sockets: New module, can be used to call WSA_Startup and
33723         WSA_Cleanup when needed.
33724
33725         * lib/sockets.h, lib/sockets.c: New files.
33726
33727         * m4/sockets.m4: New file.
33728
33729         * tests/test-sockets.c: New file.
33730
33731 2008-01-19  Bruno Haible  <bruno@clisp.org>
33732
33733         * doc/posix-headers: Renamed from doc/headers.
33734         * doc/posix-functions: Renamed from doc/functions.
33735         * doc/gnulib.texi: Update.
33736
33737 2008-01-19  Bruno Haible  <bruno@clisp.org>
33738
33739         * doc/glibc-functions/strcasestr.texi: Include contents of
33740         doc/functions/strcasestr.texi, fixing the list of platforms.
33741         * doc/functions/strcasestr.texi: Remove file.
33742
33743 2008-01-19  Bruno Haible  <bruno@clisp.org>
33744
33745         * doc/glibc-functions/memmem.texi: Include contents of
33746         doc/functions/memmem.texi.
33747         * doc/functions/memmem.texi: Remove file.
33748
33749 2008-01-18  Bruno Haible  <bruno@clisp.org>
33750
33751         * doc/glibc-functions/*.texi: New files.
33752         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
33753         to use the new files.
33754
33755 2008-01-17  Bruno Haible  <bruno@clisp.org>
33756
33757         * tests/test-gethostname.c (main): Fix printf statement.
33758
33759 2008-01-17  Simon Josefsson  <simon@josefsson.org>
33760
33761         * modules/gethostname-tests: New file.
33762
33763         * tests/test-gethostname.c: New file.
33764
33765 2008-01-17  Simon Josefsson  <simon@josefsson.org>
33766
33767         * lib/gethostname.c: Include string.h unconditionally, strncpy is
33768         used by the UNAME case.  Reported by Bruno Haible
33769         <bruno@clisp.org>.
33770
33771 2008-01-17  Eric Blake  <ebb9@byu.net>
33772
33773         Convert c-strcasestr to be more efficient.
33774         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
33775         (Depends-on): Add c-strcase, remove malloca, strnlen.
33776         * tests/test-c-strcasestr.c (main): Enhance test.
33777         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
33778
33779 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
33780
33781         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
33782         Use it in creating po/Makevars.
33783
33784 2008-01-15  Simon Josefsson  <simon@josefsson.org>
33785
33786         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
33787         Applications that requires it should initialize libgcrypt
33788         manually.
33789
33790 2008-01-16  Simon Josefsson  <simon@josefsson.org>
33791
33792         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
33793
33794 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
33795
33796         Fix problem with getdate on mingw32 reported by Simon Josefsson
33797         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
33798         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
33799         tzname", when deciding whether to declare tzname.
33800         * lib/strftime.c (tzname): Likewise.
33801
33802 2008-01-15  Bruno Haible  <bruno@clisp.org>
33803
33804         Work around a MacOS X 10.5 bug in frexpl().
33805         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
33806         * doc/functions/frexpl.texi: Document the bug.
33807         Reported by Elias Pipping <pipping@gentoo.org>.
33808
33809 2008-01-14  Eric Blake  <ebb9@byu.net>
33810
33811         Touch up previous patch.
33812         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
33813         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
33814
33815         Convert strcasestr module to use Two-Way algorithm.
33816         * modules/strcasestr-simple: New module, based on the old
33817         strcasestr, but with Two-Way rather than KMP.
33818         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
33819         * lib/string.in.h (rpl_strcasestr): Declare.
33820         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
33821         performance.
33822         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
33823         * modules/string (Makefile.am): Support strcasestr.
33824         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
33825         * modules/strcasestr-tests (Depends-on): Check for alarm.
33826         * tests/test-strcasestr.c: Augment test.
33827         * lib/str-two-way.h: Clean up stray macro.
33828         * NEWS: Document new module.
33829         * MODULES.html.sh (string handling): Likewise.
33830         * doc/functions/strcasestr.texi: New file.
33831         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
33832         here, since it is not a POSIX function.
33833
33834 2008-01-14  Colin Watson  <cjwatson@debian.org>
33835             Bruno Haible  <bruno@clisp.org>
33836
33837         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
33838         works fine; if not, set REPLACE_STRSIGNAL.
33839         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
33840         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
33841         REPLACE_STRSIGNAL.
33842         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
33843         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
33844         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
33845
33846 2008-01-14  Bruno Haible  <bruno@clisp.org>
33847
33848         * modules/strsignal (Include): Change to <string.h>.
33849
33850 2008-01-14  Colin Watson  <cjwatson@debian.org>
33851
33852         * modules/argp (Notice): Add a notice recommending to change
33853         XGETTEXT_OPTIONS.
33854         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
33855
33856 2008-01-13  Colin Watson  <cjwatson@debian.org>
33857
33858         * modules/strsignal-tests: New file.
33859         * tests/test-strsignal.c: New file.
33860
33861         * lib/strsignal.c: New file, from glibc with modifications.
33862         * lib/siglist.h: New file, from glibc with modifications.
33863         * lib/string.in.h (strsignal): New declaration.
33864         * m4/strsignal.m4: New file.
33865         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
33866         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
33867         * modules/strsignal: New file.
33868         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
33869         HAVE_DECL_STRSIGNAL.
33870
33871 2008-01-13  Bruno Haible  <bruno@clisp.org>
33872
33873         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
33874         locale encoding is not ASCII. Needed for OpenBSD 4.0.
33875         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
33876         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
33877
33878 2008-01-13  Bruno Haible  <bruno@clisp.org>
33879
33880         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
33881         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
33882         * lib/argp.h (__attribute__): Likewise.
33883         * lib/c-stack.c (__attribute__): Likewise.
33884         * lib/error.h (__attribute__): Likewise.
33885         * lib/fts.c (__attribute__): Likewise.
33886         * lib/openat.h (__attribute__): Likewise.
33887         * lib/stdio.in.h (__attribute__): Likewise.
33888         * lib/string.in.h (__attribute__): Likewise.
33889         * lib/utimens.c (__attribute__): Likewise.
33890         * lib/vasnprintf.h (__attribute__): Likewise.
33891         * lib/xalloc.h (__attribute__): Likewise.
33892         * lib/xprintf.h (__attribute__): Likewise.
33893         * lib/xstrtol.h (__attribute__): Likewise.
33894         * lib/xvasprintf.h (__attribute__): Likewise.
33895
33896 2008-01-12  Bruno Haible  <bruno@clisp.org>
33897
33898         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
33899         * doc/glibc-headers/a.out.texi: New file.
33900         * doc/glibc-headers/aliases.texi: New file.
33901         * doc/glibc-headers/alloca.texi: New file.
33902         * doc/glibc-headers/ar.texi: New file.
33903         * doc/glibc-headers/argp.texi: New file.
33904         * doc/glibc-headers/argz.texi: New file.
33905         * doc/glibc-headers/byteswap.texi: New file.
33906         * doc/glibc-headers/crypt.texi: New file.
33907         * doc/glibc-headers/endian.texi: New file.
33908         * doc/glibc-headers/envz.texi: New file.
33909         * doc/glibc-headers/err.texi: New file.
33910         * doc/glibc-headers/error.texi: New file.
33911         * doc/glibc-headers/execinfo.texi: New file.
33912         * doc/glibc-headers/fpu_control.texi: New file.
33913         * doc/glibc-headers/fstab.texi: New file.
33914         * doc/glibc-headers/fts.texi: New file.
33915         * doc/glibc-headers/getopt.texi: New file.
33916         * doc/glibc-headers/ieee754.texi: New file.
33917         * doc/glibc-headers/ifaddrs.texi: New file.
33918         * doc/glibc-headers/libintl.texi: New file.
33919         * doc/glibc-headers/mcheck.texi: New file.
33920         * doc/glibc-headers/mntent.texi: New file.
33921         * doc/glibc-headers/obstack.texi: New file.
33922         * doc/glibc-headers/paths.texi: New file.
33923         * doc/glibc-headers/printf.texi: New file.
33924         * doc/glibc-headers/pty.texi: New file.
33925         * doc/glibc-headers/resolv.texi: New file.
33926         * doc/glibc-headers/shadow.texi: New file.
33927         * doc/glibc-headers/sysexits.texi: New file.
33928         * doc/glibc-headers/ttyent.texi: New file.
33929
33930 2008-01-12  Jim Meyering  <meyering@redhat.com>
33931
33932         announce-gen: emit Gnulib's git-based version string.
33933         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
33934         New option --gnulib-version=V, where V is expected to be
33935         the output of running git describe in the gnulib directory.
33936         (get_tool_versions): Request feedback on xdelta.  I suspect it's
33937         not useful, and plan to stop publishing an xdelta file with each
33938         coreutils release.
33939
33940         * build-aux/announce-gen: Also check for lzma-compressed files.
33941
33942 2008-01-11  Bruno Haible  <bruno@clisp.org>
33943
33944         * tests/test-memmem.c (main): Increase maximum allowed time.
33945         * tests/test-strstr.c (main): Likewise.
33946
33947 2008-01-11  Bruno Haible  <bruno@clisp.org>
33948
33949         * doc/functions/memmem.texi: Add more precisions about platforms.
33950         * doc/functions/strstr.texi: Likewise.
33951
33952 2008-01-10  Eric Blake  <ebb9@byu.net>
33953
33954         * m4/strstr.m4: Delete cruft from copy-n-paste.
33955         Reported by Bruno Haible.
33956
33957 2008-01-10  Bruno Haible  <bruno@clisp.org>
33958
33959         Make c-strstr rely on strstr.
33960         * lib/c-strstr.c: Don't include str-kmp.h.
33961         (c_strstr): Define in terms of strstr.
33962         * modules/c-strstr (Files): Remove lib/str-kmp.h.
33963         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
33964
33965 2008-01-10  Bruno Haible  <bruno@clisp.org>
33966
33967         * doc/gnulib.texi (String Functions in C Locale): New section.
33968         * doc/c-ctype.texi: New file.
33969         * doc/c-strcase.texi: New file.
33970         * doc/c-strcaseeq.texi: New file.
33971         * doc/c-strcasestr.texi: New file.
33972         * doc/c-strstr.texi: New file.
33973         * doc/c-strtod.texi: New file.
33974         * doc/c-strtold.texi: New file.
33975
33976 2008-01-10  Eric Blake  <ebb9@byu.net>
33977
33978         * lib/relocatable.h: Fix a comment.
33979
33980 2008-01-10  Eric Blake  <ebb9@byu.net>
33981
33982         Share two-way algorithm.
33983         * lib/str-two-way.h: New file, merged from...
33984         * lib/memmem.c: ...here...
33985         * lib/strstr.c: ...and here.
33986         * modules/memmem (Files): Use it.
33987         * modules/strstr (Files): Likewise.
33988
33989         Avoid quadratic strstr implementations.
33990         * lib/strstr.c: New file.
33991         * m4/strstr.m4: Likewise.
33992         * modules/strstr: Likewise.
33993         * modules/strstr-tests: Likewise.
33994         * tests/test-strstr.c: Likewise.
33995         * lib/string.in.h (rpl_strstr): Declare.
33996         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
33997         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
33998         * modules/string (Makefile.am): Likewise.
33999         * MODULES.html.sh (string handling): Mention new module.
34000         * doc/functions/strstr.texi (strstr): Document the bug.
34001
34002 2008-01-10  Bruno Haible  <bruno@clisp.org>
34003
34004         * lib/relocatable.h (relocate): State whether result is freshly
34005         allocated or not.
34006         * lib/relocatable.c (relocate): Return a freshly allocated string
34007         instead of a pointer to a privately held string.
34008         Reported by Sylvain Beucler <beuc@gnu.org>.
34009
34010 2008-01-10  Colin Watson  <cjwatson@debian.org>
34011
34012         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
34013         s/S_ISNLK/S_ISLNK/.
34014
34015 2008-01-09  Bruno Haible  <bruno@clisp.org>
34016
34017         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
34018         and other files.
34019         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
34020         if it's only a guess.
34021         * modules/memmem: Simplify by depending on memmem-simple.
34022
34023 2008-01-09  Bruno Haible  <bruno@clisp.org>
34024
34025         Work around OpenBSD 4.0 tdelete() bug.
34026         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
34027         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
34028         macros and don't redefine the enum values.
34029         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
34030         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
34031         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
34032
34033 2008-01-09  Bruno Haible  <bruno@clisp.org>
34034
34035         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
34036         (main): Don't perform the tests if setlocale did not install a UTF-8
34037         locale. Needed on OpenBSD 4.0.
34038         * modules/wcwidth-tests (Depends-on): Add localcharset.
34039
34040 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
34041
34042         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
34043         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
34044         * NEWS: announce this.
34045         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
34046
34047 2008-01-09  Simon Josefsson  <simon@josefsson.org>
34048         and Eric Blake  <ebb9@byu.net>
34049
34050         Add memmem-simple module.
34051         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
34052         (gl_FUNC_MEMMEM): Separate performance from presence checks.
34053         * modules/memmem-simple: New file.
34054         * modules/memmem (Description): Tweak.
34055         * MODULES.html.sh (string handling): Mention new module.
34056         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
34057         addressed by memmem-simple.
34058         * NEWS: Document the difference.
34059
34060 2008-01-09  Eric Blake  <ebb9@byu.net>
34061
34062         Give gcc some memmem optimization hints.
34063         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
34064         (strcasestr): Declare as pure.
34065         * modules/memmem (Maintainer): Claim my implementation.
34066
34067 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34068
34069         Support AIX 6.1 and higher.
34070         * build-aux/config.libpath: Likewise.
34071         * build-aux/config.rpath: Likewise.
34072
34073 2008-01-08  Jim Meyering  <meyering@redhat.com>
34074             Bruno Haible  <bruno@clisp.org>
34075
34076         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
34077         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
34078         Reported by Peter Fales in
34079         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
34080
34081 2008-01-08  Bruno Haible  <bruno@clisp.org>
34082
34083         * modules/unictype/category-of (Depends-on): Add
34084         unictype/category-none.
34085         * modules/unictype/category-and-tests (Depends-on): Add
34086         unictype/category-{L,N,Lu,Nd}.
34087         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
34088         * modules/unictype/category-or-tests (Depends-on): Add
34089         unictype/category-{L,N}.
34090         * modules/unictype/category-name-tests (Depends-on): Add
34091         unictype/category-{Z,Nl}.
34092         Reported by Simon Josefsson.
34093
34094 2008-01-08  Bruno Haible  <bruno@clisp.org>
34095
34096         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
34097         convention better.
34098         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
34099         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
34100         Reported by Peter Miller <millerp@canb.auug.org.au>.
34101
34102 2008-01-08  Eric Blake  <ebb9@byu.net>
34103
34104         Rewrite memmem to guarantee linear complexity without malloc.
34105         * lib/memmem.c (memmem): Use Two-Way rather than
34106         Knuth-Morris-Pratt, to allow O(1) space usage.
34107         (critical_factorization, two_way_short_needle)
34108         (two_way_long_needle): New functions.
34109         (knuth_morris_pratt): Delete.
34110         * modules/memmem (Depends-on): No longer need malloca or stdbool.
34111         Add stdint.
34112         * tests/test-memmem.c (main): Add tests for periodic needle and
34113         sublinear performance.
34114         * doc/functions/memmem.texi (memmem): Document other deficiencies
34115         in cygwin and older glibc.
34116
34117 2008-01-08  Bruno Haible  <bruno@clisp.org>
34118
34119         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
34120         augmentation.
34121
34122 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
34123
34124         Add a configure time option: --disable-acl.
34125         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
34126         AC_ARG_ENABLE(acl).
34127
34128 2008-01-06  Simon Josefsson  <simon@josefsson.org>
34129
34130         * tests/test-localename.c: Don't include obsolete "setenv.h".
34131
34132         * modules/localename-tests (Depends-on): Need unsetenv.
34133
34134 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34135
34136         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
34137
34138 2008-01-06  Colin Watson  <cjwatson@debian.org>
34139
34140         * users.txt: Add man-db.
34141
34142 2008-01-07  Bruno Haible  <bruno@clisp.org>
34143
34144         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
34145         previous section name.
34146
34147 2008-01-07  Bruno Haible  <bruno@clisp.org>
34148
34149         * lib/progname.c (set_program_name): Don't strip off a leading
34150         "lt-" prefix outside a .libs directory.
34151         Suggested by Paul Eggert.
34152
34153 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
34154             Bruno Haible  <bruno@clisp.org>
34155
34156         Improve memory cleanup in 'relocatable' module.
34157         * lib/relocatable.h (compute_curr_prefix): Change return type to
34158         'char *'.
34159         * lib/relocatable.c (compute_curr_prefix): Change return type to
34160         'char *'. Free curr_installdir after use.
34161         (relocate): Free curr_prefix_better after use.
34162         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
34163
34164 2008-01-01  Bruno Haible  <bruno@clisp.org>
34165
34166         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
34167         failure on older glibc systems.
34168         Reported by Peter Fales <psfales@alcatel-lucent.com>.
34169
34170 2008-01-05  Eric Blake  <ebb9@byu.net>
34171
34172         Avoid quadratic system memmem.
34173         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
34174         Reported by Ralf Wildenhues.
34175
34176         Fix memmem test for mingw.
34177         * modules/memmem-tests (configure.ac): Check for alarm.
34178         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
34179         it.
34180         * doc/functions/memmem.texi: New file.
34181         * doc/gnulib.texi (Function Substitutes): Add memmem.
34182         Reported by Bruno Haible.
34183
34184 2008-01-04  Bruno Haible  <bruno@clisp.org>
34185
34186         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
34187         Require gl_HEADER_STRINGS_H_DEFAULTS, not
34188         gl_HEADER_STRING_H_DEFAULTS.
34189
34190 2008-01-04  Eric Blake  <ebb9@byu.net>
34191
34192         Shorten duration of memmem test.
34193         * tests/test-memmem.c (main): Use alarm to declare failure if test
34194         is taking too long.
34195         Reported by Ralf Wildenhues.
34196
34197 2007-12-21  Simon Josefsson  <simon@josefsson.org>
34198
34199         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
34200         string, needed by strerror.
34201
34202 2008-01-03  Colin Watson  <cjwatson@debian.org>
34203             Bruno Haible  <bruno@clisp.org>
34204
34205         * doc/gnulib-tool.texi (Localization): New section.
34206
34207 2008-01-02  Bruno Haible  <bruno@clisp.org>
34208
34209         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
34210         variables to 'unsigned char *' type.
34211         Reported by Paul Eggert.
34212
34213 2008-01-02  Jim Meyering  <jim@meyering.net>
34214
34215         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
34216
34217 2007-12-31  Jim Meyering  <jim@meyering.net>
34218
34219         Avoid use of private FTS type name.
34220         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
34221
34222 2007-12-30  Karl Berry  <karl@gnu.org>
34223
34224         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
34225         work around defect in Texinfo and/or the standalone Info browser.
34226
34227 2007-12-30  Bruno Haible  <bruno@clisp.org>
34228
34229         Unify 5 copies of the KMP code.
34230         * lib/str-kmp.h: New file.
34231         * lib/c-strcasestr.c: Include str-kmp.h.
34232         (knuth_morris_pratt): Remove function.
34233         (c_strcasestr): Update.
34234         * lib/c-strstr.c: Include str-kmp.h.
34235         (knuth_morris_pratt): Remove function.
34236         (c_strcasestr): Update.
34237         * lib/mbscasestr.c: Include str-kmp.h.
34238         (knuth_morris_pratt_unibyte): Remove function.
34239         * lib/mbsstr.c: Include str-kmp.h.
34240         (knuth_morris_pratt_unibyte): Remove function.
34241         * lib/strcasestr.c: Include str-kmp.h.
34242         (knuth_morris_pratt): Remove function.
34243         (strcasestr): Update.
34244         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
34245         * modules/c-strstr (Files): Likewise.
34246         * modules/mbscasestr (Files): Likewise.
34247         * modules/mbsstr (Files): Likewise.
34248         * modules/strcasestr (Files): Likewise.
34249         Suggested by Paul Eggert.
34250
34251 2007-12-30  Bruno Haible  <bruno@clisp.org>
34252
34253         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
34254         defined.
34255
34256 2007-12-30  Bruno Haible  <bruno@clisp.org>
34257
34258         * lib/xmalloca.h: Include xalloc.h.
34259         (xnmalloca): New macro.
34260
34261 2007-12-30  Bruno Haible  <bruno@clisp.org>
34262
34263         * lib/malloca.h (nmalloca): New macro.
34264         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
34265         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
34266         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
34267         knuth_morris_pratt_multibyte): Likewise.
34268         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
34269         knuth_morris_pratt_multibyte): Likewise.
34270         * lib/memmem.c (knuth_morris_pratt): Likewise.
34271         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
34272
34273 2007-12-25  Bruno Haible  <bruno@clisp.org>
34274
34275         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
34276         * lib/glob.c: Don't include openat.h.
34277         (link_exists2_p): Add back the code that deals with the
34278         !GLOB_ALTDIRFUNC case.
34279         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
34280         let it do the filename concatenation.
34281         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
34282         * modules/glob (Depends-on): Remove openat.
34283
34284 2007-12-31  Bruno Haible  <bruno@clisp.org>
34285
34286         * modules/dirfd (License): Change to LGPLv2+.
34287         Approved by Jim Meyering.
34288
34289 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
34290
34291         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
34292         when multiplying M by sizeof (size_t).
34293
34294 2007-12-10  Martin Lambers  <marlam@marlam.de>
34295
34296         Override getpagesize on mingw.
34297         * lib/getpagesize.c: New file.
34298         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
34299         * modules/getpagesize (Files): Add lib/getpagesize.c.
34300         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
34301         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
34302         REPLACE_GETPAGESIZE.
34303         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
34304
34305 2007-12-25  Bruno Haible  <bruno@clisp.org>
34306
34307         * modules/localcharset (Notice): New field.
34308         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
34309         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
34310
34311 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
34312             Bruno Haible  <bruno@clisp.org>
34313
34314         Avoid using the syntax symbol() in formatted documentation.
34315         * MODULES.html.sh (func_module): When replacing symbol() with a
34316         hyperlink, remove the parentheses. Show an error if some remain.
34317         Recognize and render the '...' syntax.
34318         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
34319         Rework. Add paragraph about GCC's inlining.
34320         * doc/alloca.texi: Likewise.
34321         * doc/error.texi: Remove parentheses from symbol reference.
34322         * doc/gnulib-intro.texi: Likewise.
34323         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
34324         * modules/fnmatch (Description): Reword to say "the ... function".
34325         * modules/full-read (Description): Likewise.
34326         * modules/full-write (Description): Likewise.
34327         * modules/safe-read (Description): Likewise.
34328         * modules/safe-write (Description): Likewise.
34329         * modules/strchrnul (Description): Likewise.
34330         * modules/trim (Description): Likewise.
34331         * modules/error (Description): Remove parentheses from symbol
34332         references.
34333         * modules/verror (Description): Likewise.
34334         Reported by Karl Berry.
34335
34336 2007-12-25  Bruno Haible  <bruno@clisp.org>
34337
34338         Fixup after 2007-10-16 commit.
34339         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
34340
34341 2007-12-24  Bruno Haible  <bruno@clisp.org>
34342
34343         Make --enable-relocatable work with DESTDIR.
34344         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
34345         to compute installdir from destprog.
34346         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
34347         also set the RELOC_DESTDIR variable.
34348         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
34349
34350 2007-12-24  Bruno Haible  <bruno@clisp.org>
34351
34352         Fix link error due to xalloc_die().
34353         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
34354         of xreadlink.
34355         * lib/relocwrapper.c: Update comments.
34356         * build-aux/install-reloc: Remove xreadlink.c from file list.
34357         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
34358         xreadlink.c.
34359         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
34360
34361 2007-12-24  Bruno Haible  <bruno@clisp.org>
34362
34363         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
34364         * lib/setenv.h: Remove file.
34365         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
34366         lib/setenv.h.
34367         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
34368         (Depends-on): Add stdlib.
34369         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
34370         gl_FUNC_UNSETENV.
34371         (Include): Replace setenv.h with <stdlib.h>.
34372         * modules/unsetenv: New file.
34373         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
34374         * lib/unsetenv.c: Include <stdlib.h> first.
34375         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
34376         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
34377         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
34378         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
34379         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
34380         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
34381         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
34382         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
34383         * doc/functions/unsetenv.texi: Update.
34384         * modules/xsetenv (Depends-on): Add unsetenv.
34385         * modules/getdate (Depends-on): Likewise.
34386         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
34387         * lib/xsetenv.c: Don't include setenv.h.
34388         * lib/getdate.y: Likewise.
34389         * lib/relocwrapper.c: Likewise.
34390         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
34391         (Depends-on): Add stdlib.
34392         * NEWS: Mention the changes.
34393         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
34394
34395 2007-12-23  Bruno Haible  <bruno@clisp.org>
34396
34397         * lib/memmem.c (memmem): Use lowercase variable names. Tab
34398         indentation.
34399
34400 2007-12-23  Bruno Haible  <bruno@clisp.org>
34401
34402         * lib/c-strcasestr.c: Add more comments.
34403         * lib/c-strstr.c: Likewise.
34404         * lib/mbscasestr.c: Likewise.
34405         * lib/mbsstr.c: Likewise.
34406         * lib/strcasestr.c: Likewise.
34407         * lib/memmem.c: Likewise.
34408
34409 2007-12-23  Bruno Haible  <bruno@clisp.org>
34410
34411         * tests/test-memmem.c: Include <string.h> first.
34412
34413 2007-12-22  Bruno Haible  <bruno@clisp.org>
34414
34415         * gnulib-tool (func_create_testdir): Change $auxdir while generating
34416         the contents of $testsbase.
34417         Reported by Ralf Wildenhues.
34418
34419 2007-12-22  Bruno Haible  <bruno@clisp.org>
34420
34421         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
34422         two variables local_ldadd_before, local_ldadd_last.
34423
34424 2007-12-20  Eric Blake  <ebb9@byu.net>
34425
34426         Work around circular library issue when cross-compiling.
34427         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
34428         that progname.o does not need to pull in rpl_memcmp.
34429
34430 2007-12-19  Eric Blake  <ebb9@byu.net>
34431
34432         Fix memmem to avoid O(n^2) worst-case complexity.
34433         * lib/memmem.c (knuth_morris_pratt): New function.
34434         (memmem): Use it if first few naive iterations fail.
34435         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
34436         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
34437         * modules/memchr (License): Likewise.
34438         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
34439         malloca.
34440         * tests/test-memmem.c: Rewrite, borrowing ideas from
34441         test-mbsstr1.c; the old version wouldn't even compile!
34442         * modules/memmem-tests: New file.
34443         * lib/string.in.h (rpl_memmem): Add declaration.
34444         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
34445         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
34446         REPLACE_MEMMEM.
34447
34448 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
34449
34450         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
34451         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
34452         before any system include files, and undef after them all.  This
34453         should fix a problem on VMS reported by John E. Malmberg in
34454         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
34455
34456 2007-12-17  Eric Blake  <ebb9@byu.net>
34457
34458         Revert addition of verify, for BSD/OS.
34459         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
34460         can't handle large files, for the sake of obsolete platforms.
34461         * modules/fseeko (Depends-on): Remove verify.
34462         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
34463         * doc/functions/ftello.texi (ftello): Likewise.
34464         * doc/functions/fgetpos.texi (fgetpos): Likewise.
34465         Reported by Larry Jones.
34466
34467 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
34468
34469         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
34470         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
34471
34472 2007-12-17  Jim Meyering  <meyering@redhat.com>
34473
34474         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
34475         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
34476         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
34477         * modules/getcwd (Depends-on): Add openat.
34478         Reported by Petr Salinger.
34479
34480 2007-12-17  Bruno Haible  <bruno@clisp.org>
34481
34482         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
34483         avoid a segmentation fault of the configure test on x86_64 systems.
34484
34485 2007-12-15  Jim Meyering  <meyering@redhat.com>
34486
34487         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
34488
34489 2007-12-13  Eric Blake  <ebb9@byu.net>
34490
34491         Another fseek test.
34492         * tests/test-fseek.c (main): Also test ungetc handling.
34493         * tests/test-fseeko.c (main): Likewise.
34494         * modules/fseeko (Depends-on): Add verify.
34495         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
34496         large.
34497         Reported by Larry Jones.
34498
34499         Fix fseeko on mingw.
34500         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
34501         seek.
34502
34503         Beef up fseek tests.
34504         * tests/test-fseek.c (main): Also test eof handling.
34505         * tests/test-fseeko.c (main): Likewise.
34506         Reported by Larry Jones.
34507
34508 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
34509
34510         Fix fseeko on BSD-based platforms.
34511         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
34512         successful seek.
34513
34514 2007-12-12  Eric Blake  <ebb9@byu.net>
34515
34516         Allow circular dependency of separate libtests.a
34517         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
34518         when use_libtests.
34519
34520 2007-12-11  Eric Blake  <ebb9@byu.net>
34521
34522         Fix bug with -0.0L in previous patch.
34523         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
34524         * tests/test-isnan.c (main): Also test on zeroes.
34525         * tests/test-isnanf.c (main): Likewise.
34526         * tests/test-isnanl.h (main): Likewise.
34527
34528         Detect pseudo-denormals on x86 even when cross-compiling.
34529         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
34530         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
34531         invalid bit patterns that happen to satisfy ==.
34532
34533         Avoid link failures with separate libtests.a.
34534         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
34535         last, to satisfy circular dependencies.
34536
34537 2007-12-11  Eric Blake  <ebb9@byu.net>
34538         and Bruno Haible  <bruno@clisp.org>
34539
34540         Fix OpenBSD 4.0 <float.h> handling of long double.
34541         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
34542         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
34543         * doc/headers/float.texi (float.h): Document OpenBSD bug.
34544
34545 2007-12-11  Jim Meyering  <meyering@redhat.com>
34546
34547         * users.txt: Add libvirt.
34548
34549         Support versions of autoconf prior to 2.59c.
34550         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
34551         if it is not already defined.
34552
34553 2007-12-09  Bruno Haible  <bruno@clisp.org>
34554
34555         Let 'gnulib-tool --import' collect sources needed for the tests in
34556         tests/ rather than in lib/.
34557         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
34558         argument. If true, add rules to generate libtests.a, and put libtests.a
34559         into $(LDADD). Consider source files in subdirectories and set
34560         uses_subdirs.
34561         (func_emit_initmacro_start, func_emit_initmacro_end,
34562         func_emit_initmacro_done): Pass all arguments explicitly.
34563         (func_import): Determine two module lists main_modules,
34564         testsrelated_modules. Determine use_libtests. Determine two variables
34565         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
34566         instead of just sed_transform_lib_file. Determine two variables
34567         main_files and testsrelated_files. Compute 'files' as the union of
34568         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
34569         func_add_or_update. In the generated gnulib-comp.m4, collect the
34570         object files for tests/ in different variables than those for lib/.
34571         Substitute LIBTESTS_LIBDEPS.
34572         (func_create_testdir): Combine the uses_subdirs results from
34573         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
34574
34575 2007-12-09  Bruno Haible  <bruno@clisp.org>
34576
34577         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
34578         the build-aux directory.
34579
34580 2007-12-09  Bruno Haible  <bruno@clisp.org>
34581
34582         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
34583         introduced on 2006-09-09.
34584
34585 2007-12-07  Jim Meyering  <meyering@redhat.com>
34586
34587         Let these macros work also with autoconf-2.59.
34588         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
34589         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
34590         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
34591
34592 2007-12-06  Jim Meyering  <meyering@redhat.com>
34593
34594         Avoid a configure-time syntax error in gl_FUNC_ACL.
34595         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
34596         function in each branch, before testing the cache variable.
34597
34598 2007-12-04  Eric Blake  <ebb9@byu.net>
34599
34600         Make scripts executable.
34601         * build-aux/config.guess: Add execute permissions.
34602         * build-aux/config.sub: Likewise.
34603         * build-aux/gendocs.sh: Likewise.
34604
34605         Fix frexp on mingw.
34606         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
34607         cross-compiling.
34608         * doc/functions/frexp.texi (frexp): Document the bug.
34609
34610         Make cygwin fseeko check more reliable.
34611         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
34612         version numbers, rather than unrelated feature check.
34613         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
34614         * doc/functions/ftello.texi (ftello): Likewise.
34615         Reported by Bruno Haible.
34616
34617         * m4/strerror.m4: Bump version number.
34618
34619 2007-12-03  Bruno Haible  <bruno@clisp.org>
34620
34621         * doc/functions/mprotect.texi: Mention the mingw problem.
34622
34623 2007-12-03  Eric Blake  <ebb9@byu.net>
34624
34625         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
34626         REPLACE_STRERROR is initialized before this macro.
34627
34628 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
34629
34630         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
34631         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
34632         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
34633         put -lsec in even for programs other than 'ls'.  This fixes a problem
34634         for gettext reported by Bruno Haible in
34635         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
34636         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
34637         Add support for Solaris 10.  This isn't efficient, but should get the
34638         job done for now.
34639
34640 2007-12-03  James Youngman  <jay@gnu.org>
34641
34642         * doc/regexprops-generic.texi: change "an close-group" to "a
34643         close-group" and "illegal" to "not allowed".
34644
34645 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34646
34647         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
34648         pr_byname.h. Needed for the rare case when the maintainer has done
34649         "make maintainer-clean" in the source directory and then attempts a
34650         build outside the source directory.
34651         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
34652         scripts_byname.h.
34653
34654 2007-12-02  Martin Lambers <marlam@marlam.de>
34655             Bruno Haible  <bruno@clisp.org>
34656
34657         * lib/getpagesize.h: Remove file.
34658         * lib/unistd.in.h: Include declaration of getpagesize here.
34659         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
34660         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
34661         HAVE_SYS_PARAM_H.
34662         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
34663         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
34664         * modules/getpagesize (Files): Remove lib/getpagesize.h.
34665         (Depends-on): Add unistd.
34666         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
34667         (Include): Use <unistd.h> instead of getpagesize.h.
34668         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
34669         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
34670         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
34671         gl_GETPAGESIZE invocation, already handled by module dependency.
34672         * lib/pagealign_alloc.c: Don't include getpagesize.h.
34673
34674 2007-12-02  Bruno Haible  <bruno@clisp.org>
34675
34676         * modules/strings-tests: New file.
34677         * tests/test-strings.c: New file.
34678
34679         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
34680         * lib/strings.in.h: New file.
34681         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
34682         * m4/strings_h.m4: New file.
34683         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
34684         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
34685         * modules/strings: New file.
34686         * modules/string (Makefile.am): Update.
34687         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
34688         Reported by Karl Berry.
34689
34690 2007-12-01  Eric Blake  <ebb9@byu.net>
34691
34692         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
34693         accomodate fix in cygwin 1.5.25.
34694
34695 2007-12-01  Jim Meyering  <meyering@redhat.com>
34696
34697         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
34698         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
34699         that would inhibit utf8-optimization of a regexp containing line-
34700         or buffer-anchors, e.g., `^', `$'.
34701
34702 2007-11-30  Bruno Haible  <bruno@clisp.org>
34703
34704         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
34705         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
34706         glthread_recursive_lock_init.
34707         * lib/lock.c (glthread_recursive_lock_init)
34708         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
34709         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
34710
34711 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
34712
34713         New function qset_acl, like set_acl but with syscall semantics.
34714         * lib/acl.h (qset_acl): New decl.
34715         * lib/acl.c (qset_acl): New function.
34716         (set_acl): Use new function.  Use more-consistent diagnostics.
34717
34718 2007-11-28  Jim Meyering  <meyering@redhat.com>
34719
34720         * modules/physmem (License): Change from GPL to LGPLv2+.
34721
34722 2007-11-26  Bruno Haible  <bruno@clisp.org>
34723
34724         * lib/vasnprintf.c (decode_long_double): Don't abort if the
34725         'long double' type has excess precision.
34726         Reported by Jim Meyering in
34727         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
34728
34729 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34730
34731         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
34732         Sync from <http://gnu.org/licenses>.
34733         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
34734         with license text from same location.
34735         * doc/maintain.texi, doc/standards.texi:  Sync from
34736         <http://savannah.gnu.org/projects/gnustandards>.
34737
34738 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
34739         and Jim Meyering  <meyering@redhat.com>
34740
34741         Adjust getdate' grammar to accept a slightly more regular language.
34742         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
34743         Before, the former was rejected.
34744         * lib/getdate.y (digits_to_date_time): New function, factored
34745         out of ...
34746         (number): ...here.  Just call digits_to_date_time.
34747         (hybrid): New non-terminal to handle an <unsigned number,
34748         signed relative offset> sequence consistently.
34749
34750 2007-11-18  Jim Meyering  <meyering@redhat.com>
34751
34752         Pull my changes from coreutils:
34753         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
34754         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
34755         use of $gnulib_tool_option_extras, so that it's separated from the
34756         preceding argument.
34757
34758         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
34759         * build-aux/bootstrap (cp_mark_as_generated): Create any required
34760         parent destination directories before copying a file into place.
34761
34762 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
34763
34764         bootstrap: work also with 4-argument variant of AC_INIT
34765         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
34766
34767 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
34768
34769         Port test-getaddrinfo to Solaris.
34770         Problem reported by Bruno Haible in
34771         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
34772         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
34773         explanation of setting 'hints'.
34774         Don't reject an implementation merely because it returns EAI_SERVICE.
34775         (EAI_SERVICE): Define to 0 if not defined.
34776
34777 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
34778
34779         The license of gnu-make and posix-shell is now "GPLed build tool".
34780         * modules/gnu-make (License): Likewise.
34781         * modules/posix-shell (License): Likewise.
34782
34783         New module posix-shell, for determining a POSIX shell
34784         or perhaps something that is close enough to a POSIX shell.
34785         * m4/posix-shell.m4: New file.
34786         * modules/posix-shell: New file.
34787
34788         * MODULES.html.sh: Mention new module.
34789
34790         New module gnu-make, for determining whether we're using GNU Make.
34791         * m4/gnu-make.m4: New file.
34792         * modules/gnu-make: New file.
34793         * MODULES.html.sh: Mention new module.
34794
34795 2007-11-14  Jim Meyering  <meyering@redhat.com>
34796
34797         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
34798         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
34799         use this macro to create a function _definition_.
34800         Remove useless "#undef ARGMATCH_DIE".
34801
34802 2007-11-14  Bruno Haible  <bruno@clisp.org>
34803
34804         * lib/config.charset: Update for OpenBSD 4.1.
34805         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
34806
34807 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
34808
34809         Document 64-bit #if problems in stdint.texi.
34810         * doc/headers/stdint.texi (stdint.h): Mention problems with
34811         64-bit-#if, and how to work around them.
34812
34813         Don't insist on 'long long int' support in the preprocessor.  It
34814         breaks too many things.  For example, PRIdMAX still uses a 'long
34815         long int' format with the latest Sun compiler, even though
34816         HAVE_LONG_LONG_INT isn't defined due to that compiler's
34817         preprocessor problem.  This causes the latest coreutils to dump
34818         core on Solaris 10 sparc with the Sun C compiler.
34819         Instead, fix the 2007-10-16 problem in a different way, by evaluating
34820         the troublesome expressions at configure-time, not at #if-time.
34821         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
34822         preprocessor.
34823         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
34824         compile-time C checks, done at 'configure'-time.
34825         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
34826         * modules/inttypes (Makefile): Substitute the new symbols that
34827         gl_INTTYPES_H now generates.
34828         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
34829
34830 2007-11-12  Bruno Haible  <bruno@clisp.org>
34831
34832         Tests for Unicode character classification functions.
34833
34834         * modules/unictype/bidicategory-byname-tests: New file.
34835         * modules/unictype/bidicategory-name-tests: New file.
34836         * modules/unictype/bidicategory-of-tests: New file.
34837         * modules/unictype/bidicategory-test-tests: New file.
34838         * modules/unictype/block-list-tests: New file.
34839         * modules/unictype/block-of-tests: New file.
34840         * modules/unictype/block-test-tests: New file.
34841         * modules/unictype/category-C-tests: New file.
34842         * modules/unictype/category-Cc-tests: New file.
34843         * modules/unictype/category-Cf-tests: New file.
34844         * modules/unictype/category-Cn-tests: New file.
34845         * modules/unictype/category-Co-tests: New file.
34846         * modules/unictype/category-Cs-tests: New file.
34847         * modules/unictype/category-L-tests: New file.
34848         * modules/unictype/category-Ll-tests: New file.
34849         * modules/unictype/category-Lm-tests: New file.
34850         * modules/unictype/category-Lo-tests: New file.
34851         * modules/unictype/category-Lt-tests: New file.
34852         * modules/unictype/category-Lu-tests: New file.
34853         * modules/unictype/category-M-tests: New file.
34854         * modules/unictype/category-Mc-tests: New file.
34855         * modules/unictype/category-Me-tests: New file.
34856         * modules/unictype/category-Mn-tests: New file.
34857         * modules/unictype/category-N-tests: New file.
34858         * modules/unictype/category-Nd-tests: New file.
34859         * modules/unictype/category-Nl-tests: New file.
34860         * modules/unictype/category-No-tests: New file.
34861         * modules/unictype/category-P-tests: New file.
34862         * modules/unictype/category-Pc-tests: New file.
34863         * modules/unictype/category-Pd-tests: New file.
34864         * modules/unictype/category-Pe-tests: New file.
34865         * modules/unictype/category-Pf-tests: New file.
34866         * modules/unictype/category-Pi-tests: New file.
34867         * modules/unictype/category-Po-tests: New file.
34868         * modules/unictype/category-Ps-tests: New file.
34869         * modules/unictype/category-S-tests: New file.
34870         * modules/unictype/category-Sc-tests: New file.
34871         * modules/unictype/category-Sk-tests: New file.
34872         * modules/unictype/category-Sm-tests: New file.
34873         * modules/unictype/category-So-tests: New file.
34874         * modules/unictype/category-Z-tests: New file.
34875         * modules/unictype/category-Zl-tests: New file.
34876         * modules/unictype/category-Zp-tests: New file.
34877         * modules/unictype/category-Zs-tests: New file.
34878         * modules/unictype/category-and-not-tests: New file.
34879         * modules/unictype/category-and-tests: New file.
34880         * modules/unictype/category-byname-tests: New file.
34881         * modules/unictype/category-name-tests: New file.
34882         * modules/unictype/category-none-tests: New file.
34883         * modules/unictype/category-of-tests: New file.
34884         * modules/unictype/category-or-tests: New file.
34885         * modules/unictype/category-test-withtable-tests: New file.
34886         * modules/unictype/combining-class-tests: New file.
34887         * modules/unictype/ctype-alnum-tests: New file.
34888         * modules/unictype/ctype-alpha-tests: New file.
34889         * modules/unictype/ctype-blank-tests: New file.
34890         * modules/unictype/ctype-cntrl-tests: New file.
34891         * modules/unictype/ctype-digit-tests: New file.
34892         * modules/unictype/ctype-graph-tests: New file.
34893         * modules/unictype/ctype-lower-tests: New file.
34894         * modules/unictype/ctype-print-tests: New file.
34895         * modules/unictype/ctype-punct-tests: New file.
34896         * modules/unictype/ctype-space-tests: New file.
34897         * modules/unictype/ctype-upper-tests: New file.
34898         * modules/unictype/ctype-xdigit-tests: New file.
34899         * modules/unictype/decimal-digit-tests: New file.
34900         * modules/unictype/digit-tests: New file.
34901         * modules/unictype/mirror-tests: New file.
34902         * modules/unictype/numeric-tests: New file.
34903         * modules/unictype/property-alphabetic-tests: New file.
34904         * modules/unictype/property-ascii-hex-digit-tests: New file.
34905         * modules/unictype/property-bidi-arabic-digit-tests: New file.
34906         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
34907         * modules/unictype/property-bidi-block-separator-tests: New file.
34908         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
34909         * modules/unictype/property-bidi-common-separator-tests: New file.
34910         * modules/unictype/property-bidi-control-tests: New file.
34911         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
34912         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
34913         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
34914         * modules/unictype/property-bidi-european-digit-tests: New file.
34915         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
34916         * modules/unictype/property-bidi-left-to-right-tests: New file.
34917         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
34918         * modules/unictype/property-bidi-other-neutral-tests: New file.
34919         * modules/unictype/property-bidi-pdf-tests: New file.
34920         * modules/unictype/property-bidi-segment-separator-tests: New file.
34921         * modules/unictype/property-bidi-whitespace-tests: New file.
34922         * modules/unictype/property-byname-tests: New file.
34923         * modules/unictype/property-combining-tests: New file.
34924         * modules/unictype/property-composite-tests: New file.
34925         * modules/unictype/property-currency-symbol-tests: New file.
34926         * modules/unictype/property-dash-tests: New file.
34927         * modules/unictype/property-decimal-digit-tests: New file.
34928         * modules/unictype/property-default-ignorable-code-point-tests: New file.
34929         * modules/unictype/property-deprecated-tests: New file.
34930         * modules/unictype/property-diacritic-tests: New file.
34931         * modules/unictype/property-extender-tests: New file.
34932         * modules/unictype/property-format-control-tests: New file.
34933         * modules/unictype/property-grapheme-base-tests: New file.
34934         * modules/unictype/property-grapheme-extend-tests: New file.
34935         * modules/unictype/property-grapheme-link-tests: New file.
34936         * modules/unictype/property-hex-digit-tests: New file.
34937         * modules/unictype/property-hyphen-tests: New file.
34938         * modules/unictype/property-id-continue-tests: New file.
34939         * modules/unictype/property-id-start-tests: New file.
34940         * modules/unictype/property-ideographic-tests: New file.
34941         * modules/unictype/property-ids-binary-operator-tests: New file.
34942         * modules/unictype/property-ids-trinary-operator-tests: New file.
34943         * modules/unictype/property-ignorable-control-tests: New file.
34944         * modules/unictype/property-iso-control-tests: New file.
34945         * modules/unictype/property-join-control-tests: New file.
34946         * modules/unictype/property-left-of-pair-tests: New file.
34947         * modules/unictype/property-line-separator-tests: New file.
34948         * modules/unictype/property-logical-order-exception-tests: New file.
34949         * modules/unictype/property-lowercase-tests: New file.
34950         * modules/unictype/property-math-tests: New file.
34951         * modules/unictype/property-non-break-tests: New file.
34952         * modules/unictype/property-not-a-character-tests: New file.
34953         * modules/unictype/property-numeric-tests: New file.
34954         * modules/unictype/property-other-alphabetic-tests: New file.
34955         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
34956         * modules/unictype/property-other-grapheme-extend-tests: New file.
34957         * modules/unictype/property-other-id-continue-tests: New file.
34958         * modules/unictype/property-other-id-start-tests: New file.
34959         * modules/unictype/property-other-lowercase-tests: New file.
34960         * modules/unictype/property-other-math-tests: New file.
34961         * modules/unictype/property-other-uppercase-tests: New file.
34962         * modules/unictype/property-paired-punctuation-tests: New file.
34963         * modules/unictype/property-paragraph-separator-tests: New file.
34964         * modules/unictype/property-pattern-syntax-tests: New file.
34965         * modules/unictype/property-pattern-white-space-tests: New file.
34966         * modules/unictype/property-private-use-tests: New file.
34967         * modules/unictype/property-punctuation-tests: New file.
34968         * modules/unictype/property-quotation-mark-tests: New file.
34969         * modules/unictype/property-radical-tests: New file.
34970         * modules/unictype/property-sentence-terminal-tests: New file.
34971         * modules/unictype/property-soft-dotted-tests: New file.
34972         * modules/unictype/property-space-tests: New file.
34973         * modules/unictype/property-terminal-punctuation-tests: New file.
34974         * modules/unictype/property-test-tests: New file.
34975         * modules/unictype/property-titlecase-tests: New file.
34976         * modules/unictype/property-unassigned-code-value-tests: New file.
34977         * modules/unictype/property-unified-ideograph-tests: New file.
34978         * modules/unictype/property-uppercase-tests: New file.
34979         * modules/unictype/property-variation-selector-tests: New file.
34980         * modules/unictype/property-white-space-tests: New file.
34981         * modules/unictype/property-xid-continue-tests: New file.
34982         * modules/unictype/property-xid-start-tests: New file.
34983         * modules/unictype/property-zero-width-tests: New file.
34984         * modules/unictype/scripts-tests: New file.
34985         * modules/unictype/syntax-c-ident-tests: New file.
34986         * modules/unictype/syntax-c-whitespace-tests: New file.
34987         * modules/unictype/syntax-java-ident-tests: New file.
34988         * modules/unictype/syntax-java-whitespace-tests: New file.
34989         * tests/unictype/test-bidi_byname.c: New file.
34990         * tests/unictype/test-bidi_name.c: New file.
34991         * tests/unictype/test-bidi_of.c: New file.
34992         * tests/unictype/test-bidi_test.c: New file.
34993         * tests/unictype/test-block_list.c: New file.
34994         * tests/unictype/test-block_of.c: New file.
34995         * tests/unictype/test-block_test.c: New file.
34996         * tests/unictype/test-categ_and.c: New file.
34997         * tests/unictype/test-categ_and_not.c: New file.
34998         * tests/unictype/test-categ_byname.c: New file.
34999         * tests/unictype/test-categ_name.c: New file.
35000         * tests/unictype/test-categ_none.c: New file.
35001         * tests/unictype/test-categ_of.c: New file.
35002         * tests/unictype/test-categ_or.c: New file.
35003         * tests/unictype/test-categ_test_withtable.c: New file.
35004         * tests/unictype/test-combining.c: New file.
35005         * tests/unictype/test-decdigit.c: New file.
35006         * tests/unictype/test-digit.c: New file.
35007         * tests/unictype/test-mirror.c: New file.
35008         * tests/unictype/test-numeric.c: New file.
35009         * tests/unictype/test-pr_byname.c: New file.
35010         * tests/unictype/test-pr_test.c: New file.
35011         * tests/unictype/test-predicate-part1.h: New file.
35012         * tests/unictype/test-predicate-part2.h: New file.
35013         * tests/unictype/test-scripts.c: New file.
35014         * tests/unictype/test-sy_c_ident.c: New file.
35015         * tests/unictype/test-sy_java_ident.c: New file.
35016
35017         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
35018         for Unicode 5.0.0.
35019         * tests/unictype/test-categ_Cc.c: Likewise.
35020         * tests/unictype/test-categ_Cf.c: Likewise.
35021         * tests/unictype/test-categ_Cn.c: Likewise.
35022         * tests/unictype/test-categ_Co.c: Likewise.
35023         * tests/unictype/test-categ_Cs.c: Likewise.
35024         * tests/unictype/test-categ_L.c: Likewise.
35025         * tests/unictype/test-categ_Ll.c: Likewise.
35026         * tests/unictype/test-categ_Lm.c: Likewise.
35027         * tests/unictype/test-categ_Lo.c: Likewise.
35028         * tests/unictype/test-categ_Lt.c: Likewise.
35029         * tests/unictype/test-categ_Lu.c: Likewise.
35030         * tests/unictype/test-categ_M.c: Likewise.
35031         * tests/unictype/test-categ_Mc.c: Likewise.
35032         * tests/unictype/test-categ_Me.c: Likewise.
35033         * tests/unictype/test-categ_Mn.c: Likewise.
35034         * tests/unictype/test-categ_N.c: Likewise.
35035         * tests/unictype/test-categ_Nd.c: Likewise.
35036         * tests/unictype/test-categ_Nl.c: Likewise.
35037         * tests/unictype/test-categ_No.c: Likewise.
35038         * tests/unictype/test-categ_P.c: Likewise.
35039         * tests/unictype/test-categ_Pc.c: Likewise.
35040         * tests/unictype/test-categ_Pd.c: Likewise.
35041         * tests/unictype/test-categ_Pe.c: Likewise.
35042         * tests/unictype/test-categ_Pf.c: Likewise.
35043         * tests/unictype/test-categ_Pi.c: Likewise.
35044         * tests/unictype/test-categ_Po.c: Likewise.
35045         * tests/unictype/test-categ_Ps.c: Likewise.
35046         * tests/unictype/test-categ_S.c: Likewise.
35047         * tests/unictype/test-categ_Sc.c: Likewise.
35048         * tests/unictype/test-categ_Sk.c: Likewise.
35049         * tests/unictype/test-categ_Sm.c: Likewise.
35050         * tests/unictype/test-categ_So.c: Likewise.
35051         * tests/unictype/test-categ_Z.c: Likewise.
35052         * tests/unictype/test-categ_Zl.c: Likewise.
35053         * tests/unictype/test-categ_Zp.c: Likewise.
35054         * tests/unictype/test-categ_Zs.c: Likewise.
35055         * tests/unictype/test-ctype_alnum.c: Likewise.
35056         * tests/unictype/test-ctype_alpha.c: Likewise.
35057         * tests/unictype/test-ctype_blank.c: Likewise.
35058         * tests/unictype/test-ctype_cntrl.c: Likewise.
35059         * tests/unictype/test-ctype_digit.c: Likewise.
35060         * tests/unictype/test-ctype_graph.c: Likewise.
35061         * tests/unictype/test-ctype_lower.c: Likewise.
35062         * tests/unictype/test-ctype_print.c: Likewise.
35063         * tests/unictype/test-ctype_punct.c: Likewise.
35064         * tests/unictype/test-ctype_space.c: Likewise.
35065         * tests/unictype/test-ctype_upper.c: Likewise.
35066         * tests/unictype/test-ctype_xdigit.c: Likewise.
35067         * tests/unictype/test-decdigit.h: Likewise.
35068         * tests/unictype/test-digit.h: Likewise.
35069         * tests/unictype/test-numeric.h: Likewise.
35070         * tests/unictype/test-pr_alphabetic.c: Likewise.
35071         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
35072         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
35073         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
35074         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
35075         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
35076         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
35077         * tests/unictype/test-pr_bidi_control.c: Likewise.
35078         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
35079         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
35080         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
35081         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
35082         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
35083         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
35084         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
35085         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
35086         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
35087         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
35088         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
35089         * tests/unictype/test-pr_combining.c: Likewise.
35090         * tests/unictype/test-pr_composite.c: Likewise.
35091         * tests/unictype/test-pr_currency_symbol.c: Likewise.
35092         * tests/unictype/test-pr_dash.c: Likewise.
35093         * tests/unictype/test-pr_decimal_digit.c: Likewise.
35094         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
35095         * tests/unictype/test-pr_deprecated.c: Likewise.
35096         * tests/unictype/test-pr_diacritic.c: Likewise.
35097         * tests/unictype/test-pr_extender.c: Likewise.
35098         * tests/unictype/test-pr_format_control.c: Likewise.
35099         * tests/unictype/test-pr_grapheme_base.c: Likewise.
35100         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
35101         * tests/unictype/test-pr_grapheme_link.c: Likewise.
35102         * tests/unictype/test-pr_hex_digit.c: Likewise.
35103         * tests/unictype/test-pr_hyphen.c: Likewise.
35104         * tests/unictype/test-pr_id_continue.c: Likewise.
35105         * tests/unictype/test-pr_id_start.c: Likewise.
35106         * tests/unictype/test-pr_ideographic.c: Likewise.
35107         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
35108         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
35109         * tests/unictype/test-pr_ignorable_control.c: Likewise.
35110         * tests/unictype/test-pr_iso_control.c: Likewise.
35111         * tests/unictype/test-pr_join_control.c: Likewise.
35112         * tests/unictype/test-pr_left_of_pair.c: Likewise.
35113         * tests/unictype/test-pr_line_separator.c: Likewise.
35114         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
35115         * tests/unictype/test-pr_lowercase.c: Likewise.
35116         * tests/unictype/test-pr_math.c: Likewise.
35117         * tests/unictype/test-pr_non_break.c: Likewise.
35118         * tests/unictype/test-pr_not_a_character.c: Likewise.
35119         * tests/unictype/test-pr_numeric.c: Likewise.
35120         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
35121         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
35122         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
35123         * tests/unictype/test-pr_other_id_continue.c: Likewise.
35124         * tests/unictype/test-pr_other_id_start.c: Likewise.
35125         * tests/unictype/test-pr_other_lowercase.c: Likewise.
35126         * tests/unictype/test-pr_other_math.c: Likewise.
35127         * tests/unictype/test-pr_other_uppercase.c: Likewise.
35128         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
35129         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
35130         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
35131         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
35132         * tests/unictype/test-pr_private_use.c: Likewise.
35133         * tests/unictype/test-pr_punctuation.c: Likewise.
35134         * tests/unictype/test-pr_quotation_mark.c: Likewise.
35135         * tests/unictype/test-pr_radical.c: Likewise.
35136         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
35137         * tests/unictype/test-pr_soft_dotted.c: Likewise.
35138         * tests/unictype/test-pr_space.c: Likewise.
35139         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
35140         * tests/unictype/test-pr_titlecase.c: Likewise.
35141         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
35142         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
35143         * tests/unictype/test-pr_uppercase.c: Likewise.
35144         * tests/unictype/test-pr_variation_selector.c: Likewise.
35145         * tests/unictype/test-pr_white_space.c: Likewise.
35146         * tests/unictype/test-pr_xid_continue.c: Likewise.
35147         * tests/unictype/test-pr_xid_start.c: Likewise.
35148         * tests/unictype/test-pr_zero_width.c: Likewise.
35149         * tests/unictype/test-sy_c_whitespace.c: Likewise.
35150         * tests/unictype/test-sy_java_whitespace.c: Likewise.
35151
35152 2007-11-12  Bruno Haible  <bruno@clisp.org>
35153
35154         Unicode character classification functions.
35155         * lib/unictype.h: New file.
35156         * modules/unictype/base: New file.
35157         * modules/unictype/category-L: New file.
35158         * modules/unictype/category-Lu: New file.
35159         * modules/unictype/category-Ll: New file.
35160         * modules/unictype/category-Lt: New file.
35161         * modules/unictype/category-Lm: New file.
35162         * modules/unictype/category-Lo: New file.
35163         * modules/unictype/category-M: New file.
35164         * modules/unictype/category-Mn: New file.
35165         * modules/unictype/category-Mc: New file.
35166         * modules/unictype/category-Me: New file.
35167         * modules/unictype/category-N: New file.
35168         * modules/unictype/category-Nd: New file.
35169         * modules/unictype/category-Nl: New file.
35170         * modules/unictype/category-No: New file.
35171         * modules/unictype/category-P: New file.
35172         * modules/unictype/category-Pc: New file.
35173         * modules/unictype/category-Pd: New file.
35174         * modules/unictype/category-Ps: New file.
35175         * modules/unictype/category-Pe: New file.
35176         * modules/unictype/category-Pi: New file.
35177         * modules/unictype/category-Pf: New file.
35178         * modules/unictype/category-Po: New file.
35179         * modules/unictype/category-S: New file.
35180         * modules/unictype/category-Sm: New file.
35181         * modules/unictype/category-Sc: New file.
35182         * modules/unictype/category-Sk: New file.
35183         * modules/unictype/category-So: New file.
35184         * modules/unictype/category-Z: New file.
35185         * modules/unictype/category-Zs: New file.
35186         * modules/unictype/category-Zl: New file.
35187         * modules/unictype/category-Zp: New file.
35188         * modules/unictype/category-C: New file.
35189         * modules/unictype/category-Cc: New file.
35190         * modules/unictype/category-Cf: New file.
35191         * modules/unictype/category-Cs: New file.
35192         * modules/unictype/category-Co: New file.
35193         * modules/unictype/category-Cn: New file.
35194         * modules/unictype/category-or: New file.
35195         * modules/unictype/category-of: New file.
35196         * modules/unictype/category-test: New file.
35197         * modules/unictype/category-test-withtable: New file.
35198         * modules/unictype/category-byname: New file.
35199         * modules/unictype/category-none: New file.
35200         * modules/unictype/category-and: New file.
35201         * modules/unictype/category-and-not: New file.
35202         * modules/unictype/category-name: New file.
35203         * modules/unictype/combining-class: New file.
35204         * modules/unictype/category-all: New file.
35205         * modules/unictype/bidicategory-all: New file.
35206         * modules/unictype/bidicategory-byname: New file.
35207         * modules/unictype/bidicategory-name: New file.
35208         * modules/unictype/bidicategory-of: New file.
35209         * modules/unictype/bidicategory-test: New file.
35210         * modules/unictype/decimal-digit: New file.
35211         * modules/unictype/digit: New file.
35212         * modules/unictype/numeric: New file.
35213         * modules/unictype/mirror: New file.
35214         * modules/unictype/property-white-space: New file.
35215         * modules/unictype/property-alphabetic: New file.
35216         * modules/unictype/property-other-alphabetic: New file.
35217         * modules/unictype/property-not-a-character: New file.
35218         * modules/unictype/property-default-ignorable-code-point: New file.
35219         * modules/unictype/property-other-default-ignorable-code-point: New
35220         file.
35221         * modules/unictype/property-deprecated: New file.
35222         * modules/unictype/property-logical-order-exception: New file.
35223         * modules/unictype/property-variation-selector: New file.
35224         * modules/unictype/property-private-use: New file.
35225         * modules/unictype/property-unassigned-code-value: New file.
35226         * modules/unictype/property-uppercase: New file.
35227         * modules/unictype/property-other-uppercase: New file.
35228         * modules/unictype/property-lowercase: New file.
35229         * modules/unictype/property-other-lowercase: New file.
35230         * modules/unictype/property-titlecase: New file.
35231         * modules/unictype/property-soft-dotted: New file.
35232         * modules/unictype/property-id-start: New file.
35233         * modules/unictype/property-other-id-start: New file.
35234         * modules/unictype/property-id-continue: New file.
35235         * modules/unictype/property-other-id-continue: New file.
35236         * modules/unictype/property-xid-start: New file.
35237         * modules/unictype/property-xid-continue: New file.
35238         * modules/unictype/property-pattern-white-space: New file.
35239         * modules/unictype/property-pattern-syntax: New file.
35240         * modules/unictype/property-join-control: New file.
35241         * modules/unictype/property-grapheme-base: New file.
35242         * modules/unictype/property-grapheme-extend: New file.
35243         * modules/unictype/property-other-grapheme-extend: New file.
35244         * modules/unictype/property-grapheme-link: New file.
35245         * modules/unictype/property-bidi-control: New file.
35246         * modules/unictype/property-bidi-left-to-right: New file.
35247         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
35248         * modules/unictype/property-bidi-arabic-right-to-left: New file.
35249         * modules/unictype/property-bidi-european-digit: New file.
35250         * modules/unictype/property-bidi-eur-num-separator: New file.
35251         * modules/unictype/property-bidi-eur-num-terminator: New file.
35252         * modules/unictype/property-bidi-arabic-digit: New file.
35253         * modules/unictype/property-bidi-common-separator: New file.
35254         * modules/unictype/property-bidi-block-separator: New file.
35255         * modules/unictype/property-bidi-segment-separator: New file.
35256         * modules/unictype/property-bidi-whitespace: New file.
35257         * modules/unictype/property-bidi-non-spacing-mark: New file.
35258         * modules/unictype/property-bidi-boundary-neutral: New file.
35259         * modules/unictype/property-bidi-pdf: New file.
35260         * modules/unictype/property-bidi-embedding-or-override: New file.
35261         * modules/unictype/property-bidi-other-neutral: New file.
35262         * modules/unictype/property-hex-digit: New file.
35263         * modules/unictype/property-ascii-hex-digit: New file.
35264         * modules/unictype/property-ideographic: New file.
35265         * modules/unictype/property-unified-ideograph: New file.
35266         * modules/unictype/property-radical: New file.
35267         * modules/unictype/property-ids-binary-operator: New file.
35268         * modules/unictype/property-ids-trinary-operator: New file.
35269         * modules/unictype/property-zero-width: New file.
35270         * modules/unictype/property-space: New file.
35271         * modules/unictype/property-non-break: New file.
35272         * modules/unictype/property-iso-control: New file.
35273         * modules/unictype/property-format-control: New file.
35274         * modules/unictype/property-dash: New file.
35275         * modules/unictype/property-hyphen: New file.
35276         * modules/unictype/property-punctuation: New file.
35277         * modules/unictype/property-line-separator: New file.
35278         * modules/unictype/property-paragraph-separator: New file.
35279         * modules/unictype/property-quotation-mark: New file.
35280         * modules/unictype/property-sentence-terminal: New file.
35281         * modules/unictype/property-terminal-punctuation: New file.
35282         * modules/unictype/property-currency-symbol: New file.
35283         * modules/unictype/property-math: New file.
35284         * modules/unictype/property-other-math: New file.
35285         * modules/unictype/property-paired-punctuation: New file.
35286         * modules/unictype/property-left-of-pair: New file.
35287         * modules/unictype/property-combining: New file.
35288         * modules/unictype/property-composite: New file.
35289         * modules/unictype/property-decimal-digit: New file.
35290         * modules/unictype/property-numeric: New file.
35291         * modules/unictype/property-diacritic: New file.
35292         * modules/unictype/property-extender: New file.
35293         * modules/unictype/property-ignorable-control: New file.
35294         * modules/unictype/property-test: New file.
35295         * modules/unictype/property-byname: New file.
35296         * modules/unictype/property-all: New file.
35297         * modules/unictype/scripts: New file.
35298         * modules/unictype/scripts-all: New file.
35299         * modules/unictype/block-of: New file.
35300         * modules/unictype/block-test: New file.
35301         * modules/unictype/block-list: New file.
35302         * modules/unictype/block-all: New file.
35303         * modules/unictype/syntax-c-whitespace: New file.
35304         * modules/unictype/syntax-java-whitespace: New file.
35305         * modules/unictype/syntax-c-ident: New file.
35306         * modules/unictype/syntax-java-ident: New file.
35307         * modules/unictype/ctype-alnum: New file.
35308         * modules/unictype/ctype-alpha: New file.
35309         * modules/unictype/ctype-cntrl: New file.
35310         * modules/unictype/ctype-digit: New file.
35311         * modules/unictype/ctype-graph: New file.
35312         * modules/unictype/ctype-lower: New file.
35313         * modules/unictype/ctype-print: New file.
35314         * modules/unictype/ctype-punct: New file.
35315         * modules/unictype/ctype-space: New file.
35316         * modules/unictype/ctype-upper: New file.
35317         * modules/unictype/ctype-xdigit: New file.
35318         * modules/unictype/ctype-blank: New file.
35319         * lib/unictype/bidi_byname.c: New file.
35320         * lib/unictype/bidi_name.c: New file.
35321         * lib/unictype/bidi_of.c: New file.
35322         * lib/unictype/bidi_test.c: New file.
35323         * lib/unictype/bitmap.h: New file.
35324         * lib/unictype/block_test.c: New file.
35325         * lib/unictype/blocks.c: New file.
35326         * lib/unictype/categ_C.c: New file.
35327         * lib/unictype/categ_Cc.c: New file.
35328         * lib/unictype/categ_Cf.c: New file.
35329         * lib/unictype/categ_Cn.c: New file.
35330         * lib/unictype/categ_Co.c: New file.
35331         * lib/unictype/categ_Cs.c: New file.
35332         * lib/unictype/categ_L.c: New file.
35333         * lib/unictype/categ_Ll.c: New file.
35334         * lib/unictype/categ_Lm.c: New file.
35335         * lib/unictype/categ_Lo.c: New file.
35336         * lib/unictype/categ_Lt.c: New file.
35337         * lib/unictype/categ_Lu.c: New file.
35338         * lib/unictype/categ_M.c: New file.
35339         * lib/unictype/categ_Mc.c: New file.
35340         * lib/unictype/categ_Me.c: New file.
35341         * lib/unictype/categ_Mn.c: New file.
35342         * lib/unictype/categ_N.c: New file.
35343         * lib/unictype/categ_Nd.c: New file.
35344         * lib/unictype/categ_Nl.c: New file.
35345         * lib/unictype/categ_No.c: New file.
35346         * lib/unictype/categ_P.c: New file.
35347         * lib/unictype/categ_Pc.c: New file.
35348         * lib/unictype/categ_Pd.c: New file.
35349         * lib/unictype/categ_Pe.c: New file.
35350         * lib/unictype/categ_Pf.c: New file.
35351         * lib/unictype/categ_Pi.c: New file.
35352         * lib/unictype/categ_Po.c: New file.
35353         * lib/unictype/categ_Ps.c: New file.
35354         * lib/unictype/categ_S.c: New file.
35355         * lib/unictype/categ_Sc.c: New file.
35356         * lib/unictype/categ_Sk.c: New file.
35357         * lib/unictype/categ_Sm.c: New file.
35358         * lib/unictype/categ_So.c: New file.
35359         * lib/unictype/categ_Z.c: New file.
35360         * lib/unictype/categ_Zl.c: New file.
35361         * lib/unictype/categ_Zp.c: New file.
35362         * lib/unictype/categ_Zs.c: New file.
35363         * lib/unictype/categ_and.c: New file.
35364         * lib/unictype/categ_and_not.c: New file.
35365         * lib/unictype/categ_byname.c: New file.
35366         * lib/unictype/categ_name.c: New file.
35367         * lib/unictype/categ_none.c: New file.
35368         * lib/unictype/categ_of.c: New file.
35369         * lib/unictype/categ_or.c: New file.
35370         * lib/unictype/categ_test.c: New file.
35371         * lib/unictype/combining.c: New file.
35372         * lib/unictype/ctype_alnum.c: New file.
35373         * lib/unictype/ctype_alpha.c: New file.
35374         * lib/unictype/ctype_blank.c: New file.
35375         * lib/unictype/ctype_cntrl.c: New file.
35376         * lib/unictype/ctype_digit.c: New file.
35377         * lib/unictype/ctype_graph.c: New file.
35378         * lib/unictype/ctype_lower.c: New file.
35379         * lib/unictype/ctype_print.c: New file.
35380         * lib/unictype/ctype_punct.c: New file.
35381         * lib/unictype/ctype_space.c: New file.
35382         * lib/unictype/ctype_upper.c: New file.
35383         * lib/unictype/ctype_xdigit.c: New file.
35384         * lib/unictype/decdigit.c: New file.
35385         * lib/unictype/digit.c: New file.
35386         * lib/unictype/identsyntaxmap.h: New file.
35387         * lib/unictype/mirror.c: New file.
35388         * lib/unictype/numeric.c: New file.
35389         * lib/unictype/pr_alphabetic.c: New file.
35390         * lib/unictype/pr_ascii_hex_digit.c: New file.
35391         * lib/unictype/pr_bidi_arabic_digit.c: New file.
35392         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
35393         * lib/unictype/pr_bidi_block_separator.c: New file.
35394         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
35395         * lib/unictype/pr_bidi_common_separator.c: New file.
35396         * lib/unictype/pr_bidi_control.c: New file.
35397         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
35398         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
35399         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
35400         * lib/unictype/pr_bidi_european_digit.c: New file.
35401         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
35402         * lib/unictype/pr_bidi_left_to_right.c: New file.
35403         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
35404         * lib/unictype/pr_bidi_other_neutral.c: New file.
35405         * lib/unictype/pr_bidi_pdf.c: New file.
35406         * lib/unictype/pr_bidi_segment_separator.c: New file.
35407         * lib/unictype/pr_bidi_whitespace.c: New file.
35408         * lib/unictype/pr_byname.c: New file.
35409         * lib/unictype/pr_byname.gperf: New file.
35410         * lib/unictype/pr_combining.c: New file.
35411         * lib/unictype/pr_composite.c: New file.
35412         * lib/unictype/pr_currency_symbol.c: New file.
35413         * lib/unictype/pr_dash.c: New file.
35414         * lib/unictype/pr_decimal_digit.c: New file.
35415         * lib/unictype/pr_default_ignorable_code_point.c: New file.
35416         * lib/unictype/pr_deprecated.c: New file.
35417         * lib/unictype/pr_diacritic.c: New file.
35418         * lib/unictype/pr_extender.c: New file.
35419         * lib/unictype/pr_format_control.c: New file.
35420         * lib/unictype/pr_grapheme_base.c: New file.
35421         * lib/unictype/pr_grapheme_extend.c: New file.
35422         * lib/unictype/pr_grapheme_link.c: New file.
35423         * lib/unictype/pr_hex_digit.c: New file.
35424         * lib/unictype/pr_hyphen.c: New file.
35425         * lib/unictype/pr_id_continue.c: New file.
35426         * lib/unictype/pr_id_start.c: New file.
35427         * lib/unictype/pr_ideographic.c: New file.
35428         * lib/unictype/pr_ids_binary_operator.c: New file.
35429         * lib/unictype/pr_ids_trinary_operator.c: New file.
35430         * lib/unictype/pr_ignorable_control.c: New file.
35431         * lib/unictype/pr_iso_control.c: New file.
35432         * lib/unictype/pr_join_control.c: New file.
35433         * lib/unictype/pr_left_of_pair.c: New file.
35434         * lib/unictype/pr_line_separator.c: New file.
35435         * lib/unictype/pr_logical_order_exception.c: New file.
35436         * lib/unictype/pr_lowercase.c: New file.
35437         * lib/unictype/pr_math.c: New file.
35438         * lib/unictype/pr_non_break.c: New file.
35439         * lib/unictype/pr_not_a_character.c: New file.
35440         * lib/unictype/pr_numeric.c: New file.
35441         * lib/unictype/pr_other_alphabetic.c: New file.
35442         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
35443         * lib/unictype/pr_other_grapheme_extend.c: New file.
35444         * lib/unictype/pr_other_id_continue.c: New file.
35445         * lib/unictype/pr_other_id_start.c: New file.
35446         * lib/unictype/pr_other_lowercase.c: New file.
35447         * lib/unictype/pr_other_math.c: New file.
35448         * lib/unictype/pr_other_uppercase.c: New file.
35449         * lib/unictype/pr_paired_punctuation.c: New file.
35450         * lib/unictype/pr_paragraph_separator.c: New file.
35451         * lib/unictype/pr_pattern_syntax.c: New file.
35452         * lib/unictype/pr_pattern_white_space.c: New file.
35453         * lib/unictype/pr_private_use.c: New file.
35454         * lib/unictype/pr_punctuation.c: New file.
35455         * lib/unictype/pr_quotation_mark.c: New file.
35456         * lib/unictype/pr_radical.c: New file.
35457         * lib/unictype/pr_sentence_terminal.c: New file.
35458         * lib/unictype/pr_soft_dotted.c: New file.
35459         * lib/unictype/pr_space.c: New file.
35460         * lib/unictype/pr_terminal_punctuation.c: New file.
35461         * lib/unictype/pr_test.c: New file.
35462         * lib/unictype/pr_titlecase.c: New file.
35463         * lib/unictype/pr_unassigned_code_value.c: New file.
35464         * lib/unictype/pr_unified_ideograph.c: New file.
35465         * lib/unictype/pr_uppercase.c: New file.
35466         * lib/unictype/pr_variation_selector.c: New file.
35467         * lib/unictype/pr_white_space.c: New file.
35468         * lib/unictype/pr_xid_continue.c: New file.
35469         * lib/unictype/pr_xid_start.c: New file.
35470         * lib/unictype/pr_zero_width.c: New file.
35471         * lib/unictype/scripts.c: New file.
35472         * lib/unictype/sy_c_ident.c: New file.
35473         * lib/unictype/sy_c_whitespace.c: New file.
35474         * lib/unictype/sy_java_ident.c: New file.
35475         * lib/unictype/sy_java_whitespace.c: New file.
35476
35477         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
35478         Unicode 5.0.0.
35479         * lib/unictype/blocks.h: Likewise.
35480         * lib/unictype/categ_C.h: Likewise.
35481         * lib/unictype/categ_Cc.h: Likewise.
35482         * lib/unictype/categ_Cf.h: Likewise.
35483         * lib/unictype/categ_Cn.h: Likewise.
35484         * lib/unictype/categ_Co.h: Likewise.
35485         * lib/unictype/categ_Cs.h: Likewise.
35486         * lib/unictype/categ_L.h: Likewise.
35487         * lib/unictype/categ_Ll.h: Likewise.
35488         * lib/unictype/categ_Lm.h: Likewise.
35489         * lib/unictype/categ_Lo.h: Likewise.
35490         * lib/unictype/categ_Lt.h: Likewise.
35491         * lib/unictype/categ_Lu.h: Likewise.
35492         * lib/unictype/categ_M.h: Likewise.
35493         * lib/unictype/categ_Mc.h: Likewise.
35494         * lib/unictype/categ_Me.h: Likewise.
35495         * lib/unictype/categ_Mn.h: Likewise.
35496         * lib/unictype/categ_N.h: Likewise.
35497         * lib/unictype/categ_Nd.h: Likewise.
35498         * lib/unictype/categ_Nl.h: Likewise.
35499         * lib/unictype/categ_No.h: Likewise.
35500         * lib/unictype/categ_P.h: Likewise.
35501         * lib/unictype/categ_Pc.h: Likewise.
35502         * lib/unictype/categ_Pd.h: Likewise.
35503         * lib/unictype/categ_Pe.h: Likewise.
35504         * lib/unictype/categ_Pf.h: Likewise.
35505         * lib/unictype/categ_Pi.h: Likewise.
35506         * lib/unictype/categ_Po.h: Likewise.
35507         * lib/unictype/categ_Ps.h: Likewise.
35508         * lib/unictype/categ_S.h: Likewise.
35509         * lib/unictype/categ_Sc.h: Likewise.
35510         * lib/unictype/categ_Sk.h: Likewise.
35511         * lib/unictype/categ_Sm.h: Likewise.
35512         * lib/unictype/categ_So.h: Likewise.
35513         * lib/unictype/categ_Z.h: Likewise.
35514         * lib/unictype/categ_Zl.h: Likewise.
35515         * lib/unictype/categ_Zp.h: Likewise.
35516         * lib/unictype/categ_Zs.h: Likewise.
35517         * lib/unictype/categ_of.h: Likewise.
35518         * lib/unictype/combining.h: Likewise.
35519         * lib/unictype/ctype_alnum.h: Likewise.
35520         * lib/unictype/ctype_alpha.h: Likewise.
35521         * lib/unictype/ctype_blank.h: Likewise.
35522         * lib/unictype/ctype_cntrl.h: Likewise.
35523         * lib/unictype/ctype_digit.h: Likewise.
35524         * lib/unictype/ctype_graph.h: Likewise.
35525         * lib/unictype/ctype_lower.h: Likewise.
35526         * lib/unictype/ctype_print.h: Likewise.
35527         * lib/unictype/ctype_punct.h: Likewise.
35528         * lib/unictype/ctype_space.h: Likewise.
35529         * lib/unictype/ctype_upper.h: Likewise.
35530         * lib/unictype/ctype_xdigit.h: Likewise.
35531         * lib/unictype/decdigit.h: Likewise.
35532         * lib/unictype/digit.h: Likewise.
35533         * lib/unictype/mirror.h: Likewise.
35534         * lib/unictype/numeric.h: Likewise.
35535         * lib/unictype/pr_alphabetic.h: Likewise.
35536         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
35537         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
35538         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
35539         * lib/unictype/pr_bidi_block_separator.h: Likewise.
35540         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
35541         * lib/unictype/pr_bidi_common_separator.h: Likewise.
35542         * lib/unictype/pr_bidi_control.h: Likewise.
35543         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
35544         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
35545         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
35546         * lib/unictype/pr_bidi_european_digit.h: Likewise.
35547         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
35548         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
35549         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
35550         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
35551         * lib/unictype/pr_bidi_pdf.h: Likewise.
35552         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
35553         * lib/unictype/pr_bidi_whitespace.h: Likewise.
35554         * lib/unictype/pr_combining.h: Likewise.
35555         * lib/unictype/pr_composite.h: Likewise.
35556         * lib/unictype/pr_currency_symbol.h: Likewise.
35557         * lib/unictype/pr_dash.h: Likewise.
35558         * lib/unictype/pr_decimal_digit.h: Likewise.
35559         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
35560         * lib/unictype/pr_deprecated.h: Likewise.
35561         * lib/unictype/pr_diacritic.h: Likewise.
35562         * lib/unictype/pr_extender.h: Likewise.
35563         * lib/unictype/pr_format_control.h: Likewise.
35564         * lib/unictype/pr_grapheme_base.h: Likewise.
35565         * lib/unictype/pr_grapheme_extend.h: Likewise.
35566         * lib/unictype/pr_grapheme_link.h: Likewise.
35567         * lib/unictype/pr_hex_digit.h: Likewise.
35568         * lib/unictype/pr_hyphen.h: Likewise.
35569         * lib/unictype/pr_id_continue.h: Likewise.
35570         * lib/unictype/pr_id_start.h: Likewise.
35571         * lib/unictype/pr_ideographic.h: Likewise.
35572         * lib/unictype/pr_ids_binary_operator.h: Likewise.
35573         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
35574         * lib/unictype/pr_ignorable_control.h: Likewise.
35575         * lib/unictype/pr_iso_control.h: Likewise.
35576         * lib/unictype/pr_join_control.h: Likewise.
35577         * lib/unictype/pr_left_of_pair.h: Likewise.
35578         * lib/unictype/pr_line_separator.h: Likewise.
35579         * lib/unictype/pr_logical_order_exception.h: Likewise.
35580         * lib/unictype/pr_lowercase.h: Likewise.
35581         * lib/unictype/pr_math.h: Likewise.
35582         * lib/unictype/pr_non_break.h: Likewise.
35583         * lib/unictype/pr_not_a_character.h: Likewise.
35584         * lib/unictype/pr_numeric.h: Likewise.
35585         * lib/unictype/pr_other_alphabetic.h: Likewise.
35586         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
35587         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
35588         * lib/unictype/pr_other_id_continue.h: Likewise.
35589         * lib/unictype/pr_other_id_start.h: Likewise.
35590         * lib/unictype/pr_other_lowercase.h: Likewise.
35591         * lib/unictype/pr_other_math.h: Likewise.
35592         * lib/unictype/pr_other_uppercase.h: Likewise.
35593         * lib/unictype/pr_paired_punctuation.h: Likewise.
35594         * lib/unictype/pr_paragraph_separator.h: Likewise.
35595         * lib/unictype/pr_pattern_syntax.h: Likewise.
35596         * lib/unictype/pr_pattern_white_space.h: Likewise.
35597         * lib/unictype/pr_private_use.h: Likewise.
35598         * lib/unictype/pr_punctuation.h: Likewise.
35599         * lib/unictype/pr_quotation_mark.h: Likewise.
35600         * lib/unictype/pr_radical.h: Likewise.
35601         * lib/unictype/pr_sentence_terminal.h: Likewise.
35602         * lib/unictype/pr_soft_dotted.h: Likewise.
35603         * lib/unictype/pr_space.h: Likewise.
35604         * lib/unictype/pr_terminal_punctuation.h: Likewise.
35605         * lib/unictype/pr_titlecase.h: Likewise.
35606         * lib/unictype/pr_unassigned_code_value.h: Likewise.
35607         * lib/unictype/pr_unified_ideograph.h: Likewise.
35608         * lib/unictype/pr_uppercase.h: Likewise.
35609         * lib/unictype/pr_variation_selector.h: Likewise.
35610         * lib/unictype/pr_white_space.h: Likewise.
35611         * lib/unictype/pr_xid_continue.h: Likewise.
35612         * lib/unictype/pr_xid_start.h: Likewise.
35613         * lib/unictype/pr_zero_width.h: Likewise.
35614         * lib/unictype/scripts.h: Likewise.
35615         * lib/unictype/scripts_byname.gperf: Likewise.
35616         * lib/unictype/sy_c_ident.h: Likewise.
35617         * lib/unictype/sy_c_whitespace.h: Likewise.
35618         * lib/unictype/sy_java_ident.h: Likewise.
35619         * lib/unictype/sy_java_whitespace.h: Likewise.
35620
35621         * lib/unictype/Makefile: New file.
35622         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
35623         glibc.
35624         * lib/unictype/3level.h: New file, copied from glibc.
35625         * lib/unictype/3levelbit.h: New file.
35626
35627 2007-11-11  Bruno Haible  <bruno@clisp.org>
35628
35629         * modules/gperf: New file.
35630         * modules/iconv_open (Depends-on): Add it.
35631         (Makefile.am): Remove the GPERF definition.
35632
35633 2007-11-11  Bruno Haible  <bruno@clisp.org>
35634
35635         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
35636         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
35637
35638 2007-11-11  Bruno Haible  <bruno@clisp.org>
35639
35640         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
35641         (usage): Remove function.
35642
35643 2007-11-11  Bruno Haible  <bruno@clisp.org>
35644
35645         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
35646         gl_FUNC_CEILF_LIBS.
35647         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
35648         gl_FUNC_CEIL_LIBS.
35649         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
35650         gl_FUNC_CEILL_LIBS.
35651         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
35652         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
35653         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
35654
35655 2007-11-11  Bruno Haible  <bruno@clisp.org>
35656
35657         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
35658         roundf were declared but do not exist on functions.
35659         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
35660         roundl were declared but do not exist on functions.
35661         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
35662         HAVE_FLOORL_AND_CEILL, respectively.
35663         Needed for Sun C on Solaris 10.
35664
35665 2007-11-11  Bruno Haible  <bruno@clisp.org>
35666
35667         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
35668         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
35669         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
35670         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
35671         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
35672         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
35673         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
35674         HAVE_DECL_ROUNDF.
35675         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
35676         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
35677         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
35678         of HAVE_DECL_ROUND*.
35679         * modules/math (Makefile.am): Update.
35680
35681 2007-11-10  Bruno Haible  <bruno@clisp.org>
35682
35683         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
35684         ptrdiff_t as m4/intl.m4.
35685
35686 2007-11-10  Jim Meyering  <meyering@redhat.com>
35687
35688         Avoid link failure for the argmatch test.
35689         * tests/test-argmatch.c (usage): Define function to avoid a link
35690         failure: argmatch_die requires a usage function.
35691
35692 2007-11-09  Bruno Haible  <bruno@clisp.org>
35693
35694         * doc/functions/snprintf.texi: Mention BeOS deficiency.
35695         * doc/functions/vsnprintf.texi: Likewise.
35696         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
35697         with a size argument < 2.
35698
35699 2007-11-09  Bruno Haible  <bruno@clisp.org>
35700
35701         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
35702         buffer. Fixes an inefficiency introduced on 2007-11-03.
35703
35704 2007-11-09  Bruno Haible  <bruno@clisp.org>
35705
35706         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
35707         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
35708
35709 2007-11-08  Jim Meyering  <meyering@redhat.com>
35710
35711         Change cache variable name prefix "jm_" to "gl_" everywhere.
35712         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
35713         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
35714         * m4/uptime.m4: s/gl_/jm_/
35715
35716 2007-11-07  Bruno Haible  <bruno@clisp.org>
35717
35718         Update to GNU gettext 0.17.
35719         * m4/intl.m4: Update to GNU gettext 0.17.
35720         * m4/po.m4: Likewise.
35721         * modules/gettext (Files): Remove m4/ulonglong.m4.
35722         (configure.ac): Require gettext infrastructure from version 0.17.
35723
35724 2007-11-06  Bruno Haible  <bruno@clisp.org>
35725
35726         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
35727         symbolic values are not defined in a public header.
35728         * lib/freadable.c (freadable) [QNX]: Likewise.
35729         * lib/freadahead.c (freadahead) [QNX]: Likewise.
35730         * lib/freading.c (freading) [QNX]: Likewise.
35731         * lib/fseterr.c (fseterr) [QNX]: Likewise.
35732         * lib/fwritable.c (fwritable) [QNX]: Likewise.
35733         * lib/fwriting.c (fwriting) [QNX]: Likewise.
35734         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
35735         Reported by Alain Magloire.
35736
35737         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
35738
35739 2007-11-05  Bruno Haible  <bruno@clisp.org>
35740
35741         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
35742         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
35743         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
35744         Reported by Eric Blake.
35745
35746 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35747             Bruno Haible  <bruno@clisp.org>
35748
35749         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
35750         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
35751         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
35752         (malloc): Undefine also before including <stdlib.h>.
35753         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
35754         Needed on OSF/1 4.0.
35755
35756 2007-11-05  Jim Meyering  <meyering@redhat.com>
35757
35758         git-version-gen: sync from coreutils.
35759         * build-aux/git-version-gen: Add comments.
35760         Change the first '-' to '.' in the snapshot version string,
35761         e.g., 6.9-377-08144 -> 6.9.377-08144
35762         Remove first parameter.
35763         Don't declare a version "-dirty" merely because a time
35764         stamp has changed.
35765
35766 2007-11-04  Bruno Haible  <bruno@clisp.org>
35767
35768         * lib/lock.h: Protect all macro definitions containing an 'if'
35769         statement through a "do { ... } while (0)".
35770         * lib/tls.h: Likewise.
35771
35772 2007-11-04  Bruno Haible  <bruno@clisp.org>
35773
35774         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
35775
35776 2007-11-04  Bruno Haible  <bruno@clisp.org>
35777
35778         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
35779         * modules/fprintf-posix (Depends-on): Add nocrash.
35780         * modules/snprintf-posix (Depends-on): Likewise.
35781         * modules/sprintf-posix (Depends-on): Likewise.
35782         * modules/vasnprintf-posix (Depends-on): Likewise.
35783         * modules/vasprintf-posix (Depends-on): Likewise.
35784         * modules/vfprintf-posix (Depends-on): Likewise.
35785         * modules/vsnprintf-posix (Depends-on): Likewise.
35786         * modules/vsprintf-posix (Depends-on): Likewise.
35787         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
35788         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
35789         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
35790         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
35791         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
35792         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
35793         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
35794
35795 2007-11-04  Bruno Haible  <bruno@clisp.org>
35796
35797         * modules/nocrash: New file.
35798         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
35799         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
35800
35801 2007-11-04  Bruno Haible  <bruno@clisp.org>
35802
35803         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
35804         precision handling.
35805         * tests/test-vasprintf-posix.c (test_function): Likewise.
35806         * tests/test-snprintf-posix.h (test_function): Likewise.
35807         * tests/test-sprintf-posix.h (test_function): Likewise.
35808
35809         Fix *printf behaviour for large precisions on mingw and BeOS.
35810         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
35811         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
35812         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
35813         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
35814         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
35815         gl_PRINTF_PRECISION and test its result. Invoke
35816         gl_PREREQ_VASNPRINTF_PRECISION.
35817         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
35818         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
35819         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
35820         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
35821         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
35822         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
35823         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
35824         * doc/functions/fprintf.texi: Update.
35825         * doc/functions/printf.texi: Update.
35826         * doc/functions/snprintf.texi: Update.
35827         * doc/functions/sprintf.texi: Update.
35828         * doc/functions/vfprintf.texi: Update.
35829         * doc/functions/vprintf.texi: Update.
35830         * doc/functions/vsnprintf.texi: Update.
35831         * doc/functions/vsprintf.texi: Update.
35832
35833 2007-11-04  Bruno Haible  <bruno@clisp.org>
35834
35835         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
35836
35837 2007-11-04  Bruno Haible  <bruno@clisp.org>
35838
35839         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
35840         Reported by Sylvain Beucler <beuc@gnu.org>.
35841
35842 2007-11-03  Bruno Haible  <bruno@clisp.org>
35843
35844         * tests/test-fprintf-posix2.sh: New file.
35845         * tests/test-fprintf-posix2.c: New file.
35846         * modules/fprintf-posix-tests (Files): Add them.
35847         (TESTS): Add test-fprintf-posix2.sh.
35848         (configure.ac): Check for getrlimit and setrlimit.
35849         (check_PROGRAMS): Add test-fprintf-posix2.
35850
35851         * tests/test-printf-posix2.sh: New file.
35852         * tests/test-printf-posix2.c: New file.
35853         * modules/printf-posix-tests (Files): Add them.
35854         (TESTS): Add test-printf-posix2.sh.
35855         (configure.ac): Check for getrlimit and setrlimit.
35856         (check_PROGRAMS): Add test-printf-posix2.
35857
35858         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
35859         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
35860         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
35861         (decode_double): New function, copied from decode_long_double.
35862         (scale10_round_decimal_decoded): New function, extracted from
35863         scale10_round_decimal_long_double.
35864         (scale10_round_decimal_long_double): Use it.
35865         (scale10_round_decimal_double): New function.
35866         (floorlog10): New function.
35867         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
35868         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
35869         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
35870         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
35871         gl_PRINTF_ENOMEM and test its result. Invoke
35872         gl_PREREQ_VASNPRINTF_ENOMEM.
35873         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
35874         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
35875         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
35876         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
35877         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
35878         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
35879         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
35880         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
35881         * modules/snprintf-posix (Depends-on): Likewise.
35882         * modules/sprintf-posix (Depends-on): Likewise.
35883         * modules/vasnprintf-posix (Depends-on): Likewise.
35884         * modules/vasprintf-posix (Depends-on): Likewise.
35885         * modules/vfprintf-posix (Depends-on): Likewise.
35886         * modules/vsnprintf-posix (Depends-on): Likewise.
35887         * modules/vsprintf-posix (Depends-on): Likewise.
35888         * doc/functions/fprintf.texi: Update.
35889         * doc/functions/printf.texi: Update.
35890         * doc/functions/snprintf.texi: Update.
35891         * doc/functions/sprintf.texi: Update.
35892         * doc/functions/vfprintf.texi: Update.
35893         * doc/functions/vprintf.texi: Update.
35894         * doc/functions/vsnprintf.texi: Update.
35895         * doc/functions/vsprintf.texi: Update.
35896
35897 2007-11-03  Bruno Haible  <bruno@clisp.org>
35898
35899         * modules/frexp-nolibm-tests: New file.
35900
35901         * modules/frexp-nolibm: New file.
35902         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
35903
35904 2007-11-03  Bruno Haible  <bruno@clisp.org>
35905
35906         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
35907         value is C99 compliant.
35908         Needed for OSF/1 5.1.
35909
35910 2007-11-03  Bruno Haible  <bruno@clisp.org>
35911
35912         Fix out-of-memory handling of vasnprintf.
35913         * lib/printf-parse.c: Include <errno.h>.
35914         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
35915         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
35916         is already set.
35917
35918 2007-11-02  Eric Blake  <ebb9@byu.net>
35919
35920         Fix tests on cygwin.
35921         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
35922
35923 2007-11-01  Bruno Haible  <bruno@clisp.org>
35924
35925         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
35926         warning.
35927         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
35928         needed for POSIX compatibility.
35929
35930 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
35931
35932         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
35933         for compatibility with GNU.
35934
35935 2007-11-01  Bruno Haible  <bruno@clisp.org>
35936
35937         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
35938         (putenv): Renamed from rpl_putenv. Change argument type from
35939         'const char *' to 'char *'.
35940         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
35941         of defining putenv in config.h, just set REPLACE_PUTENV.
35942         * modules/putenv (Depends-on): Add stdlib.
35943         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
35944         (Include): Use <stdlib.h>.
35945         * lib/stdlib.in.h (putenv): New declaration.
35946         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
35947         REPLACE_PUTENV.
35948         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
35949         REPLACE_PUTENV.
35950         Needed for MacOS X 10.5.0.
35951         Reported by Peter O'Gorman <peter@pogma.com>.
35952
35953 2007-11-01  Jim Meyering  <meyering@redhat.com>
35954
35955         Treat an empty date string exactly like "0".
35956         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
35957         if the remaining date string (to be parsed) is empty, use "0".
35958         Reported by Mischa Molhoek and discussed in this thread:
35959         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
35960
35961 2007-10-31  Bruno Haible  <bruno@clisp.org>
35962
35963         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
35964         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
35965         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
35966         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
35967         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
35968         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
35969
35970 2007-10-31  Bruno Haible  <bruno@clisp.org>
35971
35972         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
35973         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
35974         (AC_TYPE_LONG_LONG_INT): Use it.
35975         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
35976         it as well.
35977         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
35978         to m4/longlong.m4.
35979         * modules/stdint (Files): Remove m4/ulonglong.m4.
35980         * modules/strtoull (Files): Use m4/longlong.m4 instead of
35981         m4/ulonglong.m4.
35982         * modules/strtoumax (Files): Likewise.
35983
35984 2007-10-30  Bruno Haible  <bruno@clisp.org>
35985
35986         * modules/xvasprintf-posix: New file.
35987         Suggested by Eric Blake.
35988
35989 2007-10-30  Bruno Haible  <bruno@clisp.org>
35990
35991         * modules/xprintf-posix-tests: New file.
35992         * tests/test-xprintf-posix.sh: New file.
35993         * tests/test-xprintf-posix.c: New file.
35994         * tests/test-xfprintf-posix.c: New file.
35995
35996         * modules/xprintf-posix: New file.
35997
35998 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35999
36000         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
36001         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
36002         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
36003
36004 2007-10-29  Bruno Haible  <bruno@clisp.org>
36005
36006         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
36007         contain the special marker '_cv_'.
36008         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
36009         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
36010         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
36011         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
36012         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
36013         Reported by Ralf Wildenhues.
36014
36015 2007-10-29  Bruno Haible  <bruno@clisp.org>
36016
36017         * gnulib-tool (func_import): When --lgpl is not specified, set
36018         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
36019         GPLv3.
36020         Reported by Simon Josefsson.
36021
36022 2007-10-28  Bruno Haible  <bruno@clisp.org>
36023
36024         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
36025         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
36026         HAVE_DECL_ISFINITE.
36027         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
36028         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
36029         HAVE_DECL_ISFINITE.
36030
36031 2007-10-28  Bruno Haible  <bruno@clisp.org>
36032
36033         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
36034         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
36035
36036 2007-10-28  Bruno Haible  <bruno@clisp.org>
36037
36038         Fix link errors with Sun C 5.0 on Solaris 10.
36039         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
36040         function is declared but not present in the compiler's libm.
36041         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
36042         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
36043         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
36044         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
36045         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
36046         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
36047         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
36048         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
36049         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
36050         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
36051         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
36052         HAVE_DECL_FLOORL.
36053
36054 2007-10-28  Bruno Haible  <bruno@clisp.org>
36055
36056         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
36057         gl_FUNC_FLOORL. Cache the result.
36058         (gl_FUNC_FLOORL): Use it.
36059         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
36060         gl_FUNC_CEILL. Cache the result.
36061         (gl_FUNC_CEILL): Use it.
36062
36063         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
36064         gl_FUNC_FLOOR. Cache the result.
36065         (gl_FUNC_FLOOR): Use it.
36066         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
36067         gl_FUNC_CEIL. Cache the result.
36068         (gl_FUNC_CEIL): Use it.
36069
36070         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
36071         gl_FUNC_FLOORF. Cache the result.
36072         (gl_FUNC_FLOORF): Use it.
36073         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
36074         gl_FUNC_CEILF. Cache the result.
36075         (gl_FUNC_CEILF): Use it.
36076
36077 2007-10-28  Bruno Haible  <bruno@clisp.org>
36078
36079         * gnulib-tool: Allow specifying the LGPL version number through
36080         --lgpl=2 or --lgpl=3.
36081         (func_usage): Document --lgpl with argument.
36082         Handle --lgpl=... arguments.
36083         (func_import): Recognize also gl_LGPL calls with an argument. When
36084         --lgpl=2 is used and the module's license is just LGPL, report an
36085         error. Set sed_transform_lib_file according to the lgpl variable. In
36086         the generated files, use --lgpl or gl_LGPL invocations with argument,
36087         if necessary.
36088         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
36089         an LGPv2+ license.
36090         * doc/gnulib-tool.texi (Modified imports): Update explanation of
36091         gl_LGPL macro.
36092
36093 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36094             Bruno Haible  <bruno@clisp.org>
36095
36096         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
36097         (u16_uctomb_aux): Likewise.
36098         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
36099         !HAVE_INLINE.
36100         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
36101
36102 2007-10-28  Bruno Haible  <bruno@clisp.org>
36103
36104         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
36105         Invoke AM_GETTEXT_OPTION if it exists.
36106         * modules/vasprintf: Likewise.
36107         * modules/verror: Likewise.
36108         * modules/xprintf: Likewise.
36109         * modules/xvasprintf: Likewise.
36110
36111 2007-10-27  Ben Pfaff  <blp@gnu.org>
36112
36113         * lib/math.in.h: Define isfinite macro and prototypes for
36114         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
36115         implementations.
36116         * m4/math_h.m4: New substitutions for isfinite module.
36117         * lib/isfinite.c: New file.
36118         * m4/isfinite.m4: New file.
36119         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
36120         * modules/isfinite: New file.
36121         * modules/isfinite-tests: New file.
36122         * tests/tests-isfinite.c: New file.
36123         * doc/functions/isfinite.texi: Mention isfinite module.
36124         * MODULES.html.sh: Mention new module.
36125
36126 2007-10-27  Ben Pfaff  <blp@gnu.org>
36127
36128         Ralf Wildenhues reported that Tru64 4.0D declares the round
36129         functions but does not have definitions.
36130         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
36131         cannot be found in any library, set the output variable to
36132         "missing" instead of "".
36133         * m4/round.m4: Also use our substitute if we cannot find round in
36134         any library, even if it is declared.
36135         * m4/roundf.m4: Likewise for roundf.
36136         * m4/roundl.m4: Likewise for roundl.
36137         * lib/math.in.h: Undefine roundf, round, roundl before defining
36138         their replacements, to allow for hypothetical systems where these
36139         may be defined as macros but not available in libraries.
36140
36141 2007-10-27  Bruno Haible  <bruno@clisp.org>
36142
36143         * doc/gnulib.texi: Invoke @firstparagraphindent.
36144         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
36145         changes in gnulib.
36146         (Source changes): New section.
36147
36148 2007-10-26  Bruno Haible  <bruno@clisp.org>
36149
36150         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
36151         borrowed from autoconf.
36152
36153 2007-10-26  Bruno Haible  <bruno@clisp.org>
36154
36155         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
36156         strerror returned the empty string. Needed on HP-UX 11.00.
36157
36158 2007-10-24  Micah Cowan  <micah@cowan.name>
36159
36160         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
36161         * build-aux/bootstrap: Remove support for now-unnecessary option,
36162         --cvs-user, and envvars CVS_USER, CVS_RSH.
36163
36164 2007-10-24  Jim Meyering  <meyering@redhat.com>
36165
36166         Avoid diagnostics from sha1sum when there is no cached checksum.
36167         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
36168         if the po.s1 file hasn't been created yet.
36169
36170         * build-aux/bootstrap: Sync from coreutils:
36171         2007-10-24  Jim Meyering  <meyering@redhat.com>
36172         Get gnulib from the git repository, not from an obsolete cvs one.
36173         * build-aux/bootstrap: Suggestion from Micah Cowan.
36174         2007-10-04  Jim Meyering  <jim@meyering.net>
36175         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
36176         (update_po_files): Work also when there are no .po files in po/.
36177
36178 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
36179
36180         * README: Append ".git" to git and cg examples.
36181         Problem reported by Benoit Sigoure.
36182
36183 2007-10-23  Micah Cowan  <micah@cowan.name>
36184
36185         * users.txt: Add wget.
36186
36187 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36188
36189         Fix linking of some unistdio tests on FreeBSD.
36190         * modules/unistdio/u16-vsnprintf-tests
36191         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
36192         * modules/unistdio/u16-vsprintf-tests
36193         (test_u16_vsnprintf1_LDADD): Likewise.
36194         * modules/unistdio/u32-vsnprintf-tests
36195         (test_u32_vsnprintf1_LDADD): Likewise.
36196         * modules/unistdio/u32-vsprintf-tests
36197         (test_u32_vsprintf1_LDADD): Likewise.
36198         * modules/unistdio/u8-vsnprintf-tests
36199         (test_u8_vsnprintf1_LDADD): Likewise.
36200         * modules/unistdio/u8-vsprintf-tests
36201         (test_u8_vsprintf1_LDADD): Likewise.
36202         * modules/unistdio/ulc-vsnprintf-tests
36203         (test_ulc_vsnprintf1_LDADD): Likewise.
36204         * modules/unistdio/ulc-vsprintf-tests
36205         (test_ulc_vsprintf1_LDADD): Likewise.
36206
36207         Fix linking of some uniconv tests on FreeBSD.
36208         * modules/uniconv/u16-conv-from-enc-tests
36209         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
36210         * modules/uniconv/u16-conv-to-enc-tests
36211         (test_u16_conv_to_enc_LDADD): Likewise.
36212         * modules/uniconv/u16-strconv-from-enc-tests
36213         (test_u16_strconv_from_enc_LDADD): Likewise.
36214         * modules/uniconv/u16-strconv-to-enc-tests
36215         (test_u16_strconv_to_enc_LDADD): Likewise.
36216         * modules/uniconv/u32-conv-from-enc-tests
36217         (test_u32_conv_from_enc_LDADD): Likewise.
36218         * modules/uniconv/u32-conv-to-enc-tests
36219         (test_u32_conv_to_enc_LDADD): Likewise.
36220         * modules/uniconv/u32-strconv-from-enc-tests
36221         (test_u32_strconv_from_enc_LDADD): Likewise.
36222         * modules/uniconv/u32-strconv-to-enc-tests
36223         (test_u32_strconv_to_enc_LDADD): Likewise.
36224         * modules/uniconv/u8-conv-from-enc-tests
36225         (test_u8_conv_from_enc_LDADD): Likewise.
36226         * modules/uniconv/u8-conv-to-enc-tests
36227         (test_u8_conv_to_enc_LDADD): Likewise.
36228         * modules/uniconv/u8-strconv-from-enc-tests
36229         (test_u8_strconv_from_enc_LDADD): Likewise.
36230         * modules/uniconv/u8-strconv-to-enc-tests
36231         (test_u8_strconv_to_enc_LDADD): Likewise.
36232
36233 2007-10-22  Bruno Haible  <bruno@clisp.org>
36234
36235         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
36236         size.
36237
36238 2007-10-22  Eric Blake  <ebb9@byu.net>
36239
36240         Tweak x*printf documentation.
36241         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
36242         variable name and comments.
36243         Suggested by Bruno Haible.
36244
36245 2007-10-22  Bruno Haible  <bruno@clisp.org>
36246
36247         * lib/acl.c (copy_acl): Fix file name in comment.
36248
36249 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
36250
36251         Fix Tru64 problem with stdbool.h.
36252         * lib/stdbool.in.h (false, true):
36253         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
36254         Don't declare as an enum in this situation; it runs afoul of Tru64.
36255         Problem reported by Steven M. Schweda in
36256         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
36257
36258 2007-10-22  Eric Blake  <ebb9@byu.net>
36259
36260         Also wrap vf?printf.
36261         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
36262         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
36263         (xvprintf, xvfprintf): New functions.
36264
36265 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36266
36267         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
36268         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
36269
36270         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
36271         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
36272
36273 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
36274
36275         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
36276         by Bruno Haible.
36277
36278 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36279
36280         * lib/getloadavg.c
36281         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
36282         Undef `sys' after including sys/table.h, for Tru64 4.0D.
36283
36284         * tests/test-i-ring.c: Work for C89.
36285
36286 2007-10-22  Bruno Haible  <bruno@clisp.org>
36287
36288         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
36289         -1u, in preprocessor expression, so that we don't test for the bug
36290         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
36291         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
36292
36293 2007-10-22  Eric Blake  <ebb9@byu.net>
36294
36295         * tests/test-yesno.sh: Silence stderr during test.
36296
36297 2007-10-22  Simon Josefsson  <simon@josefsson.org>
36298
36299         * modules/crypto/gc-camellia: New file.
36300
36301         * m4/gc-camellia.m4: New file.
36302
36303         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
36304
36305         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
36306
36307 2007-10-22  Simon Josefsson  <simon@josefsson.org>
36308
36309         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
36310         --help to stdout.  Reported by sms@antinode.org (Steven
36311         M. Schweda).
36312
36313 2007-10-22  Simon Josefsson  <simon@josefsson.org>
36314
36315         * users.txt: Fix link to libksba.
36316
36317 2007-10-21  Ben Pfaff  <blp@gnu.org>
36318
36319         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
36320         round.c roundf implementation that depends on floorf and ceilf to
36321         be tested unconditionally.
36322
36323 2007-10-21  Ben Pfaff  <blp@gnu.org>
36324
36325         * m4/check-libm-func.m4: Removed.
36326         * m4/check-math-lib.m4: New file.
36327         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
36328         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
36329         definition and lack of AC_LIBOBJ([roundf]).
36330         * m4/roundl.m4: Ditto, and similarly for roundl.
36331         * modules/round: Reference new m4 file.
36332         * modules/roundf: Ditto.
36333         * modules/roundl: Ditto.
36334         * tests/test-round2.c (main): Use ROUND instead of round.
36335         Bug report from Bruno Haible.
36336
36337 2007-10-21  Bruno Haible  <bruno@clisp.org>
36338
36339         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
36340         context.
36341
36342 2007-10-21  Bruno Haible  <bruno@clisp.org>
36343
36344         * tests/test-wcwidth.c (main): Allow negative result for some control
36345         characters.
36346
36347         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
36348         Needed on OSF/1 5.1.
36349
36350 2007-10-21  Bruno Haible  <bruno@clisp.org>
36351
36352         * tests/test-floorf1.c: Include isnanf.h.
36353         (main): Use isnanf() instead of isnan().
36354         * tests/test-ceilf1.c: Include isnanf.h.
36355         (main): Use isnanf() instead of isnan().
36356         * tests/test-truncf1.c: Include isnanf.h.
36357         (main): Use isnanf() instead of isnan().
36358         * tests/test-roundf1.c: Include isnanf.h.
36359         (main): Use isnanf() instead of isnan().
36360
36361 2007-10-21  Eric Blake  <ebb9@byu.net>
36362
36363         * users.txt: Update URL for m4.
36364
36365 2007-10-21  Bruno Haible  <bruno@clisp.org>
36366
36367         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
36368
36369 2007-10-21  Bruno Haible  <bruno@clisp.org>
36370
36371         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
36372         Git's management files if the CVS files are not present.
36373
36374 2007-10-20  Bruno Haible  <bruno@clisp.org>
36375
36376         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
36377         gcc-3.4.x.
36378
36379 2007-10-20  Ben Pfaff  <blp@gnu.org>
36380
36381         * lib/math.in.h: Declare round, roundf, roundl if we are providing
36382         implementations.
36383         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
36384         * lib/round.c: New file.
36385         * lib/roundf.c: New file.
36386         * lib/roundl.c: New file.
36387         * m4/round.m4: New file.
36388         * m4/roundf.m4: New file.
36389         * m4/roundl.m4: New file.
36390         * m4/check-libm-func-m4: New file.
36391         * modules/math: Replace round, roundf, roundl related @VARS@ in
36392         math.in.h.
36393         * modules/round: New file.
36394         * modules/round-tests: New file.
36395         * modules/roundf: New file.
36396         * modules/roundf-tests: New file.
36397         * modules/roundl: New file.
36398         * modules/roundl-tests: New file.
36399         * tests/test-round1.c: New file.
36400         * tests/test-round2.c: New file.
36401         * tests/test-roundf1.c: New file.
36402         * tests/test-roundf2.c: New file.
36403         * tests/test-roundl.c: New file.
36404         * doc/functions/round.texi: Mention round module.
36405         * doc/functions/roundf.texi: Mention roundf module.
36406         * doc/functions/roundl.texi: Mention roundl module.
36407         * MODULES.html.sh: Mention new modules.
36408         Thanks to Bruno Haible for suggestions.
36409
36410 2007-10-20  Jim Meyering  <meyering@redhat.com>
36411
36412         * lib/xprintf.c: Include <config.h> unconditionally.
36413
36414         Change xprintf's license to GPL.
36415         * modules/xprintf (License): s/LGPL/GPL/, since this module
36416         depends on modules (exit and exitfail) which are GPL.
36417         Suggestion from Bruno Haible.
36418
36419         xprintf fixes.
36420         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
36421         Use a clearer diagnostic.
36422         Patch from Bruno Haible.
36423
36424 2007-10-20  Bruno Haible  <bruno@clisp.org>
36425
36426         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
36427         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
36428         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
36429
36430 2007-10-20  Bruno Haible  <bruno@clisp.org>
36431
36432         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
36433         precision in the comparison result > x - 1 or similar.
36434         * tests/test-ceilf2.c (correct_result_p): Likewise.
36435         * tests/test-truncf2.c (correct_result_p): Likewise.
36436         * tests/test-trunc2.c (correct_result_p): Likewise.
36437         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
36438
36439 2007-10-20  Bruno Haible  <bruno@clisp.org>
36440
36441         * modules/ceil: New file.
36442         * m4/ceil.m4: New file.
36443         * doc/functions/ceil.texi: Mention the 'ceil' module.
36444
36445 2007-10-20  Bruno Haible  <bruno@clisp.org>
36446
36447         * modules/floor: New file.
36448         * m4/floor.m4: New file.
36449         * doc/functions/floor.texi: Mention the 'floor' module.
36450
36451 2007-10-20  Bruno Haible  <bruno@clisp.org>
36452
36453         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
36454         of %a.
36455         * modules/floorf-tests (Depends-on): Likewise.
36456         * modules/truncf-tests (Depends-on): Likewise.
36457         * modules/trunc-tests (Depends-on): Likewise.
36458         Reported by Ben Pfaff.
36459
36460 2007-10-19  Jim Meyering  <meyering@redhat.com>
36461
36462         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
36463         Don't bother testing specific errno values.  Just test ferror.
36464
36465         New module: xprintf
36466         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
36467
36468 2007-10-19  Bruno Haible  <bruno@clisp.org>
36469
36470         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
36471         syntax.
36472         * modules/javaexec (Makefile.am): Likewise.
36473         * modules/relocatable-prog (Makefile.am): Likewise.
36474         Suggested by Jim Meyering.
36475
36476 2007-10-18  Bruno Haible  <bruno@clisp.org>
36477
36478         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
36479         Reported by Jim Meyering.
36480
36481 2007-10-18  Eric Blake  <ebb9@byu.net>
36482
36483         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
36484
36485 2007-10-18  Bruno Haible  <bruno@clisp.org>
36486
36487         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
36488         the format string into writable memory. Needed in Fortify conditions.
36489
36490 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
36491             Bruno Haible  <bruno@clisp.org>
36492
36493         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
36494         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
36495         * modules/trim (Depends-on): Add mbchar.
36496         (configure.ac): Add gl_FUNC_MBRTOWC.
36497         (Makefile.am): Augment lib_SOURCES.
36498
36499 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
36500
36501         Modify glob.c to use fstatat and dirfd, to simplify it.
36502         Suggested by Eric Blake.
36503         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
36504         Don't include <stdbool.h>; not used.
36505         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
36506         (link_exists_p): Simplify implementation, since we can now assume
36507         dirfd and fstatat.
36508         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
36509
36510 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36511
36512         * gnulib-tool (func_get_dependencies): Fix sed script to
36513         match only tests.
36514
36515 2007-10-17  Bruno Haible  <bruno@clisp.org>
36516
36517         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
36518         allow locale names without encoding suffix.
36519         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
36520         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
36521
36522 2007-10-16  Bruno Haible  <bruno@clisp.org>
36523
36524         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
36525         * lib/getgroups.c (getgroups): Likewise.
36526         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
36527
36528 2007-10-16  Bruno Haible  <bruno@clisp.org>
36529
36530         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
36531         * modules/malloc-posix (License): Likewise.
36532         * modules/realloc-posix (License): Likewise.
36533         * modules/calloc-posix (License): Likewise.
36534         * modules/intprops (License): Change from GPL to LGPL, with
36535         Paul Eggert's approval.
36536
36537 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
36538
36539         Merge glibc changes into lib/glob.c.
36540
36541         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
36542         2007-10-15 04:59:03 UTC.  Here are the changes:
36543
36544         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
36545
36546         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
36547
36548         * lib/glob.c: Add some branch prediction throughout.
36549
36550         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
36551
36552         [BZ #5103]
36553         * lib/glob.c (glob): Recognize patterns starting \/.
36554
36555         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
36556
36557         [BZ #3996]
36558         * lib/glob.c (attribute_hidden): Define if not defined.
36559         (glob): Unescape dirname, filename or username when needed and not
36560         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
36561         is NULL.  Handle unescaped [ in pattern without closing ].
36562         Don't pass GLOB_CHECK down to recursive glob for directories.
36563         (__glob_pattern_type): New function.
36564         (__glob_pattern_p): Implement using __glob_pattern_type.
36565         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
36566         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
36567         Remove unreachable code.
36568
36569         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
36570
36571         * lib/glob.c (glob_in_dir): Add some comments and asserts to
36572         explain why there are no leaks.
36573
36574         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
36575
36576         [BZ #3253]
36577         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
36578         time, rather allocate increasingly bigger arrays of pointers, if
36579         possible with alloca, if too large with malloc.
36580
36581 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
36582
36583         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
36584         Problem reported by H.Merijn Brand in
36585         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
36586         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
36587         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
36588
36589 2007-10-15  Bruno Haible  <bruno@clisp.org>
36590
36591         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
36592         with explicit rpl_ prefix.
36593         * lib/fopen.c (fopen): Likewise.
36594         * lib/freopen.c (freopen): Likewise.
36595         * lib/iconv.c (iconv): Likewise.
36596         * lib/iconv_close.c (iconv_close): Likewise.
36597
36598 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36599
36600         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
36601
36602 2007-10-15  Bruno Haible  <bruno@clisp.org>
36603
36604         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
36605         <stddef.h> instead of <stdlib.h> since we only need NULL.
36606         Reported by Ben Pfaff <blp@cs.stanford.edu>.
36607
36608 2007-10-15  Bruno Haible  <bruno@clisp.org>
36609
36610         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
36611         Replace paragraph talking about LIBOBJS.
36612         Reported by Colin Watson <cjwatson@debian.org>.
36613
36614 2007-10-15  Bruno Haible  <bruno@clisp.org>
36615
36616         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
36617         <stdlib.h> before using NULL.
36618
36619 2007-10-15  Simon Josefsson  <simon@josefsson.org>
36620
36621         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
36622         Reported by Albert Chin <china@thewrittenword.com>.
36623
36624 2007-10-14  Bruno Haible  <bruno@clisp.org>
36625
36626         * modules/iconv_open-utf-tests: New file.
36627         * tests/test-iconv-utf.c: New file.
36628
36629         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
36630         * modules/iconv_open-utf: New file.
36631         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
36632         (iconv, iconv_close): New declarations.
36633         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
36634         be defined.
36635         (iconv_open): Add special handling of conversion between UTF-8 and
36636         UTF-{16,32}{BE,LE}.
36637         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
36638         * lib/iconv_close.c: New file.
36639         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
36640         gl_FUNC_ICONV_OPEN.
36641         (gl_FUNC_ICONV_OPEN): Use it.
36642         (gl_FUNC_ICONV_OPEN_UTF): New macro.
36643         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
36644         and REPLACE_ICONV_UTF.
36645         * modules/iconv_open (Depends-on): Add c-strcase.
36646         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
36647         ICONV_CONST.
36648         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
36649
36650 2007-10-13  Albert Chin  <china@thewrittenword.com>
36651             Bruno Haible  <bruno@clisp.org>
36652
36653         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
36654         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
36655
36656 2007-10-13  Bruno Haible  <bruno@clisp.org>
36657
36658         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
36659         defined, use the ISO C99 inline semantics.
36660         * lib/argp.h (ARGP_EI): Likewise.
36661
36662 2007-10-13  Bruno Haible  <bruno@clisp.org>
36663
36664         Handle 'inline' change in gcc 4.3.0.
36665         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
36666         argp_fmtstream_write, argp_fmtstream_set_lmargin,
36667         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
36668         argp_fmtstream_point): Disable 'extern' declaration if the function
36669         definition is going to be provided inline.
36670         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
36671         semantics, not the ISO C99 inline semantics.
36672         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
36673         'extern' declaration if the function definition is going to be provided
36674         inline.
36675         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
36676         the GNU C inline semantics, not the ISO C99 inline semantics. With
36677         GCC 4.2, avoid a warning.
36678
36679 2007-10-13  Bruno Haible  <bruno@clisp.org>
36680
36681         * lib/freading.h (freading): Enable the use of __freading for
36682         glibc >= 2.7.
36683         * lib/freading.c (freading): Likewise.
36684
36685 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
36686
36687         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
36688         "warning: C99 inline functions are not supported; using GNU89".
36689
36690 2007-10-12  Bruno Haible  <bruno@clisp.org>
36691
36692         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
36693         of 2.
36694         * tests/test-ceilf2.c: New file.
36695         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
36696
36697         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
36698         * modules/ceilf-tests: Update.
36699
36700 2007-10-12  Bruno Haible  <bruno@clisp.org>
36701
36702         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
36703         of 2.
36704         * tests/test-floorf2.c: New file.
36705         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
36706
36707         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
36708         * modules/floorf-tests: Update.
36709
36710 2007-10-12  Bruno Haible  <bruno@clisp.org>
36711
36712         * tests/test-trunc2.c: New file.
36713         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
36714
36715         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
36716         * modules/trunc-tests: Update.
36717
36718 2007-10-12  Bruno Haible  <bruno@clisp.org>
36719
36720         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
36721         of 2.
36722         * tests/test-truncf2.c: New file.
36723         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
36724
36725         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
36726         * modules/truncf-tests: Update.
36727
36728 2007-10-11  Eric Blake  <ebb9@byu.net>
36729
36730         Don't claim strerror is broken on Interix.
36731         * doc/functions/strerror.texi (strerror): Known broken systems are
36732         now Solaris 8, and not Interix.
36733         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
36734         Interix on cross-compile.
36735         Reported by Martin Koeppe in
36736         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
36737
36738 2007-10-11  Bruno Haible  <bruno@clisp.org>
36739
36740         * modules/i-ring-tests: New file.
36741         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
36742         instead of assert.
36743
36744 2007-10-11  Bruno Haible  <bruno@clisp.org>
36745
36746         * modules/filenamecat-tests: New file.
36747         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
36748         * lib/filenamecat.c: Remove test code.
36749
36750 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
36751
36752         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
36753
36754         * lib/strerror.c: Include <string.h> always, to test interface,
36755         and to remove the need for the dummy.
36756         Include intprops.h to compute width instead of doing it ourselves
36757         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
36758         (strerror): Define it to return NULL if there's no system strerror.
36759         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
36760         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
36761         ancient pre-strerror Unix systems well any more.  Saying "unknown
36762         system error" is enough.
36763         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
36764         simpler strerror.c implementation.
36765         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
36766         Simplify the tests to reflect the simpler strerror implementation.
36767         * modules/strerror (Depends-on): Add intprops.
36768
36769 2007-10-09  Eric Blake  <ebb9@byu.net>
36770
36771         Silence test-fpending.
36772         * modules/fpending-tests (Files): Add wrapper script.
36773         * tests/test-fpending.sh: New file.
36774
36775 2007-10-09  Bruno Haible  <bruno@clisp.org>
36776
36777         * MODULES.html.sh (func_module): Don't create a hyperlink for
36778         function names like 'printf_frexp'.
36779         (Misc): Add crc, memxor.
36780         (Characteristics of floating types): New section.
36781         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
36782         isnanf-nolibm, signbit, trunc, truncf, truncl.
36783         (Enhancements for ISO C 99 functions): New subsection Input/output.
36784         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
36785         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
36786         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
36787         (Compatibility checks for POSIX:2001 functions): Add clock-time.
36788         (Enhancements for POSIX:2001 functions): Add chdir-long.
36789         (File system functions): Add areadlink, chdir-safer, read-file.
36790         Remove cycle-check.
36791         (File system as inode set): New section.
36792         (Date and time): Add gethrxtime.
36793         (Multithreading): Add openmp.
36794         (Internationalization functions): Add localename.
36795         (Unicode string functions): Add unistr/u*-mbsnlen.
36796         (Support for maintaining and releasing projects): Add git-version-gen.
36797         (Lone files): Remove directories.
36798
36799 2007-10-08  Ben Pfaff  <blp@gnu.org>
36800
36801         * lib/xmalloca.h: Fix typo in comment.
36802
36803 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
36804
36805         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
36806         when avoiding problems with integer overflow.  Use a portable test
36807         instead.
36808
36809 2007-10-08  Simon Josefsson  <simon@josefsson.org>
36810
36811         * modules/dummy (License): Change to LGPLv2+.
36812         * modules/float (License): Likewise
36813         * modules/realloc (License): Likewise
36814         * modules/stdlib (License): Likewise
36815
36816 2007-10-07  Bruno Haible  <bruno@clisp.org>
36817
36818         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
36819         * floor.c (TWO_MANT_DIG): Likewise.
36820         * ceil.c (TWO_MANT_DIG): Likewise.
36821         Reported by Ben Pfaff.
36822
36823 2007-10-07  Bruno Haible  <bruno@clisp.org>
36824
36825         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
36826         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
36827         * lib/frexp.c (FUNC): Likewise.
36828         * lib/printf-frexp.h (printf_frexp): Likewise.
36829         * lib/printf-frexpl.h (printf_frexpl): Likewise.
36830         * lib/printf-frexp.c (FUNC): Likewise.
36831         Suggested by Jim Meyering.
36832
36833 2007-10-07  Jim Meyering  <meyering@redhat.com>
36834
36835         Make xnanosleep's integer overflow test more robust.
36836         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
36837         so that gcc-4.3.0 doesn't optimize away this test for overflow.
36838
36839 2007-10-07  Bruno Haible  <bruno@clisp.org>
36840
36841         * NEWS: Mention the license change.
36842
36843         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
36844         abbreviations in the modules files.
36845
36846         Change copyright notice from GPLv2+ to GPLv3+.
36847         * README: Change copyright notice.
36848         * MODULES.html.sh: Likewise.
36849         * build-aux/bootstrap.conf: Likewise.
36850         * build-aux/config.libpath: Likewise.
36851         * build-aux/csharpcomp.sh.in: Likewise.
36852         * build-aux/csharpexec.sh.in: Likewise.
36853         * build-aux/install-reloc: Likewise.
36854         * build-aux/javacomp.sh.in: Likewise.
36855         * build-aux/javaexec.sh.in: Likewise.
36856         * build-aux/ldd.sh.in: Likewise.
36857         * build-aux/reloc-ldflags: Likewise.
36858         * build-aux/relocatable.sh.in: Likewise.
36859         * build-aux/x-to-1.in: Likewise.
36860         * check-module: Likewise.
36861         * config/srclistvars.sh: Likewise.
36862         * gnulib-tool: Likewise.
36863         * lib/acl-internal.h: Likewise.
36864         * lib/acl.c: Likewise.
36865         * lib/acl.h: Likewise.
36866         * lib/acl_entries.c: Likewise.
36867         * lib/areadlink-with-size.c: Likewise.
36868         * lib/areadlink.c: Likewise.
36869         * lib/areadlink.h: Likewise.
36870         * lib/argmatch.c: Likewise.
36871         * lib/argmatch.h: Likewise.
36872         * lib/argp-ba.c: Likewise.
36873         * lib/argp-eexst.c: Likewise.
36874         * lib/argp-fmtstream.c: Likewise.
36875         * lib/argp-fmtstream.h: Likewise.
36876         * lib/argp-fs-xinl.c: Likewise.
36877         * lib/argp-help.c: Likewise.
36878         * lib/argp-namefrob.h: Likewise.
36879         * lib/argp-parse.c: Likewise.
36880         * lib/argp-pin.c: Likewise.
36881         * lib/argp-pv.c: Likewise.
36882         * lib/argp-pvh.c: Likewise.
36883         * lib/argp-xinl.c: Likewise.
36884         * lib/argp.h: Likewise.
36885         * lib/at-func.c: Likewise.
36886         * lib/atanl.c: Likewise.
36887         * lib/backupfile.c: Likewise.
36888         * lib/backupfile.h: Likewise.
36889         * lib/basename.c: Likewise.
36890         * lib/binary-io.h: Likewise.
36891         * lib/byteswap.in.h: Likewise.
36892         * lib/c-stack.c: Likewise.
36893         * lib/c-stack.h: Likewise.
36894         * lib/c-strcasestr.c: Likewise.
36895         * lib/c-strcasestr.h: Likewise.
36896         * lib/c-strstr.c: Likewise.
36897         * lib/c-strstr.h: Likewise.
36898         * lib/c-strtod.c: Likewise.
36899         * lib/calloc.c: Likewise.
36900         * lib/canon-host.c: Likewise.
36901         * lib/canon-host.h: Likewise.
36902         * lib/canonicalize-lgpl.c: Likewise.
36903         * lib/canonicalize.c: Likewise.
36904         * lib/canonicalize.h: Likewise.
36905         * lib/ceil.c: Likewise.
36906         * lib/ceilf.c: Likewise.
36907         * lib/ceill.c: Likewise.
36908         * lib/chdir-long.c: Likewise.
36909         * lib/chdir-long.h: Likewise.
36910         * lib/chdir-safer.c: Likewise.
36911         * lib/chdir-safer.h: Likewise.
36912         * lib/chown.c: Likewise.
36913         * lib/classpath.c: Likewise.
36914         * lib/classpath.h: Likewise.
36915         * lib/clean-temp.c: Likewise.
36916         * lib/clean-temp.h: Likewise.
36917         * lib/cloexec.c: Likewise.
36918         * lib/close-stream.c: Likewise.
36919         * lib/closein.c: Likewise.
36920         * lib/closein.h: Likewise.
36921         * lib/closeout.c: Likewise.
36922         * lib/closeout.h: Likewise.
36923         * lib/concat-filename.c: Likewise.
36924         * lib/copy-file.c: Likewise.
36925         * lib/copy-file.h: Likewise.
36926         * lib/count-one-bits.h: Likewise.
36927         * lib/crc.c: Likewise.
36928         * lib/crc.h: Likewise.
36929         * lib/creat-safer.c: Likewise.
36930         * lib/csharpcomp.c: Likewise.
36931         * lib/csharpcomp.h: Likewise.
36932         * lib/csharpexec.c: Likewise.
36933         * lib/csharpexec.h: Likewise.
36934         * lib/cycle-check.c: Likewise.
36935         * lib/cycle-check.h: Likewise.
36936         * lib/diacrit.c: Likewise.
36937         * lib/diacrit.h: Likewise.
36938         * lib/diffseq.h: Likewise.
36939         * lib/dirchownmod.c: Likewise.
36940         * lib/dirent.in.h: Likewise.
36941         * lib/dirfd.c: Likewise.
36942         * lib/dirfd.h: Likewise.
36943         * lib/dirname.c: Likewise.
36944         * lib/dirname.h: Likewise.
36945         * lib/dummy.c: Likewise.
36946         * lib/dup-safer.c: Likewise.
36947         * lib/dup2.c: Likewise.
36948         * lib/eealloc.h: Likewise.
36949         * lib/error.c: Likewise.
36950         * lib/error.h: Likewise.
36951         * lib/euidaccess.c: Likewise.
36952         * lib/exclude.c: Likewise.
36953         * lib/exclude.h: Likewise.
36954         * lib/execute.c: Likewise.
36955         * lib/execute.h: Likewise.
36956         * lib/exitfail.c: Likewise.
36957         * lib/exitfail.h: Likewise.
36958         * lib/expl.c: Likewise.
36959         * lib/fatal-signal.c: Likewise.
36960         * lib/fatal-signal.h: Likewise.
36961         * lib/fbufmode.c: Likewise.
36962         * lib/fbufmode.h: Likewise.
36963         * lib/fchdir.c: Likewise.
36964         * lib/fchmodat.c: Likewise.
36965         * lib/fchownat.c: Likewise.
36966         * lib/fcntl--.h: Likewise.
36967         * lib/fcntl-safer.h: Likewise.
36968         * lib/fcntl.in.h: Likewise.
36969         * lib/fd-safer.c: Likewise.
36970         * lib/fflush.c: Likewise.
36971         * lib/file-has-acl.c: Likewise.
36972         * lib/file-set.c: Likewise.
36973         * lib/file-type.c: Likewise.
36974         * lib/file-type.h: Likewise.
36975         * lib/fileblocks.c: Likewise.
36976         * lib/filemode.c: Likewise.
36977         * lib/filemode.h: Likewise.
36978         * lib/filename.h: Likewise.
36979         * lib/filenamecat.c: Likewise.
36980         * lib/filenamecat.h: Likewise.
36981         * lib/findprog.c: Likewise.
36982         * lib/findprog.h: Likewise.
36983         * lib/float.in.h: Likewise.
36984         * lib/floor.c: Likewise.
36985         * lib/floorf.c: Likewise.
36986         * lib/floorl.c: Likewise.
36987         * lib/fopen-safer.c: Likewise.
36988         * lib/fopen.c: Likewise.
36989         * lib/fpending.c: Likewise.
36990         * lib/fpending.h: Likewise.
36991         * lib/fprintf.c: Likewise.
36992         * lib/fprintftime.h: Likewise.
36993         * lib/fpucw.h: Likewise.
36994         * lib/fpurge.c: Likewise.
36995         * lib/fpurge.h: Likewise.
36996         * lib/freadable.c: Likewise.
36997         * lib/freadable.h: Likewise.
36998         * lib/freadahead.c: Likewise.
36999         * lib/freadahead.h: Likewise.
37000         * lib/freading.c: Likewise.
37001         * lib/freading.h: Likewise.
37002         * lib/free.c: Likewise.
37003         * lib/freopen.c: Likewise.
37004         * lib/frexp.c: Likewise.
37005         * lib/frexpl.c: Likewise.
37006         * lib/fseek.c: Likewise.
37007         * lib/fseterr.c: Likewise.
37008         * lib/fseterr.h: Likewise.
37009         * lib/fstatat.c: Likewise.
37010         * lib/fstrcmp.c: Likewise.
37011         * lib/fstrcmp.h: Likewise.
37012         * lib/fsusage.c: Likewise.
37013         * lib/fsusage.h: Likewise.
37014         * lib/ftell.c: Likewise.
37015         * lib/ftello.c: Likewise.
37016         * lib/fts-cycle.c: Likewise.
37017         * lib/fts.c: Likewise.
37018         * lib/fts_.h: Likewise.
37019         * lib/full-read.c: Likewise.
37020         * lib/full-read.h: Likewise.
37021         * lib/full-write.c: Likewise.
37022         * lib/full-write.h: Likewise.
37023         * lib/fwritable.c: Likewise.
37024         * lib/fwritable.h: Likewise.
37025         * lib/fwriteerror.c: Likewise.
37026         * lib/fwriteerror.h: Likewise.
37027         * lib/fwriting.c: Likewise.
37028         * lib/fwriting.h: Likewise.
37029         * lib/gcd.c: Likewise.
37030         * lib/gcd.h: Likewise.
37031         * lib/getcwd.c: Likewise.
37032         * lib/getdate.h: Likewise.
37033         * lib/getdate.y: Likewise.
37034         * lib/getdomainname.c: Likewise.
37035         * lib/getdomainname.h: Likewise.
37036         * lib/getgroups.c: Likewise.
37037         * lib/gethostname.c: Likewise.
37038         * lib/gethrxtime.c: Likewise.
37039         * lib/gethrxtime.h: Likewise.
37040         * lib/getloadavg.c: Likewise.
37041         * lib/getndelim2.c: Likewise.
37042         * lib/getndelim2.h: Likewise.
37043         * lib/getnline.c: Likewise.
37044         * lib/getnline.h: Likewise.
37045         * lib/getopt.c: Likewise.
37046         * lib/getopt.in.h: Likewise.
37047         * lib/getopt1.c: Likewise.
37048         * lib/getopt_int.h: Likewise.
37049         * lib/getpagesize.h: Likewise.
37050         * lib/getsubopt.c: Likewise.
37051         * lib/gettime.c: Likewise.
37052         * lib/getugroups.c: Likewise.
37053         * lib/getugroups.h: Likewise.
37054         * lib/getusershell.c: Likewise.
37055         * lib/gl_anyavltree_list1.h: Likewise.
37056         * lib/gl_anyavltree_list2.h: Likewise.
37057         * lib/gl_anyhash_list1.h: Likewise.
37058         * lib/gl_anyhash_list2.h: Likewise.
37059         * lib/gl_anylinked_list1.h: Likewise.
37060         * lib/gl_anylinked_list2.h: Likewise.
37061         * lib/gl_anyrbtree_list1.h: Likewise.
37062         * lib/gl_anyrbtree_list2.h: Likewise.
37063         * lib/gl_anytree_list1.h: Likewise.
37064         * lib/gl_anytree_list2.h: Likewise.
37065         * lib/gl_anytree_oset.h: Likewise.
37066         * lib/gl_anytreehash_list1.h: Likewise.
37067         * lib/gl_anytreehash_list2.h: Likewise.
37068         * lib/gl_array_list.c: Likewise.
37069         * lib/gl_array_list.h: Likewise.
37070         * lib/gl_array_oset.c: Likewise.
37071         * lib/gl_array_oset.h: Likewise.
37072         * lib/gl_avltree_list.c: Likewise.
37073         * lib/gl_avltree_list.h: Likewise.
37074         * lib/gl_avltree_oset.c: Likewise.
37075         * lib/gl_avltree_oset.h: Likewise.
37076         * lib/gl_avltreehash_list.c: Likewise.
37077         * lib/gl_avltreehash_list.h: Likewise.
37078         * lib/gl_carray_list.c: Likewise.
37079         * lib/gl_carray_list.h: Likewise.
37080         * lib/gl_linked_list.c: Likewise.
37081         * lib/gl_linked_list.h: Likewise.
37082         * lib/gl_linkedhash_list.c: Likewise.
37083         * lib/gl_linkedhash_list.h: Likewise.
37084         * lib/gl_list.c: Likewise.
37085         * lib/gl_list.h: Likewise.
37086         * lib/gl_oset.c: Likewise.
37087         * lib/gl_oset.h: Likewise.
37088         * lib/gl_rbtree_list.c: Likewise.
37089         * lib/gl_rbtree_list.h: Likewise.
37090         * lib/gl_rbtree_oset.c: Likewise.
37091         * lib/gl_rbtree_oset.h: Likewise.
37092         * lib/gl_rbtreehash_list.c: Likewise.
37093         * lib/gl_rbtreehash_list.h: Likewise.
37094         * lib/gl_sublist.c: Likewise.
37095         * lib/gl_sublist.h: Likewise.
37096         * lib/group-member.c: Likewise.
37097         * lib/group-member.h: Likewise.
37098         * lib/hard-locale.c: Likewise.
37099         * lib/hard-locale.h: Likewise.
37100         * lib/hash-pjw.c: Likewise.
37101         * lib/hash-pjw.h: Likewise.
37102         * lib/hash-triple.c: Likewise.
37103         * lib/hash.c: Likewise.
37104         * lib/hash.h: Likewise.
37105         * lib/human.c: Likewise.
37106         * lib/human.h: Likewise.
37107         * lib/i-ring.c: Likewise.
37108         * lib/i-ring.h: Likewise.
37109         * lib/idcache.c: Likewise.
37110         * lib/imaxabs.c: Likewise.
37111         * lib/imaxdiv.c: Likewise.
37112         * lib/inet_pton.c: Likewise.
37113         * lib/inet_pton.h: Likewise.
37114         * lib/intprops.h: Likewise.
37115         * lib/inttostr.c: Likewise.
37116         * lib/inttostr.h: Likewise.
37117         * lib/inttypes.in.h: Likewise.
37118         * lib/isapipe.c: Likewise.
37119         * lib/isdir.c: Likewise.
37120         * lib/isnan.c: Likewise.
37121         * lib/isnan.h: Likewise.
37122         * lib/isnanf.c: Likewise.
37123         * lib/isnanf.h: Likewise.
37124         * lib/isnanl-nolibm.h: Likewise.
37125         * lib/isnanl.c: Likewise.
37126         * lib/isnanl.h: Likewise.
37127         * lib/javacomp.c: Likewise.
37128         * lib/javacomp.h: Likewise.
37129         * lib/javaexec.c: Likewise.
37130         * lib/javaexec.h: Likewise.
37131         * lib/javaversion.c: Likewise.
37132         * lib/javaversion.h: Likewise.
37133         * lib/javaversion.java: Likewise.
37134         * lib/lbrkprop.h: Likewise.
37135         * lib/lchmod.h: Likewise.
37136         * lib/lchown.c: Likewise.
37137         * lib/ldexpl.c: Likewise.
37138         * lib/linebreak.c: Likewise.
37139         * lib/linebreak.h: Likewise.
37140         * lib/linebuffer.c: Likewise.
37141         * lib/linebuffer.h: Likewise.
37142         * lib/locale.in.h: Likewise.
37143         * lib/logl.c: Likewise.
37144         * lib/long-options.c: Likewise.
37145         * lib/long-options.h: Likewise.
37146         * lib/lstat.c: Likewise.
37147         * lib/lstat.h: Likewise.
37148         * lib/math.in.h: Likewise.
37149         * lib/mbchar.c: Likewise.
37150         * lib/mbchar.h: Likewise.
37151         * lib/mbfile.h: Likewise.
37152         * lib/mbiter.h: Likewise.
37153         * lib/mbscasecmp.c: Likewise.
37154         * lib/mbscasestr.c: Likewise.
37155         * lib/mbschr.c: Likewise.
37156         * lib/mbscspn.c: Likewise.
37157         * lib/mbslen.c: Likewise.
37158         * lib/mbsncasecmp.c: Likewise.
37159         * lib/mbsnlen.c: Likewise.
37160         * lib/mbspbrk.c: Likewise.
37161         * lib/mbspcasecmp.c: Likewise.
37162         * lib/mbsrchr.c: Likewise.
37163         * lib/mbssep.c: Likewise.
37164         * lib/mbsspn.c: Likewise.
37165         * lib/mbsstr.c: Likewise.
37166         * lib/mbstok_r.c: Likewise.
37167         * lib/mbswidth.c: Likewise.
37168         * lib/mbswidth.h: Likewise.
37169         * lib/mbuiter.h: Likewise.
37170         * lib/memcasecmp.c: Likewise.
37171         * lib/memcasecmp.h: Likewise.
37172         * lib/memchr.c: Likewise.
37173         * lib/memcmp.c: Likewise.
37174         * lib/memcoll.c: Likewise.
37175         * lib/memcoll.h: Likewise.
37176         * lib/memcpy.c: Likewise.
37177         * lib/memrchr.c: Likewise.
37178         * lib/mkancesdirs.c: Likewise.
37179         * lib/mkdir-p.c: Likewise.
37180         * lib/mkdir-p.h: Likewise.
37181         * lib/mkdir.c: Likewise.
37182         * lib/mkdirat.c: Likewise.
37183         * lib/mkdtemp.c: Likewise.
37184         * lib/mkstemp-safer.c: Likewise.
37185         * lib/mkstemp.c: Likewise.
37186         * lib/modechange.c: Likewise.
37187         * lib/modechange.h: Likewise.
37188         * lib/mountlist.c: Likewise.
37189         * lib/mountlist.h: Likewise.
37190         * lib/mpsort.c: Likewise.
37191         * lib/nanosleep.c: Likewise.
37192         * lib/obstack.c: Likewise.
37193         * lib/obstack.h: Likewise.
37194         * lib/open-safer.c: Likewise.
37195         * lib/open.c: Likewise.
37196         * lib/openat-die.c: Likewise.
37197         * lib/openat-priv.h: Likewise.
37198         * lib/openat-proc.c: Likewise.
37199         * lib/openat.c: Likewise.
37200         * lib/openat.h: Likewise.
37201         * lib/pagealign_alloc.c: Likewise.
37202         * lib/pagealign_alloc.h: Likewise.
37203         * lib/physmem.c: Likewise.
37204         * lib/physmem.h: Likewise.
37205         * lib/pipe-safer.c: Likewise.
37206         * lib/pipe.c: Likewise.
37207         * lib/pipe.h: Likewise.
37208         * lib/posixtm.c: Likewise.
37209         * lib/posixtm.h: Likewise.
37210         * lib/posixver.c: Likewise.
37211         * lib/printf-frexp.c: Likewise.
37212         * lib/printf-frexp.h: Likewise.
37213         * lib/printf-frexpl.c: Likewise.
37214         * lib/printf-frexpl.h: Likewise.
37215         * lib/printf.c: Likewise.
37216         * lib/progname.c: Likewise.
37217         * lib/progname.h: Likewise.
37218         * lib/progreloc.c: Likewise.
37219         * lib/putenv.c: Likewise.
37220         * lib/quote.c: Likewise.
37221         * lib/quote.h: Likewise.
37222         * lib/quotearg.c: Likewise.
37223         * lib/quotearg.h: Likewise.
37224         * lib/raise.c: Likewise.
37225         * lib/readline.c: Likewise.
37226         * lib/readline.h: Likewise.
37227         * lib/readlink.c: Likewise.
37228         * lib/readtokens.c: Likewise.
37229         * lib/readtokens.h: Likewise.
37230         * lib/readtokens0.c: Likewise.
37231         * lib/readtokens0.h: Likewise.
37232         * lib/readutmp.c: Likewise.
37233         * lib/readutmp.h: Likewise.
37234         * lib/realloc.c: Likewise.
37235         * lib/relocwrapper.c: Likewise.
37236         * lib/rename-dest-slash.c: Likewise.
37237         * lib/rename.c: Likewise.
37238         * lib/rmdir.c: Likewise.
37239         * lib/rpmatch.c: Likewise.
37240         * lib/safe-read.c: Likewise.
37241         * lib/safe-read.h: Likewise.
37242         * lib/safe-write.c: Likewise.
37243         * lib/safe-write.h: Likewise.
37244         * lib/same-inode.h: Likewise.
37245         * lib/same.c: Likewise.
37246         * lib/same.h: Likewise.
37247         * lib/save-cwd.c: Likewise.
37248         * lib/save-cwd.h: Likewise.
37249         * lib/savedir.c: Likewise.
37250         * lib/savedir.h: Likewise.
37251         * lib/savewd.c: Likewise.
37252         * lib/savewd.h: Likewise.
37253         * lib/search.in.h: Likewise.
37254         * lib/setenv.c: Likewise.
37255         * lib/setenv.h: Likewise.
37256         * lib/settime.c: Likewise.
37257         * lib/sh-quote.c: Likewise.
37258         * lib/sh-quote.h: Likewise.
37259         * lib/sig2str.c: Likewise.
37260         * lib/sig2str.h: Likewise.
37261         * lib/signal.in.h: Likewise.
37262         * lib/signbitd.c: Likewise.
37263         * lib/signbitf.c: Likewise.
37264         * lib/signbitl.c: Likewise.
37265         * lib/sigprocmask.c: Likewise.
37266         * lib/sincosl.c: Likewise.
37267         * lib/sleep.c: Likewise.
37268         * lib/sprintf.c: Likewise.
37269         * lib/sqrtl.c: Likewise.
37270         * lib/stat-time.h: Likewise.
37271         * lib/stdio--.h: Likewise.
37272         * lib/stdio-safer.h: Likewise.
37273         * lib/stdlib--.h: Likewise.
37274         * lib/stdlib-safer.h: Likewise.
37275         * lib/stdlib.in.h: Likewise.
37276         * lib/stpcpy.c: Likewise.
37277         * lib/stpncpy.c: Likewise.
37278         * lib/strchrnul.c: Likewise.
37279         * lib/strcspn.c: Likewise.
37280         * lib/strerror.c: Likewise.
37281         * lib/strftime.c: Likewise.
37282         * lib/strftime.h: Likewise.
37283         * lib/striconveh.c: Likewise.
37284         * lib/striconveh.h: Likewise.
37285         * lib/striconveha.c: Likewise.
37286         * lib/striconveha.h: Likewise.
37287         * lib/stripslash.c: Likewise.
37288         * lib/strnlen1.c: Likewise.
37289         * lib/strnlen1.h: Likewise.
37290         * lib/strtod.c: Likewise.
37291         * lib/strtoimax.c: Likewise.
37292         * lib/strtok_r.c: Likewise.
37293         * lib/strtol.c: Likewise.
37294         * lib/strtoll.c: Likewise.
37295         * lib/strtoul.c: Likewise.
37296         * lib/strtoull.c: Likewise.
37297         * lib/sysexits.in.h: Likewise.
37298         * lib/tempname.c: Likewise.
37299         * lib/tempname.h: Likewise.
37300         * lib/timespec.h: Likewise.
37301         * lib/tls.c: Likewise.
37302         * lib/tls.h: Likewise.
37303         * lib/tmpdir.c: Likewise.
37304         * lib/tmpdir.h: Likewise.
37305         * lib/tmpfile-safer.c: Likewise.
37306         * lib/tmpfile.c: Likewise.
37307         * lib/trigl.c: Likewise.
37308         * lib/trigl.h: Likewise.
37309         * lib/trim.c: Likewise.
37310         * lib/trim.h: Likewise.
37311         * lib/trunc.c: Likewise.
37312         * lib/truncf.c: Likewise.
37313         * lib/truncl.c: Likewise.
37314         * lib/tsearch.c: Likewise.
37315         * lib/unicodeio.c: Likewise.
37316         * lib/unicodeio.h: Likewise.
37317         * lib/unistd--.h: Likewise.
37318         * lib/unistd-safer.h: Likewise.
37319         * lib/unistdio/ulc-fprintf.c: Likewise.
37320         * lib/unistdio/ulc-vfprintf.c: Likewise.
37321         * lib/unlinkdir.c: Likewise.
37322         * lib/unlinkdir.h: Likewise.
37323         * lib/unlocked-io.h: Likewise.
37324         * lib/unsetenv.c: Likewise.
37325         * lib/userspec.c: Likewise.
37326         * lib/utime.c: Likewise.
37327         * lib/utimecmp.c: Likewise.
37328         * lib/utimecmp.h: Likewise.
37329         * lib/utimens.c: Likewise.
37330         * lib/verify.h: Likewise.
37331         * lib/verror.c: Likewise.
37332         * lib/verror.h: Likewise.
37333         * lib/version-etc-fsf.c: Likewise.
37334         * lib/version-etc.c: Likewise.
37335         * lib/version-etc.h: Likewise.
37336         * lib/vfprintf.c: Likewise.
37337         * lib/vprintf.c: Likewise.
37338         * lib/vsprintf.c: Likewise.
37339         * lib/w32spawn.h: Likewise.
37340         * lib/wait-process.c: Likewise.
37341         * lib/wait-process.h: Likewise.
37342         * lib/wcwidth.c: Likewise.
37343         * lib/write-any-file.c: Likewise.
37344         * lib/xalloc-die.c: Likewise.
37345         * lib/xalloc.h: Likewise.
37346         * lib/xasprintf.c: Likewise.
37347         * lib/xgetcwd.c: Likewise.
37348         * lib/xgetcwd.h: Likewise.
37349         * lib/xgetdomainname.c: Likewise.
37350         * lib/xgetdomainname.h: Likewise.
37351         * lib/xgethostname.c: Likewise.
37352         * lib/xmalloc.c: Likewise.
37353         * lib/xmalloca.c: Likewise.
37354         * lib/xmalloca.h: Likewise.
37355         * lib/xmemcoll.c: Likewise.
37356         * lib/xnanosleep.c: Likewise.
37357         * lib/xreadlink.c: Likewise.
37358         * lib/xreadlink.h: Likewise.
37359         * lib/xsetenv.c: Likewise.
37360         * lib/xsetenv.h: Likewise.
37361         * lib/xstriconv.c: Likewise.
37362         * lib/xstriconv.h: Likewise.
37363         * lib/xstrndup.c: Likewise.
37364         * lib/xstrndup.h: Likewise.
37365         * lib/xstrtod.c: Likewise.
37366         * lib/xstrtod.h: Likewise.
37367         * lib/xstrtol-error.c: Likewise.
37368         * lib/xstrtol.c: Likewise.
37369         * lib/xstrtol.h: Likewise.
37370         * lib/xtime.h: Likewise.
37371         * lib/xvasprintf.c: Likewise.
37372         * lib/xvasprintf.h: Likewise.
37373         * lib/yesno.c: Likewise.
37374         * lib/yesno.h: Likewise.
37375         * posix-modules: Likewise.
37376         * tests/test-alloca-opt.c: Likewise.
37377         * tests/test-arcfour.c: Likewise.
37378         * tests/test-arctwo.c: Likewise.
37379         * tests/test-argmatch.c: Likewise.
37380         * tests/test-argp-2.sh: Likewise.
37381         * tests/test-argp.c: Likewise.
37382         * tests/test-arpa_inet.c: Likewise.
37383         * tests/test-array_list.c: Likewise.
37384         * tests/test-array_oset.c: Likewise.
37385         * tests/test-atexit.c: Likewise.
37386         * tests/test-avltree_list.c: Likewise.
37387         * tests/test-avltree_oset.c: Likewise.
37388         * tests/test-avltreehash_list.c: Likewise.
37389         * tests/test-base64.c: Likewise.
37390         * tests/test-binary-io.c: Likewise.
37391         * tests/test-byteswap.c: Likewise.
37392         * tests/test-c-ctype.c: Likewise.
37393         * tests/test-c-strcasecmp.c: Likewise.
37394         * tests/test-c-strcasestr.c: Likewise.
37395         * tests/test-c-strncasecmp.c: Likewise.
37396         * tests/test-c-strstr.c: Likewise.
37397         * tests/test-canonicalize-lgpl.c: Likewise.
37398         * tests/test-canonicalize.c: Likewise.
37399         * tests/test-carray_list.c: Likewise.
37400         * tests/test-ceilf.c: Likewise.
37401         * tests/test-ceill.c: Likewise.
37402         * tests/test-count-one-bits.c: Likewise.
37403         * tests/test-crc.c: Likewise.
37404         * tests/test-dirname.c: Likewise.
37405         * tests/test-fbufmode.c: Likewise.
37406         * tests/test-fcntl.c: Likewise.
37407         * tests/test-fflush.c: Likewise.
37408         * tests/test-floorf.c: Likewise.
37409         * tests/test-floorl.c: Likewise.
37410         * tests/test-fopen.c: Likewise.
37411         * tests/test-fprintf-posix.c: Likewise.
37412         * tests/test-fprintf-posix.h: Likewise.
37413         * tests/test-fpurge.c: Likewise.
37414         * tests/test-freadable.c: Likewise.
37415         * tests/test-freadahead.c: Likewise.
37416         * tests/test-freading.c: Likewise.
37417         * tests/test-freopen.c: Likewise.
37418         * tests/test-frexp.c: Likewise.
37419         * tests/test-frexpl.c: Likewise.
37420         * tests/test-fseek.c: Likewise.
37421         * tests/test-fseeko.c: Likewise.
37422         * tests/test-fseterr.c: Likewise.
37423         * tests/test-fstrcmp.c: Likewise.
37424         * tests/test-ftell.c: Likewise.
37425         * tests/test-ftello.c: Likewise.
37426         * tests/test-fwritable.c: Likewise.
37427         * tests/test-fwriting.c: Likewise.
37428         * tests/test-getaddrinfo.c: Likewise.
37429         * tests/test-getpass.c: Likewise.
37430         * tests/test-gettimeofday.c: Likewise.
37431         * tests/test-hmac-md5.c: Likewise.
37432         * tests/test-hmac-sha1.c: Likewise.
37433         * tests/test-iconv.c: Likewise.
37434         * tests/test-iconvme.c: Likewise.
37435         * tests/test-inttypes.c: Likewise.
37436         * tests/test-isnan.c: Likewise.
37437         * tests/test-isnanf.c: Likewise.
37438         * tests/test-isnanl-nolibm.c: Likewise.
37439         * tests/test-isnanl.c: Likewise.
37440         * tests/test-isnanl.h: Likewise.
37441         * tests/test-ldexpl.c: Likewise.
37442         * tests/test-linked_list.c: Likewise.
37443         * tests/test-linkedhash_list.c: Likewise.
37444         * tests/test-locale.c: Likewise.
37445         * tests/test-localename.c: Likewise.
37446         * tests/test-lock.c: Likewise.
37447         * tests/test-lseek.c: Likewise.
37448         * tests/test-malloca.c: Likewise.
37449         * tests/test-math.c: Likewise.
37450         * tests/test-mbscasecmp.c: Likewise.
37451         * tests/test-mbscasestr1.c: Likewise.
37452         * tests/test-mbscasestr2.c: Likewise.
37453         * tests/test-mbscasestr3.c: Likewise.
37454         * tests/test-mbscasestr4.c: Likewise.
37455         * tests/test-mbschr.c: Likewise.
37456         * tests/test-mbscspn.c: Likewise.
37457         * tests/test-mbsncasecmp.c: Likewise.
37458         * tests/test-mbspbrk.c: Likewise.
37459         * tests/test-mbspcasecmp.c: Likewise.
37460         * tests/test-mbsrchr.c: Likewise.
37461         * tests/test-mbsspn.c: Likewise.
37462         * tests/test-mbsstr1.c: Likewise.
37463         * tests/test-mbsstr2.c: Likewise.
37464         * tests/test-mbsstr3.c: Likewise.
37465         * tests/test-md5.c: Likewise.
37466         * tests/test-memmem.c: Likewise.
37467         * tests/test-netinet_in.c: Likewise.
37468         * tests/test-open.c: Likewise.
37469         * tests/test-printf-frexp.c: Likewise.
37470         * tests/test-printf-frexpl.c: Likewise.
37471         * tests/test-printf-posix.c: Likewise.
37472         * tests/test-printf-posix.h: Likewise.
37473         * tests/test-rbtree_list.c: Likewise.
37474         * tests/test-rbtree_oset.c: Likewise.
37475         * tests/test-rbtreehash_list.c: Likewise.
37476         * tests/test-read-file.c: Likewise.
37477         * tests/test-rijndael.c: Likewise.
37478         * tests/test-search.c: Likewise.
37479         * tests/test-signbit.c: Likewise.
37480         * tests/test-sleep.c: Likewise.
37481         * tests/test-snprintf-posix.c: Likewise.
37482         * tests/test-snprintf-posix.h: Likewise.
37483         * tests/test-snprintf.c: Likewise.
37484         * tests/test-sprintf-posix.c: Likewise.
37485         * tests/test-sprintf-posix.h: Likewise.
37486         * tests/test-stat-time.c: Likewise.
37487         * tests/test-stdbool.c: Likewise.
37488         * tests/test-stdint.c: Likewise.
37489         * tests/test-stdio.c: Likewise.
37490         * tests/test-stdlib.c: Likewise.
37491         * tests/test-stpncpy.c: Likewise.
37492         * tests/test-strcasestr.c: Likewise.
37493         * tests/test-striconv.c: Likewise.
37494         * tests/test-striconveh.c: Likewise.
37495         * tests/test-striconveha.c: Likewise.
37496         * tests/test-string.c: Likewise.
37497         * tests/test-sys_select.c: Likewise.
37498         * tests/test-sys_socket.c: Likewise.
37499         * tests/test-sys_stat.c: Likewise.
37500         * tests/test-sys_time.c: Likewise.
37501         * tests/test-sysexits.c: Likewise.
37502         * tests/test-time.c: Likewise.
37503         * tests/test-tls.c: Likewise.
37504         * tests/test-trunc.c: Likewise.
37505         * tests/test-truncf.c: Likewise.
37506         * tests/test-truncl.c: Likewise.
37507         * tests/test-unistd.c: Likewise.
37508         * tests/test-vasnprintf-posix.c: Likewise.
37509         * tests/test-vasnprintf-posix2.c: Likewise.
37510         * tests/test-vasnprintf.c: Likewise.
37511         * tests/test-vasprintf-posix.c: Likewise.
37512         * tests/test-vasprintf.c: Likewise.
37513         * tests/test-verify.c: Likewise.
37514         * tests/test-vfprintf-posix.c: Likewise.
37515         * tests/test-vprintf-posix.c: Likewise.
37516         * tests/test-vsnprintf-posix.c: Likewise.
37517         * tests/test-vsnprintf.c: Likewise.
37518         * tests/test-vsprintf-posix.c: Likewise.
37519         * tests/test-wchar.c: Likewise.
37520         * tests/test-wctype.c: Likewise.
37521         * tests/test-wcwidth.c: Likewise.
37522         * tests/test-xstrtol.c: Likewise.
37523         * tests/test-xvasprintf.c: Likewise.
37524         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
37525         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
37526         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
37527         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
37528         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
37529         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
37530         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
37531         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
37532         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
37533         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
37534         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
37535         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
37536         * tests/uniname/test-uninames.c: Likewise.
37537         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
37538         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
37539         * tests/unistdio/test-u16-printf1.h: Likewise.
37540         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
37541         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
37542         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
37543         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
37544         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
37545         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
37546         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
37547         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
37548         * tests/unistdio/test-u32-printf1.h: Likewise.
37549         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
37550         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
37551         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
37552         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
37553         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
37554         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
37555         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
37556         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
37557         * tests/unistdio/test-u8-printf1.h: Likewise.
37558         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
37559         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
37560         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
37561         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
37562         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
37563         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
37564         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
37565         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
37566         * tests/unistdio/test-ulc-printf1.h: Likewise.
37567         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
37568         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
37569         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
37570         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
37571         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
37572         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
37573         * tests/uniwidth/test-u16-strwidth.c: Likewise.
37574         * tests/uniwidth/test-u16-width.c: Likewise.
37575         * tests/uniwidth/test-u32-strwidth.c: Likewise.
37576         * tests/uniwidth/test-u32-width.c: Likewise.
37577         * tests/uniwidth/test-u8-strwidth.c: Likewise.
37578         * tests/uniwidth/test-u8-width.c: Likewise.
37579         * tests/uniwidth/test-uc_width.c: Likewise.
37580         * config/srclist-update: Likewise.
37581         (fixlicense): Update to GPLv3+.
37582
37583         Change copyright notice from LGPLv2.1+ to LGPLv3+.
37584         * tests/test-tsearch.c: Change copyright notice.
37585
37586         Change copyright notice from LGPLv2.0+ to LGPLv3+.
37587         * lib/c-strcaseeq.h: Change copyright notice.
37588         * lib/streq.h: Likewise.
37589         * lib/uniconv.h: Likewise.
37590         * lib/uniconv/u-conv-from-enc.h: Likewise.
37591         * lib/uniconv/u-conv-to-enc.h: Likewise.
37592         * lib/uniconv/u-strconv-from-enc.h: Likewise.
37593         * lib/uniconv/u-strconv-to-enc.h: Likewise.
37594         * lib/uniconv/u16-conv-from-enc.c: Likewise.
37595         * lib/uniconv/u16-conv-to-enc.c: Likewise.
37596         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
37597         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
37598         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
37599         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
37600         * lib/uniconv/u32-conv-from-enc.c: Likewise.
37601         * lib/uniconv/u32-conv-to-enc.c: Likewise.
37602         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
37603         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
37604         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
37605         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
37606         * lib/uniconv/u8-conv-from-enc.c: Likewise.
37607         * lib/uniconv/u8-conv-to-enc.c: Likewise.
37608         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
37609         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
37610         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
37611         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
37612         * lib/uniname.h: Likewise.
37613         * lib/uniname/uniname.c: Likewise.
37614         * lib/unistdio.h: Likewise.
37615         * lib/unistdio/u-asnprintf.h: Likewise.
37616         * lib/unistdio/u-asprintf.h: Likewise.
37617         * lib/unistdio/u-printf-args.c: Likewise.
37618         * lib/unistdio/u-printf-args.h: Likewise.
37619         * lib/unistdio/u-printf-parse.h: Likewise.
37620         * lib/unistdio/u-snprintf.h: Likewise.
37621         * lib/unistdio/u-sprintf.h: Likewise.
37622         * lib/unistdio/u-vasprintf.h: Likewise.
37623         * lib/unistdio/u-vsnprintf.h: Likewise.
37624         * lib/unistdio/u-vsprintf.h: Likewise.
37625         * lib/unistdio/u16-asnprintf.c: Likewise.
37626         * lib/unistdio/u16-asprintf.c: Likewise.
37627         * lib/unistdio/u16-printf-parse.c: Likewise.
37628         * lib/unistdio/u16-snprintf.c: Likewise.
37629         * lib/unistdio/u16-sprintf.c: Likewise.
37630         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
37631         * lib/unistdio/u16-u16-asprintf.c: Likewise.
37632         * lib/unistdio/u16-u16-snprintf.c: Likewise.
37633         * lib/unistdio/u16-u16-sprintf.c: Likewise.
37634         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
37635         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
37636         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
37637         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
37638         * lib/unistdio/u16-vasnprintf.c: Likewise.
37639         * lib/unistdio/u16-vasprintf.c: Likewise.
37640         * lib/unistdio/u16-vsnprintf.c: Likewise.
37641         * lib/unistdio/u16-vsprintf.c: Likewise.
37642         * lib/unistdio/u32-asnprintf.c: Likewise.
37643         * lib/unistdio/u32-asprintf.c: Likewise.
37644         * lib/unistdio/u32-printf-parse.c: Likewise.
37645         * lib/unistdio/u32-snprintf.c: Likewise.
37646         * lib/unistdio/u32-sprintf.c: Likewise.
37647         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
37648         * lib/unistdio/u32-u32-asprintf.c: Likewise.
37649         * lib/unistdio/u32-u32-snprintf.c: Likewise.
37650         * lib/unistdio/u32-u32-sprintf.c: Likewise.
37651         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
37652         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
37653         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
37654         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
37655         * lib/unistdio/u32-vasnprintf.c: Likewise.
37656         * lib/unistdio/u32-vasprintf.c: Likewise.
37657         * lib/unistdio/u32-vsnprintf.c: Likewise.
37658         * lib/unistdio/u32-vsprintf.c: Likewise.
37659         * lib/unistdio/u8-asnprintf.c: Likewise.
37660         * lib/unistdio/u8-asprintf.c: Likewise.
37661         * lib/unistdio/u8-printf-parse.c: Likewise.
37662         * lib/unistdio/u8-snprintf.c: Likewise.
37663         * lib/unistdio/u8-sprintf.c: Likewise.
37664         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
37665         * lib/unistdio/u8-u8-asprintf.c: Likewise.
37666         * lib/unistdio/u8-u8-snprintf.c: Likewise.
37667         * lib/unistdio/u8-u8-sprintf.c: Likewise.
37668         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
37669         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
37670         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
37671         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
37672         * lib/unistdio/u8-vasnprintf.c: Likewise.
37673         * lib/unistdio/u8-vasprintf.c: Likewise.
37674         * lib/unistdio/u8-vsnprintf.c: Likewise.
37675         * lib/unistdio/u8-vsprintf.c: Likewise.
37676         * lib/unistdio/ulc-asnprintf.c: Likewise.
37677         * lib/unistdio/ulc-asprintf.c: Likewise.
37678         * lib/unistdio/ulc-printf-parse.c: Likewise.
37679         * lib/unistdio/ulc-snprintf.c: Likewise.
37680         * lib/unistdio/ulc-sprintf.c: Likewise.
37681         * lib/unistdio/ulc-vasnprintf.c: Likewise.
37682         * lib/unistdio/ulc-vasprintf.c: Likewise.
37683         * lib/unistdio/ulc-vsnprintf.c: Likewise.
37684         * lib/unistdio/ulc-vsprintf.c: Likewise.
37685         * lib/unistr.h: Likewise.
37686         * lib/unistr/u-cpy-alloc.h: Likewise.
37687         * lib/unistr/u-cpy.h: Likewise.
37688         * lib/unistr/u-endswith.h: Likewise.
37689         * lib/unistr/u-move.h: Likewise.
37690         * lib/unistr/u-set.h: Likewise.
37691         * lib/unistr/u-startswith.h: Likewise.
37692         * lib/unistr/u-stpcpy.h: Likewise.
37693         * lib/unistr/u-stpncpy.h: Likewise.
37694         * lib/unistr/u-strcat.h: Likewise.
37695         * lib/unistr/u-strcpy.h: Likewise.
37696         * lib/unistr/u-strcspn.h: Likewise.
37697         * lib/unistr/u-strdup.h: Likewise.
37698         * lib/unistr/u-strlen.h: Likewise.
37699         * lib/unistr/u-strncat.h: Likewise.
37700         * lib/unistr/u-strncpy.h: Likewise.
37701         * lib/unistr/u-strnlen.h: Likewise.
37702         * lib/unistr/u-strpbrk.h: Likewise.
37703         * lib/unistr/u-strspn.h: Likewise.
37704         * lib/unistr/u-strstr.h: Likewise.
37705         * lib/unistr/u-strtok.h: Likewise.
37706         * lib/unistr/u16-check.c: Likewise.
37707         * lib/unistr/u16-chr.c: Likewise.
37708         * lib/unistr/u16-cmp.c: Likewise.
37709         * lib/unistr/u16-cpy-alloc.c: Likewise.
37710         * lib/unistr/u16-cpy.c: Likewise.
37711         * lib/unistr/u16-endswith.c: Likewise.
37712         * lib/unistr/u16-mblen.c: Likewise.
37713         * lib/unistr/u16-mbsnlen.c: Likewise.
37714         * lib/unistr/u16-mbtouc-aux.c: Likewise.
37715         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
37716         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
37717         * lib/unistr/u16-mbtouc.c: Likewise.
37718         * lib/unistr/u16-mbtoucr.c: Likewise.
37719         * lib/unistr/u16-move.c: Likewise.
37720         * lib/unistr/u16-next.c: Likewise.
37721         * lib/unistr/u16-prev.c: Likewise.
37722         * lib/unistr/u16-set.c: Likewise.
37723         * lib/unistr/u16-startswith.c: Likewise.
37724         * lib/unistr/u16-stpcpy.c: Likewise.
37725         * lib/unistr/u16-stpncpy.c: Likewise.
37726         * lib/unistr/u16-strcat.c: Likewise.
37727         * lib/unistr/u16-strchr.c: Likewise.
37728         * lib/unistr/u16-strcmp.c: Likewise.
37729         * lib/unistr/u16-strcpy.c: Likewise.
37730         * lib/unistr/u16-strcspn.c: Likewise.
37731         * lib/unistr/u16-strdup.c: Likewise.
37732         * lib/unistr/u16-strlen.c: Likewise.
37733         * lib/unistr/u16-strmblen.c: Likewise.
37734         * lib/unistr/u16-strmbtouc.c: Likewise.
37735         * lib/unistr/u16-strncat.c: Likewise.
37736         * lib/unistr/u16-strncmp.c: Likewise.
37737         * lib/unistr/u16-strncpy.c: Likewise.
37738         * lib/unistr/u16-strnlen.c: Likewise.
37739         * lib/unistr/u16-strpbrk.c: Likewise.
37740         * lib/unistr/u16-strrchr.c: Likewise.
37741         * lib/unistr/u16-strspn.c: Likewise.
37742         * lib/unistr/u16-strstr.c: Likewise.
37743         * lib/unistr/u16-strtok.c: Likewise.
37744         * lib/unistr/u16-to-u32.c: Likewise.
37745         * lib/unistr/u16-to-u8.c: Likewise.
37746         * lib/unistr/u16-uctomb-aux.c: Likewise.
37747         * lib/unistr/u16-uctomb.c: Likewise.
37748         * lib/unistr/u32-check.c: Likewise.
37749         * lib/unistr/u32-chr.c: Likewise.
37750         * lib/unistr/u32-cmp.c: Likewise.
37751         * lib/unistr/u32-cpy-alloc.c: Likewise.
37752         * lib/unistr/u32-cpy.c: Likewise.
37753         * lib/unistr/u32-endswith.c: Likewise.
37754         * lib/unistr/u32-mblen.c: Likewise.
37755         * lib/unistr/u32-mbsnlen.c: Likewise.
37756         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
37757         * lib/unistr/u32-mbtouc.c: Likewise.
37758         * lib/unistr/u32-mbtoucr.c: Likewise.
37759         * lib/unistr/u32-move.c: Likewise.
37760         * lib/unistr/u32-next.c: Likewise.
37761         * lib/unistr/u32-prev.c: Likewise.
37762         * lib/unistr/u32-set.c: Likewise.
37763         * lib/unistr/u32-startswith.c: Likewise.
37764         * lib/unistr/u32-stpcpy.c: Likewise.
37765         * lib/unistr/u32-stpncpy.c: Likewise.
37766         * lib/unistr/u32-strcat.c: Likewise.
37767         * lib/unistr/u32-strchr.c: Likewise.
37768         * lib/unistr/u32-strcmp.c: Likewise.
37769         * lib/unistr/u32-strcpy.c: Likewise.
37770         * lib/unistr/u32-strcspn.c: Likewise.
37771         * lib/unistr/u32-strdup.c: Likewise.
37772         * lib/unistr/u32-strlen.c: Likewise.
37773         * lib/unistr/u32-strmblen.c: Likewise.
37774         * lib/unistr/u32-strmbtouc.c: Likewise.
37775         * lib/unistr/u32-strncat.c: Likewise.
37776         * lib/unistr/u32-strncmp.c: Likewise.
37777         * lib/unistr/u32-strncpy.c: Likewise.
37778         * lib/unistr/u32-strnlen.c: Likewise.
37779         * lib/unistr/u32-strpbrk.c: Likewise.
37780         * lib/unistr/u32-strrchr.c: Likewise.
37781         * lib/unistr/u32-strspn.c: Likewise.
37782         * lib/unistr/u32-strstr.c: Likewise.
37783         * lib/unistr/u32-strtok.c: Likewise.
37784         * lib/unistr/u32-to-u16.c: Likewise.
37785         * lib/unistr/u32-to-u8.c: Likewise.
37786         * lib/unistr/u32-uctomb.c: Likewise.
37787         * lib/unistr/u8-check.c: Likewise.
37788         * lib/unistr/u8-chr.c: Likewise.
37789         * lib/unistr/u8-cmp.c: Likewise.
37790         * lib/unistr/u8-cpy-alloc.c: Likewise.
37791         * lib/unistr/u8-cpy.c: Likewise.
37792         * lib/unistr/u8-endswith.c: Likewise.
37793         * lib/unistr/u8-mblen.c: Likewise.
37794         * lib/unistr/u8-mbsnlen.c: Likewise.
37795         * lib/unistr/u8-mbtouc-aux.c: Likewise.
37796         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
37797         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
37798         * lib/unistr/u8-mbtouc.c: Likewise.
37799         * lib/unistr/u8-mbtoucr.c: Likewise.
37800         * lib/unistr/u8-move.c: Likewise.
37801         * lib/unistr/u8-next.c: Likewise.
37802         * lib/unistr/u8-prev.c: Likewise.
37803         * lib/unistr/u8-set.c: Likewise.
37804         * lib/unistr/u8-startswith.c: Likewise.
37805         * lib/unistr/u8-stpcpy.c: Likewise.
37806         * lib/unistr/u8-stpncpy.c: Likewise.
37807         * lib/unistr/u8-strcat.c: Likewise.
37808         * lib/unistr/u8-strchr.c: Likewise.
37809         * lib/unistr/u8-strcmp.c: Likewise.
37810         * lib/unistr/u8-strcpy.c: Likewise.
37811         * lib/unistr/u8-strcspn.c: Likewise.
37812         * lib/unistr/u8-strdup.c: Likewise.
37813         * lib/unistr/u8-strlen.c: Likewise.
37814         * lib/unistr/u8-strmblen.c: Likewise.
37815         * lib/unistr/u8-strmbtouc.c: Likewise.
37816         * lib/unistr/u8-strncat.c: Likewise.
37817         * lib/unistr/u8-strncmp.c: Likewise.
37818         * lib/unistr/u8-strncpy.c: Likewise.
37819         * lib/unistr/u8-strnlen.c: Likewise.
37820         * lib/unistr/u8-strpbrk.c: Likewise.
37821         * lib/unistr/u8-strrchr.c: Likewise.
37822         * lib/unistr/u8-strspn.c: Likewise.
37823         * lib/unistr/u8-strstr.c: Likewise.
37824         * lib/unistr/u8-strtok.c: Likewise.
37825         * lib/unistr/u8-to-u16.c: Likewise.
37826         * lib/unistr/u8-to-u32.c: Likewise.
37827         * lib/unistr/u8-uctomb-aux.c: Likewise.
37828         * lib/unistr/u8-uctomb.c: Likewise.
37829         * lib/unitypes.h: Likewise.
37830         * lib/uniwidth.h: Likewise.
37831         * lib/uniwidth/cjk.h: Likewise.
37832         * lib/uniwidth/u16-strwidth.c: Likewise.
37833         * lib/uniwidth/u16-width.c: Likewise.
37834         * lib/uniwidth/u32-strwidth.c: Likewise.
37835         * lib/uniwidth/u32-width.c: Likewise.
37836         * lib/uniwidth/u8-strwidth.c: Likewise.
37837         * lib/uniwidth/u8-width.c: Likewise.
37838         * lib/uniwidth/width.c: Likewise.
37839
37840 2007-10-07  Bruno Haible  <bruno@clisp.org>
37841
37842         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
37843         The file is still under LGPL (see modules/inttypes).
37844
37845 2007-10-06  Bruno Haible  <bruno@clisp.org>
37846
37847         * modules/trunc (Dependencies): Add 'extensions'.
37848         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
37849         Reported by Ben Pfaff <blp@gnu.org>.
37850
37851 2007-10-06  Bruno Haible  <bruno@clisp.org>
37852
37853         * modules/freopen-tests: New file.
37854         * tests/test-freopen.c: New file.
37855
37856         * modules/fopen-tests: New file.
37857         * tests/test-fopen.c: New file.
37858
37859         * modules/fopen: New file.
37860         * lib/fopen.c: New file.
37861         * m4/fopen.m4: New file.
37862         * modules/freopen: New file.
37863         * lib/freopen.c: New file.
37864         * m4/freopen.m4: New file.
37865         * lib/stdio.in.h (fopen, freopen): New declarations.
37866         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
37867         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
37868         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
37869         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
37870         * doc/functions/fopen.texi: Mention the 'fopen' module.
37871         * doc/functions/freopen.texi: Mention the 'freopen' module.
37872
37873 2007-10-06  Bruno Haible  <bruno@clisp.org>
37874
37875         * modules/open-tests: New file.
37876         * tests/test-open.c: New file.
37877
37878         * modules/open: New file.
37879         * lib/open.c: New file.
37880         * m4/open.m4: New file.
37881         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
37882         lib/open.c does.
37883         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
37884         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
37885         macros.
37886         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
37887         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
37888         REPLACE_OPEN.
37889         * doc/functions/open.texi: Mention the 'open' module.
37890
37891 2007-10-04  Bruno Haible  <bruno@clisp.org>
37892
37893         * modules/ceill-tests: New file.
37894         * tests/test-ceill.c: New file.
37895
37896         * modules/ceill: New file.
37897         * lib/ceill.c: Replace entire file.
37898         * m4/ceill.m4: New file.
37899         * lib/math.in.h (ceill): Replace declaration.
37900         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
37901         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
37902         * doc/functions/ceill.texi: Mention the 'ceill' module.
37903         * modules/mathl (Files): Remove lib/ceill.c.
37904         (Depends-on): Add ceill.
37905
37906 2007-10-04  Bruno Haible  <bruno@clisp.org>
37907
37908         * modules/ceilf-tests: New file.
37909         * tests/test-ceilf.c: New file.
37910
37911         * modules/ceilf: New file.
37912         * lib/ceil.c: New file.
37913         * lib/ceilf.c: New file.
37914         * m4/ceilf.m4: New file.
37915         * lib/math.in.h (ceilf): New declaration.
37916         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
37917         HAVE_DECL_CEILF.
37918         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
37919         HAVE_DECL_CEILF.
37920         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
37921
37922 2007-10-04  Bruno Haible  <bruno@clisp.org>
37923
37924         * modules/floorl-tests: New file.
37925         * tests/test-floorl.c: New file.
37926
37927         * modules/floorl: New file.
37928         * lib/floorl.c: Replace entire file.
37929         * m4/floorl.m4: New file.
37930         * lib/math.in.h (floorl): Replace declaration.
37931         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
37932         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
37933         * doc/functions/floorl.texi: Mention the 'floorl' module.
37934         * modules/mathl (Files): Remove lib/floorl.c.
37935         (Depends-on): Add floorl.
37936
37937 2007-10-04  Bruno Haible  <bruno@clisp.org>
37938
37939         * modules/floorf-tests: New file.
37940         * tests/test-floorf.c: New file.
37941
37942         * modules/floorf: New file.
37943         * lib/floor.c: New file.
37944         * lib/floorf.c: New file.
37945         * m4/floorf.m4: New file.
37946         * lib/math.in.h (floorf): New declaration.
37947         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
37948         HAVE_DECL_FLOORF.
37949         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
37950         HAVE_DECL_FLOORF.
37951         * doc/functions/floorf.texi: Mention the 'floorf' module.
37952
37953 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
37954             Bruno Haible  <bruno@clisp.org>
37955
37956         Advertise for the Git server instead of the CVS server.
37957         * doc/gnulib-intro.texi (Steady Development): Mention the Git
37958         repository instead of the CVS one.
37959         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
37960         about all VCS systems generically.
37961         * doc/gnulib.texi (Introduction): Capitalize `Git'.
37962
37963 2007-10-04  Bruno Haible  <bruno@clisp.org>
37964
37965         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
37966         means.
37967         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
37968
37969 2007-10-04  Bruno Haible  <bruno@clisp.org>
37970
37971         * modules/truncl-tests: New file.
37972         * tests/test-truncl.c: New file.
37973
37974         * modules/truncl: New file.
37975         * lib/truncl.c: New file.
37976         * m4/truncl.m4: New file.
37977         * lib/math.in.h (truncl): New declaration.
37978         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
37979         HAVE_DECL_TRUNCL.
37980         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
37981         HAVE_DECL_TRUNCL.
37982         * doc/functions/truncl.texi: Mention the 'truncl' module.
37983
37984 2007-10-04  Bruno Haible  <bruno@clisp.org>
37985
37986         * modules/truncf-tests: New file.
37987         * tests/test-truncf.c: New file.
37988
37989         * modules/truncf: New file.
37990         * lib/trunc.c: Make paramerizable through USE_* macros.
37991         * lib/truncf.c: New file.
37992         * m4/truncf.m4: New file.
37993         * lib/math.in.h (truncf): New declaration.
37994         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
37995         HAVE_DECL_TRUNCF.
37996         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
37997         HAVE_DECL_TRUNCF.
37998         * doc/functions/truncf.texi: Mention the 'truncf' module.
37999
38000 2007-10-03  Bruno Haible  <bruno@clisp.org>
38001
38002         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
38003         augmentation also for tests modules.
38004         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
38005         * modules/atexit-tests (Makefile.am): Likewise.
38006         * modules/binary-io-tests (Makefile.am): Likewise.
38007         * modules/c-strcase-tests (Makefile.am): Likewise.
38008         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
38009         * modules/canonicalize-tests (Makefile.am): Likewise.
38010         * modules/closein-tests (Makefile.am): Likewise.
38011         * modules/fprintf-posix-tests (Makefile.am): Likewise.
38012         * modules/freadahead-tests (Makefile.am): Likewise.
38013         * modules/fseek-tests (Makefile.am): Likewise.
38014         * modules/fseeko-tests (Makefile.am): Likewise.
38015         * modules/ftell-tests (Makefile.am): Likewise.
38016         * modules/ftello-tests (Makefile.am): Likewise.
38017         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
38018         * modules/isnanl-tests (Makefile.am): Likewise.
38019         * modules/lseek-tests (Makefile.am): Likewise.
38020         * modules/mbscasecmp-tests (Makefile.am): Likewise.
38021         * modules/mbscasestr-tests (Makefile.am): Likewise.
38022         * modules/mbschr-tests (Makefile.am): Likewise.
38023         * modules/mbscspn-tests (Makefile.am): Likewise.
38024         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
38025         * modules/mbspbrk-tests (Makefile.am): Likewise.
38026         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
38027         * modules/mbsrchr-tests (Makefile.am): Likewise.
38028         * modules/mbsspn-tests (Makefile.am): Likewise.
38029         * modules/mbsstr-tests (Makefile.am): Likewise.
38030         * modules/printf-posix-tests (Makefile.am): Likewise.
38031         * modules/snprintf-posix-tests (Makefile.am): Likewise.
38032         * modules/sprintf-posix-tests (Makefile.am): Likewise.
38033         * modules/tsearch-tests (Makefile.am): Likewise.
38034         * modules/uniname/uniname-tests (Makefile.am): Likewise.
38035         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
38036         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
38037         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
38038         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
38039         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
38040         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
38041         * modules/vprintf-posix-tests (Makefile.am): Likewise.
38042         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
38043         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
38044         * modules/xstrtoimax-tests (Makefile.am): Likewise.
38045         * modules/xstrtol-tests (Makefile.am): Likewise.
38046         * modules/xstrtoumax-tests (Makefile.am): Likewise.
38047         * modules/yesno-tests (Makefile.am): Likewise.
38048
38049 2007-10-03  Bruno Haible  <bruno@clisp.org>
38050
38051         * modules/trunc-tests: New file.
38052         * tests/test-trunc.c: New file.
38053
38054         * modules/trunc: New file.
38055         * lib/trunc.c: New file.
38056         * m4/trunc.m4: New file.
38057         * lib/math.in.h (trunc): New declaration.
38058         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
38059         HAVE_DECL_TRUNC.
38060         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
38061         HAVE_DECL_TRUNC.
38062         * doc/functions/trunc.texi: Mention the 'trunc' module.
38063
38064 2007-10-03  Bruno Haible  <bruno@clisp.org>
38065
38066         * tests/test-fpending.c: New file, mostly copied
38067         from coreutils/lib/t-fpending.c.
38068         * modules/fpending-tests: New file.
38069
38070 2007-10-03  Bruno Haible  <bruno@clisp.org>
38071
38072         Port the stdio extensions to QNX (untested).
38073         * lib/fseterr.c (fseterr): Add support for QNX.
38074         * lib/fbufmode.c (fbufmode): Likewise.
38075         * lib/freadable.c (freadable): Likewise.
38076         * lib/fwritable.c (fwritable): Likewise.
38077         * lib/freading.c (freading): Likewise.
38078         * lib/fwriting.c (fwriting): Likewise.
38079         * lib/freadahead.c (freadahed): Likewise.
38080         * lib/fpurge.c (fpurge): Likewise.
38081         * lib/fseeko.c (rpl_fseeko): Likewise.
38082
38083 2007-10-03  Bruno Haible  <bruno@clisp.org>
38084             Jim Meyering  <jim@meyering.net>
38085             Eric Blake  <ebb9@byu.net>
38086
38087         * doc/relocatable.texi: Use @command instead of @program.
38088
38089 2007-10-02  Jim Meyering  <jim@meyering.net>
38090
38091         Perform one more "_.h" -> ".in.h" substitution.
38092         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
38093         instead of unistd_.h here, too.
38094
38095 2007-10-01  Bruno Haible  <bruno@clisp.org>
38096
38097         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
38098         Needed for the alloca-opt module.
38099
38100 2007-09-30  Bruno Haible  <bruno@clisp.org>
38101
38102         * lib/alloca.in.h: Renamed from lib/alloca_.h.
38103         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
38104         alloca_.h.
38105         * lib/argz.in.h: Renamed from lib/argz_.h.
38106         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
38107         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
38108         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
38109         byteswap_.h.
38110         * lib/dirent.in.h: Renamed from lib/dirent_.h.
38111         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
38112         dirent_.h.
38113         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
38114         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
38115         fcntl_.h.
38116         * lib/float.in.h: Renamed from lib/float_.h.
38117         * modules/float (Files, Makefile.am): Use float.in.h instead of
38118         float_.h.
38119         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
38120         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
38121         fnmatch_.h.
38122         * lib/getopt.in.h: Renamed from lib/getopt_.h.
38123         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
38124         getopt_.h.
38125         * lib/glob.in.h: Renamed from lib/glob_.h.
38126         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
38127         * lib/iconv.in.h: Renamed from lib/iconv_.h.
38128         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
38129         iconv_.h.
38130         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
38131         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
38132         inttypes_.h.
38133         * lib/locale.in.h: Renamed from lib/locale_.h.
38134         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
38135         locale_.h.
38136         * lib/math.in.h: Renamed from lib/math_.h.
38137         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
38138         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
38139         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
38140         of netinet_in_.h. Add dependency.
38141         * lib/poll.in.h: Renamed from lib/poll_.h.
38142         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
38143         * lib/search.in.h: Renamed from lib/search_.h.
38144         * modules/search (Files, Makefile.am): Use search.in.h instead of
38145         search_.h.
38146         * lib/signal.in.h: Renamed from lib/signal_.h.
38147         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
38148         _signal.h.
38149         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
38150         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
38151         stdbool_.h.
38152         * lib/stdint.in.h: Renamed from lib/stdint_.h.
38153         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
38154         stdint_.h.
38155         * lib/stdio.in.h: Renamed from lib/stdio_.h.
38156         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
38157         stdio_.h.
38158         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
38159         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
38160         stdlib_.h.
38161         * lib/string.in.h: Renamed from lib/string_.h.
38162         * modules/string (Files, Makefile.am): Use string.in.h instead of
38163         string_.h.
38164         * doc/gnulib-tool.texi (Initial import): Update.
38165         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
38166         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
38167         of sys_select_.h. Add dependency.
38168         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
38169         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
38170         of sys_socket_.h.
38171         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
38172         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
38173         sys_stat_.h.
38174         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
38175         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
38176         sys_time_.h.
38177         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
38178         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
38179         sysexits_.h.
38180         * lib/time.in.h: Renamed from lib/time_.h.
38181         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
38182         * lib/unistd.in.h: Renamed from lib/unistd_.h.
38183         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
38184         unistd_.h.
38185         * lib/wchar.in.h: Renamed from lib/wchar_.h.
38186         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
38187         wchar_.h.
38188         * lib/wctype.in.h: Renamed from lib/wctype_.h.
38189         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
38190         wctype_.h.
38191         * build-aux/bootstrap (slurp): Update.
38192         * lib/.cppi-disable: Update.
38193
38194 2007-09-30  Bruno Haible  <bruno@clisp.org>
38195
38196         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
38197         Needed on BeOS.
38198
38199 2007-09-30  Bruno Haible  <bruno@clisp.org>
38200
38201         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
38202
38203 2007-09-29  Bruno Haible  <bruno@clisp.org>
38204
38205         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
38206
38207 2007-09-29  Bruno Haible  <bruno@clisp.org>
38208
38209         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
38210         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
38211         * build-aux/install-reloc: Compile also areadlink.c.
38212         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
38213
38214 2007-09-29  Bruno Haible  <bruno@clisp.org>
38215
38216         * gnulib-tool (func_emit_initmacro_done): Indentation.
38217
38218 2007-09-29  Bruno Haible  <bruno@clisp.org>
38219
38220         * README: Add CVS checkout update instructions.
38221         Info from Bob Proulx <bob@proulx.com>.
38222
38223 2007-09-28  Eric Blake  <ebb9@byu.net>
38224
38225         Provide move-if-change.
38226         * build-aux/move-if-change: New file, based on best practice
38227         rather than any canonical upstream location.
38228
38229 2007-09-28  Jim Meyering  <jim@meyering.net>
38230
38231         Fix canonicalize loop-detection corner case.
38232         Do not attempt to stat the symlink values stored via seen_triple.
38233         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
38234         on linux-2.6.18, (but not 2.6.22).
38235         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
38236         triple_compare.  The former compares dev,ino,filename, while the latter
38237         would actually stat dirname(filename) when dev and ino were equal.
38238         * lib/hash-triple.c: Install <string.h>.
38239         (STREQ): Define.
38240         (triple_compare_ino_str): New function.
38241         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
38242
38243 2007-09-28  Eric Blake  <ebb9@byu.net>
38244
38245         Enforce that AC_REPLACE_FUNCS files exist.
38246         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
38247         override check for typos.
38248
38249         Fix test-closein on Solaris 10.
38250         * tests/test-closein.c (main): Don't assume stdin can be inherited
38251         closed on all systems.
38252         * tests/test-closein.sh: Likewise.
38253         Reported by Piotr Tarnowski.
38254
38255 2007-09-28  Jim Meyering  <jim@meyering.net>
38256
38257         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
38258
38259 2007-09-27  Jim Meyering  <jim@meyering.net>
38260
38261         canonicalize: Avoid a false-positive cycle failure.
38262         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
38263         Sort.  Remove cycle-check.
38264         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
38265         not cycle-check.h.
38266         (seen_triple): New function.
38267         (canonicalize_filename_mode): Use it instead of cycle-check.
38268         * tests/test-canonicalize.c: Add a test for this bug.
38269         * tests/test-canonicalize.sh: Set up and run the test.
38270
38271         New module, file-set, from coreutils.
38272         * modules/file-set: Define it.
38273         * lib/file-set.c, lib/file-set.h: Implement.
38274
38275         New module, hash-triple, from coreutils.
38276         * modules/hash-triple: Define it.
38277         * lib/hash-triple.c, lib/hash-triple.h: Implement.
38278
38279 2007-09-25  Eric Blake  <ebb9@byu.net>
38280
38281         Fix strerror on Interix.
38282         * lib/string_.h (strerror): Declare replacement.
38283         * doc/functions/strerror.texi (strerror): Document the Interix
38284         shortcoming.
38285         * modules/string (Makefile.am): Support new hooks.
38286         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
38287         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
38288         gl_FUNC_STRERROR_SEPARATE.
38289         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
38290         * lib/strerror.c (rpl_strerror): Provide replacement.
38291         * modules/strerror (Depends-on): Add string.
38292         (configure.ac): Detect use of module.
38293         * tests/test-strerror.c: New file.
38294         * modules/strerror-tests: New test module.
38295         * modules/argp (Depends-on): Add strerror.
38296         * modules/error (Depends-on): Likewise.
38297         Reported by Martin Koeppe.
38298
38299 2007-09-24  Bruno Haible  <bruno@clisp.org>
38300
38301         * README: Update git instructions.
38302
38303 2007-09-24  Eric Blake  <ebb9@byu.net>
38304
38305         Revert fpending breakage from 2007-09-08.
38306         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
38307         __fpending.c.
38308
38309 2007-09-24  Jim Meyering  <jim@meyering.net>
38310
38311         filenamecat.c: Add a test.
38312         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
38313         showing how the function works when DIR is the empty string.
38314
38315 2007-09-21  Simon Josefsson  <simon@josefsson.org>
38316
38317         * tests/test-canonicalize.sh: Turn on executable bit.
38318
38319 2007-09-19  Eric Blake  <ebb9@byu.net>
38320
38321         * README: Update CVS instructions.
38322
38323 2007-09-18  Bruno Haible  <bruno@clisp.org>
38324
38325         * modules/areadlink: New file.
38326         * lib/areadlink.h (areadlink): New declaration.
38327         * lib/areadlink.c: New file, based on lib/xreadlink.c.
38328
38329 2007-09-17  Jim Meyering  <jim@meyering.net>
38330
38331         * lib/savewd.c (ESTALE) [!defined]: Define.
38332         Reported to be required on Interix by Martin Koeppe.
38333
38334 2007-09-17  Bruno Haible  <bruno@clisp.org>
38335
38336         * gnulib-tool (func_version): Use $version.
38337
38338 2007-09-16  Bruno Haible  <bruno@clisp.org>
38339
38340         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
38341         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
38342         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
38343         Reported by Greg Schafer <gschafer@zip.com.au>.
38344
38345 2007-09-15  Bruno Haible  <bruno@clisp.org>
38346
38347         * gnulib-tool (sed): Try a little harder to make bash understand the
38348         alias.
38349         Reported by Bruce Korb <bruce.korb@gmail.com>.
38350
38351 2007-09-13  Eric Blake  <ebb9@byu.net>
38352
38353         * ChangeLog: Remove conflict markers.
38354
38355 2007-09-13  Simon Josefsson  <simon@josefsson.org>
38356
38357         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
38358         Reported by Bruno Haible <bruno@clisp.org>.
38359
38360 2007-09-12  Bruno Haible  <bruno@clisp.org>
38361
38362         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
38363         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
38364         is not defined.
38365
38366 2007-09-12  Eric Blake  <ebb9@byu.net>
38367
38368         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
38369         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
38370         Autoconf definition.
38371         * modules/euidaccess (Depends-on): Add extensions, for
38372         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
38373         * modules/fnmatch (Depends-on): Likewise.
38374         * modules/getaddrinfo (Depends-on): Likewise.
38375         * modules/getdelim (Depends-on): Likewise.
38376         * modules/getline (Depends-on): Likewise.
38377         * modules/getsubopt (Depends-on): Likewise.
38378         * modules/gettext (Depends-on): Likewise.
38379         * modules/group-member (Depends-on): Likewise.
38380         * modules/mbchar (Depends-on): Likewise.
38381         * modules/memmem (Depends-on): Likewise.
38382         * modules/mempcpy (Depends-on): Likewise.
38383         * modules/memrchr (Depends-on): Likewise.
38384         * modules/pagealign_alloc (Depends-on): Likewise.
38385         * modules/readutmp (Depends-on): Likewise.
38386         * modules/stpcpy (Depends-on): Likewise.
38387         * modules/stpncpy (Depends-on): Likewise.
38388         * modules/strchrnul (Depends-on): Likewise.
38389         * modules/strndup (Depends-on): Likewise.
38390         * modules/strsep (Depends-on): Likewise.
38391         * modules/strverscmp (Depends-on): Likewise.
38392         * modules/vasprintf (Depends-on): Likewise.
38393         * modules/wcwidth (Depends-on): Likewise.
38394         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
38395         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
38396         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
38397         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
38398         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
38399         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
38400         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
38401         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
38402         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
38403         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
38404         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
38405         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
38406         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
38407         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
38408         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
38409         * m4/readutmp.m4 (gl_READUTMP): Likewise.
38410         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
38411         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
38412         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
38413         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
38414         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
38415         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
38416         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
38417         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
38418         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
38419         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
38420         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
38421         so that lock.m4 can be used in gettext without extensions module.
38422
38423 2007-09-11  Bruno Haible  <bruno@clisp.org>
38424
38425         * m4/isc-posix.m4: Remove file.
38426         Suggested by Eric Blake.
38427
38428 2007-09-11  Eric Blake  <ebb9@byu.net>
38429
38430         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
38431
38432 2007-09-10  Bruno Haible  <bruno@clisp.org>
38433
38434         * posix-modules: Fix typo in error message.
38435         Reported by Matt <mkraai@beckman.com>.
38436
38437 2007-09-09  Bruno Haible  <bruno@clisp.org>
38438
38439         * doc/functions/getdelim.texi: Update list of platforms lacking the
38440         function.
38441         * doc/functions/getline.texi: Likewise.
38442
38443 2007-09-09  Jim Meyering  <jim@meyering.net>
38444
38445         * lib/hash.c (hash_initialize): Detect calloc failure.
38446         Reported by Bruno Haible.
38447
38448 2007-09-09  Bruno Haible  <bruno@clisp.org>
38449
38450         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
38451         malloc or realloc fails.
38452
38453 2007-09-09  Bruno Haible  <bruno@clisp.org>
38454
38455         * modules/getcwd (Depends-on): Add malloc-posix.
38456         * modules/glob (Depends-on): Likewise.
38457         * modules/putenv (Depends-on): Likewise.
38458         * modules/strdup (Depends-on): Likewise.
38459         * modules/getdelim (Depends-on): Add realloc-posix.
38460         * modules/read-file (Depends-on): Likewise.
38461
38462 2007-09-09  Bruno Haible  <bruno@clisp.org>
38463
38464         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
38465         (gl_FUNC_MALLOC_POSIX): Require it.
38466         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
38467         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
38468         * modules/realloc (Files): Add m4/malloc.m4.
38469         * modules/calloc (Files): Likewise.
38470
38471 2007-09-09  Bruno Haible  <bruno@clisp.org>
38472
38473         * modules/malloc-posix: New file.
38474         * modules/malloc (Depends-on): Add malloc-posix.
38475         * lib/malloc.c: Include errno.h.
38476         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
38477         and a POSIX-compatible malloc into a single function. Set ENOMEM
38478         when returning NULL.
38479         * m4/malloc.m4: New file.
38480         * doc/functions/malloc.texi: Mention the malloc-posix module.
38481         * lib/stdlib_.h (malloc): New declaration.
38482         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
38483         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
38484         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
38485         and HAVE_MALLOC_POSIX.
38486
38487 2007-09-09  Bruno Haible  <bruno@clisp.org>
38488
38489         * modules/realloc-posix: New file.
38490         * modules/realloc (Depends-on): Add realloc-posix.
38491         * lib/realloc.c: Include errno.h.
38492         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
38493         and a POSIX-compatible realloc into a single function. Set ENOMEM
38494         when returning NULL.
38495         * m4/realloc.m4: New file.
38496         * doc/functions/realloc.texi: Mention the realloc-posix module.
38497         * lib/stdlib_.h (realloc): New declaration.
38498         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
38499         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
38500         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
38501         and HAVE_REALLOC_POSIX.
38502
38503 2007-09-09  Bruno Haible  <bruno@clisp.org>
38504
38505         * modules/calloc-posix: New file.
38506         * modules/calloc (Depends-on): Add calloc-posix.
38507         * lib/calloc.c: Include errno.h.
38508         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
38509         and a POSIX-compatible calloc into a single function. Set ENOMEM
38510         when returning NULL.
38511         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
38512         * doc/functions/calloc.texi: Mention the calloc-posix module.
38513         * lib/stdlib_.h (calloc): New declaration.
38514         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
38515         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
38516         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
38517         and HAVE_CALLOC_POSIX.
38518
38519 2007-09-09  Bruno Haible  <bruno@clisp.org>
38520
38521         Allow for modules to show an arbitrary notice.
38522         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
38523         * gnulib-tool: New option --extract-notice.
38524         (func_usage): Document it.
38525         (sed_extract_prog): Update.
38526         (func_get_notice): New function.
38527         (func_modules_notice): New function.
38528         (func_import, func_create_testdir): Invoke it.
38529         Suggested by Jim Meyering.
38530
38531 2007-09-09  Bruno Haible  <bruno@clisp.org>
38532
38533         * gnulib-tool: New options --verbose, --quiet.
38534         (func_usage): Document them.
38535         (verbose): New variable.
38536         (func_execute_command): New function.
38537         (func_import): Don't show the module list and the file list if
38538         $verbose < 0.
38539         (func_create_testdir): Likewise. Use func_execute_command.
38540         (func_create_megatestdir): Use func_execute_command.
38541
38542 2007-09-08  Bruno Haible  <bruno@clisp.org>
38543
38544         * gnulib-tool (func_import): Prefer rsync over wget when available,
38545         for fetching the PO files.
38546
38547 2007-09-08  Bruno Haible  <bruno@clisp.org>
38548
38549         * posix-modules: New file. Portions copied from gnulib-tool.
38550         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
38551
38552 2007-09-08  Jim Meyering  <jim@meyering.net>
38553
38554         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
38555         * lib/fpending.h: Rename from __fpending.h.
38556         * lib/fpending.c: Rename from __fpending.c.
38557         Include "fpending.h", not "__fpending.h".
38558         * lib/__fpending.h, lib/__fpending.c: Remove files.
38559         * modules/fpending (Files): Reflect new file names.
38560         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
38561
38562 2007-09-08  Bruno Haible  <bruno@clisp.org>
38563
38564         * m4/inttypes-h.m4: Remove stub file.
38565
38566 2007-09-07  Simon Josefsson  <simon@josefsson.org>
38567
38568         * doc/headers/stdint.texi: Discuss #include_next issue.
38569
38570 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
38571
38572         * build-aux/bootstrap: Remove obsolete comment about wget --help.
38573
38574 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
38575
38576         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
38577         in variable name.
38578
38579 2007-09-03  Jim Meyering  <jim@meyering.net>
38580
38581         New module: git-version-gen.
38582         * modules/git-version-gen: New file.
38583
38584         Import changes from coreutils for bootstrap script.
38585
38586         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
38587
38588         bootstrap: uses rsync to download the .po files
38589         * build-aux/bootstrap (po_download_command_format): New global.
38590         (download_po_files): Use rsync.
38591         (update_po_files): Don't remove .po files after download,
38592         so future rsync runs can take advantage of the copies.
38593
38594         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
38595
38596         Solve the unnecessary-.po-file-regeneration problem once and for all.
38597         * build-aux/bootstrap (download_po_files): New function, renamed from
38598         get_translations.  Now, downloads, but doesn't update LINGUAS.
38599         (update_po_files): New function.
38600
38601         bootstrap: Ignore more.
38602         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
38603         uniwidth to e.g., lib/.gitignore.
38604         (slurp): Handle the sys_stat_.h -> sys mapping, too.
38605
38606         * build-aux/bootstrap: New setting: vc_ignore.
38607         (insert_sorted_if_absent): Create $file if absent.
38608         Adapt to new, possibly empty, list: $vc_ignore.
38609
38610         bootstrap: generate more ignorable names
38611         * build-aux/bootstrap (slurp): When generating ignorable names,
38612         also map .sin to .sed, .gperf to .c, and .y to .c.
38613
38614 2007-09-03  Jim Meyering  <jim@meyering.net>
38615
38616         * build-aux/git-version-gen: New file, from coreutils.  For details, see
38617         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
38618
38619 2007-09-02  Bruno Haible  <bruno@clisp.org>
38620
38621         Fix mis-recognition of 'mcs' on QNX 6.
38622         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
38623         output contains the string "Mono".
38624         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
38625         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
38626
38627 2007-09-01  Bruno Haible  <bruno@clisp.org>
38628
38629         Fix collision between uniwidth/* and linebreak modules.
38630         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
38631         u32_width): Remove declarations.
38632         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
38633         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
38634         streq3, streq2, streq1, streq0): Remove functions.
38635         (STREQ): Remove macro.
38636         (is_cjk_encoding): Remove function.
38637         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
38638         (uc_width, u8_width, u16_width, u32_width): Remove functions.
38639         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
38640         * NEWS: Document the change.
38641
38642 2007-09-01  Bruno Haible  <bruno@clisp.org>
38643
38644         * lib/streq.h: Add double-inclusion guard.
38645
38646 2007-09-01  Karl Berry  <karl@gnu.org>
38647
38648         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
38649
38650 2007-08-28  Jim Meyering  <jim@meyering.net>
38651
38652         Rename mreadlink_with_size to areadlink_with_size.
38653         * NEWS: Document the change.
38654         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
38655         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
38656         * lib/mreadlink.h: Rename this to...
38657         * lib/areadlink.h: ...this.
38658         * modules/mreadlink-with-size: Rename this to...
38659         * modules/areadlink-with-size: ...this.
38660         * lib/canonicalize.c: Reflect the renaming.
38661         * modules/canonicalize: Likewise.
38662
38663 2007-08-26  Bruno Haible  <bruno@clisp.org>
38664
38665         * gnulib-tool (func_import): When deciding which files to remove,
38666         consider also dangling symbolic links.
38667         Reported by Eric Blake.
38668
38669 2007-08-26  Bruno Haible  <bruno@clisp.org>
38670
38671         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
38672
38673 2007-08-23  Simon Josefsson  <simon@josefsson.org>
38674
38675         * lib/readline.c: Don't include getline.h, the prototype is now
38676         found in stdio.h.
38677
38678 2007-08-23  Jim Meyering  <jim@meyering.net>
38679
38680         Getdelim touchup.
38681         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
38682         around the funlockfile call, since funlockfile never sets errno.
38683         Don't set errno upon failed realloc.
38684
38685 2007-08-22  Eric Blake  <ebb9@byu.net>
38686
38687         Getline touchups.
38688         * lib/getdelim.c (getdelim): Revert regression that required *n to
38689         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
38690         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
38691         getdelim, rather than whether implementation is missing.
38692         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
38693         * lib/stdio_.h (getline): Also declare if replacement is
38694         required.
38695         * doc/functions/getdelim.texi: New file.
38696         * doc/functions/getline.texi: Likewise.
38697         * doc/gnulib.texi (Function Substitutes): Add new files.
38698         Reported by Bruno Haible.
38699
38700 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
38701
38702         * users.txt: Add Guile.
38703
38704 2007-08-22  Eric Blake  <ebb9@byu.net>
38705
38706         * tests/test-getdelim.c (main): Use remove, not unlink.
38707         * tests/test-getline.c (main): Likewise.
38708
38709         Move getline and getdelim into stdio.h, per POSIX 200x.
38710         * modules/getline (Files): Remove getline.h.
38711         (Depends-on): Add stdio.
38712         (configure.ac): Add module indicator.
38713         * modules/getdelim (Files): Remove getdelim.h.
38714         (Depends-on): Add stdio.
38715         (configure.ac): Add module indicator.
38716         * modules/stdio (Makefile.am): Work with new indicators.
38717         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
38718         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
38719         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
38720         * lib/getdelim.h: Delete.
38721         * lib/getline.h: Delete.
38722         * lib/stdio_.h (getdelim, getline): Declare.
38723         * modules/getdelim-tests: New module.
38724         * modules/getline-tests: Likewise.
38725         * tests/test-getdelim.c: New file.
38726         * tests/test-getline.c: Likewise.
38727         * NEWS: Document the change.
38728         * lib/getline.c: Update choice of header.
38729         * lib/csharpcomp.c: Likewise.
38730         * lib/getpass.c: Likewise.
38731         * lib/javacomp.c: Likewise.
38732         * lib/javaversion.c: Likewise.
38733         * lib/yesno.c: Likewise.
38734         * lib/getdelim.c: Likewise.
38735         (getdelim): Set errno on failure, and avoid memory leak.
38736
38737 2007-08-19  Bruno Haible  <bruno@clisp.org>
38738
38739         * modules/closein (Depends-on): Add freadahead.
38740         * lib/closein.c: Include freadahead.h.
38741         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
38742         is zero.
38743
38744 2007-08-19  Bruno Haible  <bruno@clisp.org>
38745
38746         * modules/freadahead-tests: New file.
38747         * tests/test-freadahead.sh: New file.
38748         * tests/test-freadahead.c: New file.
38749
38750         * modules/freadahead: New file.
38751         * lib/freadahead.h: New file.
38752         * lib/freadahead.c: New file.
38753         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
38754         fbufmode, fpurge, freadable, fwritable.
38755
38756 2007-08-19  Eric Blake  <ebb9@byu.net>
38757
38758         Test yesno in combination with closein.
38759         * lib/yesno.c (yesno): Document use of stdin.
38760         * modules/yesno-tests (Files): New module.
38761         * tests/test-yesno.c (main): New file.
38762         * tests/test-yesno.sh: Likewise.
38763
38764 2007-08-19  Bruno Haible  <bruno@clisp.org>
38765
38766         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
38767         * lib/fseeko.c (rpl_fseeko): Likewise.
38768         * lib/fseterr.c (fseterr): Likewise.
38769
38770 2007-08-19  Bruno Haible  <bruno@clisp.org>
38771
38772         * tests/test-lseek.c (main): Disable a test for BeOS.
38773         * doc/functions/lseek.texi: Document the BeOS bug.
38774
38775 2007-08-19  Bruno Haible  <bruno@clisp.org>
38776             Eric Blake  <ebb9@byu.net>
38777
38778         * lib/lseek.c: Include <sys/stat.h>.
38779         (rpl_lseek): Add workaround code also for Unix platforms.
38780         Needed for BeOS.
38781         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
38782         * doc/functions/lseek.texi: Document BeOS definiency.
38783
38784 2007-08-18  Bruno Haible  <bruno@clisp.org>
38785
38786         * modules/fstrcmp-tests: New file.
38787         * tests/test-fstrcmp.c: New file.
38788
38789 2007-08-18  Bruno Haible  <bruno@clisp.org>
38790
38791         * modules/fstrcmp: New file, from GNU gettext with modifications.
38792         * lib/fstrcmp.h: New file, from GNU gettext.
38793         * lib/fstrcmp.c: New file, from GNU gettext.
38794         * MODULES.html.sh (String handling): Add fstrcmp.
38795
38796 2007-08-18  Bruno Haible  <bruno@clisp.org>
38797
38798         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
38799         'bool'.
38800         (diag, compareseq): Remove const from the ctxt argument.
38801         (USE_HEURISTIC): Undefine at the end.
38802
38803 2007-08-18  Jim Meyering  <jim@meyering.net>
38804
38805         New file: lib/idcache.h
38806         * NEWS: Mention the addition.
38807         * modules/idcache (Files): Add lib/idcache.h
38808         * lib/idcache.c: Include "idcache.h".
38809         Don't include <sys/types.h>.
38810         Add a FIXME comment.
38811         Move file-scoped "static" declarations to the top.
38812         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
38813
38814 2007-08-17  Bruno Haible  <bruno@clisp.org>
38815         and Paul Eggert  <eggert@cs.ucla.edu>
38816
38817         * MODULES.html.sh: Add diffseq.
38818         * modules/diffseq: New file.
38819         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
38820         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
38821
38822 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
38823
38824         Import changes from coreutils for bootstrap script.
38825
38826         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
38827
38828         * build-aux/bootstrap (slurp): Work even in environments where
38829         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
38830         current code does not slurp files whose names start with ".", and
38831         this looks like it might be a troublesome area.
38832
38833         2007-07-11  Jim Meyering  <jim@meyering.net>
38834
38835         If there's a GPL vN copyright comment, require that N == 3.
38836
38837         2007-07-08  Jim Meyering  <jim@meyering.net>
38838
38839         Run the coreutils-specific code only if tests/Makefile.am.in exists.
38840         * build-aux/bootstrap (mam_template): Move definition out of loop.
38841
38842         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
38843
38844         * build-aux/bootstrap (symlink_to_dir): Rename function from
38845         symlink_to_gnulib.  Add a directory parameter.  Update all
38846         callers.
38847         (cp_mark_as_generated): Also check for -- and link to -- files in
38848         gl/.
38849
38850         2007-07-08  Jim Meyering  <jim@meyering.net>
38851
38852         Adapt to deeper hierarchy in gnulib.
38853         * build-aux/bootstrap (symlink_to_dir): If the destination
38854         directory doesn't exist, create it. This is required at least for
38855         "lib/uniwidth/cjk.h".
38856
38857         2007-05-15  Jim Meyering  <jim@meyering.net>
38858
38859         * build-aux/bootstrap: Now that generated Makefile.am files
38860         are no longer under version control, they must be created at
38861         bootstrap time.
38862
38863 2007-08-14  Ben Pfaff  <blp@gnu.org>
38864
38865         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
38866
38867 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
38868
38869         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
38870         given the changes below.
38871         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
38872         even on hosts that have padding bits beyond the supported 64.
38873
38874 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
38875
38876         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
38877         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
38878         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
38879         depends on it.
38880         (xstrtol_error): Remove.
38881         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
38882         but with a different signature.
38883         (ATTRIBUTE_NORETURN, __attribute__): New macros.
38884         * lib/xstrtol-error.c: Include exitfail.h.
38885         (xstrtol_fatal): New function, with a different signature from the
38886         old xstrtol_error, so that the caller need not worry about passing
38887         in an exit status, or about storage management of the option argument.
38888         (xstrtol_error): Now a static function.  Redo signature to
38889         implement xstrtol_fatal.  Output the correct number of hyphens in
38890         front of the option so that the caller need not worry about
38891         storage management.
38892         (N_): New macro.
38893         (_): Remove; not used now.
38894         * modules/xstrtol: Depend on getopt.
38895         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
38896         of old STRTOL_FATAL_ERROR macro.
38897         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
38898         of test program.
38899         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
38900         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
38901
38902 2007-08-08  Eric Blake  <ebb9@byu.net>
38903
38904         * lib/xstrtol-error.c: Add missing include.
38905
38906         Move xstrtol messages into gnulib domain, when --pobase is used.
38907         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
38908         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
38909         * modules/xstrtol (Files): Distribute new file.
38910         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
38911         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
38912         * tests/test-xstrtol.c: ...into new file.
38913         * tests/test-xstrtoul.c: Also test xstrtoul.
38914         * tests/test-xstrtoimax.c: Also test xstrtoimax.
38915         * tests/test-xstrtoumax.c: Also test xstrtoumax.
38916         * tests/test-xstrtol.sh: Drive the tests.
38917         * tests/test-xstrtoimax.sh: Likewise.
38918         * tests/test-xstrtoumax.sh: Likewise.
38919         * modules/xstrtol-tests: New module.
38920         * modules/xstrtoimax-tests: Likewise.
38921         * modules/xstrtoumax-tests: Likewise.
38922
38923 2007-08-08  Jim Meyering  <jim@meyering.net>
38924
38925         New function: mfile_name_concat.
38926         * lib/filenamecat.c (mfile_name_concat): New function, just like
38927         file_name_concat, but return NULL upon failure rather than exiting
38928         with a diagnostic.
38929         * lib/filenamecat.h: Declare it.
38930
38931 2007-08-07  Bruno Haible  <bruno@clisp.org>
38932
38933         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
38934         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
38935         warning from gcc.
38936         Reported by Eric Blake.
38937
38938 2007-08-07  Simon Josefsson  <simon@josefsson.org>
38939
38940         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
38941         * modules/crypto/arcfour (License): Likewise.
38942         * modules/crypto/des-tests (License): Likewise.
38943         * modules/crypto/gc-arctwo-tests (License): Likewise.
38944         * modules/crypto/gc-des-tests (License): Likewise.
38945         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
38946         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
38947         * modules/crypto/gc-md2-tests (License): Likewise.
38948         * modules/crypto/gc-md4-tests (License): Likewise.
38949         * modules/crypto/gc-md5-tests (License): Likewise.
38950         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
38951         * modules/crypto/gc-rijndael-tests (License): Likewise.
38952         * modules/crypto/gc-sha1-tests (License): Likewise.
38953         * modules/crypto/gc-tests (License): Likewise.
38954         * modules/crypto/hmac-md5 (License): Likewise.
38955         * modules/crypto/hmac-sha1 (License): Likewise.
38956         * modules/crypto/md2-tests (License): Likewise.
38957         * modules/crypto/md4-tests (License): Likewise.
38958         * modules/crypto/md5 (License): Likewise.
38959         * modules/crypto/rijndael (License): Likewise.
38960         * modules/crypto/sha1 (License): Likewise.
38961         * modules/memxor (License): Likewise.
38962
38963 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
38964         and Bruno Haible  <bruno@clisp.org>
38965
38966         * NEWS: Describe interface changes to human, xstrtol.
38967         * lib/human.h: Include <xstrtol.h>.
38968         (human_options): Return enum strtol_error, not int.  Remove
38969         bool arg; take int * instead.
38970         * lib/human.c: Don't include "gettext.h".
38971         (_): Remove; no longer used.
38972         Don't include <xstrtol.h>, since human.h does it.
38973         (human_options): Adjust to abovementioned interface changes.
38974         Do not report error to stderr; that's now the caller's
38975         responsibility.
38976         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
38977         interface change.
38978         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
38979         Str, Argument_type_string.  All uses changed.  Put " argument"
38980         in diagnostics to make them clearer.  Change wording of suffix
38981         message for clarity.
38982         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
38983         Argument_type_string.
38984         (STRTOL_FATAL_WARN): Remove; no longer used.
38985         * modules/human (Depends-on): Remove gettext-h.
38986
38987 2007-08-06  Simon Josefsson  <simon@josefsson.org>
38988
38989         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
38990
38991 2007-07-31  Bruno Haible  <bruno@clisp.org>
38992
38993         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
38994         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
38995         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
38996
38997 2007-07-31  Bruno Haible  <bruno@clisp.org>
38998
38999         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
39000         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
39001
39002 2007-07-30  Bruno Haible  <bruno@clisp.org>
39003
39004         * modules/base64 (License): Use the synonymous term "LGPLv2+".
39005         * modules/c-ctype (License): Likewise.
39006         * modules/c-strcase (License): Likewise.
39007         * modules/check-version (License): Likewise.
39008         * modules/iconv (License): Likewise.
39009         * modules/iconv_open (License): Likewise.
39010         * modules/read-file (License): Likewise.
39011         * modules/striconv (License): Likewise.
39012         * modules/strverscmp (License): Likewise.
39013         * modules/vasprintf (License): Likewise.
39014         * modules/crypto/des (License): Likewise.
39015         * modules/crypto/gc (License): Likewise.
39016         * modules/crypto/gc-arcfour (License): Likewise.
39017         * modules/crypto/gc-arctwo (License): Likewise.
39018         * modules/crypto/gc-des (License): Likewise.
39019         * modules/crypto/gc-hmac-md5 (License): Likewise.
39020         * modules/crypto/gc-hmac-sha1 (License): Likewise.
39021         * modules/crypto/gc-md2 (License): Likewise.
39022         * modules/crypto/gc-md4 (License): Likewise.
39023         * modules/crypto/gc-md5 (License): Likewise.
39024         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
39025         * modules/crypto/gc-random (License): Likewise.
39026         * modules/crypto/gc-rijndael (License): Likewise.
39027         * modules/crypto/gc-sha1 (License): Likewise.
39028         * modules/crypto/md2 (License): Likewise.
39029         * modules/crypto/md4 (License): Likewise.
39030
39031 2007-07-30  Jim Meyering  <jim@meyering.net>
39032
39033         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
39034         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
39035         it has valid stat data.  This bug would cause du not to count the
39036         sizes of inaccessible directories.
39037         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
39038         in <http://bugzilla.redhat.com/250077>.
39039
39040 2007-07-25  Peter O'Gorman  <peter@pogma.com>
39041             Bruno Haible  <bruno@clisp.org>
39042
39043         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
39044         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
39045         #include_next, gives a diagnostic about it, but reports no error in
39046         the exit code.
39047         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
39048
39049 2007-07-24  Ben Pfaff  <blp@gnu.org>
39050
39051         Improve name: "count-one-bits" is better than "popcount".
39052         * MODULES.html.sh: Update name.
39053         * lib/popcount.h: Renamed lib/count-one-bits.h.
39054         (popcount): Renamed count_one_bits.
39055         (popcountl): Renamed count_one_bits_l.
39056         (popcountll): Renamed count_one_bits_ll.
39057         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
39058         * modules/popcount: Renamed module/count-one-bits.
39059         * modules/popcount-tests: Renamed module/count-one-bits-tests.
39060         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
39061
39062 2007-07-23  Ben Pfaff  <blp@gnu.org>
39063
39064         * lib/popcount.h (popcount32): Reduce size of constants, to allow
39065         better code generation, and add U to large constants to avoid
39066         warnings, in non-GCC case.
39067         Suggested by Bruno Haible.
39068
39069 2007-07-23  Ben Pfaff  <blp@gnu.org>
39070
39071         * lib/popcount.h: Use verify_true instead of if...abort.
39072         * modules/popcount: Depend on verify module.
39073         Suggested by Jim Meyering.
39074
39075 2007-07-23  Bruno Haible  <bruno@clisp.org>
39076
39077         * gnulib-tool (func_import): Create a .cvsignore file also when the
39078         directory is not yet in CVS but the toplevel directory is. When
39079         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
39080         Reported by Karl Berry.
39081
39082 2007-07-22  Ben Pfaff  <blp@gnu.org>
39083
39084         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
39085         case.
39086         Suggested by Eric Blake.
39087
39088 2007-07-22  Ben Pfaff  <blp@gnu.org>
39089
39090         New module: popcount.
39091         * MODULES.html.sh: Add popcount.
39092         * modules/popcount: New file.
39093         * modules/popcount-tests: New file.
39094         * tests/test-popcount.c: New file.
39095         * lib/popcount.h: New file.
39096         * m4/popcount.m4: New file.
39097
39098 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
39099
39100         * build-aux/announce-gen: Update to GPLv3.
39101
39102         * build-aux/config.guess: Update from config.
39103
39104 2007-07-21  Bruno Haible  <bruno@clisp.org>
39105
39106         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
39107         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
39108
39109 2007-07-20  Jim Meyering  <jim@meyering.net>
39110
39111         * check-module: Diagnose a self-dependency.
39112
39113 2007-07-19  Bruno Haible  <bruno@clisp.org>
39114
39115         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
39116         empty.
39117         Reported by Eric Blake.
39118
39119 2007-07-18  Bruno Haible  <bruno@clisp.org>
39120
39121         * gnulib-tool: New options --po-base, --po-domain.
39122         (func_usage): Document them.
39123         (pobase, po_domain): New variables.
39124         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
39125         DEFAULT_TEXT_DOMAIN.
39126         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
39127         (func_import): Consider pobase and po_domain. Create a po/ directory.
39128         (func_create_testdir): Set pobase and po_domain to empty.
39129         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
39130         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
39131
39132 2007-07-18  Bruno Haible  <bruno@clisp.org>
39133
39134         * gnulib-tool (func_get_automake_snippet): Synthesize also an
39135         EXTRA_DIST augmentation for files in build-aux/.
39136
39137 2007-07-16  Bruno Haible  <bruno@clisp.org>
39138
39139         * modules/lseek (License): Use the synonymous term "LGPLv2+".
39140         * modules/getdelim (License): Likewise.
39141
39142 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
39143
39144         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
39145         * modules/d-type (License): Likewise.
39146         * modules/extensions (License): Likewise.
39147         * modules/fnmatch (License): Likewise.
39148         * modules/fseeko (License): Likewise.
39149         * modules/getaddrinfo (License): Likewise.
39150         * modules/getline (License): Likewise.
39151         * modules/getlogin_r (License): Likewise.
39152         * modules/getpass (License): Likewise.
39153         * modules/gettimeofday (License): Likewise.
39154         * modules/glob (License): Likewise.
39155         * modules/inet_ntop (License): Likewise.
39156         * modules/malloc (License): Likewise.
39157         * modules/malloca (License): Likewise.
39158         * modules/memmem (License): Likewise.
39159         * modules/mempcpy (License): Likewise.
39160         * modules/memset (License): Likewise.
39161         * modules/minmax (License): Likewise.
39162         * modules/mktime (License): Likewise.
39163         * modules/netinet_in (License): Likewise.
39164         * modules/pathmax (License): Likewise.
39165         * modules/poll (License): Likewise.
39166         * modules/regex (License): Likewise.
39167         * modules/snprintf (License): Likewise.
39168         * modules/stdbool (License): Likewise.
39169         * modules/stdint (License): Likewise.
39170         * modules/stdio (License): Likewise.
39171         * modules/strcase (License): Likewise.
39172         * modules/strcasestr (License): Likewise.
39173         * modules/strdup (License): Likewise.
39174         * modules/string (License): Likewise.
39175         * modules/strndup (License): Likewise.
39176         * modules/strnlen (License): Likewise.
39177         * modules/strpbrk (License): Likewise.
39178         * modules/strptime (License): Likewise.
39179         * modules/strsep (License): Likewise.
39180         * modules/sys_select (License): Likewise.
39181         * modules/sys_socket (License): Likewise.
39182         * modules/sys_stat (License): Likewise.
39183         * modules/sys_time (License): Likewise.
39184         * modules/time (License): Likewise.
39185         * modules/time_r (License): Likewise.
39186         * modules/timegm (License): Likewise.
39187         * modules/unistd (License): Likewise.
39188         * modules/vsnprintf (License): Likewise.
39189         * modules/wctype (License): Likewise.
39190
39191 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39192
39193         * modules/argz (License): LGPLv2+.
39194
39195 2007-07-15  Karl Berry  <karl@gnu.org>
39196
39197         * doc/gnulib.texi: revise node structure per new fdl.texi.
39198
39199 2007-07-14  Bruno Haible  <bruno@clisp.org>
39200
39201         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
39202         the output file.
39203         * lib/uniname/uninames.h: Regenerated.
39204
39205 2007-07-14  Karl Berry  <karl@gnu.org>
39206
39207         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
39208         omitting sectioning and index commands.
39209
39210 2007-07-13  Bruno Haible  <bruno@clisp.org>
39211
39212         New gnulib-tool option --more-symlinks.
39213         * gnulib-tool (func_usage): Document --more-symlinks.
39214         (do_copyrights): New variable.
39215         Recognize option --more-symlinks.
39216         (func_import): Don't add a copyright notice transform to
39217         sed_transform_lib_file if do_copyrights is empty.
39218
39219 2007-07-13  Bruno Haible  <bruno@clisp.org>
39220
39221         * lib/vasnprintf.c (decimal_point_char): Define also if
39222         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
39223         && !NEED_PRINTF_DIRECTIVE_A.
39224         Reported by Clemens Koller <clemens.koller@anagramm.de> via
39225         Gary V. Vaughan <gary@gnu.org>.
39226
39227 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
39228
39229         * lib/inttypes_.h: Undo previous change, since it was fixed
39230         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
39231
39232 2007-07-13  Bruno Haible  <bruno@clisp.org>
39233
39234         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
39235         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
39236
39237 2007-07-13  Jim Meyering  <jim@meyering.net>
39238
39239         df: Don't fail for Tru64's "file-on-file mount".
39240         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
39241         so we fall through and use statfs instead.  Details here:
39242         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
39243         Reported by Albert Chin.
39244
39245 2007-07-13  Bruno Haible  <bruno@clisp.org>
39246
39247         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
39248         * modules/configmake (License): Likewise.
39249         * modules/gettext (License): Likewise.
39250         * modules/gettext-h (License): Likewise.
39251         * modules/include_next (License): Likewise.
39252         * modules/link-warning (License): Likewise.
39253         * modules/localcharset (License): Likewise.
39254         * modules/localename (License): Likewise.
39255         * modules/lock (License): Likewise.
39256         * modules/relocatable-lib-lgpl (License): Likewise.
39257         * modules/size_max (License): Likewise.
39258         * modules/vasnprintf (License): Likewise.
39259         * modules/wchar (License): Likewise.
39260         * modules/xsize (License): Likewise.
39261
39262 2007-07-13  Bruno Haible  <bruno@clisp.org>
39263
39264         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
39265         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
39266
39267 2007-07-12  Bruno Haible  <bruno@clisp.org>
39268
39269         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
39270         in the modules files.
39271
39272 2007-07-11  Karl Berry  <karl@gnu.org>
39273
39274         * MODULES.html.sh (func_module): use
39275          sed -e '\|^'"${includefile}"'$|d'
39276          instead of /.../d, to avoid errors on $includefile's containing /.
39277
39278 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
39279
39280         * gnulib-tool (func_import): Avoid duplication of --avoid
39281         statements
39282         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
39283         names to `_' in variable names.
39284
39285 2007-07-10  Eric Blake  <ebb9@byu.net>
39286
39287         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
39288         * NEWS: Document this change.
39289
39290 2007-07-08  Bruno Haible  <bruno@clisp.org>
39291
39292         Update to Unicode 5.0.
39293         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
39294         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
39295         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
39296         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
39297         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
39298         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
39299         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
39300         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
39301         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
39302         U+10A3F, U+1D242..U+1D244.
39303         (nonspacing_table_ind): Update.
39304         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
39305         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
39306
39307 2007-07-08  Bruno Haible  <bruno@clisp.org>
39308
39309         Update to Unicode 5.0.
39310         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
39311         code transform. Extend the name index field of unicode_name_to_code and
39312         unicode_code_to_name from 16 to 24 bits.
39313         * lib/uniname/uniname.c (unicode_character_name,
39314         unicode_name_character): Add the range 0x12xxx to the code transform.
39315         * lib/uniname/uninames.h: Regenerated.
39316         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
39317
39318 2007-07-07  Bruno Haible  <bruno@clisp.org>
39319
39320         * modules/wcwidth-tests: New file.
39321         * tests/test-wcwidth.c: New file.
39322
39323         Work around MacOS X wcwidth() bug.
39324         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
39325         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
39326         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
39327         original wcwidth in non-UTF-8 locales.
39328         * modules/wcwidth (Depends-on): Add localcharset, streq,
39329         uniwidth/width.
39330         * doc/functions/wcwidth.texi: Update.
39331
39332 2007-07-07  Bruno Haible  <bruno@clisp.org>
39333
39334         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
39335         (wcwidth): New declaration.
39336         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
39337         macros.
39338         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
39339         here. Prepare for creating <wchar.h> unconditionally.
39340         * modules/wchar (Depends-on): Add link-warning.
39341         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
39342         REPLACE_WCWIDTH, and GL_LINK_WARNING.
39343         * lib/wcwidth.h: Remove file.
39344         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
39345         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
39346         * modules/wcwidth (Files): Remove lib/wcwidth.h.
39347         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
39348         (Include): Replace wcwidth.h with <wchar.h>.
39349         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
39350         * lib/mbchar.h: Don't include wcwidth.h.
39351         * lib/mbswidth.c: Likewise.
39352         * NEWS: Mention the change.
39353
39354 2007-07-07  Bruno Haible  <bruno@clisp.org>
39355
39356         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
39357         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
39358         definition with an external declaration.
39359         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
39360         defined as a function. Remove AC_C_INLINE requirement.
39361         * modules/wcwidth (Files): Add lib/wcwidth.c.
39362         (Makefile.am): Remove redundant statement.
39363
39364 2007-07-07  Bruno Haible  <bruno@clisp.org>
39365
39366         * MODULES.html.sh (Unicode string functions): Add the new modules.
39367
39368         * tests/uniwidth/test-u32-strwidth.c: New file.
39369         * modules/uniwidth/u32-strwidth-tests: New file.
39370
39371         * lib/uniwidth/u32-strwidth.c: New file.
39372         * modules/uniwidth/u32-strwidth: New file.
39373
39374         * tests/uniwidth/test-u16-strwidth.c: New file.
39375         * modules/uniwidth/u16-strwidth-tests: New file.
39376
39377         * lib/uniwidth/u16-strwidth.c: New file.
39378         * modules/uniwidth/u16-strwidth: New file.
39379
39380         * tests/uniwidth/test-u8-strwidth.c: New file.
39381         * modules/uniwidth/u8-strwidth-tests: New file.
39382
39383         * lib/uniwidth/u8-strwidth.c: New file.
39384         * modules/uniwidth/u8-strwidth: New file.
39385
39386         * tests/uniwidth/test-u32-width.c: New file.
39387         * modules/uniwidth/u32-width-tests: New file.
39388
39389         * lib/uniwidth/u32-width.c: New file.
39390         * modules/uniwidth/u32-width: New file.
39391
39392         * tests/uniwidth/test-u16-width.c: New file.
39393         * modules/uniwidth/u16-width-tests: New file.
39394
39395         * lib/uniwidth/u16-width.c: New file.
39396         * modules/uniwidth/u16-width: New file.
39397
39398         * tests/uniwidth/test-u8-width.c: New file.
39399         * modules/uniwidth/u8-width-tests: New file.
39400
39401         * lib/uniwidth/u8-width.c: New file.
39402         * modules/uniwidth/u8-width: New file.
39403
39404         * tests/uniwidth/test-uc_width.c: New file.
39405         * modules/uniwidth/width-tests: New file.
39406
39407         * lib/uniwidth/width.c: New file, from GNU libiconv.
39408         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
39409         * modules/uniwidth/width: New file.
39410
39411         * lib/uniwidth.h: New file, from GNU libiconv.
39412         * modules/uniwidth/base: New file.
39413
39414 2007-07-07  Bruno Haible  <bruno@clisp.org>
39415
39416         * lib/uniname.h: New file, from GNU gettext.
39417         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
39418         * lib/uniname/uninames.h: New file, from GNU gettext.
39419         * lib/uniname/uniname.c: New file, from GNU gettext.
39420         * tests/uniname/test-uninames.sh: New file.
39421         * tests/uniname/test-uninames.c: New file, from GNU gettext.
39422         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
39423         * modules/uniname/base: New file.
39424         * modules/uniname/uniname: New file.
39425         * modules/uniname/uniname-tests: New file.
39426         * MODULES.html.sh (Unicode string functions): Add the new modules.
39427
39428 2007-07-06  Bruno Haible  <bruno@clisp.org>
39429
39430         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
39431
39432 2007-07-06  Bruno Haible  <bruno@clisp.org>
39433
39434         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
39435         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
39436         includes <cygwin/sys_time.h> which includes <sys/select.h> which
39437         include <sys/time.h>.
39438         Reported by Eric Blake.
39439
39440 2007-07-06  Eric Blake  <ebb9@byu.net>
39441
39442         Fix testing canonicalize on cygwin.
39443         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
39444         Revert patch from 2007-06-19.
39445         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
39446         canonicalize module is also in use.
39447         * tests/test-canonicalize.c: New file.
39448         * tests/test-canonicalize.sh: Likewise.
39449         * modules/canonicalize-tests: Likewise.
39450
39451 2007-07-06  Jim Meyering  <jim@meyering.net>
39452
39453         * lib/getugroups.c (getugroups): Detect getgrent failure.
39454         Adjust comment to reflect reality: this function may return -1.
39455
39456 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
39457
39458         * build-aux/bootstrap (TP_URL,get_translations): Update to use
39459         the new TP address.
39460         (usage): Fix typo
39461         (gnulib_mk): New variable.
39462
39463 2007-07-05  Jim Meyering  <jim@meyering.net>
39464
39465         Don't let endgrent clobber errno, no matter how improbable.
39466         * lib/getugroups.c (getugroups): Save and restore errno around
39467         endgrent call.
39468
39469         Close the group DB even when failing with 2^31 or more members.
39470         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
39471
39472 2007-07-04  Jim Meyering  <jim@meyering.net>
39473
39474         * lib/getugroups.h: New file.
39475         * lib/getugroups.c: Include "getugroups.h".
39476         Remove uses of "register" keyword.
39477         Move local variable, "cp", down into scope where used.
39478         Give "username" parameter the "const" attribute.
39479         * modules/getugroups (Files): Add lib/getugroups.h
39480
39481 2007-07-04  Karl Berry  <karl@gnu.org>
39482
39483         * MODULES.html.sh (func_all_modules): Complete rename of
39484         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
39485
39486 2007-07-02  Bruno Haible  <bruno@clisp.org>
39487
39488         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
39489         mode, when inttypes.h comes from gnulib.
39490         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
39491
39492 2007-07-02  Simon Josefsson  <simon@josefsson.org>
39493
39494         * NEWS: Mention lgpl module name change.
39495
39496         * modules/lgpl-2.1: Renamed from lgpl.
39497
39498         * NEWS: Mention gpl module name change.
39499
39500         * modules/gpl-3.0: New file, based on gpl-2.0.
39501
39502         * modules/gpl-2.0: Renamed from gpl.
39503
39504         * modules/gpl: Fix filename, doc/gpl.texi is now found at
39505         doc/gpl-2.0.texi.
39506
39507 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
39508
39509         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
39510         #define __STDC_LIMIT_MACROS temporarily while including
39511         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
39512         Problem reported by Joel E. Denny in
39513         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
39514
39515 2007-07-01  Bruno Haible  <bruno@clisp.org>
39516
39517         * lib/unistdio.h: New file.
39518         * lib/unistdio/u-asnprintf.h: New file.
39519         * lib/unistdio/u-asprintf.h: New file.
39520         * lib/unistdio/u-printf-args.c: New file.
39521         * lib/unistdio/u-printf-args.h: New file.
39522         * lib/unistdio/u-printf-parse.h: New file.
39523         * lib/unistdio/u-snprintf.h: New file.
39524         * lib/unistdio/u-sprintf.h: New file.
39525         * lib/unistdio/u-vasprintf.h: New file.
39526         * lib/unistdio/u-vsnprintf.h: New file.
39527         * lib/unistdio/u-vsprintf.h: New file.
39528         * lib/unistdio/ulc-asnprintf.c: New file.
39529         * lib/unistdio/ulc-asprintf.c: New file.
39530         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
39531         * lib/unistdio/ulc-printf-parse.c: New file.
39532         * lib/unistdio/ulc-snprintf.c: New file.
39533         * lib/unistdio/ulc-sprintf.c: New file.
39534         * lib/unistdio/ulc-vasnprintf.c: New file.
39535         * lib/unistdio/ulc-vasprintf.c: New file.
39536         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
39537         * lib/unistdio/ulc-vsnprintf.c: New file.
39538         * lib/unistdio/ulc-vsprintf.c: New file.
39539         * lib/unistdio/u8-asnprintf.c: New file.
39540         * lib/unistdio/u8-asprintf.c: New file.
39541         * lib/unistdio/u8-printf-parse.c: New file.
39542         * lib/unistdio/u8-snprintf.c: New file.
39543         * lib/unistdio/u8-sprintf.c: New file.
39544         * lib/unistdio/u8-vasnprintf.c: New file.
39545         * lib/unistdio/u8-vasprintf.c: New file.
39546         * lib/unistdio/u8-vsnprintf.c: New file.
39547         * lib/unistdio/u8-vsprintf.c: New file.
39548         * lib/unistdio/u8-u8-asnprintf.c: New file.
39549         * lib/unistdio/u8-u8-asprintf.c: New file.
39550         * lib/unistdio/u8-u8-snprintf.c: New file.
39551         * lib/unistdio/u8-u8-sprintf.c: New file.
39552         * lib/unistdio/u8-u8-vasnprintf.c: New file.
39553         * lib/unistdio/u8-u8-vasprintf.c: New file.
39554         * lib/unistdio/u8-u8-vsnprintf.c: New file.
39555         * lib/unistdio/u8-u8-vsprintf.c: New file.
39556         * lib/unistdio/u16-asnprintf.c: New file.
39557         * lib/unistdio/u16-asprintf.c: New file.
39558         * lib/unistdio/u16-printf-parse.c: New file.
39559         * lib/unistdio/u16-snprintf.c: New file.
39560         * lib/unistdio/u16-sprintf.c: New file.
39561         * lib/unistdio/u16-vasnprintf.c: New file.
39562         * lib/unistdio/u16-vasprintf.c: New file.
39563         * lib/unistdio/u16-vsnprintf.c: New file.
39564         * lib/unistdio/u16-vsprintf.c: New file.
39565         * lib/unistdio/u16-u16-asnprintf.c: New file.
39566         * lib/unistdio/u16-u16-asprintf.c: New file.
39567         * lib/unistdio/u16-u16-snprintf.c: New file.
39568         * lib/unistdio/u16-u16-sprintf.c: New file.
39569         * lib/unistdio/u16-u16-vasnprintf.c: New file.
39570         * lib/unistdio/u16-u16-vasprintf.c: New file.
39571         * lib/unistdio/u16-u16-vsnprintf.c: New file.
39572         * lib/unistdio/u16-u16-vsprintf.c: New file.
39573         * lib/unistdio/u32-asnprintf.c: New file.
39574         * lib/unistdio/u32-asprintf.c: New file.
39575         * lib/unistdio/u32-printf-parse.c: New file.
39576         * lib/unistdio/u32-snprintf.c: New file.
39577         * lib/unistdio/u32-sprintf.c: New file.
39578         * lib/unistdio/u32-vasnprintf.c: New file.
39579         * lib/unistdio/u32-vasprintf.c: New file.
39580         * lib/unistdio/u32-vsnprintf.c: New file.
39581         * lib/unistdio/u32-vsprintf.c: New file.
39582         * lib/unistdio/u32-u32-asnprintf.c: New file.
39583         * lib/unistdio/u32-u32-asprintf.c: New file.
39584         * lib/unistdio/u32-u32-snprintf.c: New file.
39585         * lib/unistdio/u32-u32-sprintf.c: New file.
39586         * lib/unistdio/u32-u32-vasnprintf.c: New file.
39587         * lib/unistdio/u32-u32-vasprintf.c: New file.
39588         * lib/unistdio/u32-u32-vsnprintf.c: New file.
39589         * lib/unistdio/u32-u32-vsprintf.c: New file.
39590         * tests/unistdio/test-ulc-asnprintf1.c: New file.
39591         * tests/unistdio/test-ulc-asnprintf1.h: New file.
39592         * tests/unistdio/test-ulc-printf1.h: New file.
39593         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
39594         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
39595         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
39596         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
39597         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
39598         * tests/unistdio/test-ulc-vasprintf1.c: New file.
39599         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
39600         * tests/unistdio/test-ulc-vsprintf1.c: New file.
39601         * tests/unistdio/test-u8-asnprintf1.c: New file.
39602         * tests/unistdio/test-u8-asnprintf1.h: New file.
39603         * tests/unistdio/test-u8-printf1.h: New file.
39604         * tests/unistdio/test-u8-vasnprintf1.c: New file.
39605         * tests/unistdio/test-u8-vasnprintf2.c: New file.
39606         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
39607         * tests/unistdio/test-u8-vasnprintf3.c: New file.
39608         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
39609         * tests/unistdio/test-u8-vasprintf1.c: New file.
39610         * tests/unistdio/test-u8-vsnprintf1.c: New file.
39611         * tests/unistdio/test-u8-vsprintf1.c: New file.
39612         * tests/unistdio/test-u16-asnprintf1.c: New file.
39613         * tests/unistdio/test-u16-asnprintf1.h: New file.
39614         * tests/unistdio/test-u16-printf1.h: New file.
39615         * tests/unistdio/test-u16-vasnprintf1.c: New file.
39616         * tests/unistdio/test-u16-vasnprintf2.c: New file.
39617         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
39618         * tests/unistdio/test-u16-vasnprintf3.c: New file.
39619         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
39620         * tests/unistdio/test-u16-vasprintf1.c: New file.
39621         * tests/unistdio/test-u16-vsnprintf1.c: New file.
39622         * tests/unistdio/test-u16-vsprintf1.c: New file.
39623         * tests/unistdio/test-u32-asnprintf1.c: New file.
39624         * tests/unistdio/test-u32-asnprintf1.h: New file.
39625         * tests/unistdio/test-u32-printf1.h: New file.
39626         * tests/unistdio/test-u32-vasnprintf1.c: New file.
39627         * tests/unistdio/test-u32-vasnprintf2.c: New file.
39628         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
39629         * tests/unistdio/test-u32-vasnprintf3.c: New file.
39630         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
39631         * tests/unistdio/test-u32-vasprintf1.c: New file.
39632         * tests/unistdio/test-u32-vsnprintf1.c: New file.
39633         * tests/unistdio/test-u32-vsprintf1.c: New file.
39634         * modules/unistdio/base: New file.
39635         * modules/unistdio/u-printf-args: New file.
39636         * modules/unistdio/ulc-asnprintf: New file.
39637         * modules/unistdio/ulc-asprintf: New file.
39638         * modules/unistdio/ulc-fprintf: New file.
39639         * modules/unistdio/ulc-printf-parse: New file.
39640         * modules/unistdio/ulc-snprintf: New file.
39641         * modules/unistdio/ulc-sprintf: New file.
39642         * modules/unistdio/ulc-vasnprintf: New file.
39643         * modules/unistdio/ulc-vasprintf: New file.
39644         * modules/unistdio/ulc-vfprintf: New file.
39645         * modules/unistdio/ulc-vsnprintf: New file.
39646         * modules/unistdio/ulc-vsprintf: New file.
39647         * modules/unistdio/u8-asnprintf: New file.
39648         * modules/unistdio/u8-asprintf: New file.
39649         * modules/unistdio/u8-printf-parse: New file.
39650         * modules/unistdio/u8-snprintf: New file.
39651         * modules/unistdio/u8-sprintf: New file.
39652         * modules/unistdio/u8-vasnprintf: New file.
39653         * modules/unistdio/u8-vasprintf: New file.
39654         * modules/unistdio/u8-vsnprintf: New file.
39655         * modules/unistdio/u8-vsprintf: New file.
39656         * modules/unistdio/u8-u8-asnprintf: New file.
39657         * modules/unistdio/u8-u8-asprintf: New file.
39658         * modules/unistdio/u8-u8-snprintf: New file.
39659         * modules/unistdio/u8-u8-sprintf: New file.
39660         * modules/unistdio/u8-u8-vasnprintf: New file.
39661         * modules/unistdio/u8-u8-vasprintf: New file.
39662         * modules/unistdio/u8-u8-vsnprintf: New file.
39663         * modules/unistdio/u8-u8-vsprintf: New file.
39664         * modules/unistdio/u16-asnprintf: New file.
39665         * modules/unistdio/u16-asprintf: New file.
39666         * modules/unistdio/u16-printf-parse: New file.
39667         * modules/unistdio/u16-snprintf: New file.
39668         * modules/unistdio/u16-sprintf: New file.
39669         * modules/unistdio/u16-vasnprintf: New file.
39670         * modules/unistdio/u16-vasprintf: New file.
39671         * modules/unistdio/u16-vsnprintf: New file.
39672         * modules/unistdio/u16-vsprintf: New file.
39673         * modules/unistdio/u16-u16-asnprintf: New file.
39674         * modules/unistdio/u16-u16-asprintf: New file.
39675         * modules/unistdio/u16-u16-snprintf: New file.
39676         * modules/unistdio/u16-u16-sprintf: New file.
39677         * modules/unistdio/u16-u16-vasnprintf: New file.
39678         * modules/unistdio/u16-u16-vasprintf: New file.
39679         * modules/unistdio/u16-u16-vsnprintf: New file.
39680         * modules/unistdio/u16-u16-vsprintf: New file.
39681         * modules/unistdio/u32-asnprintf: New file.
39682         * modules/unistdio/u32-asprintf: New file.
39683         * modules/unistdio/u32-printf-parse: New file.
39684         * modules/unistdio/u32-snprintf: New file.
39685         * modules/unistdio/u32-sprintf: New file.
39686         * modules/unistdio/u32-vasnprintf: New file.
39687         * modules/unistdio/u32-vasprintf: New file.
39688         * modules/unistdio/u32-vsnprintf: New file.
39689         * modules/unistdio/u32-vsprintf: New file.
39690         * modules/unistdio/u32-u32-asnprintf: New file.
39691         * modules/unistdio/u32-u32-asprintf: New file.
39692         * modules/unistdio/u32-u32-snprintf: New file.
39693         * modules/unistdio/u32-u32-sprintf: New file.
39694         * modules/unistdio/u32-u32-vasnprintf: New file.
39695         * modules/unistdio/u32-u32-vasprintf: New file.
39696         * modules/unistdio/u32-u32-vsnprintf: New file.
39697         * modules/unistdio/u32-u32-vsprintf: New file.
39698         * modules/unistdio/ulc-asnprintf-tests: New file.
39699         * modules/unistdio/ulc-vasnprintf-tests: New file.
39700         * modules/unistdio/ulc-vasprintf-tests: New file.
39701         * modules/unistdio/ulc-vsnprintf-tests: New file.
39702         * modules/unistdio/ulc-vsprintf-tests: New file.
39703         * modules/unistdio/u8-asnprintf-tests: New file.
39704         * modules/unistdio/u8-vasnprintf-tests: New file.
39705         * modules/unistdio/u8-vasprintf-tests: New file.
39706         * modules/unistdio/u8-vsnprintf-tests: New file.
39707         * modules/unistdio/u8-vsprintf-tests: New file.
39708         * modules/unistdio/u16-asnprintf-tests: New file.
39709         * modules/unistdio/u16-vasnprintf-tests: New file.
39710         * modules/unistdio/u16-vasprintf-tests: New file.
39711         * modules/unistdio/u16-vsnprintf-tests: New file.
39712         * modules/unistdio/u16-vsprintf-tests: New file.
39713         * modules/unistdio/u32-asnprintf-tests: New file.
39714         * modules/unistdio/u32-vasnprintf-tests: New file.
39715         * modules/unistdio/u32-vasprintf-tests: New file.
39716         * modules/unistdio/u32-vsnprintf-tests: New file.
39717         * modules/unistdio/u32-vsprintf-tests: New file.
39718         * MODULES.html.sh (Unicode string functions): Add the new modules.
39719
39720 2007-07-01  Bruno Haible  <bruno@clisp.org>
39721
39722         * lib/sprintf.c (sprintf): Limit the available length estimation,
39723         to avoid address wraparound.
39724         * lib/vsprintf.c (vsprintf): Likewise.
39725         * modules/sprintf-posix (Dependencies): Add stdint.
39726         * modules/vsprintf-posix (Dependencies): Likewise.
39727
39728 2007-07-01  Bruno Haible  <bruno@clisp.org>
39729
39730         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
39731         Windows PATH as well. Conservative double-quoting. Comments.
39732
39733 2007-07-01  Bruno Haible  <bruno@clisp.org>
39734             Eric Blake  <ebb9@byu.net>
39735             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39736
39737         * gnulib-tool (self_abspathname): Fix algorithm to cope with
39738         empty components in $PATH, denoting '.'.
39739
39740 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39741
39742         * gnulib-tool: Fix indentation.
39743         (func_create_megatestdir): Likewise.
39744         Report by Bruno Haible.
39745
39746 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39747
39748         Sync from Automake.
39749         * build-aux/gnupload: Fix shell portability issues with for loops.
39750         Report by Karl Berry.
39751
39752 2007-06-29  Simon Josefsson  <simon@josefsson.org>
39753
39754         * build-aux/maint.mk (POURL): Use translationproject.org.
39755
39756 2007-06-27  Simon Josefsson  <simon@josefsson.org>
39757             Bruno Haible  <bruno@clisp.org>
39758
39759         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
39760         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
39761         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
39762         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
39763         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
39764
39765 2007-06-27  Bruno Haible  <bruno@clisp.org>
39766
39767         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
39768         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
39769
39770 2007-06-26  Karl Berry  <karl@gnu.org>
39771
39772         * MODULES.html.sh: remove xreadlink-with-size.
39773
39774 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
39775
39776         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
39777         method that I hope also handles the double-include problem noted
39778         by Bruno Haible in
39779         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
39780
39781 2007-06-23  Bruno Haible  <bruno@clisp.org>
39782
39783         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
39784         Don't let the 'mostlyclean' target fail if the last subdirectory could
39785         not be removed.
39786         Reported by Karl Berry.
39787
39788 2007-06-23  Bruno Haible  <bruno@clisp.org>
39789
39790         * gnulib-tool (echo): Add a speedier workaround for ksh.
39791         * tests/test-echo.sh: Likewise.
39792
39793 2007-06-23  Bruno Haible  <bruno@clisp.org>
39794
39795         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
39796         * tests/test-echo.sh: Likewise.
39797
39798 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39799
39800         * gnulib-tool (IFS): Initialize early, so we don't set it to
39801         empty later.
39802         (self_abspathname): Rewrite algorithm to set it, reindent.
39803         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
39804         (func_create_megatestdir): Merge some sed scripts.
39805
39806 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
39807
39808         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
39809         exposed by Sun Studio 11 cc on Solaris 8.
39810
39811 2007-06-22  Bruno Haible  <bruno@clisp.org>
39812
39813         * gnulib-tool (echo): Ensure the echo primitive does not interpret
39814         backslashes.
39815         * tests/test-echo.sh: New file.
39816
39817 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39818
39819         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
39820         simplify `sed_replace_build_aux' scripts, they are portable but
39821         echoing them with `echo' is not.
39822         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
39823
39824 2007-06-21  Karl Berry  <karl@gnu.org>
39825
39826         * config/srclist.txt: guess we can't handle the licenses via
39827         srclist at the moment.
39828
39829 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
39830
39831         * MODULES.html.sh: Add include_next.
39832         * modules/include_next: New file.
39833
39834 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
39835
39836         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
39837         INCLUDE_NEXT.
39838         (gl_CHECK_NEXT_HEADERS): New macro.
39839         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
39840         the obsolescent gl_ABSOLUTE_HEADER.
39841         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
39842         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
39843         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
39844         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
39845         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
39846         * m4/math_h.m4 (gl_MATH_H): Likewise.
39847         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
39848         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
39849         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
39850         * m4/stdint.m4 (gl_STDINT_H): Likewise.
39851         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
39852         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
39853         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
39854         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
39855         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
39856         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
39857         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
39858         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
39859         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
39860         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
39861         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
39862         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
39863         * m4/inttypes.m4 (gl_INTTYPES_H): Define
39864         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
39865         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
39866         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
39867         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
39868         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
39869         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
39870         * lib/float_.h: Likewise.
39871         * lib/inttypes_.h: Likewise.
39872         * lib/math_.h: Likewise.
39873         * lib/search_.h: Likewise.
39874         * lib/signal_.h: Likewise.
39875         * lib/stdint_.h: Likewise.
39876         * lib/stdio_.h: Likewise.
39877         * lib/stdlib_.h: Likewise.
39878         * lib/string_.h: Likewise.
39879         * lib/sys_stat_.h: Likewise.
39880         * lib/sys_time_.h: Likewise.
39881         * lib/time_.h: Likewise.
39882         * lib/unistd_.h: Likewise.
39883         * lib/wchar_.h: Likewise.
39884         * lib/wctype_.h: Likewise.
39885         * lib/dirent_.h: Likewise.
39886         * lib/iconv_.h: Likewise.
39887         * lib/locale_.h: Likewise.
39888         * lib/netinet_in_.h: Likewise.
39889         * lib/sys_select_.h: Likewise.
39890         * lib/sys_socket_.h: Likewise.
39891         * lib/sysexits_.h: Likewise.
39892         * modules/fcntl (Depends-on): Depend on include_next, not
39893         absolute_header.
39894         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
39895         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
39896         * modules/fchdir: Likewise.
39897         * modules/float: Likewise.
39898         * modules/iconv_open: Likewise.
39899         * modules/inttypes: Likewise.
39900         * modules/locale: Likewise.
39901         * modules/math: Likewise.
39902         * modules/netinet_in: Likewise.
39903         * modules/search: Likewise.
39904         * modules/signal: Likewise.
39905         * modules/stdint: Likewise.
39906         * modules/stdio: Likewise.
39907         * modules/stdlib: Likewise.
39908         * modules/string: Likewise.
39909         * modules/sys_select: Likewise.
39910         * modules/sys_socket: Likewise.
39911         * modules/sys_stat: Likewise.
39912         * modules/sys_time: Likewise.
39913         * modules/sysexits: Likewise.
39914         * modules/time: Likewise.
39915         * modules/unistd: Likewise.
39916         * modules/wchar: Likewise.
39917         * modules/wctype: Likewise.
39918         * modules/sys_stat: Change maintainer to "all".
39919         * modules/unistd: Likewise.
39920
39921 2007-06-20  Karl Berry  <karl@gnu.org>
39922
39923         * config/srclist.txt: track www changes in license files.
39924
39925 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
39926
39927         * build-aux/bootstrap: Remove stray dot.
39928         Make sure build_aux settings are honored when linking
39929         gnulib_extra_files.
39930
39931 2007-06-19  Eric Blake  <ebb9@byu.net>
39932
39933         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
39934         Allow compilation on cygwin.
39935
39936 2007-06-19  Jim Meyering  <jim@meyering.net>
39937
39938         xreadlink-with-size: Remove module.  No longer used.
39939         Ex-callers now use xreadlink or mreadlink-with-size.
39940         * modules/xreadlink-with-size: Remove module.
39941         * lib/xreadlink-with-size.c: Remove file.
39942         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
39943         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
39944         just before the function definition *is* accurate.
39945
39946         Eliminate one way canonicalize_filename_mode could exit.
39947         * lib/canonicalize.c (canonicalize_filename_mode):
39948         Use mreadlink_with_size, not xreadlink_with_size.
39949
39950 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
39951
39952         Detect porting problems to FreeBSD/arm, which has time_t wider than
39953         long int.  Original problem reported for GNU diff by Xin Li in
39954         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
39955         * modules/getdate (Depends-on): Add intprops, verify.
39956         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
39957         is an integer type no wider than long int.
39958
39959 2007-06-18  Jim Meyering  <jim@meyering.net>
39960
39961         New module: mreadlink-with-size.
39962         * MODULES.html.sh: Add mreadlink-with-size.
39963         * modules/mreadlink-with-size: New module
39964         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
39965         not xreadlink-with-size.
39966         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
39967
39968 2007-06-16  Bruno Haible  <bruno@clisp.org>
39969
39970         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
39971         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
39972         Reported by Gary V. Vaughan <gary@gnu.org>.
39973
39974 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
39975
39976         Revamp lchown so that it lives in unistd.h where it belongs.
39977         * lib/lchown.h: Remove.
39978         * lib/dirchownmod.c: Don't include lib/lchown.h.
39979         * lib/fchownat.c: Likewise.
39980         * lib/openat.c: Likewise.
39981         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
39982         does not follow symlinks.
39983         (EOPNOTSUPP): Define if not defined.
39984         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
39985         is defined to 0.
39986         (lchown): New decl.
39987         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
39988         Do not check for lchown decl.
39989         Set REPLACE_LCHOWN.
39990         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
39991         REPLACE_LCHOWN.
39992         * modules/chown: Make it clear it follows symlinks.
39993         * modules/lchown: Make it clear it doesn't follow symlinks.
39994         (Files): Remove lib/lchown.h
39995         (Depends-on): Add unistd.
39996         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
39997         (Include): Include <unistd.h>, not "lchown.h".
39998         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
39999         REPLACE_LCHOWN.
40000
40001 2007-06-15  Jim Meyering  <jim@meyering.net>
40002
40003         Change license (GPL to LGPL) of fsusage and dependents.
40004         * modules/fsusage (License): Change to LGPL.
40005         * modules/full-read (License): Likewise.
40006         * modules/full-write (License): Likewise.
40007         * modules/safe-read (License): Likewise.
40008         * modules/safe-write (License): Likewise.
40009
40010 2007-06-14  Ben Pfaff  <blp@gnu.org>
40011
40012         Missing part of allocsa -> malloca transition.
40013         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
40014         gl_MALLOCA.
40015
40016 2007-06-12  Bruno Haible  <bruno@clisp.org>
40017
40018         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
40019         to ia64, x86_64, i386.
40020         Reported by Eric Blake.
40021
40022 2007-06-12  Bruno Haible  <bruno@clisp.org>
40023
40024         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
40025         cross-compiling to x86_64.
40026
40027 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
40028
40029         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
40030         glitch reported by Ralf Wildenhues in
40031         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
40032
40033         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
40034         Vin Shelton.
40035
40036 2007-06-11  Bruno Haible  <bruno@clisp.org>
40037
40038         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
40039         replacement string.
40040         Reported by Eric Blake.
40041
40042 2007-06-10  Bruno Haible  <bruno@clisp.org>
40043
40044         Prepare vasnprintf code for use with Unicode strings.
40045         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
40046         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
40047         TYPE_U32_STRING.
40048         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
40049         a_u32_string variants.
40050         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
40051         * lib/printf-args.c: Don't include config.h and the specification
40052         header if PRINTF_FETCHARGS is already defined.
40053         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
40054         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
40055         TYPE_U16_STRING, TYPE_U32_STRING.
40056         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
40057         u16_directive, u16_directives, u32_directive, u32_directives): New
40058         types.
40059         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
40060         New declarations.
40061         * lib/printf-parse.c: Don't include config.h and the specification
40062         header if PRINTF_PARSE is already defined. Eliminate the set of
40063         parameters for WIDE_CHAR_VERSION; the user of this file must provide
40064         them now. Include c-ctype.h.
40065         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
40066         directive and CHAR_T_ONLY_ASCII.
40067         * lib/vasnprintf.c: Don't include config.h and the specification header
40068         if VASNPRINTF is already defined.
40069         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
40070         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
40071         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
40072         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
40073         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
40074         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
40075         code accordingly.
40076         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
40077         pad_ourselves also in this case, with the 'c' and 's' directives, and
40078         with a different notion of "width".
40079         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
40080
40081 2007-06-10  Bruno Haible  <bruno@clisp.org>
40082
40083         * modules/unistr/u32-mbsnlen: New file.
40084         * lib/unistr/u32-mbsnlen.c: New file.
40085
40086         * modules/unistr/u16-mbsnlen: New file.
40087         * lib/unistr/u16-mbsnlen.c: New file.
40088
40089         * modules/unistr/u8-mbsnlen: New file.
40090         * lib/unistr/u8-mbsnlen.c: New file.
40091
40092         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
40093         declarations.
40094
40095 2007-06-10  Bruno Haible  <bruno@clisp.org>
40096
40097         * lib/string_.h (mbsnlen): New declaration.
40098         * lib/mbsnlen.c: New file.
40099         * m4/mbsnlen.m4: New file.
40100         * modules/mbsnlen: New file.
40101         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
40102         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
40103         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
40104
40105 2007-06-10  Bruno Haible  <bruno@clisp.org>
40106
40107         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
40108
40109 2007-06-10  Bruno Haible  <bruno@clisp.org>
40110
40111         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
40112         * lib/mbuiter.h: Likewise.
40113
40114 2007-06-10  Bruno Haible  <bruno@clisp.org>
40115
40116         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
40117         declaration.
40118
40119 2007-06-10  Karl Berry  <karl@gnu.org>
40120
40121         * config/srclist.txt: remove gettext entries, Bruno prefers
40122         to update individually.
40123
40124 2007-06-10  Bruno Haible  <bruno@clisp.org>
40125
40126         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
40127         'maxlen'. Ensure only length + width bytes are allocated, not
40128         length + 1 + width.
40129
40130 2007-06-09  Bruno Haible  <bruno@clisp.org>
40131
40132         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
40133         (CHAR_T): Remove macro.
40134         (VASNPRINTF): Update.
40135
40136 2007-06-09  Bruno Haible  <bruno@clisp.org>
40137
40138         * MODULES.html.sh (Unicode string functions): Add the new modules.
40139
40140         * modules/uniconv/u32-conv-to-enc: New file.
40141         * lib/uniconv/u32-conv-to-enc.c: New file.
40142         * modules/uniconv/u32-conv-to-enc-tests: New file.
40143         * tests/uniconv/test-u32-conv-to-enc.c: New file.
40144
40145         * modules/uniconv/u16-conv-to-enc: New file.
40146         * lib/uniconv/u16-conv-to-enc.c: New file.
40147         * lib/uniconv/u-conv-to-enc.h: New file.
40148         * modules/uniconv/u16-conv-to-enc-tests: New file.
40149         * tests/uniconv/test-u16-conv-to-enc.c: New file.
40150
40151         * modules/uniconv/u8-conv-to-enc: New file.
40152         * lib/uniconv/u8-conv-to-enc.c: New file.
40153         * modules/uniconv/u8-conv-to-enc-tests: New file.
40154         * tests/uniconv/test-u8-conv-to-enc.c: New file.
40155
40156         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
40157         u32_conv_to_encoding): New declarations.
40158
40159 2007-06-09  Bruno Haible  <bruno@clisp.org>
40160
40161         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
40162
40163 2007-06-09  Bruno Haible  <bruno@clisp.org>
40164
40165         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
40166         * modules/malloca: Renamed from modules/allocsa, updated.
40167         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
40168         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
40169         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
40170         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
40171         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
40172         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
40173         * modules/xmalloca: Renamed from modules/xallocsa, updated.
40174         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
40175         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
40176         * modules/c-strcasestr (Depends-on): Update.
40177         * lib/c-strcasestr.c: Update.
40178         * modules/c-strstr (Depends-on): Update.
40179         * lib/c-strstr.c: Update.
40180         * modules/canonicalize-lgpl (Depends-on): Update.
40181         * lib/canonicalize-lgpl.c: Update.
40182         * modules/clean-temp (Depends-on): Update.
40183         * lib/clean-temp.c: Update.
40184         * modules/csharpcomp (Depends-on): Update.
40185         * lib/csharpcomp.c: Update.
40186         * modules/csharpexec (Depends-on): Update.
40187         * lib/csharpexec.c: Update.
40188         * modules/javacomp (Depends-on): Update.
40189         * lib/javacomp.c: Update.
40190         * modules/javaexec (Depends-on): Update.
40191         * lib/javaexec.c: Update.
40192         * modules/mbscasestr (Depends-on): Update.
40193         * lib/mbscasestr.c: Update.
40194         * modules/mbsstr (Depends-on): Update.
40195         * lib/mbsstr.c: Update.
40196         * modules/setenv (Depends-on): Update.
40197         * lib/setenv.c: Update.
40198         * modules/strcasestr (Depends-on): Update.
40199         * lib/strcasestr.c: Update.
40200         * modules/striconveha (Depends-on): Update.
40201         * lib/striconveha.c: Update.
40202         * modules/relocatable-prog-wrapper (Files): Update.
40203         * lib/relocwrapper.c: Update.
40204         * build-aux/install-reloc: Update.
40205         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
40206
40207 2007-06-08  Bruno Haible  <bruno@clisp.org>
40208
40209         Port to uClibc.
40210         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
40211         * lib/fpurge.c (fpurge): Likewise.
40212         * lib/freading.c (freading): Likewise.
40213         * lib/fseeko.c (rpl_fseeko): Likewise.
40214         * lib/fseterr.c (fseterr): Likewise.
40215         * lib/fwriting.c (fwriting): Likewise.
40216         * tests/test-fflush.c (main): Avoid a failure on uClibc.
40217
40218 2007-06-08  Bruno Haible  <bruno@clisp.org>
40219
40220         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
40221         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
40222         * modules/gettext (Files): Add m4/intlmacosx.m4.
40223
40224 2007-06-07  Bruno Haible  <bruno@clisp.org>
40225
40226         * modules/localename-tests: New file.
40227         * tests/test-localename.c: New file.
40228
40229         New module 'localename'.
40230         * lib/localename.h: New file.
40231         * lib/localename.c: New file, from GNU gettext.
40232         * m4/localename.m4: New file.
40233         * modules/localename: New file.
40234
40235 2007-06-07  Bruno Haible  <bruno@clisp.org>
40236
40237         Work around the lack of <wchar.h> on some builds of uClibc.
40238         * doc/headers/wchar.texi: Update.
40239         * lib/wchar_.h: Include <wchar.h> only if it exists.
40240         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
40241         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
40242         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
40243         doesn't exist.
40244         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
40245         * modules/mbfile (Depends-on): Add wchar.
40246         * modules/mbiter (Depends-on): Likewise.
40247         * modules/mbuiter (Depends-on): Likewise.
40248         Reported by Simon Josefsson.
40249
40250 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
40251
40252         Work around problem reported by Steven M. Schweda in
40253         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
40254         Tru64 5.1B with the Compaq compiler environment installed declares
40255         an 'isblank' function but does not define it in the C library.
40256         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
40257         * lib/regex_internal.h (isblank): Likewise.
40258         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
40259         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
40260
40261 2007-06-05  Bruno Haible  <bruno@clisp.org>
40262
40263         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
40264         ia64.
40265         * modules/printf-safe: New file.
40266         * modules/fprintf-posix (Depends-on): Add printf-safe.
40267         * modules/printf-posix (Depends-on): Likewise.
40268         * modules/snprintf-posix (Depends-on): Likewise.
40269         * modules/sprintf-posix (Depends-on): Likewise.
40270         * modules/vasnprintf-posix (Depends-on): Likewise.
40271         * modules/vasprintf-posix (Depends-on): Likewise.
40272         * modules/vfprintf-posix (Depends-on): Likewise.
40273         * modules/vprintf-posix (Depends-on): Likewise.
40274         * modules/vsnprintf-posix (Depends-on): Likewise.
40275         * modules/vsprintf-posix (Depends-on): Likewise.
40276         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
40277         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
40278         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
40279         "no" on i386, x86_64, ia64.
40280         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
40281         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
40282         on i386, x86_64, ia64.
40283         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
40284         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
40285         on i386, x86_64, ia64.
40286         * tests/test-vasnprintf-posix.c: Include float.h.
40287         (LDBL80_WORDS): New macro.
40288         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
40289         on i386, x86_64, ia64.
40290         * tests/test-vasprintf-posix.c: Include float.h.
40291         (LDBL80_WORDS): New macro.
40292         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
40293         on i386, x86_64, ia64.
40294         * tests/test-snprintf-posix.c: Include float.h.
40295         * tests/test-sprintf-posix.c: Likewise.
40296         * tests/test-vsnprintf-posix.c: Likewise.
40297         * tests/test-vsprintf-posix.c: Likewise.
40298
40299 2007-06-05  Bruno Haible  <bruno@clisp.org>
40300
40301         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
40302         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
40303         non-IEEE numbers on i386, x86_64, ia64.
40304         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
40305         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
40306         * tests/test-isnanl.h: Include float.h.
40307         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
40308
40309 2007-06-05  Bruno Haible  <bruno@clisp.org>
40310
40311         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
40312         also the %a / %A. Handle the %a / %A code before this extra handling.
40313
40314 2007-06-05  Bruno Haible  <bruno@clisp.org>
40315
40316         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
40317         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
40318
40319 2007-06-05  Bruno Haible  <bruno@clisp.org>
40320
40321         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
40322         typo in variable name.
40323
40324 2007-06-05  Eric Blake  <ebb9@byu.net>
40325
40326         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
40327         Reported by Simon Josefsson.
40328
40329 2007-06-04  Bruno Haible  <bruno@clisp.org>
40330
40331         Avoid test failures on some PowerPC platforms.
40332         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
40333         Define differently for PowerPC.
40334         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
40335         Reported by Gary V. Vaughan <gary@gnu.org>.
40336
40337 2007-06-02  Bruno Haible  <bruno@clisp.org>
40338
40339         Fix test-stdint failure on FreeBSD/ia64.
40340         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
40341         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
40342         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
40343         * doc/headers/stdint.texi: Update.
40344
40345 2007-06-01  Bruno Haible  <bruno@clisp.org>
40346
40347         * tests/test-binary-io.c (main): Pass a third argument to open().
40348         Reported by Gary V. Vaughan <gary@gnu.org>.
40349
40350 2007-06-01  Bruno Haible  <bruno@clisp.org>
40351
40352         * doc/functions/frexpl.texi: Update for mingw.
40353
40354 2007-06-01  Bruno Haible  <bruno@clisp.org>
40355
40356         * tests/test-lseek.c (main): Disable test of errno for invalid third
40357         argument.
40358         * doc/functions/lseek.texi: Update.
40359         Reported by Gary V. Vaughan <gary@gnu.org>.
40360
40361 2007-05-28  Bruno Haible  <bruno@clisp.org>
40362
40363         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
40364
40365 2007-05-31  Eric Blake  <ebb9@byu.net>
40366
40367         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
40368         cross compiling.
40369
40370 2007-05-30  Eric Blake  <ebb9@byu.net>
40371         and Bruno Haible  <bruno@clisp.org>
40372
40373         Work around mingw test failures exposed by m4-1.4.9b.
40374         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
40375         * tests/test-unistd.c: Disable uid_t and git_t tests for the
40376         moment.
40377
40378 2007-05-30  Bruno Haible  <bruno@clisp.org>
40379
40380         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
40381         assuming that they are closed. Needed on HP-UX 11.
40382
40383 2007-05-29  Bruno Haible  <bruno@clisp.org>
40384
40385         Fix a problem with #include_next.
40386         * lib/dirent_.h: Split the double-inclusion guard.
40387         * lib/fcntl_.h: Likewise.
40388         * lib/float_.h: Likewise.
40389         * lib/iconv_.h: Likewise.
40390         * lib/inttypes_.h: Likewise.
40391         * lib/locale_.h: Likewise.
40392         * lib/math_.h: Likewise.
40393         * lib/netinet_in_.h: Likewise.
40394         * lib/search_.h: Likewise.
40395         * lib/signal_.h: Likewise.
40396         * lib/stdint_.h: Likewise.
40397         * lib/stdio_.h: Likewise.
40398         * lib/stdlib_.h: Likewise.
40399         * lib/string_.h: Likewise.
40400         * lib/sys_select_.h: Likewise.
40401         * lib/sys_socket_.h: Likewise.
40402         * lib/sys_stat_.h: Likewise.
40403         * lib/sys_time_.h: Likewise.
40404         * lib/sysexits_.h: Likewise.
40405         * lib/time_.h: Likewise.
40406         * lib/unistd_.h: Likewise.
40407         * lib/wchar_.h: Likewise.
40408         * lib/wctype_.h: Likewise.
40409
40410 2007-05-29  Bruno Haible  <bruno@clisp.org>
40411
40412         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
40413         for the moment.
40414
40415 2007-05-29  Bruno Haible  <bruno@clisp.org>
40416
40417         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
40418         invocation.
40419         Reported by Eric Blake.
40420
40421 2007-05-29  Bruno Haible  <bruno@clisp.org>
40422
40423         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
40424         compiling case.
40425
40426 2007-05-29  Eric Blake  <ebb9@byu.net>
40427             Bruno Haible  <bruno@clisp.org>
40428
40429         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
40430         cross compiles.
40431
40432 2007-05-28  Eric Blake  <ebb9@byu.net>
40433
40434         * modules/closein-tests (test_closein_LDADD): Support test on
40435         cygwin with libtool.
40436
40437 2007-05-28  Bruno Haible  <bruno@clisp.org>
40438
40439         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
40440         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
40441         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
40442         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
40443         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
40444         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
40445         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
40446         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
40447         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
40448
40449 2007-05-28  Eric Blake  <ebb9@byu.net>
40450
40451         Unconditionally include <config.h> in unit tests.
40452         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
40453         * tests/test-allocsa.c, tests/test-arcfour.c,
40454         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
40455         tests/test-array_list.c, tests/test-array_oset.c,
40456         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
40457         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
40458         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
40459         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
40460         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
40461         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
40462         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
40463         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
40464         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
40465         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
40466         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
40467         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
40468         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
40469         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
40470         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
40471         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
40472         test-md5.c, test-memmem.c, test-printf-posix.c,
40473         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
40474         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
40475         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
40476         test-strcasestr.c, test-striconv.c, test-striconveh.c,
40477         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
40478         test-vasnprintf-posix2.c, test-vasnprintf.c,
40479         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
40480         test-vfprintf-posix.c, test-vprintf-posix.c,
40481         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
40482         test-xvasprintf.c: Likewise.
40483
40484 2007-05-28  Bruno Haible  <bruno@clisp.org>
40485
40486         * gnulib-tool (func_import): Remember the --with-tests command-line
40487         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
40488         Reported by Eric Blake.
40489
40490 2007-05-28  Bruno Haible  <bruno@clisp.org>
40491
40492         * modules/ftell-tests: New file.
40493         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
40494         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
40495
40496         * lib/ftell.c: New file.
40497         * modules/ftell: New file.
40498         * m4/ftell.m4: New file.
40499         * doc/functions/ftell.texi: Update.
40500         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
40501         REPLACE_FTELL.
40502         * lib/stdio_.h (rpl_ftell): New declaration.
40503         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
40504         REPLACE_FTELL.
40505
40506 2007-05-28  Eric Blake  <ebb9@byu.net>
40507
40508         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
40509
40510 2007-05-28  Bruno Haible  <bruno@clisp.org>
40511
40512         * modules/fseek-tests: New file.
40513         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
40514         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
40515
40516         * lib/fseek.c: New file.
40517         * modules/fseek: New file.
40518         * m4/fseek.m4: New file.
40519         * doc/functions/fseek.texi: Update.
40520         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
40521         REPLACE_FSEEK.
40522         * lib/stdio_.h (rpl_fseek): New declaration.
40523         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
40524         REPLACE_FSEEK.
40525
40526 2007-05-28  Bruno Haible  <bruno@clisp.org>
40527
40528         * lib/stdio_.h (fflush): More comments.
40529
40530 2007-05-28  Bruno Haible  <bruno@clisp.org>
40531
40532         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
40533         runtime test.
40534
40535 2007-05-28  Eric Blake  <ebb9@byu.net>
40536
40537         Improve lseek module.
40538         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
40539         * lib/unistd_.h (lseek): Scale back link warning message.
40540         * tests/test-lseek.c: Beef up test.
40541         * tests/test-lseek.sh: Exercise more facets of lseek.
40542         Reported by Bruno Haible.
40543
40544 2007-05-28  Bruno Haible  <bruno@clisp.org>
40545
40546         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
40547         to define.
40548
40549 2007-05-27  Bruno Haible  <bruno@clisp.org>
40550
40551         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
40552
40553 2007-05-27  Bruno Haible  <bruno@clisp.org>
40554
40555         * modules/openmp: New file.
40556         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
40557         Noah Misch.
40558
40559 2007-05-26  Bruno Haible  <bruno@clisp.org>
40560
40561         * modules/chdir-long (Depends-on): Add fchdir.
40562         * modules/chdir-safer (Depends-on): Likewise.
40563         * modules/fts (Depends-on): Likewise.
40564         * modules/fts-lgpl (Depends-on): Likewise.
40565         * modules/openat (Depends-on): Likewise.
40566         * modules/savewd (Depends-on): Likewise.
40567
40568 2007-05-24  Eric Blake  <ebb9@byu.net>
40569
40570         Fix lseek on mingw.
40571         * modules/lseek: New module.
40572         * m4/lseek.m4: New file.
40573         * lib/lseek.c: New file.
40574         * modules/lseek-tests: New file.
40575         * tests/test-lseek.c: New file.
40576         * tests/test-lseek.sh: New file.
40577         * MODULES.html.sh: Document lseek module.
40578         * modules/fflush (Depends-on): Add lseek, fseeko.
40579         * modules/fseeko (Depends-on): Likewise.
40580         * modules/ftello (Depends-on): Likewise.
40581         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
40582         broken.
40583         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
40584         broken.
40585         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
40586         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
40587         * lib/ftello.c (rpl_ftello): Likewise.
40588         * tests/test-fseeko.c (main): Test this.
40589         * tests/test-fseeko.sh: Likewise.
40590         * tests/test-ftello.c (main): Likewise.
40591         * tests/test-ftello.sh: Likewise.
40592         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
40593         implies replacing fseek.
40594         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
40595         HAVE_FTELLO.
40596         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
40597         * modules/unistd (Makefile.am): Likewise.
40598         * lib/unistd_.h (lseek): Declare a replacement.
40599         * doc/functions/lseek.texi (lseek): Document this fix.
40600         * doc/functions/fseek.texi (fseek): Likewise.
40601         * doc/functions/ftell.texi (ftell): Likewise.
40602
40603 2007-05-24  Bruno Haible  <bruno@clisp.org>
40604
40605         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
40606         in the printed representation of a NaN.
40607         * tests/test-vasprintf-posix.c (test_function): Likewise.
40608         * tests/test-snprintf-posix.h (test_function): Likewise.
40609         * tests/test-sprintf-posix.h (test_function): Likewise.
40610         Reported by Eric Blake.
40611
40612 2007-05-23  Eric Blake  <ebb9@byu.net>
40613
40614         Fix fseeko/ftello on cygwin 1.5.24.
40615         * doc/functions/fseeko.texi (fseeko): Document the fix.
40616         * doc/functions/ftello.texi (ftello): Document the fix.
40617         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
40618         * doc/functions/stdout.text (stdout): New file.
40619         * doc/functions/stderr.text (stderr): New file.
40620         * doc/gnulib.texi (Function Substitutes): Use new files.
40621         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
40622         prior to 1.7.0.
40623         * tests/test-ftello.c (main): Likewise for ftello.
40624         * tests/test-fseeko.sh: New file.
40625         * tests/test-ftello.sh: New file.
40626         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
40627         with seekable stdin.
40628         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
40629         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
40630         (gl_REPLACE_FSEEKO): New macro.
40631         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
40632         * modules/fseeko (Files): Distribute fseeko.c.
40633         * modules/ftello (Files): Distribute ftello.c.
40634         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
40635         mode.
40636         * lib/ftello.c (rpl_ftello): New file.
40637         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
40638         fseeko, ftello.
40639         (gl_STDIN_LARGE_OFFSET): New macro.
40640         * modules/stdio (Makefile.am): Perform the replacement.
40641         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
40642
40643 2007-05-23  Bruno Haible  <bruno@clisp.org>
40644
40645         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
40646         GNULIB_POSIXCHECK is defined.
40647
40648 2007-05-21  Bruno Haible  <bruno@clisp.org>
40649
40650         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
40651         Check also the output for NaN arguments. When cross-compiling, guess
40652         no on IRIX.
40653         * lib/vasnprintf.c: Update comments.
40654         * tests/test-vasnprintf-posix.c (strisnan): New function.
40655         (test_function): Use it.
40656         * tests/test-vasprintf-posix.c (strisnan): New function.
40657         (test_function): Use it.
40658         * tests/test-snprintf-posix.h (strisnan): New function.
40659         (test_function): Use it.
40660         * tests/test-sprintf-posix.h (strisnan): New function.
40661         (test_function): Use it.
40662         Reported by Eric Blake.
40663
40664 2007-05-20  Bruno Haible  <bruno@clisp.org>
40665
40666         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
40667         numbers that fails on BeOS.
40668         * doc/functions/frexpl.texi: Update.
40669
40670 2007-05-20  Jim Meyering  <jim@meyering.net>
40671
40672         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
40673         forced upon us by glibc-2.6.
40674
40675 2007-05-20  Bruno Haible  <bruno@clisp.org>
40676
40677         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
40678         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
40679         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
40680         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
40681         NEED_PRINTF_INFINITE.
40682         (is_infinitel): New function.
40683         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
40684         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
40685         gl_PREREQ_VASNPRINTF_INFINITE.
40686         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
40687         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
40688         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
40689         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
40690         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
40691         gl_PREREQ_VASNPRINTF_INFINITE.
40692         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
40693         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
40694         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
40695         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
40696         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
40697         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
40698         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
40699         * doc/functions/fprintf.texi: Update.
40700         * doc/functions/printf.texi: Update.
40701         * doc/functions/snprintf.texi: Update.
40702         * doc/functions/sprintf.texi: Update.
40703         * doc/functions/vfprintf.texi: Update.
40704         * doc/functions/vprintf.texi: Update.
40705         * doc/functions/vsnprintf.texi: Update.
40706         * doc/functions/vsprintf.texi: Update.
40707
40708 2007-05-20  Bruno Haible  <bruno@clisp.org>
40709
40710         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
40711         was not found in libc.
40712         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
40713
40714 2007-05-20  Bruno Haible  <bruno@clisp.org>
40715
40716         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
40717         printed as "-nan" instead of "nan".
40718         * tests/test-vasprintf-posix.c (test_function): Likewise.
40719         * tests/test-snprintf-posix.h (test_function): Likewise.
40720         * tests/test-sprintf-posix.h (test_function): Likewise.
40721         Needed for HP-UX 11.
40722
40723 2007-05-20  Jim Meyering  <jim@meyering.net>
40724
40725         Fix buggy test for the fchownat-deref bug.
40726         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
40727         symlink required for the run-test.  Without it, this test would
40728         always declare that fchownat doesn't work, and client code would
40729         unnecessarily use the replacement function with fixed libc.
40730         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
40731         Reported by Greg Schafer.
40732
40733 2007-05-19  Bruno Haible  <bruno@clisp.org>
40734
40735         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
40736         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
40737         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
40738         Needed for IRIX 6.5 and Solaris 2.5.1.
40739
40740 2007-05-19  Bruno Haible  <bruno@clisp.org>
40741
40742         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
40743         (test_function): Skip tests involving -0.0 on platforms where
40744         -0.0 = 0.0.
40745         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
40746         (test_function): Skip tests involving -0.0 on platforms where
40747         -0.0 = 0.0.
40748         * tests/test-snprintf-posix.h (have_minus_zero): New function.
40749         (test_function): Skip tests involving -0.0 on platforms where
40750         -0.0 = 0.0.
40751         * tests/test-sprintf-posix.h (have_minus_zero): New function.
40752         (test_function): Skip tests involving -0.0 on platforms where
40753         -0.0 = 0.0.
40754         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
40755         tests.
40756         * tests/test-printf-posix.h (test_function): Likewise.
40757         * tests/test-printf-posix.output: Remove all -0.0 related results.
40758         Needed for IRIX 6.5.
40759
40760 2007-05-19  Bruno Haible  <bruno@clisp.org>
40761
40762         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
40763         printed as "nan0x7fffffff" instead of "nan".
40764         * tests/test-vasprintf-posix.c (test_function): Likewise.
40765         * tests/test-snprintf-posix.h (test_function): Likewise.
40766         * tests/test-sprintf-posix.h (test_function): Likewise.
40767         * tests/test-fprintf-posix.h (NaN): Remove macro.
40768         (test_function): Remove all NaN related tests.
40769         * tests/test-printf-posix.h (NaN): Remove macro.
40770         (test_function): Remove all NaN related tests.
40771         * tests/test-printf-posix.output: Remove all NaN related results.
40772         Needed for IRIX 6.5.
40773
40774 2007-05-19  Bruno Haible  <bruno@clisp.org>
40775
40776         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
40777         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
40778
40779 2007-05-19  Bruno Haible  <bruno@clisp.org>
40780
40781         * lib/float_.h: New file.
40782         * m4/float_h.m4: New file.
40783         * modules/float: New file.
40784         * modules/isnanl (Dependencies): Add float.
40785         * modules/isnanl-nolibm (Dependencies): Likewise.
40786         * modules/mathl (Dependencies): Likewise.
40787         * modules/printf-frexpl (Dependencies): Likewise.
40788         * modules/signbit (Dependencies): Likewise.
40789         * modules/vasnprintf (Dependencies): Likewise.
40790         * doc/headers/float.texi: Update.
40791
40792 2007-05-19  Jim Meyering  <jim@meyering.net>
40793
40794         * lib/utimens.c (gl_futimens): Rename from futimens,
40795         now that glibc-2.6 declares futimens.
40796         * lib/utimens.h: Likewise.
40797
40798 2007-05-19  Bruno Haible  <bruno@clisp.org>
40799
40800         Avoid test failures on mingw.
40801         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
40802         * tests/test-printf-posix.sh: Likewise.
40803         * tests/test-vfprintf-posix.sh: Likewise.
40804         * tests/test-vprintf-posix.sh: Likewise.
40805
40806 2007-05-19  Bruno Haible  <bruno@clisp.org>
40807
40808         Fix *printf result for NaN, Inf, -0.0 on mingw.
40809         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
40810         * lib/vasnprintf.c: Include math.h and isnan.h.
40811         (is_infinite_or_zero): New function.
40812         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
40813         values in the %f, %F, %e, %E, %g, %G directives.
40814         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
40815         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
40816         gl_PRINTF_INFINITE and test its result. Invoke
40817         gl_PREREQ_VASNPRINTF_INFINITE.
40818         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
40819         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
40820         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
40821         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
40822         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
40823         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
40824         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
40825         * doc/functions/fprintf.texi: Update.
40826         * doc/functions/printf.texi: Update.
40827         * doc/functions/snprintf.texi: Update.
40828         * doc/functions/sprintf.texi: Update.
40829         * doc/functions/vfprintf.texi: Update.
40830         * doc/functions/vprintf.texi: Update.
40831         * doc/functions/vsnprintf.texi: Update.
40832         * doc/functions/vsprintf.texi: Update.
40833
40834 2007-05-19  Bruno Haible  <bruno@clisp.org>
40835
40836         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
40837         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
40838         Instead of multiplying with 10^k, set extra_zeroes to k.
40839         (scale10_round_long_double): Remove function.
40840
40841 2007-05-18  Bruno Haible  <bruno@clisp.org>
40842
40843         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
40844         introduced on 2007-05-06.
40845
40846 2007-05-18  Bruno Haible  <bruno@clisp.org>
40847
40848         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
40849         %g directives.
40850         * tests/test-vasprintf-posix.c (test_function): Likewise.
40851         * tests/test-snprintf-posix.h (test_function): Likewise.
40852         * tests/test-sprintf-posix.h (test_function): Likewise.
40853
40854 2007-05-18  Bruno Haible  <bruno@clisp.org>
40855
40856         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
40857         (strmatch): New function.
40858         (test_function): Test the %f directive on numbers of various exponents.
40859         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
40860         (strmatch): New function.
40861         (test_function): Test the %f directive on numbers of various exponents.
40862         * tests/test-snprintf-posix.h (strmatch): New function.
40863         (test_function): Test the %f directive on numbers of various exponents.
40864         * tests/test-sprintf-posix.h (strmatch): New function.
40865         (test_function): Test the %f directive on numbers of various exponents.
40866         * tests/test-snprintf-posix.c (SIZEOF): New macro.
40867         * tests/test-sprintf-posix.c (SIZEOF): New macro.
40868         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
40869         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
40870
40871 2007-05-18  Bruno Haible  <bruno@clisp.org>
40872
40873         Add support for 'long double' number output.
40874         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
40875         * lib/vasnprintf.c: Include math.h and float+.h.
40876         (mp_limb_t): New type.
40877         (GMP_LIMB_BITS): New macro.
40878         (mp_twolimb_t): New type.
40879         (GMP_TWOLIMB_BITS): New macro.
40880         (mpn_t): New type.
40881         (multiply, divide, convert_to_decimal, decode_long_double,
40882         scale10_round_long_double, scale10_round_decimal_long_double,
40883         floorlog10l): New functions.
40884         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
40885         for the %f, %F, %e, %E, %g, %G directives.
40886         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
40887         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
40888         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
40889         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
40890         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
40891         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
40892         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
40893         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
40894         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
40895         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
40896         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
40897         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
40898         * modules/snprintf-posix (Depends-on): Likewise.
40899         * modules/sprintf-posix (Depends-on): Likewise.
40900         * modules/vasnprintf-posix (Depends-on): Likewise.
40901         * modules/vasprintf-posix (Depends-on): Likewise.
40902         * modules/vfprintf-posix (Depends-on): Likewise.
40903         * modules/vsnprintf-posix (Depends-on): Likewise.
40904         * modules/vsprintf-posix (Depends-on): Likewise.
40905         * modules/vasnprintf (Files): Add lib/float+.h.
40906         * doc/functions/fprintf.texi: Update.
40907         * doc/functions/printf.texi: Update.
40908         * doc/functions/snprintf.texi: Update.
40909         * doc/functions/sprintf.texi: Update.
40910         * doc/functions/vfprintf.texi: Update.
40911         * doc/functions/vprintf.texi: Update.
40912         * doc/functions/vsnprintf.texi: Update.
40913         * doc/functions/vsprintf.texi: Update.
40914
40915 2007-05-18  Bruno Haible  <bruno@clisp.org>
40916
40917         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
40918
40919 2007-05-18  Bruno Haible  <bruno@clisp.org>
40920
40921         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
40922         for printing 64-bit integers. Needed for mingw.
40923
40924 2007-05-18  Bruno Haible  <bruno@clisp.org>
40925
40926         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
40927         gl_FUNC_FREXPL_WORKS.
40928         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
40929
40930 2007-05-18  Bruno Haible  <bruno@clisp.org>
40931
40932         * modules/frexpl-nolibm-tests: New file.
40933
40934         * modules/frexpl-nolibm: New file.
40935         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
40936
40937 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
40938
40939         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
40940         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
40941         GCC 4.2, which otherwise issues a lot of warnings.
40942         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
40943         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
40944         Likewise.
40945         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
40946         * modules/iconv_open (iconv.h): Likewise.
40947         * modules/locale (locale.h): Likewise.
40948         * modules/netinet_in (netinet/in.h): Likewise.
40949         * modules/sys_select (sys_select.h): Likewise.
40950         * modules/sys_socket (sys/socket.h): Likewise.
40951         * modules/sys_stat (sys/stat.h): Likewise.
40952         * modules/sysexits (sysexits.h): Likewise.
40953         * modules/unistd (unistd.h): Likewise.
40954
40955 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40956
40957         * modules/closein-tests (Makefile.am): Distribute
40958         `test-closein.sh'.
40959
40960 2007-05-17  Bruno Haible  <bruno@clisp.org>
40961
40962         * tests/test-printf-posix.output: Renamed from
40963         tests/test-fprintf-posix.out.
40964         * modules/fprintf-posix-tests: Update.
40965         * modules/printf-posix-tests: Update.
40966         * modules/vfprintf-posix-tests: Update.
40967         * modules/vprintf-posix-tests: Update.
40968         * tests/test-fprintf-posix.sh: Update.
40969         * tests/test-printf-posix.sh: Update.
40970         * tests/test-vfprintf-posix.sh: Update.
40971         * tests/test-vprintf-posix.sh: Update.
40972         Reported by Ralf Wildenhues.
40973
40974 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
40975
40976         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
40977         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
40978         GCC 4.2, which otherwise issues a lot of warnings.
40979         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
40980         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
40981         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
40982         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
40983         it should no longer be needed.
40984         * lib/string_.h: Likewise.
40985         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
40986         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
40987         * modules/inttypes (inttypes.h): Likewise.
40988         * modules/math (math.h): Likewise.
40989         * modules/search (search.h): Likewise.
40990         * modules/signal (signal.h): Likewise.
40991         * modules/stdint (stdint.h): Likewise.
40992         * modules/stdio (stdio.h): Likewise.
40993         * modules/stdlib (stdlib.h): Likewise.
40994         * modules/string (string.h): Likewise.
40995         * modules/sys_time (sys/time.h): Likewise.
40996         * modules/time (time.h): Likewise.
40997         * modules/wchar (wchar.h): Likewise.
40998         * modules/wctype (wtype.h): Likewise.
40999
41000 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
41001
41002         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
41003
41004 2007-05-13  Bruno Haible  <bruno@clisp.org>
41005
41006         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
41007         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
41008         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
41009         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
41010         (gl_PREREQ_STRTOK_R): Don't require it here.
41011
41012 2007-05-13  Bruno Haible  <bruno@clisp.org>
41013
41014         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
41015         when used in C++ mode.
41016
41017 2007-05-12  Bruno Haible  <bruno@clisp.org>
41018
41019         * lib/linebuffer.h: Tweak doc.
41020         * lib/linebuffer.c: Likewise.
41021
41022 2007-05-12  James Youngman  <jay@gnu.org>
41023
41024         * lib/linebuffer.c (readlinebuffer_delim): New function,
41025         like readlinebuffer, but use a caller-specified delimiter.
41026         (readlinebuffer): Just call readlinebuffer_delim with '\n'
41027         as the delimiter.
41028         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
41029
41030 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
41031
41032         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
41033         * modules/openat (Files): Remove openat-die.c.
41034         (Depends-on): Add openat-die.
41035         * modules/openat-die: New module.
41036
41037 2007-05-06  Bruno Haible  <bruno@clisp.org>
41038
41039         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
41040         Update with info about Cygwin.
41041         * doc/functions/fprintf.texi: Update.
41042         * doc/functions/printf.texi: Update.
41043         * doc/functions/snprintf.texi: Update.
41044         * doc/functions/sprintf.texi: Update.
41045         * doc/functions/vfprintf.texi: Update.
41046         * doc/functions/vprintf.texi: Update.
41047         * doc/functions/vsnprintf.texi: Update.
41048         * doc/functions/vsprintf.texi: Update.
41049         Reported by Eric Blake.
41050
41051 2007-05-06  Bruno Haible  <bruno@clisp.org>
41052
41053         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
41054         padding ourselves for the floating-point directives.
41055         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
41056         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
41057         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
41058         gl_PRINTF_FLAG_ZERO and test its result. Invoke
41059         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
41060         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
41061         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
41062         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
41063         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
41064         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
41065         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
41066         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
41067         * tests/test-snprintf-posix.h (test_function): Also check the width
41068         and some flags in the %f directive.
41069         * tests/test-sprintf-posix.h (test_function): Likewise.
41070         * tests/test-vasnprintf-posix.c (test_function): Likewise.
41071         * tests/test-vasprintf-posix.c (test_function): Likewise.
41072         * doc/functions/fprintf.texi: Update.
41073         * doc/functions/printf.texi: Update.
41074         * doc/functions/snprintf.texi: Update.
41075         * doc/functions/sprintf.texi: Update.
41076         * doc/functions/vfprintf.texi: Update.
41077         * doc/functions/vprintf.texi: Update.
41078         * doc/functions/vsnprintf.texi: Update.
41079         * doc/functions/vsprintf.texi: Update.
41080
41081 2007-05-06  Bruno Haible  <bruno@clisp.org>
41082
41083         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
41084         pass the ' flag character to sprintf or snprintf.
41085         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
41086         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
41087         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
41088         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
41089         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
41090         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
41091         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
41092         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
41093         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
41094         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
41095         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
41096         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
41097         * tests/test-snprintf-posix.h (test_function): Also check the grouping
41098         flag.
41099         * tests/test-sprintf-posix.h (test_function): Likewise.
41100         * tests/test-vasnprintf-posix.c (test_function): Likewise.
41101         * tests/test-vasprintf-posix.c (test_function): Likewise.
41102         * doc/functions/fprintf.texi: Update.
41103         * doc/functions/printf.texi: Update.
41104         * doc/functions/snprintf.texi: Update.
41105         * doc/functions/sprintf.texi: Update.
41106         * doc/functions/vfprintf.texi: Update.
41107         * doc/functions/vprintf.texi: Update.
41108         * doc/functions/vsnprintf.texi: Update.
41109         * doc/functions/vsprintf.texi: Update.
41110
41111 2007-05-01  Bruno Haible  <bruno@clisp.org>
41112
41113         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
41114
41115 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
41116
41117         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
41118         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
41119
41120 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
41121
41122         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
41123         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
41124         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
41125
41126 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
41127
41128         * lib/argp-help.c (struct hol_entry): New member `ord'.
41129         (HOL_ENTRY_PTRCMP): Use ord for comparison
41130         (hol_sort): Initialize ord.
41131
41132 2007-05-01  Bruno Haible  <bruno@clisp.org>
41133
41134         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
41135         Reported by Eric Blake.
41136         * doc/gnulib.texi (Function Substitutes): Update.
41137
41138 2007-05-01  Bruno Haible  <bruno@clisp.org>
41139
41140         * doc/functions.texi: Remove file, now redundant through
41141         doc/functions/*.texi.
41142
41143 2007-05-01  Bruno Haible  <bruno@clisp.org>
41144
41145         * modules/argp (Depends-on): Add sleep.
41146
41147 2007-05-01  Bruno Haible  <bruno@clisp.org>
41148
41149         * modules/sleep-tests: New file.
41150         * tests/test-sleep.c: New file.
41151
41152         * modules/sleep: New file.
41153         * lib/sleep.c: New file.
41154         * m4/sleep.m4: New file.
41155         * lib/unistd_.h (sleep): New declaration.
41156         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
41157         HAVE_SLEEP.
41158         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
41159         * doc/functions/sleep.texi: Document the sleep module.
41160
41161 2007-05-01  Bruno Haible  <bruno@clisp.org>
41162
41163         * lib/sigprocmask.h: Remove file.
41164         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
41165         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
41166         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
41167         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
41168         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
41169         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
41170         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
41171         HAVE_SIGSET_T as a shell variable.
41172         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
41173         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
41174         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
41175         (Depends-on): Add signal. Remove verify.
41176         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
41177         (Include): Mention <signal.h> instead of sigprocmask.h.
41178         * NEWS: Mention the change.
41179         * lib/fatal-signal.c: Don't include sigprocmask.h.
41180
41181 2007-05-01  Bruno Haible  <bruno@clisp.org>
41182
41183         * modules/signal: New file.
41184         * lib/signal_.h: New file.
41185         * m4/signal_h.m4: New file.
41186
41187 2007-05-01  Bruno Haible  <bruno@clisp.org>
41188
41189         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
41190         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
41191         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
41192         HAVE_WCTYPE_CTMP_BUG into wctype.h.
41193
41194 2007-05-01  Bruno Haible  <bruno@clisp.org>
41195
41196         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
41197         configure time.
41198         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
41199         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
41200         * modules/sys_stat (Makefile.am): Substitute their values into
41201         sys/stat.h.
41202
41203 2007-05-01  Bruno Haible  <bruno@clisp.org>
41204
41205         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
41206         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
41207         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
41208
41209 2007-05-01  Bruno Haible  <bruno@clisp.org>
41210
41211         * doc/header/assert.texi: Undo last change: don't mention the gnulib
41212         'assert' module here.
41213
41214 2007-05-01  Bruno Haible  <bruno@clisp.org>
41215
41216         * doc/functions/*.texi: New files.
41217         * doc/functions/google-ranking.txt: New file.
41218         * doc/gnulib.texi (Function Substitutes): New chapter.
41219         (ctime, inet_ntoa): Remove sections.
41220         * doc/ctime.texi: Remove file.
41221         * doc/inet_ntoa.texi: Remove file.
41222         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
41223         dependencies.
41224         (%.info): New rule, specifying a --reference-limit.
41225
41226 2007-05-01  Bruno Haible  <bruno@clisp.org>
41227
41228         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
41229
41230 2007-05-01  Bruno Haible  <bruno@clisp.org>
41231
41232         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
41233         the portability of 'mkdir' to mingw systems.
41234
41235 2007-05-01  Bruno Haible  <bruno@clisp.org>
41236
41237         * doc/headers/google-ranking.txt: New file.
41238
41239 2007-04-30  Eric Blake  <ebb9@byu.net>
41240
41241         Prefer fseeko to fseek.
41242         * modules/getpass (Depends-on): Add fseeko.
41243         * lib/getpass.c (getpass): Use fseeko, not fseek.
41244
41245 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
41246
41247         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
41248         assumes the sorting is stable, while most qsort implementations
41249         are not.  Use argument addresses to ensure they never compare as
41250         equal.
41251
41252         * tests/test-argp-2.sh (usage-indent test): Fix output
41253         (func_compare): Restore diff options
41254         * tests/test-argp.c: Restore #include "progname.h"
41255
41256 2007-04-29  Bruno Haible  <bruno@clisp.org>
41257
41258         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
41259         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
41260         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
41261         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
41262         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
41263         (configure.ac): Define CHECK_SNPRINTF_POSIX.
41264         (TESTS, check_PROGRAMS): Add test-snprintf.
41265         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
41266         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
41267         (TESTS, check_PROGRAMS): Add test-vsnprintf.
41268         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
41269         assertions that fail on HP-UX, OSF/1, or IRIX.
41270         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
41271
41272 2007-04-29  Bruno Haible  <bruno@clisp.org>
41273
41274         * MODULES.html.sh (posix_functions): Remove 'contents'.
41275
41276 2007-04-29  Karl Berry  <karl@gnu.org>
41277
41278         * config/srclist.txt (gendocs_template_min): new entry.
41279
41280 2007-04-29  Bruno Haible  <bruno@clisp.org>
41281
41282         Work around fpurge bug on BSD systems.
41283         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
41284         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
41285         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
41286         fpurge to rpl_fpurge if the system already has this function.
41287         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
41288         the case where the system already has this function. Correct invariants
41289         on BSD systems.
41290         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
41291         BSD systems.
41292
41293 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
41294
41295         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
41296         proposed by Sven Verdoolaege.
41297
41298         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
41299         options.
41300         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
41301         (usage and help tests): Update
41302
41303 2007-04-29  Bruno Haible  <bruno@clisp.org>
41304
41305         * tests/test-fflush.c (main): Use a file of size 17, not 10.
41306         Print more information in case of failure. Disable a test on BeOS.
41307
41308 2007-04-29  Bruno Haible  <bruno@clisp.org>
41309
41310         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
41311         This helps debugging on systems on which no gdb is available.
41312
41313 2007-04-29  Bruno Haible  <bruno@clisp.org>
41314
41315         * lib/freading.h: Improve comments.
41316         * lib/fwriting.h: Likewise.
41317         * tests/test-freading.c (main): Don't check freading immediately after
41318         repositioning. Needed for glibc.
41319
41320 2007-04-29  Bruno Haible  <bruno@clisp.org>
41321
41322         * lib/freading.c (freading): Trivial simplification.
41323
41324 2007-04-28  Bruno Haible  <bruno@clisp.org>
41325
41326         * tests/test-fwriting.c (main): Also test the interaction between
41327         fflush and fwriting.
41328         * modules/fwriting-tests (Depends-on): Add fflush.
41329
41330         * tests/test-freading.c (main): Also test the interaction between
41331         fflush and freading.
41332         * modules/freading-tests (Depends-on): Add fflush.
41333
41334 2007-04-28  Bruno Haible  <bruno@clisp.org>
41335
41336         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
41337         fseeko and ftello.
41338         Suggested by Eric Blake.
41339
41340 2007-04-28  Jim Meyering  <jim@meyering.net>
41341
41342         Avoid false-negative in gl_STDINT_H's C99 conformance test.
41343         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
41344         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
41345
41346 2007-04-27  Eric Blake  <ebb9@byu.net>
41347
41348         * doc/headers/assert.texi (assert.h): Document assert module use.
41349
41350 2007-04-27  Bruno Haible  <bruno@clisp.org>
41351
41352         * doc/headers/*.texi: New files.
41353         * doc/gnulib.texi (Header File Substitutes): New chapter.
41354         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
41355         dependencies.
41356         (standards.info ,standards.html, standards.dvi): Update dependencies.
41357         (mostlyclean, clean): New targets.
41358
41359 2007-04-27  Bruno Haible  <bruno@clisp.org>
41360
41361         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
41362         * modules/sysexits (Files, Makefile.am): Update.
41363
41364         * lib/sys_socket_.h: Renamed from lib/socket_.h.
41365         * modules/sys_socket (Files, Makefile.am): Update.
41366
41367         * lib/sys_stat_.h: Renamed from lib/stat_.h.
41368         * modules/sys_stat (Files, Makefile.am): Update.
41369
41370 2007-04-27  Eric Blake  <ebb9@byu.net>
41371
41372         * lib/freading.h: Improve comments.
41373         * lib/fwriting.h: Likewise.
41374         * lib/fflush.c: Likewise.
41375
41376         Fix closein for mingw.
41377         * modules/closein-tests: Add tests for closein.
41378         * tests/test-closein.c: New file.
41379         * tests/test-closein.sh: Likewise.
41380         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
41381         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
41382
41383 2007-04-27  Bruno Haible  <bruno@clisp.org>
41384
41385         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
41386         version is < 6.
41387         * lib/math_.h [__DECC]: Likewise.
41388         * lib/stdio_.h [__DECC]: Likewise.
41389         * lib/stdlib_.h [__DECC]: Likewise.
41390         * lib/string_.h [__DECC]: Likewise.
41391         * lib/time_.h [__DECC]: Likewise.
41392         * lib/wchar_.h [__DECC]: Likewise.
41393         * lib/wctype_.h [__DECC]: Likewise.
41394
41395 2007-04-27  Bruno Haible  <bruno@clisp.org>
41396
41397         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
41398
41399 2007-04-27  Bruno Haible  <bruno@clisp.org>
41400
41401         * lib/fflush.c: Add comments.
41402         * modules/fpurge-tests (Depends-on): Add fflush.
41403         * modules/freadable-tests (Depends-on): Likewise.
41404         * modules/fwritable-tests (Depends-on): Likewise.
41405
41406 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
41407
41408         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
41409         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
41410         Report by Bruno Haible <bruno@clisp.org>.
41411
41412 2007-04-26  Eric Blake  <ebb9@byu.net>
41413
41414         Fix fflush on mingw.
41415         * modules/fflush (Depends-on): Add freading.
41416         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
41417         but unread data.
41418
41419 2007-04-26  Eric Blake  <ebb9@byu.net>
41420         and Bruno Haible  <bruno@clisp.org>
41421
41422         Implement freading and fwriting.
41423         * lib/freading.c: New file.
41424         * lib/freading.h: Likewise.
41425         * m4/freading.m4: Likewise.
41426         * modules/freading: Likewise.
41427         * modules/freading-tests: Likewise.
41428         * tests/test-freading.c: Likewise.
41429         * lib/fwriting.c: New file.
41430         * lib/fwriting.h: Likewise.
41431         * m4/fwriting.m4: Likewise.
41432         * modules/fwriting: Likewise.
41433         * modules/fwriting-tests: Likewise.
41434         * tests/test-fwriting.c: Likewise.
41435         * MODULES.html.sh (File stream based Input/Output): Mention them.
41436
41437 2007-04-26  Bruno Haible  <bruno@clisp.org>
41438
41439         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
41440         'long' when we assume it.
41441         Suggested by Eric Blake.
41442
41443 2007-04-26  Bruno Haible  <bruno@clisp.org>
41444
41445         Ensure fseeko, ftello are declared on glibc systems.
41446         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
41447         * modules/fseeko (configure.ac-early): Likewise.
41448         * modules/ftello (configure.ac-early): Likewise.
41449         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
41450         AC_FUNC_FSEEKO for this.
41451         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
41452         (gl_CHECK_FSEEKO): Remove macro.
41453
41454 2007-04-26  Bruno Haible  <bruno@clisp.org>
41455
41456         * tests/test-fflush.c (main): Also check the ftell result after
41457         fflush and fseek/fseeko.
41458         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
41459         file descriptor position cache in the stream.
41460         * lib/fseeko.c (rpl_fseeko): Likewise.
41461
41462 2007-04-26  Bruno Haible  <bruno@clisp.org>
41463
41464         * modules/fflush-tests (Depends-on): Add fseeko.
41465
41466 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
41467             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41468
41469         * lib/argz_.h: ensure error_t definition is obtained in same
41470         mechanism system argz.h would have.
41471         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
41472         argz facilities are known bad.  Err on the side of caution if
41473         cross-compiling.
41474
41475 2007-04-25  Eric Blake  <ebb9@byu.net>
41476
41477         * lib/fpurge.c (includes): Use stdlib.h for free.
41478         * tests/test-fflush.c (main): Also test fflush-fseeko.
41479
41480 2007-04-25  Bruno Haible  <bruno@clisp.org>
41481
41482         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
41483         * lib/fseeko.c: New file.
41484         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
41485         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
41486         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
41487         gl_FUNC_FSEEKO.
41488         (gl_FUNC_FSEEKO): Invoke it.
41489         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
41490         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
41491         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
41492
41493 2007-04-25  Bruno Haible  <bruno@clisp.org>
41494
41495         * modules/fflush (Depends-on): Add ftello.
41496
41497 2007-04-25  Bruno Haible  <bruno@clisp.org>
41498
41499         * modules/ftello-tests: New file.
41500         * tests/test-ftello.c: New file.
41501
41502         * modules/ftello: New file.
41503         * m4/ftello.m4: New file.
41504         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
41505         HAVE_FTELLO.
41506         * lib/stdio_.h (ftello): New declaration.
41507         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
41508         HAVE_FTELLO.
41509
41510 2007-04-25  Bruno Haible  <bruno@clisp.org>
41511
41512         * modules/fseeko-tests: New file.
41513         * tests/test-fseeko.c: New file.
41514
41515         * modules/fseeko: New file.
41516         * m4/fseeko.m4: New file.
41517         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
41518         HAVE_FSEEKO.
41519         * lib/stdio_.h (fseeko): New declaration.
41520         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
41521         HAVE_FSEEKO.
41522
41523 2007-04-25  Bruno Haible  <bruno@clisp.org>
41524
41525         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
41526
41527 2007-04-25  Bruno Haible  <bruno@clisp.org>
41528
41529         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
41530         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
41531         * tests/test-unistd.c: Likewise.
41532         * tests/test-fcntl.c: Likewise.
41533
41534 2007-04-23  Eric Blake  <ebb9@byu.net>
41535
41536         * lib/fflush.c: Fix missing include.
41537         Reported by Bruno Haible.
41538
41539 2007-04-23  Bruno Haible  <bruno@clisp.org>
41540
41541         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
41542         Reported by Eric Blake.
41543
41544 2007-04-23  Bruno Haible  <bruno@clisp.org>
41545
41546         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
41547
41548 2007-04-23  Bruno Haible  <bruno@clisp.org>
41549
41550         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
41551
41552 2007-04-23  Bruno Haible  <bruno@clisp.org>
41553
41554         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
41555         Needed on HP-UX 11.
41556
41557 2007-04-16  Eric Blake  <ebb9@byu.net>
41558
41559         Make fflush rely on fpurge.
41560         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
41561         open coding all variants.
41562         * modules/fflush (Depends-on): Add fpurge and unistd.
41563         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
41564         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
41565
41566         Fix --with-tests compilation on cygwin.
41567         * modules/argmatch-tests (Makefile.am): List gnulib library first
41568         in LDADD.
41569         * modules/argp-tests (Makefile.am): Likewise.
41570         * modules/array-list-tests (Makefile.am): Likewise.
41571         * modules/array-oset-tests (Makefile.am): Likewise.
41572         * modules/avltree-list-tests (Makefile.am): Likewise.
41573         * modules/avltree-oset-tests (Makefile.am): Likewise.
41574         * modules/avltreehash-list-tests (Makefile.am): Likewise.
41575         * modules/carray-list-tests (Makefile.am): Likewise.
41576         * modules/dirname-tests (Makefile.am): Likewise.
41577         * modules/frexp-tests (Makefile.am): Likewise.
41578         * modules/isnanl-tests (Makefile.am): Likewise.
41579         * modules/linked-list-tests (Makefile.am): Likewise.
41580         * modules/linkedhash-list-tests (Makefile.am): Likewise.
41581         * modules/lock-tests (Makefile.am): Likewise.
41582         * modules/rbtree-list-tests (Makefile.am): Likewise.
41583         * modules/rbtree-oset-tests (Makefile.am): Likewise.
41584         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
41585         * modules/tls-tests (Makefile.am): Likewise.
41586         * modules/tsearch-tests (Makefile.am): Likewise.
41587         * modules/xvasprintf-tests (Makefile.am): Likewise.
41588
41589         Fix fpurge for cygwin.
41590         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
41591         value.
41592         * modules/fpurge-tests (Depends-on): Clean up trash.
41593
41594 2007-04-16  Simon Josefsson  <simon@josefsson.org>
41595
41596         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
41597
41598         * m4/autobuild.m4: Re-indent.
41599
41600 2007-04-13  Bruno Haible  <bruno@clisp.org>
41601
41602         * modules/fpurge-tests: New file.
41603         * tests/test-fpurge.c: New file.
41604
41605         * modules/fpurge: New file.
41606         * lib/fpurge.h: New file.
41607         * lib/fpurge.c: New file.
41608         * m4/fpurge.m4: New file.
41609
41610 2007-04-13  Bruno Haible  <bruno@clisp.org>
41611
41612         * modules/fbufmode-tests: New file.
41613         * tests/test-fbufmode.c: New file.
41614
41615         * modules/fbufmode: New file.
41616         * lib/fbufmode.h: New file.
41617         * lib/fbufmode.c: New file.
41618         * m4/fbufmode.m4: New file.
41619
41620 2007-04-13  Bruno Haible  <bruno@clisp.org>
41621
41622         * modules/fwritable-tests: New file.
41623         * tests/test-fwritable.c: New file.
41624
41625         * modules/fwritable: New file.
41626         * lib/fwritable.h: New file.
41627         * lib/fwritable.c: New file.
41628         * m4/fwritable.m4: New file.
41629
41630 2007-04-13  Bruno Haible  <bruno@clisp.org>
41631
41632         * modules/freadable-tests: New file.
41633         * tests/test-freadable.c: New file.
41634
41635         * modules/freadable: New file.
41636         * lib/freadable.h: New file.
41637         * lib/freadable.c: New file.
41638         * m4/freadable.m4: New file.
41639
41640 2007-04-13  Bruno Haible  <bruno@clisp.org>
41641
41642         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
41643         MOSTLYCLEANFILES.
41644
41645 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
41646
41647         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
41648         gzip bootstrap.conf to avoid dragging in i18n machinery.
41649         (gnulib_tool_option): Use it.
41650
41651 2007-04-13  Bruno Haible  <bruno@clisp.org>
41652
41653         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
41654         %F directives.
41655         * tests/test-vasprintf-posix.c (test_function): Likewise.
41656         * tests/test-snprintf-posix.h (test_function): Likewise.
41657         * tests/test-sprintf-posix.h (test_function): Likewise.
41658         * tests/test-fprintf-posix.h (test_function): Likewise.
41659         * tests/test-printf-posix.h (test_function): Likewise.
41660         * tests/test-fprintf-posix.out: Likewise.
41661
41662 2007-04-13  Bruno Haible  <bruno@clisp.org>
41663
41664         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
41665         * modules/tls-tests (configure.ac): Likewise.
41666         Reported by Arto C. Nirkko <anirkko@insel.ch>.
41667
41668 2007-04-13  Bruno Haible  <bruno@clisp.org>
41669
41670         * lib/tls.c (glthread_tls_get): Fix return type.
41671         Patch by Arto C. Nirkko <anirkko@insel.ch>.
41672
41673 2007-04-12  Eric Blake  <ebb9@byu.net>
41674
41675         * modules/gettime (Depends-on): Remove gettime.
41676         Reported by Dmitry V. Levin.
41677
41678 2007-04-12  Bruno Haible  <bruno@clisp.org>
41679
41680         * modules/fflush (Include): Mention <stdio.h>.
41681         * modules/strtoimax (Include): Mention <inttypes.h>.
41682         * modules/strtoumax (Include): Likewise.
41683
41684 2007-04-12  Eric Blake  <ebb9@byu.net>
41685
41686         * .cvsignore: New file.
41687         * .gitignore: Likewise.
41688
41689 2007-04-12  Bruno Haible  <bruno@clisp.org>
41690
41691         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
41692         not before, since $(LDADD) often contains libgnu.a.
41693         * modules/striconv-tests (test_striconv_LDADD): Likewise.
41694         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
41695         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
41696         Needed on Cygwin.
41697
41698 2007-04-12  Eric Blake  <ebb9@byu.net>
41699
41700         Work around glibc's failure to flush stdin on fclose.
41701         * lib/closein.c (close_stdin): Flush stdin before closing.
41702
41703         Work around glibc's failure to reset seekable stdin on exit.
41704         * modules/closein: New module.
41705         * lib/closein.c: New file.
41706         * lib/closein.h: Likewise.
41707         * m4/closein.m4: Likewise.
41708         * MODULES.html.sh (File stream based Input/Output): Document it.
41709
41710 2007-04-12  Simon Josefsson  <simon@josefsson.org>
41711
41712         * gnulib-tool: Rename generated 'autobuild' script to
41713         'do-autobuild' in --create-megatestdir output.
41714
41715         * doc/gnulib.texi (Build robot for gnulib): Fix.
41716
41717 2007-04-12  Simon Josefsson  <simon@josefsson.org>
41718
41719         * modules/sysexits (Depends-on): Add absolute-header.
41720
41721 2007-04-12  Eric Blake  <ebb9@byu.net>
41722
41723         No need to preserve errno on success.
41724         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
41725         Reported by Bruno Haible.
41726
41727 2007-04-12  Simon Josefsson  <simon@josefsson.org>
41728
41729         * MODULES.html.sh (Support for maintaining and releasing
41730         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
41731
41732 2007-04-12  Simon Josefsson  <simon@josefsson.org>
41733
41734         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
41735
41736 2007-04-12  Simon Josefsson  <simon@josefsson.org>
41737
41738         * modules/autobuild: New module.
41739
41740         * m4/autobuild.m4: New file.
41741
41742 2007-04-11  Bruno Haible  <bruno@clisp.org>
41743
41744         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
41745         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
41746         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
41747         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
41748         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
41749         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
41750         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
41751         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
41752         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
41753         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
41754         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
41755         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
41756         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
41757         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
41758         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
41759         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
41760         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
41761         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
41762         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
41763         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
41764         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
41765         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
41766         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
41767         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
41768         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
41769         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
41770         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
41771         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
41772         Reported by Eric Blake.
41773
41774 2007-04-11  Bruno Haible  <bruno@clisp.org>
41775
41776         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
41777
41778 2007-04-10  Bruno Haible  <bruno@clisp.org>
41779
41780         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
41781         for NaN and Infinity. Needed on FreeBSD 6.1.
41782         * tests/test-vasnprintf-posix.c (test_function): Undo last change
41783         regarding results for "%010a" of Infinity and NaN.
41784         * tests/test-vasprintf-posix.c (test_function): Likewise.
41785         * tests/test-snprintf-posix.h (test_function): Likewise.
41786         * tests/test-sprintf-posix.h (test_function): Likewise.
41787         * tests/test-fprintf-posix.h (test_function): Likewise.
41788         * tests/test-printf-posix.h (test_function): Likewise.
41789         * tests/test-fprintf-posix.out: Likewise.
41790
41791 2007-04-10  Bruno Haible  <bruno@clisp.org>
41792
41793         * modules/locale-tests: New file.
41794         * tests/test-locale.c: New file.
41795
41796         * modules/locale: New file.
41797         * lib/locale_.h: New file.
41798         * m4/locale_h.m4: New file.
41799
41800 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
41801             Bruno Haible  <bruno@clisp.org>
41802
41803         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
41804         be determined, test for availability of the copysignf, copysign,
41805         copysignl functions.
41806         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
41807         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
41808         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
41809
41810 2007-04-09  Eric Blake  <ebb9@byu.net>
41811
41812         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
41813         * modules/stdio (Makefile.am): Support fflush.
41814         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
41815         * modules/fflush: New file.
41816         * lib/fflush.c: Likewise.
41817         * m4/fflush.m4: Likewise.
41818         * modules/fflush-tests: New test.
41819         * tests/test-fflush.c: Likewise.
41820         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
41821
41822 2007-04-06  Bruno Haible  <bruno@clisp.org>
41823
41824         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
41825         (VASNPRINTF): Use signbit for faster determination whether to print a
41826         minus sign.
41827         * modules/vasnprintf (Files): Remove lib/float+.h.
41828         * modules/fprintf-posix (Depends-on): Add signbit.
41829         * modules/snprintf-posix (Depends-on): Likewise.
41830         * modules/sprintf-posix (Depends-on): Likewise.
41831         * modules/vasnprintf-posix (Depends-on): Likewise.
41832         * modules/vasprintf-posix (Depends-on): Likewise.
41833         * modules/vfprintf-posix (Depends-on): Likewise.
41834         * modules/vsnprintf-posix (Depends-on): Likewise.
41835         * modules/vsprintf-posix (Depends-on): Likewise.
41836
41837 2007-04-06  Bruno Haible  <bruno@clisp.org>
41838
41839         * tests/test-frexp.c (main): Test also the sign bit of zero results.
41840         * tests/test-frexpl.c (main): Likewise.
41841         * tests/test-ldexpl.c (main): Likewise.
41842         * modules/frexp-tests (Depends-on): Add signbit.
41843         * modules/frexpl-tests (Depdends-on): Likewise.
41844         * modules/ldexpl-tests (Depdends-on): Likewise.
41845
41846 2007-04-06  Bruno Haible  <bruno@clisp.org>
41847
41848         * modules/signbit-tests: New file.
41849         * tests/test-signbit.c: New file.
41850
41851         * modules/signbit: New file.
41852         * lib/signbitf.c: New file.
41853         * lib/signbitd.c: New file.
41854         * lib/signbitl.c: New file.
41855         * m4/signbit.m4: New file.
41856         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
41857         (signbit): New macro.
41858         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
41859         REPLACE_SIGNBIT.
41860         * modules/math (Makefile.am) Substibute also GNULIB_SIGNBIT and
41861         REPLACE_FREXPL into math.h.
41862
41863 2007-04-06  Bruno Haible  <bruno@clisp.org>
41864
41865         * modules/isnanf-nolibm-tests: New file.
41866         * tests/test-isnanf.c: New file.
41867
41868         * modules/isnanf-nolibm: New file.
41869         * lib/isnanf.h: New file.
41870         * lib/isnanf.c: New file.
41871         * lib/isnan.c: Consider the USE_FLOAT macro.
41872         * m4/isnanf.m4: New file.
41873
41874 2007-04-06  Bruno Haible  <bruno@clisp.org>
41875
41876         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
41877         (Link): New section.
41878
41879         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
41880
41881 2007-04-06  Bruno Haible  <bruno@clisp.org>
41882
41883         Assume the 'long double' type.
41884         * m4/longdouble.m4: Remove file.
41885         * config/srclist.txt: Don't mention longdouble.m4.
41886         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
41887         * lib/float+.h: Likewise.
41888         * lib/frexp.c: Likewise.
41889         * lib/printf-args.h: Likewise.
41890         * lib/printf-args.c: Likewise.
41891         * lib/printf-frexp.c: Likewise.
41892         * lib/printf-parse.c: Likewise.
41893         * lib/vasnprintf.c: Likewise.
41894         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
41895         * m4/intl.m4: Likewise.
41896         * m4/isnanl.m4: Likewise.
41897         * m4/printf.m4: Likewise.
41898         * m4/printf-frexpl.m4: Likewise.
41899         * m4/vasnprintf.m4: Likewise.
41900         * modules/allocsa (Files): Remove m4/longdouble.m4.
41901         * modules/gettext (Files): Likewise.
41902         * modules/relocatable-prog-wrapper (Files): Likewise.
41903         * modules/vasnprintf (Files): Likewise.
41904         * modules/isnanl (Files): Likewise.
41905         (Include): Simplify.
41906         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
41907         (Include): Simplify.
41908         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
41909         (Include): Simplify.
41910         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
41911         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
41912         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
41913         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
41914         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
41915         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
41916         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
41917         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
41918         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
41919         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
41920         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
41921         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
41922         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
41923         * tests/test-isnanl.c: Likewise.
41924         * tests/test-snprintf-posix.h: Likewise.
41925         * tests/test-sprintf-posix.h: Likewise.
41926         * tests/test-vasnprintf-posix.c: Likewise.
41927         * tests/test-vasnprintf-posix2.c: Likewise.
41928         * tests/test-vasprintf-posix.c: Likewise.
41929
41930 2007-04-06  Bruno Haible  <bruno@clisp.org>
41931
41932         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
41933         * lib/math_.h [__DECC]: Include the overridden include file through
41934         #include_next, outside the double-inclusion guard.
41935         * lib/stdio_.h [__DECC]: Likewise.
41936         * lib/stdlib_.h [__DECC]: Likewise.
41937         * lib/string_.h [__DECC]: Likewise.
41938         * lib/time_.h [__DECC]: Likewise.
41939         * lib/wchar_.h [__DECC]: Likewise.
41940         * lib/wctype_.h [__DECC]: Likewise.
41941         * lib/inttypes_.h [__DECC]: Likewise.
41942         Reported by Albert Chin <china@thewrittenword.com> in
41943         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
41944
41945 2007-04-04  Eric Blake  <ebb9@byu.net>
41946
41947         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
41948         1.5.x.
41949
41950 2007-04-04  Bruno Haible  <bruno@clisp.org>
41951
41952         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
41953         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
41954
41955 2007-04-04  Bruno Haible  <bruno@clisp.org>
41956
41957         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
41958         results for "%010a" of Infinity and NaN.
41959         * tests/test-vasprintf-posix.c (test_function): Likewise.
41960         * tests/test-snprintf-posix.h (test_function): Likewise.
41961         * tests/test-sprintf-posix.h (test_function): Likewise.
41962         * tests/test-fprintf-posix.h (test_function): Remove these tests.
41963         * tests/test-printf-posix.h (test_function): Likewise.
41964         * tests/test-fprintf-posix.out: Update.
41965         Needed for FreeBSD 6.1.
41966
41967 2007-04-04  Bruno Haible  <bruno@clisp.org>
41968
41969         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
41970         directly used by the gnulib modules nor by gnulib-tool.
41971
41972 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
41973
41974         * DEPENDENCIES: Give overall description of version dependency
41975         desirability.  Use more-typical names for apps.
41976         Add shell, coreutils, diffutils, grep, tar, gzip.
41977
41978 2007-04-04  Simon Josefsson  <simon@josefsson.org>
41979
41980         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
41981
41982 2007-04-04  Karl Berry  <karl@gnu.org>
41983
41984         * MODULES.html.sh (func_module): missing '.
41985
41986 2007-04-03  Bruno Haible  <bruno@clisp.org>
41987
41988         * modules/argmatch-tests (Makefile.am): New variable
41989         test_argmatch_LDADD.
41990         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
41991         * modules/array-list-tests (Makefile.am): New variable
41992         test_array_list_LDADD.
41993         * modules/array-oset-tests (Makefile.am): New variable
41994         test_array_oset_LDADD.
41995         * modules/avltree-list-tests (Makefile.am): New variable
41996         test_avltree_list_LDADD.
41997         * modules/avltree-oset-tests (Makefile.am): New variable
41998         test_avltree_oset_LDADD.
41999         * modules/avltreehash-list-tests (Makefile.am): New variable
42000         test_avltreehash_list_LDADD.
42001         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
42002         test_canonicalize_lgpl_LDADD.
42003         * modules/carray-list-tests (Makefile.am): New variable
42004         test_carray_list_LDADD.
42005         * modules/dirname-tests (Makefile.am): New variable
42006         test_dirname_LDADD.
42007         * modules/linked-list-tests (Makefile.am): New variable
42008         test_linked_list_LDADD.
42009         * modules/linkedhash-list-tests (Makefile.am): New variable
42010         test_linkedhash_list_LDADD.
42011         * modules/rbtree-list-tests (Makefile.am): New variable
42012         test_rbtree_list_LDADD.
42013         * modules/rbtree-oset-tests (Makefile.am): New variable
42014         test_rbtree_oset_LDADD.
42015         * modules/rbtreehash-list-tests (Makefile.am): New variable
42016         test_rbtreehash_list_LDADD.
42017         * modules/xvasprintf-tests (Makefile.am): New variable
42018         test_xvasprintf_LDADD.
42019         Reported by Eric Blake.
42020
42021 2007-04-03  Eric Blake  <ebb9@byu.net>
42022
42023         * DEPENDENCIES: Weaken m4 requirements.
42024
42025 2007-04-03  Bruno Haible  <bruno@clisp.org>
42026
42027         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
42028         * modules/isnanl-tests (configure.ac): Likewise.
42029
42030 2007-04-03  Ben Pfaff  <blp@gnu.org>
42031
42032         * modules/iconv_open: Add $(srcdir)/ to source directory
42033         references in Makefile fragments that call gperf, to fix VPATH
42034         builds.
42035
42036 2007-04-03  Bruno Haible  <bruno@clisp.org>
42037
42038         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
42039         * lib/ldexpl.c: Undo last change.
42040
42041 2007-04-03  Bruno Haible  <bruno@clisp.org>
42042
42043         * modules/printf-frexpl (Depends-on): Undo last change.
42044         (Files): Add m4/ldexpl.m4.
42045
42046 2007-04-03  Bruno Haible  <bruno@clisp.org>
42047
42048         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
42049         * modules/isnanl (Link): New section.
42050
42051         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
42052         * modules/frexp (Link): New section.
42053
42054         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
42055         * modules/frexpl (Link): New section.
42056
42057         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
42058         * modules/ldexpl (Link): New section.
42059
42060 2007-04-03  Bruno Haible  <bruno@clisp.org>
42061
42062         * modules/TEMPLATE-EXTENDED: New file.
42063         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
42064
42065 2007-04-03  Bruno Haible  <bruno@clisp.org>
42066
42067         * DEPENDENCIES: New file.
42068         Suggested by Simon Josefsson.
42069
42070 2007-04-03  Bruno Haible  <bruno@clisp.org>
42071
42072         * doc/gnulib.texi: Escape @.
42073
42074 2007-04-03  James Youngman  <jay@gnu.org>
42075         and Paul Eggert  <eggert@cs.ucla.edu>
42076
42077         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
42078         birthtime on all systems that have birthtime, not just those which
42079         use st_birthtimensec rather than st_birthtim.  Putting zero in
42080         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
42081         that the birth time is not available for files on an NFS mount.
42082
42083 2007-04-03  Simon Josefsson  <simon@josefsson.org>
42084
42085         * modules/memxor: Move back from crypto/, suggested by Bruno.
42086         * modules/crypto/hmac-sha1: Fix memxor dependency.
42087
42088         * modules/crypto/gc: Moved from ../.
42089
42090 2007-04-02  Eric Blake  <ebb9@byu.net>
42091
42092         * lib/ldexpl.c (includes): Avoid libm.
42093
42094         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
42095
42096 2007-04-02  Bruno Haible  <bruno@clisp.org>
42097
42098         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
42099         on IRIX.
42100
42101 2007-04-02  Bruno Haible  <bruno@clisp.org>
42102
42103         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
42104         x86 or x86_64 platforms running MacOS X.
42105         Reported by Ryan Schmidt <@ryandesign.com>.
42106
42107 2007-04-02  Bruno Haible  <bruno@clisp.org>
42108
42109         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
42110         i386.
42111
42112 2007-04-01  Simon Josefsson  <simon@josefsson.org>
42113
42114         * modules/crypto/arcfour: Moved from ../.
42115         * modules/crypto/arcfour-tests: Moved from ../.
42116         * modules/crypto/arctwo: Moved from ../.
42117         * modules/crypto/arctwo-tests: Moved from ../.
42118         * modules/crypto/des: Moved from ../.
42119         * modules/crypto/des-tests: Moved from ../.
42120         * modules/crypto/gc-arcfour: Moved from ../.
42121         * modules/crypto/gc-arcfour-tests: Moved from ../.
42122         * modules/crypto/gc-arctwo: Moved from ../.
42123         * modules/crypto/gc-arctwo-tests: Moved from ../.
42124         * modules/crypto/gc-des: Moved from ../.
42125         * modules/crypto/gc-des-tests: Moved from ../.
42126         * modules/crypto/gc-hmac-md5: Moved from ../.
42127         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
42128         * modules/crypto/gc-hmac-sha1: Moved from ../.
42129         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
42130         * modules/crypto/gc-md2: Moved from ../.
42131         * modules/crypto/gc-md2-tests: Moved from ../.
42132         * modules/crypto/gc-md4: Moved from ../.
42133         * modules/crypto/gc-md4-tests: Moved from ../.
42134         * modules/crypto/gc-md5: Moved from ../.
42135         * modules/crypto/gc-md5-tests: Moved from ../.
42136         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
42137         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
42138         * modules/crypto/gc-random: Moved from ../.
42139         * modules/crypto/gc-rijndael: Moved from ../.
42140         * modules/crypto/gc-rijndael-tests: Moved from ../.
42141         * modules/crypto/gc-sha1: Moved from ../.
42142         * modules/crypto/gc-sha1-tests: Moved from ../.
42143         * modules/crypto/gc-tests: Moved from ../.
42144         * modules/crypto/hmac-md5: Moved from ../.
42145         * modules/crypto/hmac-md5-tests: Moved from ../.
42146         * modules/crypto/hmac-sha1: Moved from ../.
42147         * modules/crypto/hmac-sha1-tests: Moved from ../.
42148         * modules/crypto/md2: Moved from ../.
42149         * modules/crypto/md2-tests: Moved from ../.
42150         * modules/crypto/md4: Moved from ../.
42151         * modules/crypto/md4-tests: Moved from ../.
42152         * modules/crypto/md5: Moved from ../.
42153         * modules/crypto/md5-tests: Moved from ../.
42154         * modules/crypto/memxor: Moved from ../.
42155         * modules/crypto/rijndael: Moved from ../.
42156         * modules/crypto/rijndael-tests: Moved from ../.
42157         * modules/crypto/sha1: Moved from ../.
42158
42159 2007-03-30  James Youngman  <jay@gnu.org>
42160
42161         * tests/test-stat-time.c (prepare_test): use chmod() rather than
42162         rename() to change the ctime of a file (because ctime is unaffected
42163         by rename on jfs2 on AIX 5.1).
42164         (main): Start by doing cleanup, in case a previous run failed leaving
42165         test files behind.
42166
42167 2007-03-31  Bruno Haible  <bruno@clisp.org>
42168
42169         Support old proprietary implementations of iconv.
42170         * modules/iconv_open: New file.
42171         * lib/iconv_.h: New file.
42172         * m4/iconv_h.m4: New file.
42173         * lib/iconv_open.c: New file.
42174         * lib/iconv_open-aix.gperf: New file.
42175         * lib/iconv_open-hpux.gperf: New file.
42176         * lib/iconv_open-irix.gperf: New file.
42177         * lib/iconv_open-osf.gperf: New file.
42178         * m4/iconv_open.m4: New file.
42179         * modules/linebreak (Depends-on): Add iconv_open.
42180         * modules/striconv (Depends-on): Likewise.
42181         * modules/striconveh (Depends-on): Likewise.
42182         * modules/unicodeio (Depends-on): Likewise.
42183         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
42184         (iconv_t)(-1).
42185         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
42186         conversion if cd is (iconv_t)(-1).
42187         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
42188         is not possible.
42189
42190 2007-03-31  Bruno Haible  <bruno@clisp.org>
42191
42192         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
42193         work on Solaris either. Protect also second use of "autodetect_jp".
42194
42195 2007-03-31  Bruno Haible  <bruno@clisp.org>
42196
42197         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
42198         the function is not present.
42199
42200 2007-03-31  Bruno Haible  <bruno@clisp.org>
42201
42202         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
42203         the function is not present.
42204
42205 2007-03-31  Bruno Haible  <bruno@clisp.org>
42206
42207         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
42208         a bug in HP-UX iconv_open().
42209
42210 2007-03-31  Bruno Haible  <bruno@clisp.org>
42211
42212         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
42213         (Mathematics <math.h>): New section, add fpieee.
42214         (Input/output <stdio.h>): Add fseterr.
42215         (Mathematics <math.h>): New section, add printf-frexp.
42216         (Container data structures): Add sublist.
42217         (Core language properties): Add fpucw, inline.
42218         (Functions for greatest-width integer types <inttypes.h>): Add
42219         imaxabs, imaxdiv, inttypes.
42220         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
42221         isnanl-nolibm, ldexp.
42222         (Mathematics <math.h>): New section, add printf-frexpl.
42223         (Support for systems lacking POSIX:2001): Add fprintf-posix,
42224         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
42225         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
42226         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
42227         (Unicode string functions): Add unistr/u*-mbtoucr.
42228         (Java): Add javacomp-script, javaexec-script.
42229         (C#): Add csharpcomp-script, csharpexec-script.
42230         (Support for building libraries and executables): Add havelib,
42231         relocatable-*.
42232         (Support for maintaining and releasing projects): Renamed from
42233         'Support for maintaining and release projects'. Add announce-gen.
42234
42235 2007-03-31  Bruno Haible  <bruno@clisp.org>
42236
42237         * README: Talk primarily about git.
42238         (git and CVS): Renamed from CVS.
42239         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
42240         gnulib is available through git.
42241         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
42242
42243 2007-03-30  Bruno Haible  <bruno@clisp.org>
42244
42245         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
42246         * lib/poll_.h: Likewise.
42247         * lib/stat_.h: Likewise.
42248         * lib/sys_time_.h: Likewise.
42249         * lib/sysexit_.h: Likewise.
42250         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
42251         * lib/stdbool_.h: Likewise.
42252         * lib/byteswap_.h: Add double-inclusion guard.
42253
42254 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
42255
42256         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
42257
42258 2007-03-30  Karl Berry  <karl@gnu.org>
42259
42260         * config/srclist-update: double space after USA in the license
42261         substitution, since that's how it's usually (?) written.
42262
42263 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
42264
42265         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
42266         reported by Bruno Haible.
42267
42268 2007-03-29  Bruno Haible  <bruno@clisp.org>
42269
42270         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
42271         a bug in AIX iconv().
42272
42273 2007-03-29  Bruno Haible  <bruno@clisp.org>
42274
42275         * modules/ldexpl-tests: New file.
42276         * tests/test-ldexpl.c: New file.
42277
42278 2007-03-29  Bruno Haible  <bruno@clisp.org>
42279
42280         * lib/ldexpl.c: Include fpucw.h.
42281         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
42282         multiplication.
42283         * modules/ldexpl (Depends-on): Add fpucw.
42284
42285 2007-03-29  Bruno Haible  <bruno@clisp.org>
42286
42287         * modules/ldexpl: New file.
42288         * m4/ldexpl.m4: New file.
42289         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
42290         set.
42291         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
42292         REPLACE_LDEXPL.
42293         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
42294         REPLACE_LDEXPL.
42295         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
42296         gl_FUNC_LDEXPL_WORKS.
42297         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
42298         * modules/mathl (Files): Remove lib/ldexpl.c.
42299         (Depends-on): Add ldexpl.
42300
42301 2007-03-29  Bruno Haible  <bruno@clisp.org>
42302
42303         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
42304
42305 2007-03-29  Bruno Haible  <bruno@clisp.org>
42306
42307         * tests/test-striconveh.c (main): Don't assume that a direct conversion
42308         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
42309         and possibly also HP-UX.
42310         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
42311         work on AIX, IRIX, HP-UX, OSF/1.
42312         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
42313         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
42314         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
42315         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
42316         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
42317         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
42318
42319 2007-03-29  Bruno Haible  <bruno@clisp.org>
42320
42321         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
42322
42323 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
42324
42325         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
42326         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
42327
42328 2007-03-29  Eric Blake  <ebb9@byu.net>
42329
42330         * lib/acl-internal.h: Remove redundant include.
42331         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
42332         Cygwin when a file is locked.
42333
42334 2007-03-29  Bruno Haible  <bruno@clisp.org>
42335
42336         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
42337         file.
42338         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
42339
42340 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
42341
42342         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
42343         try to remove a parent directory if the child couldn't be removed
42344         (except for the first rmdir, which could fail because the child
42345         doesn't exist).  Problem reported by Jeff Blaine in
42346         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
42347
42348 2007-03-28  Bruno Haible  <bruno@clisp.org>
42349
42350         * lib/striconveh.c (utf8conv_carefully): New function.
42351         (mem_cd_iconveh_internal): Invoke it.
42352
42353 2007-03-28  Bruno Haible  <bruno@clisp.org>
42354
42355         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
42356         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
42357         input.
42358         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
42359         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
42360         unistr/u8-uctomb.
42361
42362 2007-03-28  Bruno Haible  <bruno@clisp.org>
42363
42364         * modules/unistr/u8-mbtoucr: New file.
42365         * lib/unistr/u8-mbtoucr.c: New file.
42366         * modules/unistr/u16-mbtoucr: New file.
42367         * lib/unistr/u16-mbtoucr.c: New file.
42368         * modules/unistr/u16-mbtoucr: New file.
42369         * lib/unistr/u16-mbtoucr.c: New file.
42370         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
42371
42372 2007-03-27  Simon Josefsson  <simon@josefsson.org>
42373             Bruno Haible  <bruno@clisp.org>
42374
42375         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
42376         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
42377         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
42378
42379         * m4/stdio_h.m4: Add stubs for vasprintf too.
42380
42381         * modules/stdio: Support vasprintf in sed command.
42382
42383         * modules/vasprintf: Depend on stdio for prototypes.  Remove
42384         vasprintf.h.  Add stdio module indicator.
42385
42386         * lib/stdio_.h: Declare asprintf and vasprintf, based on
42387         vasprintf.h.
42388
42389         * lib/vasprintf.h: File removed.
42390
42391         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
42392         * lib/vasprintf.c: Ditto.
42393         * lib/xvasprintf.c: Ditto.
42394         * tests/test-vasprintf-posix.c: Ditto.
42395         * tests/test-vasprintf.c: Ditto.
42396
42397 2007-03-27  Bruno Haible  <bruno@clisp.org>
42398
42399         Make vasnprintf multithread-safe.
42400         * lib/vasnprintf.c (decimal_point_char): New function.
42401         (VASNPRINTF): Use it.
42402         Suggested by Simon Josefsson.
42403
42404 2007-03-27  Eric Blake  <ebb9@byu.net>
42405
42406         Support sub-second birthtime on cygwin.
42407         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
42408         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
42409         (get_stat_birthtime): Also work with st_birthtim.
42410
42411 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
42412
42413         * lib/stat-time.h (USE_BIRTHTIME): Remove.
42414         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
42415         (get_stat_birthtime_ns): Do not try to use "spare" fields.
42416         (get_stat_birthtime_ns): Simplify compile-time tests.
42417         (get_stat_birthtime): Change the API to look like
42418         get_stat_mtime etc., except return a negative tv_nsec on error.
42419         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
42420         Don't check for "spare" fields.
42421         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
42422         or for struct stat.st_birthtime, as these tests aren't used.
42423         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
42424
42425 2007-03-27  Bruno Haible  <bruno@clisp.org>
42426
42427         * lib/stat-time.h: Include <sys/stat.h>.
42428
42429 2007-03-27  James Youngman  <jay@gnu.org>
42430
42431         * lib/stat-time.h (get_stat_birthtime): New function for
42432           retrieving st_birthtime as provided by UFS2 (hence *BSD).
42433         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
42434           and its variants.
42435         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
42436         * modules/stat-time-test: New file.
42437         * tests/test-stat-time.c: New test, devised by Bruno Haible.
42438
42439 2007-03-26  Bruno Haible  <bruno@clisp.org>
42440
42441         Better support of signalling NaNs.
42442         * lib/atanl.c: Include isnanl.h.
42443         (atanl): Perform test for NaN at the beginning of the function and
42444         through a call to isnanl.
42445         * lib/cosl.c: Include isnanl.h.
42446         (cosl): Perform test for NaN at the beginning of the function and
42447         through a call to isnanl.
42448         * lib/ldexpl.c: Include isnanl.h.
42449         (ldexpl): Perform test for NaN through a call to isnanl.
42450         * lib/logl.c: Include isnanl.h.
42451         (logl): Perform test for NaN at the beginning of the function and
42452         through a call to isnanl.
42453         * lib/sinl.c: Include isnanl.h.
42454         (sinl): Perform test for NaN at the beginning of the function and
42455         through a call to isnanl.
42456         * lib/sqrtl.c: Include isnanl.h.
42457         (sqrtl): Perform test for NaN at the beginning of the function and
42458         through a call to isnanl.
42459         * lib/tanl.c: Include isnanl.h.
42460         (tanl): Perform test for NaN at the beginning of the function and
42461         through a call to isnanl.
42462         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
42463         * modules/mathl (Depends-on): Add isnanl.
42464
42465 2007-03-26  Eric Blake  <ebb9@byu.net>
42466
42467         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
42468         regression in logic sense of previous patch.
42469
42470 2007-03-26  Bruno Haible  <bruno@clisp.org>
42471
42472         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
42473         unportable shell command "if ! ...".
42474         Reported by Ralf Wildenhues.
42475
42476 2007-03-25  Bruno Haible  <bruno@clisp.org>
42477
42478         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
42479         <sysexits.h> file, and only add EX_CONFIG.
42480         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
42481         absolute file name and whether it is sufficient. Substitute also
42482         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
42483         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
42484         ABSOLUTE_SYSEXITS_H into sysexits.h.
42485
42486 2007-03-25  Bruno Haible  <bruno@clisp.org>
42487
42488         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
42489         hints is NULL.
42490
42491 2007-03-25  Bruno Haible  <bruno@clisp.org>
42492
42493         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
42494         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
42495
42496 2007-03-25  Bruno Haible  <bruno@clisp.org>
42497
42498         * lib/vasnprintf.c: Include langinfo.h.
42499         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
42500         multithread-safe.
42501         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
42502         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
42503         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
42504         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
42505         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
42506         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
42507         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
42508         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
42509         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
42510         Reported by Simon Josefsson.
42511
42512 2007-03-25  Bruno Haible  <bruno@clisp.org>
42513
42514         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
42515         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
42516         * modules/vasnprintf (Depends-on): Add stdint.
42517
42518 2007-03-25  Bruno Haible  <bruno@clisp.org>
42519
42520         * modules/fpieee: New file.
42521         * m4/fpieee.m4: New file.
42522         * modules/isnan-nolibm (Depends-on): Add fpieee.
42523         * modules/isnanl-nolibm (Depends-on): Add fpieee.
42524         * modules/isnanl (Depends-on): Add fpieee.
42525
42526 2007-03-25  Bruno Haible  <bruno@clisp.org>
42527
42528         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
42529
42530 2007-03-25  Bruno Haible  <bruno@clisp.org>
42531
42532         Avoid test failures on IRIX 6.5.
42533         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
42534         (main): Use it.
42535         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
42536         macros.
42537         (main): Use them.
42538
42539 2007-03-25  Bruno Haible  <bruno@clisp.org>
42540
42541         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
42542         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
42543         exists but doesn't work.
42544         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
42545         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
42546         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
42547         * modules/math (Makefile.am) Substibute also REPLACE_FREXPL into math.h.
42548
42549 2007-03-25  Bruno Haible  <bruno@clisp.org>
42550
42551         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
42552         returns inf. Needed on IRIX 6.5.
42553
42554 2007-03-25  Bruno Haible  <bruno@clisp.org>
42555
42556         * tests/test-frexpl.c: Include isnanl-nolibm.h.
42557         (main): Use isnanl instead of x != x idiom.
42558         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
42559
42560         * tests/test-frexp.c: Include isnan.h.
42561         (main): Use isnan instead of x != x idiom.
42562         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
42563
42564 2007-03-25  Bruno Haible  <bruno@clisp.org>
42565
42566         * tests/test-frexp.c (NaN): New function/macro.
42567         (main): Use it instead of 0.0 / 0.0.
42568         * tests/test-isnan.c (NaN): New function/macro.
42569         (main): Use it instead of 0.0 / 0.0.
42570         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
42571         (test_function): Use it instead of 0.0 / 0.0.
42572         * tests/test-vasprintf-posix.c (NaN): New function/macro.
42573         (test_function): Use it instead of 0.0 / 0.0.
42574         * tests/test-snprintf-posix.h (NaN): New function/macro.
42575         (test_function): Use it instead of 0.0 / 0.0.
42576         * tests/test-sprintf-posix.h (NaN): New function/macro.
42577         (test_function): Use it instead of 0.0 / 0.0.
42578         * tests/test-fprintf-posix.h (NaN): New function/macro.
42579         (test_function): Use it instead of 0.0 / 0.0.
42580         * tests/test-printf-posix.h (NaN): New function/macro.
42581         (test_function): Use it instead of 0.0 / 0.0.
42582
42583         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
42584
42585 2007-03-25  Bruno Haible  <bruno@clisp.org>
42586
42587         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
42588
42589 2007-03-25  Bruno Haible  <bruno@clisp.org>
42590
42591         * lib/regexec.c (merge_state_with_log): Make static.
42592
42593 2007-03-25  Bruno Haible  <bruno@clisp.org>
42594
42595         * lib/trigl.c (kernel_rem_pio2): Make static.
42596
42597 2007-03-25  Bruno Haible  <bruno@clisp.org>
42598
42599         * lib/sincosl.c (sincosl_table): Make static.
42600
42601 2007-03-25  Bruno Haible  <bruno@clisp.org>
42602
42603         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
42604         if the compiler does not support C99.
42605
42606 2007-03-25  Bruno Haible  <bruno@clisp.org>
42607
42608         * modules/time (Makefile.am): Ensure all rule action lines start with a
42609         tab.
42610
42611 2007-03-24  Bruno Haible  <bruno@clisp.org>
42612
42613         * modules/tsearch-tests: New file.
42614         * tests/test-tsearch.sh: New file.
42615         * tests/test-tsearch.c: New file, mostly copied from glibc.
42616
42617         * modules/search-tests: New file.
42618         * tests/test-search.c: New file.
42619
42620         * modules/search: New file.
42621         * lib/search_.h: New file, incorporating lib/tsearch.h.
42622         * m4/search_h.m4: New file.
42623         * lib/tsearch.h: Remove file.
42624         * lib/tsearch.c: Include search.h instead of tsearch.h.
42625         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
42626         HAVE_TSEARCH.
42627         * modules/tsearch (Files): Remove lib/tsearch.h.
42628         (Depends-on): Add search.
42629         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
42630         (Include): Change tsearch.h into search.h.
42631
42632 2007-03-24  Bruno Haible  <bruno@clisp.org>
42633
42634         * modules/fpucw: New file.
42635         * lib/fpucw.h: New file.
42636         * lib/frexp.c: Include fpucw.h.
42637         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
42638         (FUNC): Use them.
42639         * lib/printf-frexp.c: Include fpucw.h.
42640         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
42641         (FUNC): Use them.
42642         * lib/vasnprintf.c: Include fpucw.h.
42643         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
42644         'long double' calculations.
42645         * tests/test-frexpl.c: Include fpucw.h.
42646         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
42647         * tests/test-printf-frexpl.c: Include fpucw.h.
42648         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
42649         * modules/frexpl (Depends-on): Add fpucw.
42650         * modules/printf-frexpl (Depends-on): Likewise.
42651         * modules/fprintf-posix (Depends-on): Likewise.
42652         * modules/snprintf-posix (Depends-on): Likewise.
42653         * modules/sprintf-posix (Depends-on): Likewise.
42654         * modules/vasnprintf-posix (Depends-on): Likewise.
42655         * modules/vasprintf-posix (Depends-on): Likewise.
42656         * modules/vfprintf-posix (Depends-on): Likewise.
42657         * modules/vsnprintf-posix (Depends-on): Likewise.
42658         * modules/vsprintf-posix (Depends-on): Likewise.
42659         * modules/frexpl-tests (Depends-on): Likewise.
42660         * modules/printf-frexpl-tests (Depends-on): Likewise.
42661
42662 2007-03-24  Bruno Haible  <bruno@clisp.org>
42663
42664         * lib/float+.h: New file.
42665         * lib/isnan.c: Include float+.h.
42666         (SIZE): New macro.
42667         (FUNC): Compare only SIZE bytes of the value.
42668         * lib/vasnprintf.c: Include float+.h.
42669         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
42670         SIZEOF_LDBL or SIZEOF_DBL bytes.
42671         * modules/isnan-nolibm (Files): Add lib/float+.h.
42672         * modules/isnanl-nolibm (Files): Add lib/float+.h.
42673         * modules/isnanl (Files): Add lib/float+.h.
42674         * modules/vasnprintf (Files): Add lib/float+.h.
42675
42676 2007-03-24  Bruno Haible  <bruno@clisp.org>
42677
42678         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
42679         include isnanl-nolibm.h.
42680
42681 2007-03-24  Bruno Haible  <bruno@clisp.org>
42682
42683         * tests/test-read-file.c (main): Don't produce spurious output for
42684         expected situations. Make the test fail if it encountered unexpected
42685         results.
42686
42687 2007-03-24  Bruno Haible  <bruno@clisp.org>
42688
42689         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
42690         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
42691
42692 2007-03-24  Bruno Haible  <bruno@clisp.org>
42693
42694         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
42695
42696 2007-03-24  Bruno Haible  <bruno@clisp.org>
42697
42698         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
42699         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
42700
42701         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
42702         * modules/utf8-ucs4: Turn into a symbolic link to module
42703         unistr/u8-mbtouc.
42704
42705         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
42706         utf8-ucs4-unsafe.
42707         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
42708         unistr/u8-mbtouc-unsafe.
42709
42710         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
42711         * modules/utf16-ucs4: Turn into a symbolic link to module
42712         unistr/u16-mbtouc.
42713
42714         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
42715         utf16-ucs4-unsafe.
42716         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
42717         unistr/u16-mbtouc-unsafe.
42718
42719         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
42720         * modules/ucs4-utf8: Turn into a symbolic link to module
42721         unistr/u8-ubtomb.
42722
42723         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
42724         * modules/ucs4-utf16: Turn into a symbolic link to module
42725         unistr/u16-ubtomb.
42726
42727 2007-03-24  Bruno Haible  <bruno@clisp.org>
42728
42729         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
42730         Enable the function only if HAVE_INLINE.
42731         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
42732         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
42733         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
42734         Enable the function only if HAVE_INLINE.
42735         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
42736         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
42737         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
42738         Enable the function only if HAVE_INLINE.
42739         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
42740         Enable the function only if HAVE_INLINE.
42741         * modules/utf8-ucs4: Update.
42742         * modules/utf8-ucs4-unsafe: Update.
42743         * modules/utf16-ucs4: Update.
42744         * modules/utf16-ucs4-unsafe: Update.
42745         * modules/ucs4-utf8: Update.
42746         * modules/ucs4-utf16: Update.
42747
42748 2007-03-24  Bruno Haible  <bruno@clisp.org>
42749
42750         * lib/utf8-ucs4.h: Remove file.
42751         * lib/utf8-ucs4-unsafe.h: Remove file.
42752         * lib/utf16-ucs4.h: Remove file.
42753         * lib/utf16-ucs4-unsafe.h: Remove file.
42754         * lib/ucs4-utf8.h: Remove file.
42755         * lib/ucs4-utf16.h: Remove file.
42756         * lib/unistr.h: Include their previous contents.
42757         * m4/utf-ucs4.m4: Remove file.
42758         * m4/ucs4-utf.m4: Remove file.
42759         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
42760         (Depends-on): Add unistr/base.
42761         (configure.ac): Remove gl_UTF_UCS4.
42762         (Makefile.am): Update.
42763         (Include): Change to unistr.h.
42764         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
42765         (Depends-on): Add unistr/base.
42766         (configure.ac): Remove gl_UTF_UCS4.
42767         (Makefile.am): Update.
42768         (Include): Change to unistr.h.
42769         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
42770         (Depends-on): Add unistr/base.
42771         (configure.ac): Remove gl_UTF_UCS4.
42772         (Makefile.am): Update.
42773         (Include): Change to unistr.h.
42774         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
42775         (Depends-on): Add unistr/base.
42776         (configure.ac): Remove gl_UTF_UCS4.
42777         (Makefile.am): Update.
42778         (Include): Change to unistr.h.
42779         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
42780         (Depends-on): Add unistr/base.
42781         (configure.ac): Remove gl_UCS4_UTF.
42782         (Makefile.am): Update.
42783         (Include): Change to unistr.h.
42784         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
42785         (Depends-on): Add unistr/base.
42786         (configure.ac): Remove gl_UCS4_UTF.
42787         (Makefile.am): Update.
42788         (Include): Change to unistr.h.
42789         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
42790         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
42791         utf8-ucs4-unsafe.h.
42792         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
42793         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
42794         utf16-ucs4-unsafe.h.
42795         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
42796         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
42797         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
42798         * lib/unistr/u8-strchr.c: Likewise.
42799         * lib/unistr/u8-strrchr.c: Likewise.
42800         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
42801         * lib/unistr/u16-strchr.c: Likewise.
42802         * lib/unistr/u16-strrchr.c: Likewise.
42803         * lib/striconveh.c: Update.
42804         * lib/linebreak.c: Update.
42805
42806 2007-03-24  Bruno Haible  <bruno@clisp.org>
42807
42808         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
42809         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
42810
42811 2007-03-22  Bruno Haible  <bruno@clisp.org>
42812
42813         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
42814
42815 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
42816
42817         * MODULES.html.sh (File system functions): New module write-any-file.
42818         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
42819         * m4/write-any-file.m4: New files.
42820
42821 2007-03-23  Eric Blake  <ebb9@byu.net>
42822
42823         * gnulib-tool: Rearrange space-tab sequences, since some editors
42824         like to eat them.
42825
42826 2007-03-23  Eric Blake  <ebb9@byu.net>
42827
42828         * lib/version-etc.c (version_etc_va): Update license wording to
42829         be more concise.  Recommended by Richard Stallman.
42830
42831 2007-03-22  Bruno Haible  <bruno@clisp.org>
42832
42833         * lib/poll.c (MSG_PEEK): New fallback definition.
42834
42835 2007-03-22  Bruno Haible  <bruno@clisp.org>
42836
42837         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
42838         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
42839         (main): Update.
42840         Fixes a compilation error on BeOS.
42841
42842 2007-03-22  Bruno Haible  <bruno@clisp.org>
42843
42844         * modules/frexpl-tests: New file.
42845         * tests/test-frexpl.c: New file.
42846
42847         * modules/frexpl: New file.
42848         * m4/frexpl.m4: New file.
42849         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
42850         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
42851         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
42852         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
42853         (Depends-on): Add frexpl. Remove isnanl-nolibm.
42854         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
42855
42856 2007-03-22  Bruno Haible  <bruno@clisp.org>
42857
42858         * lib/frexpl.c: Share code with lib/frexp.c.
42859         * modules/mathl (Files): Add lib/frexp.c.
42860         (Depends-on): Add isnanl-nolibm.
42861
42862 2007-03-22  Bruno Haible  <bruno@clisp.org>
42863
42864         * modules/printf-frexp (Files): Add m4/frexp.m4.
42865         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
42866         only if the found frexp function actually works.
42867
42868 2007-03-22  Bruno Haible  <bruno@clisp.org>
42869
42870         * lib/frexp.c: Remove older implementation that uses divisions.
42871
42872 2007-03-21  Bruno Haible  <bruno@clisp.org>
42873
42874         * modules/frexp-tests: New file.
42875         * tests/test-frexp.c: New file.
42876
42877         * modules/frexp: New file.
42878         * lib/frexp.c: New file.
42879         * m4/frexp.m4: New file.
42880         * lib/math_.h (frexp): New declaration.
42881         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
42882         REPLACE_FREXP.
42883         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
42884
42885 2007-03-21  Bruno Haible  <bruno@clisp.org>
42886
42887         * modules/isnanl-tests: New file.
42888         * tests/test-isnanl.c: New file.
42889
42890         * modules/isnanl: New file.
42891         * lib/isnanl.h: New file.
42892         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
42893         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
42894         gl_FUNC_ISNANL_WORKS.
42895         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
42896         New macros.
42897
42898 2007-03-21  Bruno Haible  <bruno@clisp.org>
42899
42900         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
42901         lib/isnanl.h.
42902         (Include): Update.
42903         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
42904         * lib/vasnprintf.c: Update.
42905         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
42906         tests/test-isnanl.h, remove tests/test-isnanl.c.
42907         (Makefile.am): Update.
42908         * tests/test-isnanl-nolibm.c: New file.
42909         * tests/test-isnanl.h: New file.
42910         * tests/test-isnanl.c: Remove file.
42911
42912 2007-03-21  Jim Meyering  <jim@meyering.net>
42913
42914         When trying to open ".", treat ESTALE like EACCES.
42915         * lib/savewd.c (savewd_save): Resort to forking not just upon
42916         failure with EACCES, but also when errno is ESTALE.
42917
42918 2007-03-20  Bruno Haible  <bruno@clisp.org>
42919
42920         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
42921         Needed on AIX 5.1. Reported by Matthew Woehlke.
42922
42923 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
42924
42925         Suggestions by Bruno Haible:
42926         * lib/acl-internal.h: Include "gettext.h" rather than rolling
42927         our own.
42928         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
42929         * modules/acl (Depends-on): Add gettext.
42930
42931 2007-03-19  Bruno Haible  <bruno@clisp.org>
42932
42933         * modules/iconvme: Remove file.
42934         * lib/iconvme.h: Remove file.
42935         * lib/iconvme.c: Remove file.
42936         * m4/iconvme.m4: Remove file.
42937
42938 2007-03-19  Bruno Haible  <bruno@clisp.org>
42939
42940         * doc/relocatable-maint.texi: Break long shell script line.
42941         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
42942
42943 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
42944
42945         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
42946         handle file_has_acl.
42947         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
42948         * lib/acl.c: Move header inclusions and related macro defns into
42949         lib/acl-internal.h.
42950         (S_ISLNK): Remove defn, since that's now done for us.
42951         (file_has_acl): Move to lib/file-has-acl.c.
42952         Call acl_trivial if available.  This is the crucial part of the fix.
42953         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
42954         shared within the library.  Rewrite a bit, partly to make it compatible
42955         with the GNU coding style.
42956         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
42957         Remove unnecessary double-quotes.
42958         Don't test for acl_to_text; the build will catch that.
42959         Replace acl_entries if it doesn't exist and it is needed.
42960         Check for -lsec and acl_trivial (as used on Solaris 10).
42961         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
42962         lib/file-has-acl.c.
42963         (Depends-on): Add sys_stat, for S_ISLNK.
42964
42965 2007-03-19  Ben Pfaff  <blp@gnu.org>
42966
42967         * doc/gnulib.texi: Fix typos.
42968         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
42969
42970 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
42971
42972         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
42973         If size is zero here, buf must be zero.
42974
42975 2007-03-19  Simon Josefsson  <simon@josefsson.org>
42976
42977         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
42978         <bruno@clisp.org>.
42979
42980 2007-03-18  Bruno Haible  <bruno@clisp.org>
42981
42982         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
42983         Suggested by Eric Blake.
42984
42985 2007-03-18  Ben Pfaff  <blp@gnu.org>
42986
42987         * doc/relocatable.texi: Recommend using as prefix a directory
42988         that does not exist and will never be created.  Based on
42989         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
42990         and others.
42991
42992 2007-03-17  Bruno Haible  <bruno@clisp.org>
42993
42994         * lib/fchownat.c: Include lchown.h.
42995
42996 2007-03-17  Bruno Haible  <bruno@clisp.org>
42997
42998         Fix endless loop when the given allocated size was > INT_MAX.
42999         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
43000         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
43001         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
43002         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
43003         * lib/sprintf.c (sprintf): Likewise.
43004
43005 2007-03-17  Bruno Haible  <bruno@clisp.org>
43006
43007         * tests/test-argp-2.sh (func_compare): Output a context diff.
43008
43009 2007-03-17  Bruno Haible  <bruno@clisp.org>
43010
43011         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
43012         locale's decimal-point character.
43013
43014 2007-03-17  Bruno Haible  <bruno@clisp.org>
43015
43016         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
43017         before comparing it. Needed because on some platforms (e.g. x86) a
43018         'long double' occupies less bytes than sizeof (long double).
43019
43020 2007-03-17  Bruno Haible  <bruno@clisp.org>
43021
43022         * tests/test-crc.c (main): Make printf statements 64-bit clean.
43023         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
43024         * tests/test-getaddrinfo.c (simple): Likewise.
43025         * tests/test-read-file.c (main): Likewise.
43026
43027 2007-03-17  Bruno Haible  <bruno@clisp.org>
43028
43029         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
43030
43031 2007-03-17  Bruno Haible  <bruno@clisp.org>
43032
43033         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
43034         unused variable.
43035
43036 2007-03-17  Bruno Haible  <bruno@clisp.org>
43037
43038         * tests/test-c-strcasecmp.c: Include c-strcase.h.
43039         * tests/test-c-strncasecmp.c: Likewise.
43040
43041 2007-03-17  Bruno Haible  <bruno@clisp.org>
43042
43043         * modules/stdlib (Depends-on): Add unistd.
43044         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
43045         Needed for MacOS X 10.3.
43046
43047 2007-03-17  Bruno Haible  <bruno@clisp.org>
43048
43049         * lib/unistr/u-strdup.h: Include <stdlib.h>.
43050
43051 2007-03-17  Bruno Haible  <bruno@clisp.org>
43052
43053         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
43054
43055 2007-03-17  Bruno Haible  <bruno@clisp.org>
43056
43057         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
43058         to reflect files copied from gnulib (with or without modifications).
43059         Suggested by Jim Meyering.
43060
43061 2007-03-17  Eric Blake  <ebb9@byu.net>
43062
43063         * NEWS: Document stdlib change from 2007-02-18.
43064
43065 2007-03-17  Jim Meyering  <jim@meyering.net>
43066
43067         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
43068         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
43069         someone uses a name containing shell meta-characters.
43070         Reported by Alfred M. Szmidt.
43071
43072         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
43073
43074 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
43075
43076         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
43077         and copy gettext configuration files only if configure.ac contains
43078         a use of AM_GNU_GETTEXT_VERSION.
43079
43080 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
43081
43082         * build-aux/bootstrap (gnulib_name): New variable.
43083         (gnulib_tool_options): Use it.
43084
43085 2007-03-13  Simon Josefsson  <simon@josefsson.org>
43086
43087         * tests/test-des.c: Use new namespace.
43088
43089 2007-03-15  Bruno Haible  <bruno@clisp.org>
43090
43091         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
43092         Reported by James Youngman <jay@gnu.org>.
43093
43094 2007-03-15  Bruno Haible  <bruno@clisp.org>
43095
43096         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
43097         declared prototype. Needed with cc on OSF/1 5.1.
43098
43099 2007-03-15  Bruno Haible  <bruno@clisp.org>
43100
43101         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
43102         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
43103         (struct gl_list_implementation): Add dispose_fn argument to the
43104         'create_empty', 'create' methods.
43105         (struct gl_list_impl_base): Add field 'dispose_fn'.
43106         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
43107         argument.
43108         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
43109         dispose_fn argument.
43110         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
43111         dispose_fn on the dropped values.
43112         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
43113         dispose_fn argument.
43114         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
43115         dropped values.
43116         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
43117         (gl_tree_remove_node): Call dispose_fn on the dropped value.
43118         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
43119         (gl_tree_remove_node): Call dispose_fn on the dropped value.
43120         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
43121         argument.
43122         (gl_tree_list_free): Call dispose_fn on the dropped values.
43123         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
43124         the dropped values.
43125         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
43126         Add dispose_fn argument.
43127         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
43128         Call dispose_fn on the dropped values.
43129         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
43130         Add dispose_fn argument.
43131         (gl_sublist_create): Initialize the 'dispose_fn' field.
43132         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
43133         * tests/test-array_list.c (main): Update.
43134         * tests/test-carray_list.c (main): Update.
43135         * tests/test-avltree_list.c (main): Update.
43136         * tests/test-rbtree_list.c (main): Update.
43137         * tests/test-avltreehash_list.c (main): Update.
43138         * tests/test-rbtreehash_list.c (main): Update.
43139         * tests/test-linked_list.c (main): Update.
43140         * tests/test-linkedhash_list.c (main): Update.
43141         * tests/test-array_oset.c (main): Update.
43142
43143 2007-03-15  Bruno Haible  <bruno@clisp.org>
43144
43145         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
43146         (gl_oset_create_empty): Add dispose_fn argument.
43147         (struct gl_oset_implementation): Add dispose_fn argument to
43148         'create_empty' method.
43149         (struct gl_oset_impl_base): Add dispose_fn field.
43150         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
43151         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
43152         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
43153         values.
43154         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
43155         (gl_tree_oset_free): Call dispose_fn on the dropped values.
43156         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
43157         dropped value.
43158         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
43159         dropped value.
43160         * tests/test-array_oset.c (main): Update.
43161         * tests/test-avltree_oset.c (main): Update.
43162         * tests/test-rbtree_oset.c (main): Update.
43163         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
43164
43165 2007-03-13  Bruno Haible  <bruno@clisp.org>
43166
43167         * tests/test-stdbool.c (i): Update after last patch.
43168
43169 2007-03-12  Bruno Haible  <bruno@clisp.org>
43170
43171         * lib/quotearg.c: Include <wctype.h> early, before the definition of
43172         the iswprint macro. Needed on Solaris 2.5.1.
43173
43174 2007-03-12  Bruno Haible  <bruno@clisp.org>
43175
43176         * tests/test-printf-frexp.c (main): Declare x as volatile.
43177
43178 2007-03-12  Simon Josefsson  <simon@josefsson.org>
43179
43180         * doc/gnulib.texi (Build robot for gnulib): New section.
43181
43182 2007-03-12  Jim Meyering  <jim@meyering.net>
43183
43184         * build-aux/bootstrap: New file.
43185         * build-aux/bootstrap.conf: New file, from coreutils.
43186
43187 2007-03-11  Bruno Haible  <bruno@clisp.org>
43188
43189         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
43190
43191 2007-03-12  Simon Josefsson  <simon@josefsson.org>
43192
43193         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
43194         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
43195         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
43196
43197 2007-03-11  Bruno Haible  <bruno@clisp.org>
43198
43199         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
43200         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
43201
43202 2007-03-11  Bruno Haible  <bruno@clisp.org>
43203
43204         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
43205         formula. Needed for SunPRO C 5.0.
43206
43207 2007-03-11  Bruno Haible  <bruno@clisp.org>
43208
43209         * modules/long-options (Depends-on): Add getopt.
43210
43211 2007-03-11  Bruno Haible  <bruno@clisp.org>
43212
43213         * modules/modechange (Depends-on): Add stdbool.
43214
43215 2007-03-11  Bruno Haible  <bruno@clisp.org>
43216
43217         * modules/i-ring (Depends-on): Add stdbool.
43218
43219 2007-03-11  Bruno Haible  <bruno@clisp.org>
43220
43221         * modules/gc-des (Depends-on): Add stdbool.
43222
43223 2007-03-11  Bruno Haible  <bruno@clisp.org>
43224
43225         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
43226
43227 2007-03-11  Bruno Haible  <bruno@clisp.org>
43228
43229         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
43230
43231 2007-03-11  Bruno Haible  <bruno@clisp.org>
43232
43233         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
43234
43235 2007-03-11  Bruno Haible  <bruno@clisp.org>
43236
43237         * lib/vasnprintf.c (sprintf): Undefine.
43238
43239 2007-03-11  Bruno Haible  <bruno@clisp.org>
43240
43241         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
43242         initializers in SunPRO C and Compaq C compilers.
43243
43244 2007-03-11  Bruno Haible  <bruno@clisp.org>
43245
43246         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
43247         decrementing code ANSI C compliant.
43248
43249 2007-03-11  Bruno Haible  <bruno@clisp.org>
43250
43251         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
43252         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
43253
43254 2007-03-11  Bruno Haible  <bruno@clisp.org>
43255
43256         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
43257         <stdbool.h> substitute doesn't pass.
43258
43259 2007-03-11  Bruno Haible  <bruno@clisp.org>
43260
43261         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
43262
43263 2007-03-11  Bruno Haible  <bruno@clisp.org>
43264
43265         * gnulib-tool (func_create_megatestdir): Create also an autobuild
43266         script, for submission to autobuild.josefsson.org.
43267
43268 2007-03-10  Bruno Haible  <bruno@clisp.org>
43269
43270         * modules/canonicalize-lgpl-tests: New file.
43271         * tests/test-canonicalize-lgpl.sh: New file.
43272         * tests/test-canonicalize-lgpl.c: New file.
43273
43274         * modules/c-strcase-tests: New file.
43275         * tests/test-c-strcase.sh: New file.
43276         * tests/test-c-strcasecmp.c: New file.
43277         * tests/test-c-strncasecmp.c: New file.
43278
43279         * modules/atexit-tests: New file.
43280         * tests/test-atexit.sh: New file.
43281         * tests/test-atexit.c: New file.
43282
43283 2007-03-10  Bruno Haible  <bruno@clisp.org>
43284
43285         * tests/test-binary-io.sh: Use temporary filenames that are not so
43286         likely to clash with those of other tests (in a parallel make).
43287         * tests/test-binary-io.c: Likewise.
43288
43289 2007-03-10  Bruno Haible  <bruno@clisp.org>
43290
43291         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
43292         fallback; use #error instead.
43293         Suggested by Simon Josefsson.
43294
43295 2007-03-10  Bruno Haible  <bruno@clisp.org>
43296
43297         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
43298         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
43299         first and the last.
43300
43301 2007-03-10  Bruno Haible  <bruno@clisp.org>
43302
43303         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
43304
43305 2007-03-10  Bruno Haible  <bruno@clisp.org>
43306
43307         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
43308         "make distcheck".
43309         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
43310         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
43311         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
43312
43313 2007-03-10  Bruno Haible  <bruno@clisp.org>
43314
43315         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
43316         variable.
43317         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
43318         variable.
43319
43320 2007-03-09  Eric Blake  <ebb9@byu.net>
43321         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
43322
43323         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
43324         types are not being provided by gnulib.
43325         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
43326         types are supported.
43327
43328 2007-03-10  Bruno Haible  <bruno@clisp.org>
43329
43330         * lib/stdio_.h (__attribute__): New macro.
43331         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
43332         vsprintf): Specify __attribute__ __format__ for GCC.
43333         Suggested by Eric Blake.
43334
43335 2007-03-09  Bruno Haible  <bruno@clisp.org>
43336
43337         * modules/printf-posix-tests: New file.
43338         * tests/test-printf-posix.sh: New file.
43339         * tests/test-printf-posix.c: New file.
43340
43341         * modules/printf-posix: New file.
43342         * lib/printf.c: New file.
43343         * m4/printf-posix-rpl.m4: New file.
43344         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
43345         REPLACE_PRINTF.
43346         * lib/stdio_.h (printf): New declaration.
43347         (format, __format__, ____printf____, ____scanf____, ____strftime____,
43348         ____strfmon____): New macros.
43349         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
43350         REPLACE_PRINTF.
43351
43352 2007-03-09  Bruno Haible  <bruno@clisp.org>
43353
43354         * tests/test-vasnprintf-posix2.sh: New file.
43355         * tests/test-vasnprintf-posix2.c: New file.
43356         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
43357         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
43358         (Makefile.am): Activate test-vasnprintf-posix2.sh.
43359
43360         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
43361         a locale dependent decimal point, rather than always '.'.
43362
43363 2007-03-09  Eric Blake  <ebb9@byu.net>
43364
43365         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
43366         spite of platforms like Tandem/NSK that define it to -1.
43367
43368 2007-03-08  Bruno Haible  <bruno@clisp.org>
43369
43370         * modules/vprintf-posix-tests: New file.
43371         * tests/test-vprintf-posix.sh: New file.
43372         * tests/test-vprintf-posix.c: New file.
43373         * tests/test-printf-posix.h: New file.
43374
43375         * modules/vprintf-posix: New file.
43376         * lib/vprintf.c: New file.
43377         * m4/vprintf-posix.m4: New file.
43378         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
43379         REPLACE_VPRINTF.
43380         * lib/stdio_.h (vprintf): New declaration.
43381         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
43382         REPLACE_VPRINTF.
43383
43384 2007-03-08  Bruno Haible  <bruno@clisp.org>
43385
43386         * modules/fprintf-posix-tests: New file.
43387         * tests/test-fprintf-posix.sh: New file.
43388         * tests/test-fprintf-posix.c: New file.
43389
43390         * modules/fprintf-posix: New file.
43391         * lib/fprintf.c: New file.
43392         * m4/fprintf-posix.m4: New file.
43393         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
43394         REPLACE_FPRINTF.
43395         * lib/stdio_.h (fprintf): New declaration.
43396         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
43397         REPLACE_FPRINTF.
43398
43399 2007-03-08  Bruno Haible  <bruno@clisp.org>
43400
43401         * modules/vfprintf-posix-tests: New file.
43402         * tests/test-vfprintf-posix.sh: New file.
43403         * tests/test-vfprintf-posix.c: New file.
43404         * tests/test-fprintf-posix.h: New file.
43405         * tests/test-fprintf-posix.out: New file.
43406
43407         * modules/vfprintf-posix: New file.
43408         * lib/vfprintf.c: New file.
43409         * m4/vfprintf-posix.m4: New file.
43410         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
43411         REPLACE_VFPRINTF.
43412         * lib/stdio_.h (vfprintf): New declaration.
43413         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
43414         REPLACE_VFPRINTF.
43415
43416 2007-03-08  Bruno Haible  <bruno@clisp.org>
43417
43418         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
43419
43420 2007-03-08  Bruno Haible  <bruno@clisp.org>
43421
43422         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
43423         instead of 'expr' invocations.
43424         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
43425         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
43426         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
43427         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
43428         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
43429         Suggested by Paul Eggert.
43430
43431 2007-03-08  Bruno Haible  <bruno@clisp.org>
43432
43433         * modules/fseterr-tests: New file.
43434         * tests/test-fseterr.c: New file.
43435
43436         * modules/fseterr: New file.
43437         * lib/fseterr.h: New file.
43438         * lib/fseterr.c: New file.
43439
43440 2007-03-08  Bruno Haible  <bruno@clisp.org>
43441
43442         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
43443         * lib/getopt_.h: Likewise.
43444         * lib/mbswidth.h: Likewise.
43445         * lib/setenv.h: Likewise.
43446         * lib/vasnprintf.h: Likewise.
43447         * lib/vasprintf.h: Likewise.
43448         * lib/verror.h: Likewise.
43449         * lib/xsetenv.h: Likewise.
43450         * lib/xvasprintf.h: Likewise.
43451
43452 2007-03-08  Jim Meyering  <jim@meyering.net>
43453
43454         * users.txt: Add parted.
43455
43456         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
43457
43458 2007-03-07  Bruno Haible  <bruno@clisp.org>
43459
43460         * m4/printf.m4: Make the shell script snippets copy&pastable.
43461
43462 2007-03-02  Bruno Haible  <bruno@clisp.org>
43463
43464         * lib/netinet_in_.h: New file.
43465         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
43466         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
43467         * modules/netinet_in (Files): Add lib/netinet_in_.h.
43468         (Depends-on): Add absolute-header.
43469         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
43470         into netinet/in.h.
43471
43472 2007-03-03  Bruno Haible  <bruno@clisp.org>
43473
43474         * lib/sys_select_.h: New file.
43475         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
43476         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
43477         * modules/sys_select (Files): Add lib/sys_select_.h.
43478         (Depends-on): Add absolute-header.
43479         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
43480         into sys/select.h.
43481
43482 2007-03-02  Bruno Haible  <bruno@clisp.org>
43483
43484         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
43485         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
43486         values.
43487         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
43488         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
43489         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
43490         * modules/sys_socket (Depends-on): Add absolute-header.
43491         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
43492         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
43493         (Include): Remove requirement of inclusion of <sys/types.h>.
43494
43495 2007-03-02  Bruno Haible  <bruno@clisp.org>
43496
43497         * lib/byteswap_.h (bswap_32): Fix formula.
43498
43499 2007-03-06  Bruno Haible  <bruno@clisp.org>
43500
43501         * modules/sprintf-posix-tests: New file.
43502         * tests/test-sprintf-posix.c: New file.
43503
43504         * modules/sprintf-posix: New file.
43505         * lib/sprintf.c: New file.
43506         * m4/sprintf-posix.m4: New file.
43507         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
43508         REPLACE_SPRINTF.
43509         * lib/stdio_.h (sprintf): New declaration.
43510         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
43511         REPLACE_SPRINTF.
43512
43513 2007-03-06  Bruno Haible  <bruno@clisp.org>
43514
43515         * modules/vsprintf-posix-tests: New file.
43516         * tests/test-vsprintf-posix.c: New file.
43517         * tests/test-sprintf-posix.h: New file.
43518
43519         * modules/vsprintf-posix: New file.
43520         * lib/vsprintf.c: New file.
43521         * m4/vsprintf-posix.m4: New file.
43522         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
43523         REPLACE_VSPRINTF.
43524         * lib/stdio_.h (vsprintf): New declaration.
43525         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
43526         REPLACE_VSPRINTF.
43527
43528 2007-03-06  Bruno Haible  <bruno@clisp.org>
43529
43530         * modules/vsnprintf (Depend-on): Remove minmax.
43531
43532 2007-03-06  Bruno Haible  <bruno@clisp.org>
43533
43534         * modules/snprintf-posix-tests: New file.
43535         * tests/test-snprintf-posix.c: New file.
43536
43537         * modules/snprintf-posix: New file.
43538         * m4/snprintf-posix.m4: New file.
43539         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
43540         gl_FUNC_SNPRINTF.
43541         (gl_FUNC_SNPRINTF): Invoke it.
43542         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
43543         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
43544         is set.
43545         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
43546
43547 2007-03-06  Bruno Haible  <bruno@clisp.org>
43548
43549         * modules/vsnprintf-posix-tests: New file.
43550         * tests/test-vsnprintf-posix.c: New file.
43551         * tests/test-snprintf-posix.h: New file.
43552
43553         * modules/vsnprintf-posix: New file.
43554         * m4/vsnprintf-posix.m4: New file.
43555         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
43556         gl_FUNC_VSNPRINTF.
43557         (gl_FUNC_VSNPRINTF): Invoke it.
43558         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
43559         * lib/stdio_.h (vsnprintf): Define as a replacement if
43560         REPLACE_VSNPRINTF is set.
43561         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
43562
43563 2007-03-06  Bruno Haible  <bruno@clisp.org>
43564
43565         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
43566         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
43567
43568 2007-03-06  Bruno Haible  <bruno@clisp.org>
43569
43570         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
43571         (asinl): Declare also if HAVE_DECL_ASINL is set.
43572         (atanl): Declare also if HAVE_DECL_ATANL is set.
43573         (ceill): Declare also if HAVE_DECL_CEILL is set.
43574         (cosl): Declare also if HAVE_DECL_COSL is set.
43575         (expl): Declare also if HAVE_DECL_EXPL is set.
43576         (floorl): Declare also if HAVE_DECL_FLOORL is set.
43577         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
43578         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
43579         (logl): Declare also if HAVE_DECL_LOGL is set.
43580         (sinl): Declare also if HAVE_DECL_SINL is set.
43581         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
43582         (tanl): Declare also if HAVE_DECL_TANL is set.
43583         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
43584         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
43585         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
43586         declaration of frexpl, ldexpl.
43587         * modules/printf-frexpl (Depends-on): Add math.
43588         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
43589
43590 2007-03-05  Bruno Haible  <bruno@clisp.org>
43591
43592         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
43593         frexpl and ldexpl are declared.
43594         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
43595
43596 2007-03-05  Bruno Haible  <bruno@clisp.org>
43597
43598         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
43599         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
43600
43601 2007-03-05  Bruno Haible  <bruno@clisp.org>
43602
43603         * lib/stdio_.h: Include <stddef.h>.
43604
43605 2007-03-05  Bruno Haible  <bruno@clisp.org>
43606
43607         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
43608
43609 2007-03-05  Bruno Haible  <bruno@clisp.org>
43610
43611         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
43612         NetBSD 4, from Ralf Wildenhues.
43613
43614 2007-03-04  Bruno Haible  <bruno@clisp.org>
43615
43616         * lib/vasprintf.h: Update #if logic for the case when the functions
43617         exist but are overridden.
43618
43619 2007-03-04  Bruno Haible  <bruno@clisp.org>
43620
43621         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
43622         implementations: glibc-2.4 and MacOS X 10.3.
43623         * tests/test-vasnprintf-posix.c (test_function): Test also the case
43624         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
43625         * tests/test-vasprintf-posix.c (test_function): Likewise.
43626
43627 2007-03-04  Bruno Haible  <bruno@clisp.org>
43628
43629         * modules/vasprintf-posix-tests: New file.
43630         * tests/test-vasprintf-posix.c: New file.
43631
43632         * modules/vasprintf-posix: New file.
43633         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
43634         defined.
43635         * m4/vasprintf-posix.m4: New file.
43636         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
43637         gl_FUNC_VASPRINTF.
43638         (gl_FUNC_VASPRINTF): Invoke it.
43639         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
43640         here.
43641         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
43642
43643 2007-03-04  Bruno Haible  <bruno@clisp.org>
43644
43645         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
43646         REPLACE_GETTIMEOFDAY.
43647         * modules/sys_time (Makefile.am): Likewise.
43648         * m4/sys_time_h.m4: Likewise.
43649         * m4/gettimeofday.m4: Likewise.
43650
43651 2007-03-04  Bruno Haible  <bruno@clisp.org>
43652
43653         * modules/vasnprintf-posix-tests: New file.
43654         * tests/test-vasnprintf-posix.c: New file.
43655
43656         * modules/vasnprintf-posix: New file.
43657         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
43658         printf-frexpl.h.
43659         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
43660         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
43661         REPLACE_VASNPRINTF is defined.
43662         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
43663         gl_FUNC_VASNPRINTF.
43664         (gl_FUNC_VASNPRINTF): Invoke it.
43665         * m4/vasnprintf-posix.m4: New file.
43666         * m4/printf.m4: New file.
43667
43668 2007-03-04  Bruno Haible  <bruno@clisp.org>
43669
43670         Compile progreloc.c only if --enable-relocatable is specified.
43671         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
43672         if --enable-relocatable was specified.
43673         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
43674         lib_SOURCES.
43675
43676 2007-03-04  Jim Meyering  <jim@meyering.net>
43677
43678         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
43679         Use it consistently, rather than enumerating errno constants.
43680
43681 2007-03-04  Bruno Haible  <bruno@clisp.org>
43682
43683         * modules/xvasprintf-tests: New file.
43684         * tests/test-xvasprintf.c: New file.
43685
43686         * modules/vasprintf-tests: New file.
43687         * tests/test-vasprintf.c: New file.
43688
43689         * modules/vasnprintf-tests: New file.
43690         * tests/test-vasnprintf.c: New file.
43691
43692         * modules/vsnprintf-tests: New file.
43693         * tests/test-vsnprintf.c: New file.
43694
43695         * modules/snprintf-tests: New file.
43696         * tests/test-snprintf.c: New file.
43697
43698 2007-03-04  Bruno Haible  <bruno@clisp.org>
43699
43700         Compile relocatable.c only if --enable-relocatable is specified.
43701         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
43702         gl_RELOCATABLE_LIBRARY.
43703         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
43704         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
43705         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
43706         gl_RELOCATABLE_LIBRARY.
43707         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
43708         (Makefile.am): Remove lib_SOURCES.
43709         * modules/relocatable-lib-lgpl (configure.ac): Invoke
43710         gl_RELOCATABLE_LIBRARY.
43711         (Makefile.am): Remove lib_SOURCES.
43712         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
43713         always.
43714         * modules/relocatable-prog-wrapper (configure.ac): Invoke
43715         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
43716
43717 2007-03-04  Bruno Haible  <bruno@clisp.org>
43718
43719         * modules/argmatch-tests: New file.
43720         * tests/test-argmatch.c: New file.
43721
43722         * tests/test-allocsa.c (main): Halve the number of loop runs.
43723
43724         * modules/alloca-opt-tests: New file.
43725         * tests/test-alloca-opt.c: New file.
43726
43727 2007-03-04  Jim Meyering  <jim@meyering.net>
43728
43729         Work around difference between Linux ACLs and Solaris 10 ZFS.
43730         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
43731         for EINVAL.
43732
43733 2007-03-03  Bruno Haible  <bruno@clisp.org>
43734
43735         * modules/relocatable-prog (Depends-on): Add back progreloc's
43736         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
43737
43738 2007-03-03  Bruno Haible  <bruno@clisp.org>
43739
43740         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
43741         * modules/relocatable-lib: New file.
43742
43743 2007-03-03  Bruno Haible  <bruno@clisp.org>
43744
43745         * modules/relocatable-prog: Renamed from modules/relocatable.
43746         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
43747
43748 2007-03-03  Bruno Haible  <bruno@clisp.org>
43749
43750         * modules/relocatable-script (Files): Add doc/relocatable.texi,
43751         m4/relocatable-lib.m4.
43752         (Depends-on): Remove 'relocatable'.
43753         (configure.ac): Add gl_RELOCATABLE_NOP.
43754
43755 2007-03-03  Bruno Haible  <bruno@clisp.org>
43756
43757         * modules/relocatable-prog-wrapper: New file.
43758         * modules/relocatable (Depends-on): Add it. Remove all other
43759         dependencies except progname.
43760         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
43761
43762         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
43763         (gl_FUNC_STRERROR): Nop.
43764         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
43765
43766         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
43767         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
43768
43769         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
43770         (gl_FUNC_READLINK): Update.
43771
43772         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
43773
43774 2007-03-03  Bruno Haible  <bruno@clisp.org>
43775
43776         * lib/xreadlink.c: Include <unistd.h> unconditionally.
43777         * modules/xreadlink (Depends-on): Add unistd.
43778         * modules/xreadlink-with-size (Depends-on): Likewise.
43779
43780 2007-03-03  Bruno Haible  <bruno@clisp.org>
43781
43782         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
43783         extracted from gt_FUNC_SETENV.
43784         (gt_FUNC_SETENV): Remove macro.
43785         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
43786         remove gt_FUNC_SETENV.
43787
43788 2007-03-03  Bruno Haible  <bruno@clisp.org>
43789
43790         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
43791         ENABLE_RELOCATABLE here.
43792         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
43793
43794 2007-03-03  Bruno Haible  <bruno@clisp.org>
43795
43796         * modules/rbtreehash-list-tests (Depends-on): Add progname.
43797         * tests/test-rbtreehash_list.c: Include progname.h.
43798         (main): Call set_program_name.
43799
43800         * modules/rbtree-oset-tests (Depends-on): Add progname.
43801         * tests/test-rbtree_oset.c: Include progname.h.
43802         (main): Call set_program_name.
43803
43804         * modules/rbtree-list-tests (Depends-on): Add progname.
43805         * tests/test-rbtree_list.c: Include progname.h.
43806         (main): Call set_program_name.
43807
43808         * modules/linked-list-tests (Depends-on): Add progname.
43809         * tests/test-linked_list.c: Include progname.h.
43810         (main): Call set_program_name.
43811
43812 2007-03-03  Bruno Haible  <bruno@clisp.org>
43813
43814         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
43815         All uses of __restrict changed to _Restrict_.
43816         * lib/glob_.h (__restrict): Remove macro.
43817
43818 2007-03-02  Bruno Haible  <bruno@clisp.org>
43819
43820         * modules/gettext (configure.ac): Require gettext infrastructure
43821         from version 0.16.1.
43822
43823 2007-03-02  Bruno Haible  <bruno@clisp.org>
43824
43825         * modules/linkedhash-list-tests (Depends-on): Add progname.
43826         * tests/test-linkedhash_list.c: Include progname.h.
43827         (main): Call set_program_name.
43828
43829         * modules/carray-list-tests (Depends-on): Add progname.
43830         * tests/test-carray_list.c: Include progname.h.
43831         (main): Call set_program_name.
43832
43833         * modules/avltreehash-list-tests (Depends-on): Add progname.
43834         * tests/test-avltreehash_list.c: Include progname.h.
43835         (main): Call set_program_name.
43836
43837         * modules/avltree-oset-tests (Depends-on): Add progname.
43838         * tests/test-avltree_oset.c: Include progname.h.
43839         (main): Call set_program_name.
43840
43841         * modules/avltree-list-tests (Depends-on): Add progname.
43842         * tests/test-avltree_list.c: Include progname.h.
43843         (main): Call set_program_name.
43844
43845         * modules/array-oset-tests (Depends-on): Add progname.
43846         * tests/test-array_oset.c: Include progname.h.
43847         (main): Call set_program_name.
43848
43849         * modules/array-list-tests (Depends-on): Add progname.
43850         * tests/test-array_list.c: Include progname.h.
43851         (main): Call set_program_name.
43852
43853         * modules/argp-tests (Depends-on): Add progname.
43854         * tests/test-argp.c: Include argp.h first. Include progname.h.
43855         (main): Call set_program_name.
43856
43857 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
43858
43859         * doc/gnulib-tool.texi (Initial import): Reword description of
43860         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
43861         limited effect even if defined after the first system include.
43862
43863 2007-03-01  Bruno Haible  <bruno@clisp.org>
43864
43865         * build-aux/config.libpath: Update to libtool-1.5.22.
43866         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
43867
43868 2007-03-01  Bruno Haible  <bruno@clisp.org>
43869
43870         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
43871         foo_CFLAGS.
43872         Reported by Ralf Wildenhues.
43873
43874 2007-03-01  Bruno Haible  <bruno@clisp.org>
43875
43876         * build-aux/install-reloc: Remove object files left over by some
43877         compilers.
43878         Reported by Ralf Wildenhues.
43879
43880 2007-03-01  Bruno Haible  <bruno@clisp.org>
43881
43882         * build-aux/install-reloc: Break long lines.
43883
43884 2007-03-01  Bruno Haible  <bruno@clisp.org>
43885
43886         * doc/relocatable.texi: Document that it may not work on OpenBSD.
43887         Reported by Ralf Wildenhues.
43888
43889 2007-03-01  Bruno Haible  <bruno@clisp.org>
43890
43891         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
43892         include ordering constraints.
43893
43894 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
43895
43896         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
43897         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
43898         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
43899         as another example.
43900         * lib/time_.h: Fix misspelling.
43901         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
43902         Require gl_HEADER_TIME_H_DEFAULTS.
43903         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
43904         * m4/time_r.m4 (gl_TIME_R): Likewise.
43905         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
43906
43907 2007-03-01  Bruno Haible  <bruno@clisp.org>
43908
43909         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
43910         * m4/utimens.m4 (gl_UTIMENS): Likewise.
43911
43912 2007-03-01  Jim Meyering  <jim@meyering.net>
43913
43914         * modules/xreadlink (Maintainer): Add my name.
43915         * modules/xreadlink-with-size (Depends-on): Alphabetize.
43916
43917 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
43918             Bruno Haible  <bruno@clisp.org>
43919
43920         * build-aux/install-reloc: Compile also c-ctype.c.
43921         * build-aux/relocatable.sh.in: New file.
43922         * doc/relocatable.texi: New file.
43923         * doc/relocatable-maint.texi: New file.
43924         * doc/gnulib.texi: Include relocatable-maint.texi.
43925         * lib/progreloc.c: Include unistd.h unconditionally.
43926         * lib/relocwrapper.c: Include unistd.h unconditionally.
43927         Include c-ctype.h.
43928         (add_dotbin): Use c_tolower.
43929         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
43930         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
43931         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
43932         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
43933         to m4/relocatable-lib.m4.
43934         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
43935         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
43936         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
43937         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
43938         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
43939         * modules/relocatable: New file.
43940         * modules/relocatable-lib: New file.
43941         * modules/relocatable-script: New file.
43942
43943 2007-02-28  Bruno Haible  <bruno@clisp.org>
43944
43945         Import --enable-relocatable infrastructure.
43946         * build-aux/config.libpath: New file, from GNU gettext.
43947         * build-aux/install-reloc: New file, from GNU gettext.
43948         * build-aux/reloc-ldflags: New file, from GNU gettext.
43949         * lib/relocatable.h: New file, from GNU gettext.
43950         * lib/relocatable.c: New file, from GNU gettext.
43951         * lib/relocwrapper.c: New file, from GNU gettext.
43952         * m4/relocatable.m4: New file, from GNU gettext.
43953
43954 2007-02-28  Bruno Haible  <bruno@clisp.org>
43955
43956         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
43957
43958         * modules/xreadlink: New file, from GNU gettext with modifications.
43959         * lib/xreadlink.c: New file, from GNU gettext.
43960         * lib/xreadlink.h: Add comments.
43961         (xreadlink): New declaration.
43962
43963         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
43964         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
43965         lib/xreadlink-with-size.c.
43966         (configure.ac): Remove gl_XREADLINK invocation.
43967         (Makefile.am): Augment lib_SOURCES.
43968         * m4/xreadlink.m4: Remove file.
43969         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
43970         (xreadlink_with_size): Renamed from xreadink.
43971         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
43972         * modules/canonicalize (Depends-on): Replace xreadlink with
43973         xreadlink-with-size.
43974         * lib/canonicalize.c (canonicalize_filename_mode): Update.
43975
43976 2007-02-25  Jim Meyering  <jim@meyering.net>
43977
43978         * build-aux/announce-gen: When complaining about excess arguments,
43979         list them.
43980
43981 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
43982
43983         * README: Document signed integer overflow situation more
43984         accurately.
43985
43986 2007-02-25  Bruno Haible  <bruno@clisp.org>
43987
43988         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
43989         'a' or 'A' conversion.
43990
43991 2007-02-25  Bruno Haible  <bruno@clisp.org>
43992
43993         * modules/filename: Renamed from modules/pathname.
43994         (Files): Replace lib/pathname.h with lib/filename.h. Replace
43995         lib/concatpath.c with lib/concat-filename.c.
43996         (Makefile.am): Update.
43997         (Include): Replace pathname.h with filename.h.
43998         * lib/filename.h: Renamed from lib/pathname.h.
43999         (concatenated_filename): Renamed from concatenated_pathname.
44000         * lib/concat-filename.c: Renamed from lib/concatpath.c.
44001         (concatenated_filename): Renamed from concatenated_pathname.
44002         * lib/findprog.c: Include filename.h instead of pathname.h.
44003         (find_in_path): Update.
44004         * lib/javacomp.c: Include filename.h instead of pathname.h.
44005         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
44006         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
44007         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
44008         is_oldgcj_14_13_usable, is_javac_usable): Update.
44009         * lib/javaexec.c: Include filename.h instead of pathname.h.
44010         (execute_java_class): Update.
44011         * modules/findprog: Update.
44012         * modules/javacomp: Update.
44013         * modules/javaexec: Update.
44014         * MODULES.html.sh (File system functions): Add 'filename', remove
44015         'pathname'.
44016
44017 2007-02-25  Bruno Haible  <bruno@clisp.org>
44018
44019         * modules/printf-frexpl-tests: New file.
44020         * tests/test-printf-frexpl.c: New file.
44021
44022         * modules/printf-frexpl: New file.
44023         * lib/printf-frexpl.h: New file.
44024         * lib/printf-frexpl.c: New file.
44025         * m4/printf-frexpl.m4: New file.
44026
44027 2007-02-25  Bruno Haible  <bruno@clisp.org>
44028
44029         * modules/printf-frexp-tests: New file.
44030         * tests/test-printf-frexp.c: New file.
44031
44032         * modules/printf-frexp: New file.
44033         * lib/printf-frexp.h: New file.
44034         * lib/printf-frexp.c: New file.
44035         * m4/printf-frexp.m4: New file.
44036
44037 2007-02-25  Bruno Haible  <bruno@clisp.org>
44038
44039         Assume automake >= 1.10 for the tests.
44040         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
44041         * modules/arctwo-tests: Likewise.
44042         * modules/argp-tests: Likewise.
44043         * modules/avltree-list-tests: Likewise.
44044         * modules/avltree-oset-tests: Likewise.
44045         * modules/avltreehash-list-tests: Likewise.
44046         * modules/carray-list-tests: Likewise.
44047         * modules/crc-tests: Likewise.
44048         * modules/des-tests: Likewise.
44049         * modules/gc-arcfour-tests: Likewise.
44050         * modules/gc-arctwo-tests: Likewise.
44051         * modules/gc-des-tests: Likewise.
44052         * modules/gc-hmac-md5-tests: Likewise.
44053         * modules/gc-hmac-sha1-tests: Likewise.
44054         * modules/gc-md2-tests: Likewise.
44055         * modules/gc-md4-tests: Likewise.
44056         * modules/gc-md5-tests: Likewise.
44057         * modules/gc-pbkdf2-sha1-tests: Likewise.
44058         * modules/gc-rijndael-tests: Likewise.
44059         * modules/gc-sha1-tests: Likewise.
44060         * modules/gc-tests: Likewise.
44061         * modules/getaddrinfo-tests: Likewise.
44062         * modules/hmac-md5-tests: Likewise.
44063         * modules/hmac-sha1-tests: Likewise.
44064         * modules/linked-list-tests: Likewise.
44065         * modules/linkedhash-list-tests: Likewise.
44066         * modules/lock-tests: Likewise.
44067         * modules/md2-tests: Likewise.
44068         * modules/md4-tests: Likewise.
44069         * modules/md5-tests: Likewise.
44070         * modules/rbtree-list-tests: Likewise.
44071         * modules/rbtree-oset-tests: Likewise.
44072         * modules/rbtreehash-list-tests: Likewise.
44073         * modules/read-file-tests: Likewise.
44074         * modules/rijndael-tests: Likewise.
44075         * modules/stdint-tests: Likewise.
44076         * modules/tls-tests: Likewise.
44077
44078 2007-02-24  Bruno Haible  <bruno@clisp.org>
44079
44080         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
44081         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
44082         function; instead check whether isnan with a double argument links.
44083         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
44084         function; instead check whether isnan with a 'long double' argument
44085         links.
44086         Reported by Eric Blake <ebb9@byu.net>.
44087
44088 2007-02-24  Bruno Haible  <bruno@clisp.org>
44089
44090         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
44091         defined.
44092         * lib/isnanl.c: Remove all code. Just include isnan.c.
44093         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
44094
44095 2007-02-25  Jim Meyering  <jim@meyering.net>
44096
44097         Avoid conflicting types for 'unsetenv' on FreeBSD.
44098         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
44099         conflicting with FreeBSD's (5.0 and 6.1) function declaration
44100         in stdlib.h.
44101
44102 2007-02-24  Bruno Haible  <bruno@clisp.org>
44103
44104         * modules/isnanl-nolibm-tests: New file.
44105         * tests/test-isnanl.c: New file.
44106
44107         * modules/isnanl-nolibm: New file.
44108         * lib/isnanl.h: New file.
44109         * lib/isnanl.c: New file.
44110         * m4/isnanl.m4: New file.
44111
44112 2007-02-24  Bruno Haible  <bruno@clisp.org>
44113
44114         * modules/isnan-nolibm-tests: New file.
44115         * tests/test-isnan.c: New file.
44116
44117         * modules/isnan-nolibm: New file.
44118         * lib/isnan.h: New file.
44119         * lib/isnan.c: New file.
44120         * m4/isnan.m4: New file.
44121
44122 2007-02-24  Bruno Haible  <bruno@clisp.org>
44123
44124         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
44125         assume that an exponent fits in 20 bits.
44126
44127 2007-02-24  Jim Meyering  <jim@meyering.net>
44128
44129         * m4/regex.m4: Update the description of the configure-time option,
44130         --without-included-regex, to state accurately what the defaults are,
44131         and perhaps to give people an idea why using this option is risky.
44132
44133 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
44134
44135         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
44136         loops on small arguments.  This attempts to avoid the problem
44137         Bruno Haible reported for AIX 4.3.2 in
44138         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
44139
44140 2007-02-23  Bruno Haible  <bruno@clisp.org>
44141
44142         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
44143         Needed for help2man.
44144
44145 2007-02-23  Karl Berry  <karl@gnu.org>
44146
44147         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
44148         exists, foo.h should be cvs-ignored, not committed.
44149
44150 2007-02-23  Eric Blake  <ebb9@byu.net>
44151
44152         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
44153         * lib/stat-time.h (includes): Likewise.
44154         * lib/utimecmp.c (includes): Likewise.
44155         * lib/utimens.h (includes): Likewise.
44156         * lib/getdate.y (includes): Also include "timespec.h" for use
44157         internal to the module.
44158         * modules/utimens (Depends-on): Revert yesterday's patch.
44159         * modules/nanosleep (Depends-on): Add missing dependency.
44160
44161 2007-02-22  Bruno Haible  <bruno@clisp.org>
44162
44163         * lib/glob.c: Don't include getlogin_r.h.
44164
44165 2007-02-22  Jim Meyering  <jim@meyering.net>
44166
44167         * modules/utimens (Depends-on): Add timespec, required for
44168         utimens.h's inclusion of timespec.h.
44169
44170 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
44171
44172         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
44173         long unreadable paths in GNU/Linux.  Problem reported by Andreas
44174         Schwab in
44175         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
44176         I'll try to think of a better way to fix the Solaris problem.
44177
44178         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
44179         like glibc; on Solaris 10, it fails with errno == EINVAL.
44180         POSIX says the behavior is unspecified if the first argument is NULL,
44181         so play it safe and never pass NULL to the system getcwd.
44182
44183 2007-02-21  Jim Meyering  <jim@meyering.net>
44184
44185         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
44186         of gettimeofday.  It would conflict with the one now always
44187         provided via sys_time_.h.  Reported by Matthew Woehlke, as
44188         an IRIX 6.5 build failure.
44189
44190 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
44191
44192         Minor fixups to port to Solaris 10 with Sun C 5.8.
44193         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
44194         * modules/getcwd (Depends-on): Add dirfd.
44195         * lib/putenv.c (putenv): #undef it.
44196         (rpl_putenv): New decl.
44197         (malloc, free): Include <stdlib.h> rather than prototyping separately.
44198
44199 2007-02-20  Bruno Haible  <bruno@clisp.org>
44200
44201         * modules/stdio-tests: New file.
44202         * tests/test-stdio.c: New file.
44203
44204         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
44205         (Depends-on): Add stdio.
44206         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
44207         (Include): Use <stdio.h> instead of vsnprintf.h.
44208         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
44209         HAVE_DECL_VSNPRINTF.
44210         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
44211
44212         * modules/snprintf (Files): Remove lib/snprintf.h.
44213         (Depends-on): Add stdio.
44214         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
44215         (Include): Use <stdio.h> instead of snprintf.h.
44216         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
44217         HAVE_DECL_SNPRINTF.
44218         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
44219         * lib/getaddrinfo.c: Likewise.
44220
44221         * modules/stdio: New file.
44222         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
44223         * lib/snprintf.h: Remove file.
44224         * lib/vsnprintf.h: Remove file.
44225         * lib/.cppi-disable: Remove snprintf.h.
44226         * m4/stdio_h.m4: New file.
44227         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
44228
44229 2007-02-20  Jim Meyering  <jim@meyering.net>
44230
44231         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
44232         used by e.g., mingw.  From Bruno Haible.
44233
44234 2007-02-19  Bruno Haible  <bruno@clisp.org>
44235
44236         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
44237         warnings.
44238         Reported by Ben Pfaff <blp@cs.stanford.edu>.
44239
44240 2007-02-19  Bruno Haible  <bruno@clisp.org>
44241
44242         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
44243         from mingw users.
44244
44245 2007-02-19  Bruno Haible  <bruno@clisp.org>
44246
44247         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
44248         warnings.
44249         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
44250
44251 2007-02-19  Jim Meyering  <jim@meyering.net>
44252
44253         Don't use FD after a successful "fdopendir (fd)".
44254         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
44255         Reset it by calling dirfd on the just-obtained DIR*.
44256
44257         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
44258         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
44259
44260 2007-02-18  Bruno Haible  <bruno@clisp.org>
44261
44262         * lib/readlink.c: Include <unistd.h>.
44263         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
44264         HAVE_READLINK.
44265         * modules/readlink (Depends-on): Add unistd.
44266         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
44267         (Include): Add <unistd.h>.
44268
44269         * lib/getlogin_r.h: Remove file.
44270         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
44271         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
44272         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
44273         HAVE_DECL_GETLOGIN_R.
44274         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
44275         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
44276         (Include): Use <unistd.h> instead of getlogin_r.h.
44277
44278         * lib/getcwd.h: Remove file.
44279         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
44280         * lib/xgetcwd.c: Likewise.
44281         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
44282         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
44283         * modules/getcwd (Files): Remove lib/getcwd.h.
44284         (Depends-on): Add unistd.
44285         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
44286         (Include): Use <unistd.h> instad of getcwd.h.
44287
44288         * lib/ftruncate.c: Include <unistd.h> first.
44289         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
44290         Set HAVE_FTRUNCATE.
44291         * modules/ftruncate (Depends-on): Add unistd.
44292         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
44293
44294         * lib/fchdir.c: Include <unistd.h> first.
44295         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
44296         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
44297         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
44298         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
44299         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
44300
44301         * lib/dup2.c: Include <unistd.h> first.
44302         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
44303         HAVE_DUP2.
44304         * modules/dup2 (Depends-on): Add unistd.
44305         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
44306
44307         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
44308         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
44309         REPLACE_CHOWN. Don't define chown as a macro here.
44310         * modules/chown (Depends-on): Add unistd.
44311         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
44312
44313         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
44314         Add definition for GL_LINK_WARNING.
44315         (chown, dup2): New declarations.
44316         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
44317         link warning.
44318         (ftruncate): New declaration.
44319         (getcwd): New declaration, taken from old getcwd.h.
44320         (getlogin_r): New declaration, taken from old getlogin_r.h.
44321         (readlink): New declaration.
44322         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
44323         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
44324         (gl_PREREQ_UNISTD): Remove macro.
44325         (gl_UNISTD_MODULE_INDICATOR): New macro.
44326         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
44327         many new variables. Don't set UNISTD_H.
44328         * modules/unistd (Description): Change.
44329         (Depends-on): Add link-warning.
44330         (configure.ac): Update.
44331         (Makefile.am): Create unistd.h always. Substitute many new variables
44332         into it.
44333
44334 2007-02-18  Bruno Haible  <bruno@clisp.org>
44335
44336         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
44337         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
44338         HAVE_GETSUBOPT.
44339         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
44340         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
44341         * lib/getsubopt.h: Remove file.
44342         * modules/getsubopt (Files): Remove lib/getsubopt.h.
44343         (Depends-on): Add stdlib.
44344         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
44345         (Includes): Use <stdlib.h> instead of getsubopt.h.
44346         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
44347         Set HAVE_GETSUBOPT.
44348         * lib/getsubopt.c: Don't include getsubopt.h.
44349
44350 2007-02-18  Bruno Haible  <bruno@clisp.org>
44351
44352         * modules/fchdir (Depends-on): Add dup2.
44353
44354 2007-02-18  Bruno Haible  <bruno@clisp.org>
44355
44356         * lib/stdlib_.h: Handle glibc's special invocation convention
44357         specially.
44358
44359 2007-02-18  Bruno Haible  <bruno@clisp.org>
44360
44361         * modules/stdlib-tests: New file.
44362         * tests/test-stdlib.c: New file.
44363
44364         * modules/mkstemp (Files): Remove lib/mkstemp.h.
44365         (Depends-on): Add stdlib.
44366         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
44367         (Includes): Use <stdlib.h> instead of mkstemp.h.
44368         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
44369         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
44370         * lib/mkstemp.c: Don't include mkstemp.h.
44371         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
44372         * lib/stdlib--.h: Don't include mkstemp.h.
44373
44374         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
44375         (Depends-on): Add stdlib.
44376         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
44377         (Includes): Use <stdlib.h> instead of mkdtemp.h.
44378         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
44379         HAVE_MKDTEMP.
44380         * lib/mkdtemp.c: Don't include mkdtemp.h.
44381         * lib/clean-temp.c: Don't include mkdtemp.h.
44382
44383         * modules/exit (Files): Remove lib/exit.h.
44384         (Depends-on): Add stdlib.
44385         (Makefile.am): Remove lib_SOURCES.
44386         (Include): Use <stdlib.h> instead of exit.h.
44387         * lib/argmatch.c: Don't include exit.h.
44388         * lib/execute.c: Likewise.
44389         * lib/pagealign_alloc.c: Likewise.
44390         * lib/pipe.c: Likewise.
44391         * lib/wait-process.c: Likewise.
44392         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
44393         * lib/exitfail.c: Likewise.
44394         * lib/savewd.c: Likewise.
44395         * lib/xsetenv.c: Likewise.
44396
44397         * modules/stdlib: New file.
44398         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
44399         and extra comments about mkstemp().
44400         * lib/exit.h: Remove file.
44401         * lib/mkdtemp.h: Remove file.
44402         * lib/mkstemp.h: Remove file.
44403         * m4/stdlib_h.m4: New file.
44404         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
44405
44406 2007-02-18  Bruno Haible  <bruno@clisp.org>
44407
44408         * modules/math-tests: New file.
44409         * tests/test-math.c: New file.
44410
44411         * modules/math: New file.
44412         * modules/mathl (Files): Remove lib/mathl.h.
44413         (Depends-on): Add math.
44414         (Makefile.am): Don't mention mathl.h.
44415         (Include): Use <math.h> instead of mathl.h.
44416         * lib/math_.h: New file.
44417         * lib/mathl.h: Remove file.
44418         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
44419         mathl.h.
44420         * lib/asinl.c: Likewise.
44421         * lib/atanl.c: Likewise.
44422         * lib/ceill.c: Likewise.
44423         * lib/cosl.c: Likewise.
44424         * lib/expl.c: Likewise.
44425         * lib/floorl.c: Likewise.
44426         * lib/frexpl.c: Likewise.
44427         * lib/ldexpl.c: Likewise.
44428         * lib/logl.c: Likewise.
44429         * lib/sincosl.c: Likewise.
44430         * lib/sinl.c: Likewise.
44431         * lib/sqrtl.c: Likewise.
44432         * lib/tanl.c: Likewise.
44433         * lib/trigl.c: Likewise.
44434         * m4/math_h.m4: New file.
44435         * MODULES.html.sh (Mathematics): Add math.
44436
44437 2007-02-17  Bruno Haible  <bruno@clisp.org>
44438
44439         * modules/wctype-tests: New file.
44440         * tests/test-wctype.c: New file.
44441
44442         * modules/wchar-tests: New file.
44443         * tests/test-wchar.c: New file.
44444
44445         * modules/unistd-tests: New file.
44446         * tests/test-unistd.c: New file.
44447
44448         * modules/time-tests: New file.
44449         * tests/test-time.c: New file.
44450
44451         * modules/sysexits-tests: New file.
44452         * tests/test-sysexits.c: New file.
44453
44454         * modules/sys_time-tests: New file.
44455         * tests/test-sys_time.c: New file.
44456
44457         * modules/sys_stat-tests: New file.
44458         * tests/test-sys_stat.c: New file.
44459
44460         * modules/sys_socket-tests: New file.
44461         * tests/test-sys_socket.c: New file.
44462
44463         * modules/sys_select-tests: New file.
44464         * tests/test-sys_select.c: New file.
44465
44466         * modules/string-tests: New file.
44467         * tests/test-string.c: New file.
44468
44469         * modules/stdbool-tests: New file.
44470         * tests/test-stdbool.c: New file.
44471
44472         * modules/netinet_in-tests: New file.
44473         * tests/test-netinet_in.c: New file.
44474
44475         * modules/inttypes-tests: New file.
44476         * tests/test-inttypes.c: New file.
44477
44478         * modules/fcntl-tests: New file.
44479         * tests/test-fcntl.c: New file.
44480
44481         * modules/byteswap-tests: New file.
44482         * tests/test-byteswap.c: New file.
44483
44484         * modules/arpa_inet-tests: New file.
44485         * tests/test-arpa_inet.c: New file.
44486
44487 2007-02-17  Bruno Haible  <bruno@clisp.org>
44488
44489         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
44490         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
44491         if the corresponding module is not enabled. Emit link warnings if
44492         the function is used nevertheless.
44493         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
44494         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
44495         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
44496         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
44497         * modules/inttypes (Depends-on): Add link-warning.
44498         (Makefile.am): Copy the contents of build-aux/link-warning.h into
44499         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
44500         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
44501         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
44502         * modules/imaxdiv (configure.ac): Likewise.
44503         * modules/strtoimax (configure.ac): Likewise.
44504         * modules/strtoumax (configure.ac): Likewise.
44505
44506 2007-02-17  Bruno Haible  <bruno@clisp.org>
44507
44508         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
44509         gl_STRING_MODULE_INDICATOR_DEFAULTS.
44510         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
44511         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
44512
44513 2007-02-17  Bruno Haible  <bruno@clisp.org>
44514
44515         * modules/link-warning: New file.
44516         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
44517         * lib/string_.h (GL_LINK_WARNING): Remove definition.
44518         * modules/string (Depends-on): Add link-warning.
44519         (Makefile.am): Copy the contents of build-aux/link-warning.h into
44520         string.h.
44521         * MODULES.html.sh (Support for building libraries and executables): Add
44522         link-warning.
44523
44524 2007-02-17  Bruno Haible  <bruno@clisp.org>
44525
44526         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
44527         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
44528         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
44529         long lines.
44530
44531 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
44532             Bruno Haible  <bruno@clisp.org>
44533
44534         * modules/tmpfile: New file.
44535         * lib/tmpfile.c: New file.
44536         * m4/tmpfile.m4: New file.
44537         * MODULES.html.sh (func_all_modules): New section "Input/output".
44538
44539 2007-02-15  Bruno Haible  <bruno@clisp.org>
44540
44541         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
44542         (supports_delete_on_close): New function.
44543         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
44544
44545 2007-02-14  Bruno Haible  <bruno@clisp.org>
44546
44547         * modules/mbspcasecmp-tests: New file.
44548         * tests/test-mbspcasecmp.sh: New file.
44549         * tests/test-mbspcasecmp.c: New file.
44550
44551         New module mbspcasecmp.
44552         * modules/mbspcasecmp: New file.
44553         * lib/mbspcasecmp.c: New file.
44554         * lib/string_.h (strncasecmp): Change warning message.
44555         (mbspcasecmp): New declaration.
44556         * m4/mbspcasecmp.m4: New file.
44557         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
44558         GNULIB_MBSPCASECMP.
44559         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
44560         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
44561
44562 2007-02-14  Bruno Haible  <bruno@clisp.org>
44563
44564         * modules/mbsncasecmp-tests: New file.
44565         * tests/test-mbsncasecmp.sh: New file.
44566         * tests/test-mbsncasecmp.c: New file.
44567
44568         New module mbsncasecmp.
44569         * modules/mbsncasecmp: New file.
44570         * lib/mbsncasecmp.c: New file.
44571         * lib/string_.h (mbsncasecmp): New declaration.
44572         * m4/mbsncasecmp.m4: New file.
44573         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
44574         GNULIB_MBSNCASECMP.
44575         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
44576         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
44577
44578 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
44579
44580         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
44581         Verify that it doesn't overlap with our flags.
44582         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
44583         do not have the desired effect in multibyte locales; instead, use
44584         mbscasecmp.
44585         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
44586         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
44587         we don't require GNU fnmatch ourselves (if our users require it, they
44588         should do so explicitly).
44589
44590         Fix regex code so it doesn't rely on strcasecmp.
44591         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
44592         Otherwise, include gnulib's langinfo.h.
44593         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
44594         undesirable behavior in non-C locales.  Instead, rely on localecharset.
44595         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
44596         * modules/regex (FILES): Remove m4/codeset.m4.
44597         (Depends-on): Add localcharset.  Remove strcase.
44598
44599 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44600
44601         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
44602         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
44603
44604 2007-02-13  Bruno Haible  <bruno@clisp.org>
44605
44606         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
44607         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
44608
44609 2007-02-12  Bruno Haible  <bruno@clisp.org>
44610
44611         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
44612         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
44613         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
44614         time warning rather than a link error.
44615
44616 2007-02-12  Bruno Haible  <bruno@clisp.org>
44617
44618         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
44619         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
44620         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
44621
44622 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
44623
44624         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
44625         args, not 2.
44626
44627 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
44628
44629         New module 'time', so that apps can include <time.h> as per
44630         POSIX and GNU instead of separate include files like time_r.h
44631         and timegm.h.  This implementation tries out a simpler approach
44632         for replacing decls in standard include files (as compared to
44633         the string module), somewhat as an experiment.
44634
44635         * config/srclist.txt: Comment out mktime.c for now.
44636         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
44637         since it doesn't apply any more.  Use generic wording instead.
44638         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
44639         'time'.
44640         * lib/time_.h, m4/time_h.m4, modules/time: New files.
44641         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
44642         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
44643         Don't include <sys/types.h>; no longer needed since we assume C89.
44644         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
44645         * lib/strftime.c: Likewise.
44646         * lib/time_r.c: Likewise.
44647         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
44648         * lib/nanosleep.c: Include <time.h> first, to check interface.
44649         * lib/strptime.c: Likewise.
44650         * lib/time_r.c: Likewise.
44651         * lib/timegm.c: Likewise.
44652         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
44653         needed.
44654         * lib/timegm.c: Don't include timegm.h; no longer needed.
44655         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
44656         time.h now handles any problems in that area.
44657         (struct timespec, nanosleep): Remove; time.h now arranges for these.
44658         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
44659         that time.h defines struct timespec.
44660         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
44661         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
44662         handles that.
44663         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
44664         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
44665         needed.  Set REPLACE_LOCALTIME.
44666         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
44667         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
44668         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
44669         nanosleep; time_h.m4 now does that.  Don't require
44670         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
44671         module handles this now.
44672         * modules/getdate (Depends-on): Remove timespec.  Add time.
44673         * modules/nanosleep (Depends-on): Likewise.
44674         * modules/stat-time (Depends-on): Likewise.
44675         * modules/nanosleep (Include): Include time.h, not timespec.h.
44676         * modules/strptime (Files): Remove lib/strptime.h.
44677         (Depends-on): Add extensions, time.
44678         (Include): Include time.h, not strptime.h.
44679         * modules/time_r (Files): Remove lib/time_r.h.
44680         (Depends-on): Add time.
44681         (Include): Include time.h, not time_r.h.
44682         * modules/timegm: Likewise.
44683         * modules/timespec (Description): Now does timespec-related decls
44684         of our own, instead of struct timespec itself.
44685         (Depends-on): Add time; remove extensions.
44686         (Maintainer): Add self.
44687         * modules/utimecmp (Depends-on): Add time; remove timespec.
44688         * modules/utimens (Depends-on): Likewise.
44689         * modules/xnanosleep (Depends-on): Likewise.
44690
44691 2007-02-11  Bruno Haible  <bruno@clisp.org>
44692
44693         * lib/c-strstr.c: Include allocsa.h.
44694         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
44695         * lib/c-strcasestr.c: Include allocsa.h.
44696         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
44697         * lib/strcasestr.c: Include allocsa.h.
44698         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
44699         * lib/mbsstr.c: Include allocsa.h.
44700         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
44701         allocsa/freesa instead of malloc/free.
44702         * lib/mbscasestr.c: Include allocsa.h.
44703         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
44704         allocsa/freesa instead of malloc/free.
44705         * modules/c-strstr (Depends-on): Add allocsa.
44706         * modules/c-strcasestr (Depends-on): Likewise.
44707         * modules/strcasestr (Depends-on): Likewise.
44708         * modules/mbsstr (Depends-on): Likewise.
44709         * modules/mbscasestr (Depends-on): Likewise.
44710
44711 2007-02-11  Bruno Haible  <bruno@clisp.org>
44712
44713         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
44714
44715         * modules/mbsspn-tests: New file.
44716         * tests/test-mbsspn.sh: New file.
44717         * tests/test-mbsspn.c: New file.
44718
44719 2007-02-11  Bruno Haible  <bruno@clisp.org>
44720
44721         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
44722
44723         * modules/mbspbrk-tests: New file.
44724         * tests/test-mbspbrk.sh: New file.
44725         * tests/test-mbspbrk.c: New file.
44726
44727 2007-02-11  Bruno Haible  <bruno@clisp.org>
44728
44729         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
44730         unneeded cast.
44731
44732         * modules/mbscspn-tests: New file.
44733         * tests/test-mbscspn.sh: New file.
44734         * tests/test-mbscspn.c: New file.
44735
44736 2007-02-11  Bruno Haible  <bruno@clisp.org>
44737
44738         * modules/mbscasecmp-tests: New file.
44739         * tests/test-mbscasecmp.sh: New file.
44740         * tests/test-mbscasecmp.c: New file.
44741
44742 2007-02-11  Bruno Haible  <bruno@clisp.org>
44743
44744         Ensure O(n) worst-case complexity of mbscasestr.
44745         * lib/mbscasestr.c: Include stdbool.h.
44746         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
44747         functions.
44748         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
44749         the bookkeeping indicates that it's worth it.
44750         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
44751
44752         * modules/mbscasestr-tests: New file.
44753         * tests/test-mbscasestr1.c: New file.
44754         * tests/test-mbscasestr2.sh: New file.
44755         * tests/test-mbscasestr2.c: New file.
44756         * tests/test-mbscasestr3.sh: New file.
44757         * tests/test-mbscasestr3.c: New file.
44758         * tests/test-mbscasestr4.sh: New file.
44759         * tests/test-mbscasestr4.c: New file.
44760         * m4/locale-tr.m4: New file.
44761
44762 2007-02-11  Bruno Haible  <bruno@clisp.org>
44763
44764         Ensure O(n) worst-case complexity of mbsstr.
44765         * lib/mbsstr.c: Include stdbool.h.
44766         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
44767         functions.
44768         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
44769         bookkeeping indicates that it's worth it.
44770         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
44771
44772         * modules/mbsstr-tests: New file.
44773         * tests/test-mbsstr1.c: New file.
44774         * tests/test-mbsstr2.sh: New file.
44775         * tests/test-mbsstr2.c: New file.
44776         * tests/test-mbsstr3.sh: New file.
44777         * tests/test-mbsstr3.c: New file.
44778         * m4/locale-fr.m4: New file.
44779
44780 2007-02-11  Bruno Haible  <bruno@clisp.org>
44781
44782         * lib/mbsrchr.c (mbsrchr): Fix bug.
44783
44784         * modules/mbsrchr-tests: New file.
44785         * tests/test-mbsrchr.sh: New file.
44786         * tests/test-mbsrchr.c: New file.
44787
44788 2007-02-11  Bruno Haible  <bruno@clisp.org>
44789
44790         * lib/mbschr.c (mbschr): Fix bug.
44791
44792         * modules/mbschr-tests: New file.
44793         * tests/test-mbschr.sh: New file.
44794         * tests/test-mbschr.c: New file.
44795         * m4/locale-zh.m4: New file.
44796
44797 2007-02-11  Bruno Haible  <bruno@clisp.org>
44798
44799         Support for copying multibyte string iterators.
44800         * lib/mbiter.h: Include <string.h>.
44801         (mbiter_multi_copy): New function.
44802         (mbi_copy): New macro.
44803         * lib/mbuiter.h: Include <string.h>.
44804         (mbuiter_multi_copy): New function.
44805         (mbui_copy): New macro.
44806
44807 2007-02-11  Bruno Haible  <bruno@clisp.org>
44808
44809         New module mbslen.
44810         * modules/mbslen: New file.
44811         * lib/mbslen.c: New file.
44812         * lib/string_.h (mbslen): New declaration.
44813         * m4/mbslen.m4: New file.
44814         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
44815         GNULIB_MBSLEN.
44816         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
44817         * MODULES.html.sh (Internationalization functions): Add mbslen.
44818
44819 2007-02-11  Bruno Haible  <bruno@clisp.org>
44820
44821         Ensure O(n) worst-case complexity of strcasestr substitute.
44822         * lib/strcasestr.c: Include stdbool.h.
44823         (knuth_morris_pratt): New function.
44824         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
44825         bookkeeping indicates that it's worth it.
44826         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
44827
44828         * modules/strcasestr-tests: New file.
44829         * tests/test-strcasestr.c: New file.
44830
44831 2007-02-11  Bruno Haible  <bruno@clisp.org>
44832
44833         Ensure O(n) worst-case complexity of c_strcasestr.
44834         * lib/c-strcasestr.c: Include stdbool.h, string.h.
44835         (knuth_morris_pratt): New function.
44836         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
44837         the bookkeeping indicates that it's worth it.
44838         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
44839
44840         * modules/c-strcasestr-tests: New file.
44841         * tests/test-c-strcasestr.c: New file.
44842
44843 2007-02-11  Bruno Haible  <bruno@clisp.org>
44844
44845         Ensure O(n) worst-case complexity of c_strstr.
44846         * lib/c-strstr.c: Include stdbool.h, string.h.
44847         (knuth_morris_pratt): New function.
44848         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
44849         bookkeeping indicates that it's worth it.
44850         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
44851
44852         * lib/c-strstr.c: Complete rewrite for maintainability.
44853
44854         * modules/c-strstr-tests: New file.
44855         * tests/test-c-strstr.c: New file.
44856
44857 2007-02-11  Bruno Haible  <bruno@clisp.org>
44858
44859         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
44860         5.2.1 and earlier, whereby \055 was treated just like the range
44861         delimiter '-'.
44862         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
44863
44864 2007-02-08  Bruno Haible  <bruno@clisp.org>
44865
44866         * modules/regex (Depends-on): Add stdbool.
44867         Reported by Dalibor Topic <robilad@kaffe.org>.
44868
44869 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
44870
44871         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
44872         Prefer returning from main to exiting from it.
44873         Remove unnecessary parens after sizeof.
44874
44875 2007-02-05  Bruno Haible  <bruno@clisp.org>
44876
44877         New module mbssep.
44878         * modules/mbssep: New file.
44879         * lib/mbssep.c: New file.
44880         * lib/string_.h (strsep): Add a conditional link warning.
44881         (mbssep): New declaration.
44882         * m4/mbssep.m4: New file.
44883         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
44884         GNULIB_MBSSEP.
44885         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
44886         * MODULES.html.sh (Internationalization functions): Add mbssep.
44887
44888 2007-02-05  Bruno Haible  <bruno@clisp.org>
44889
44890         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
44891         Optimize search in case of 1 delimiter.
44892
44893 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
44894
44895         * lib/acl.h: Include sys/types.h before sys/acl.h.
44896
44897 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
44898
44899         Merge upstream fix for glibc bugzilla #3957:
44900
44901         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
44902
44903         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
44904         bit for RE_HAT_LISTS_NOT_NEWLINE.
44905         (build_charclass_op): Remove bogus comment.
44906
44907 2007-02-05  Simon Josefsson  <simon@josefsson.org>
44908
44909         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
44910
44911 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
44912
44913         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
44914         * lib/memmem.c [!defined _LIBC]: Include config.h.
44915
44916 2007-02-04  Bruno Haible  <bruno@clisp.org>
44917
44918         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
44919         warning message.
44920
44921 2007-02-04  Bruno Haible  <bruno@clisp.org>
44922
44923         New module mbstok_r.
44924         * modules/mbstok_r: New file.
44925         * lib/mbstok_r.c: New file.
44926         * lib/string_.h (strtok_r): Change argument names to match the
44927         comments. Add a conditional link warning.
44928         (mbstok_r): New declaration.
44929         * m4/mbstok_r.m4: New file.
44930         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
44931         GNULIB_MBSTOK_R.
44932         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
44933         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
44934
44935 2007-02-04  Bruno Haible  <bruno@clisp.org>
44936
44937         New module mbsspn.
44938         * modules/mbsspn: New file.
44939         * lib/mbsspn.c: New file.
44940         * lib/string_.h (strspn): Add a conditional link warning.
44941         (mbsspn): New declaration.
44942         * m4/mbsspn.m4: New file.
44943         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
44944         GNULIB_MBSSPN.
44945         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
44946         * MODULES.html.sh (Internationalization functions): Add mbsspn.
44947
44948 2007-02-04  Bruno Haible  <bruno@clisp.org>
44949
44950         New module mbspbrk.
44951         * modules/mbspbrk: New file.
44952         * lib/mbspbrk.c: New file.
44953         * lib/string_.h (strpbrk): Add a conditional link warning.
44954         (mbspbrk): New declaration.
44955         * m4/mbspbrk.m4: New file.
44956         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
44957         GNULIB_MBSPBRK.
44958         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
44959         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
44960
44961 2007-02-04  Bruno Haible  <bruno@clisp.org>
44962
44963         New module mbscspn.
44964         * modules/mbscspn: New file.
44965         * lib/mbscspn.c: New file.
44966         * lib/string_.h (strcspn): Add a conditional link warning.
44967         (mbscspn): New declaration.
44968         * m4/mbscspn.m4: New file.
44969         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
44970         GNULIB_MBSCSPN.
44971         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
44972         * MODULES.html.sh (Internationalization functions): Add mbscspn.
44973
44974 2007-02-04  Bruno Haible  <bruno@clisp.org>
44975
44976         New module mbscasestr, reduced goal of strcasestr.
44977         * modules/mbscasestr: New file.
44978         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
44979         (mbscasestr): Renamed from strcasestr.
44980         * lib/strcasestr.c: Don't include mbuiter.h.
44981         (strcasestr): Remove support for multibyte locales.
44982         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
44983         Change the conditional link warning.
44984         (mbscasestr): New declaration.
44985         * m4/mbscasestr.m4: New file.
44986         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
44987         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
44988         REPLACE_STRCASESTR.
44989         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
44990         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
44991         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
44992         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
44993         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
44994         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
44995         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
44996         (Depends-on): Remove mbuiter.
44997         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
44998
44999 2007-02-04  Bruno Haible  <bruno@clisp.org>
45000
45001         Simplify handling of strncasecmp.
45002         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
45003         the conditional link warning.
45004         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
45005         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
45006         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
45007         * modules/strcase (configure.ac): Don't invoke
45008         gl_STRING_MODULE_INDICATOR.
45009         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
45010
45011 2007-02-04  Bruno Haible  <bruno@clisp.org>
45012
45013         New module mbscasecmp, reduced goal of strcasecmp.
45014         * modules/mbscasecmp: New file.
45015         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
45016         (mbscasecmp): Renamed from strcasecmp.
45017         * lib/strcasecmp.c: Don't include mbuiter.h.
45018         (strcasecmp): Remove support for multibyte locales.
45019         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
45020         Change the conditional link warning.
45021         (mbscasecmp): New declaration.
45022         * m4/mbscasecmp.m4: New file.
45023         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
45024         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
45025         REPLACE_STRCASECMP.
45026         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
45027         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
45028         GNULIB_MBSCASECMP.
45029         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
45030         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
45031         * modules/strcase (Files): Remove m4/mbrtowc.m4.
45032         (Depends-on): Remove mbuiter.
45033         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
45034
45035 2007-02-04  Bruno Haible  <bruno@clisp.org>
45036
45037         New module mbsstr. Remove module strstr.
45038         * modules/mbsstr: New file.
45039         * modules/strstr: Remove file.
45040         * lib/mbsstr.c: Renamed from lib/strstr.c.
45041         (mbsstr): Renamed from strstr.
45042         * lib/string_.h (strstr): Remove declaration. Change the conditional
45043         link warning.
45044         (mbsstr): New declaration.
45045         * m4/mbsstr.m4: New file.
45046         * m4/strstr.m4: Remove file.
45047         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
45048         REPLACE_STRSTR.
45049         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
45050         Don't initialize GNULIB_STRSTR.
45051         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
45052         substitute GNULIB_STRSTR and REPLACE_STRSTR.
45053         * MODULES.html.sh (Internationalization functions): Add mbsstr.
45054         (Support for systems lacking ANSI C 89): Remove strstr.
45055
45056 2007-02-04  Bruno Haible  <bruno@clisp.org>
45057
45058         New module mbsrchr.
45059         * modules/mbsrchr: New file.
45060         * lib/mbsrchr.c: New file.
45061         * lib/string_.h (strrchr): Add a conditional link warning.
45062         (mbsrchr): New declaration.
45063         * m4/mbsrchr.m4: New file.
45064         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
45065         GNULIB_MBSRCHR.
45066         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
45067         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
45068
45069 2007-02-04  Bruno Haible  <bruno@clisp.org>
45070
45071         New module mbschr.
45072         * modules/mbschr: New file.
45073         * lib/mbschr.c: New file.
45074         * lib/string_.h (strchr): Add a conditional link warning.
45075         (mbschr): New declaration.
45076         * m4/mbschr.m4: New file.
45077         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
45078         GNULIB_MBSCHR.
45079         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
45080         * MODULES.html.sh (Internationalization functions): Add mbschr.
45081
45082 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
45083
45084         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
45085
45086         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
45087
45088 2007-02-04  Bruno Haible  <bruno@clisp.org>
45089
45090         New module description section 'configure.ac-early'.
45091         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
45092         (func_get_autoconf_early_snippet): New function.
45093         (func_import, func_create_testdir): Use it. Remove special cases for
45094         modules 'extensions' and 'lock'.
45095         * modules/extensions (configure.ac-early): Require
45096         gl_USE_SYSTEM_EXTENSIONS.
45097         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
45098
45099 2007-02-04  Bruno Haible  <bruno@clisp.org>
45100
45101         Make use of gcj-4.3's -fsource and -ftarget option.
45102         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
45103         and if so try the options -fsource and -ftarget.
45104         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
45105         source_version, ftarget_option, target_version arguments.
45106         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
45107         (is_envjavac_oldgcj_14_14_usable): Renamed from
45108         is_envjavac_gcj_14_14_usable.
45109         (is_envjavac_oldgcj_14_13_usable): Renamed from
45110         is_envjavac_gcj_14_13_usable.
45111         (is_gcj_present): Update.
45112         (is_gcj_43, is_gcj43_usable): New functions.
45113         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
45114         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
45115         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
45116         try the options -fsource and -ftarget.
45117
45118 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
45119
45120         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
45121         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
45122         larger value.
45123
45124 2007-02-03  Jim Meyering  <jim@meyering.net>
45125
45126         Give tools a better chance to allocate space for very large buffers.
45127         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
45128
45129         Make pwd and readlink work also when run with an unreadable parent dir
45130         on systems with openat support.
45131         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
45132         provided getcwd function, even when we have openat support.
45133         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
45134
45135 2007-02-02  Bruno Haible  <bruno@clisp.org>
45136
45137         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
45138         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
45139         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
45140         portability problems if one of these functions is only used on specific
45141         platforms.
45142         Reported by Paul Eggert.
45143
45144 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
45145
45146         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
45147         is causing more trouble than it's curing.
45148         * lib/regex_internal.h (__mempcpy): Remove.
45149         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
45150         (and make the code a tad smaller to boot).
45151         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
45152
45153 2007-02-02  Jim Meyering  <jim@meyering.net>
45154
45155         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
45156         section, not in the Makefile.am: one.
45157
45158 2007-02-02  Eric Blake  <ebb9@byu.net>
45159
45160         * lib/strchrnul.c: Always include config.h first.
45161
45162         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
45163         gnulib strstr is not necessary here.
45164
45165 2007-02-02  Simon Josefsson  <simon@josefsson.org>
45166
45167         * m4/socklen.m4: Fix typo.
45168
45169 2007-02-02  Eric Blake  <ebb9@byu.net>
45170
45171         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
45172         * modules/netinet_in (Makefile.am): Likewise.
45173
45174 2007-02-01  Bruno Haible  <bruno@clisp.org>
45175
45176         * lib/string_.h (GL_LINK_WARNING): New macro.
45177         (strcasecmp, strstr, strcasestr): If provided by the system,
45178         conditionally define as a macro that leads to a warning instead of to
45179         an error.
45180         (strncasecmp): Conditionally define as a macro that leads to a warning.
45181
45182 2007-02-01  Karl Berry  <karl@gnu.org>
45183
45184         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
45185
45186 2007-02-01  Bruno Haible  <bruno@clisp.org>
45187
45188         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
45189         renamings.
45190
45191 2007-02-01  Eric Blake  <ebb9@byu.net>
45192
45193         * modules/regex (Depends-on): Revert dependence on mempcpy.
45194         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
45195         module's definition of mempcpy.
45196         Reported by Paul Eggert.
45197
45198 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
45199
45200         * lib/string_.h: If the gnulib module XYZ is not present, undefine
45201         the symbol XYZ before redefining it.  This fixes a problem with
45202         programs that don't use XYZ, when compiled on systems that define
45203         XYZ to something else.
45204
45205 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
45206
45207         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
45208         occurs when "mkdir -m foo" creates a setgid directory that is (1)
45209         writeable to group or other and (2) is intended to have a special
45210         mode bit that is set or cleared.  In such a case, the directory
45211         should be neither group- nor other-writeable until the special
45212         mode bits are right.
45213
45214 2007-01-31  Eric Blake  <ebb9@byu.net>
45215
45216         * modules/mountlist (Depends-on): Add strstr.
45217
45218         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
45219         bug.
45220         * modules/string (Makefile.am): Remove redundant replacement.
45221         * modules/regex (Depends-on): Add mempcpy.
45222
45223 2007-01-31  Bruno Haible  <bruno@clisp.org>
45224
45225         New module description field 'Link'.
45226         * gnulib-tool (func_usage): Document --extract-link-directive.
45227         (sed_extract_prog): Recognize 'Link' directive.
45228         (func_get_link_directive): New function.
45229         (func_import): Show summary of link directives.
45230         Handle --extract-link-directive option.
45231         * modules/acl (Link): New section.
45232         * modules/clock-time (Link): New section.
45233         * modules/euidaccess (Link): New section.
45234         * modules/gettext (Link): New section.
45235         * modules/iconv (Link): New section.
45236         * modules/lock (Link): New section.
45237         * modules/nanosleep (Link): New section.
45238         * modules/readline (Link): New section.
45239
45240 2007-01-27  Bruno Haible  <bruno@clisp.org>
45241
45242         Enforce the use of gnulib modules for unportable <string.h> functions.
45243         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
45244         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
45245         (gl_HEADER_STRING_H_BODY): Require it.
45246         * lib/string_.h: If the gnulib module XYZ is not present, redefine
45247         the symbol XYZ to one that gives a link error.
45248         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
45249         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
45250         * modules/mempcpy (configure.ac): Likewise.
45251         * modules/memrchr (configure.ac): Likewise.
45252         * modules/stpcpy (configure.ac): Likewise.
45253         * modules/stpncpy (configure.ac): Likewise.
45254         * modules/strcase (configure.ac): Likewise.
45255         * modules/strcasestr (configure.ac): Likewise.
45256         * modules/strchrnul (configure.ac): Likewise.
45257         * modules/strdup (configure.ac): Likewise.
45258         * modules/strndup (configure.ac): Likewise.
45259         * modules/strnlen (configure.ac): Likewise.
45260         * modules/strpbrk (configure.ac): Likewise.
45261         * modules/strsep (configure.ac): Likewise.
45262         * modules/strstr (configure.ac): Likewise.
45263         * modules/strtok_r (configure.ac): Likewise.
45264
45265 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
45266
45267         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
45268
45269 2007-01-30  Jim Meyering  <jim@meyering.net>
45270
45271         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
45272
45273 2007-01-29  Bruno Haible  <bruno@clisp.org>
45274
45275         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
45276         * lib/execute.c: Likewise.
45277         * lib/pipe.c: Likewise.
45278         * lib/printf-args.h: Likewise.
45279         * lib/printf-args.c: Likewise.
45280         * lib/printf-parse.c: Likewise.
45281         * lib/vasnprintf.c: Likewise.
45282
45283 2007-01-29  Eric Blake  <ebb9@byu.net>
45284
45285         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
45286         declaration.
45287
45288 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
45289
45290         * lib/strptime.h (strptime): Use 'restrict' for args where
45291         POSIX requires this.
45292         * lib/strptime.c (strptime): Likewise.
45293         Change license notice from LGPL to GPL, since gnulib-tool will
45294         change this as needed.
45295         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
45296         defined.
45297         Include "strptime.h" first, to check interface.
45298         Do not #undef _LIBC and _NL_CURRENT.
45299         Do not include <stdlib.h>; no longer needed.
45300         Include "time_r.h" and declare ptime_locale_status
45301         only if _LIBC is not defined.
45302         (__P): Remove unused macro.
45303         (match_string): Bring back glibc version, but use it only if _LIBC
45304         is defined.
45305         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
45306         Remove unnecessary assertion and abort() call.
45307         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
45308         * m4/strptime.m4: Fix serial number comment.
45309         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
45310         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
45311         (Depends-on): Add time_r.
45312
45313 2007-01-29  Bruno Haible  <bruno@clisp.org>
45314
45315         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
45316         strptime.
45317         * modules/strptime (Depends-on): Add stdbool.
45318         * lib/strptime.h: Include <time.h> always. Add comments.
45319
45320 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
45321
45322         * modules/strptime: New file.
45323         * lib/strptime.h: New file.
45324         * lib/strptime.c: New file.
45325         * m4/strptime.m4: New file.
45326
45327 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
45328
45329         * MODULES.html.sh: New module mpsort.
45330         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
45331
45332         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
45333         a circularity problem with HP-UX ia64 reported by Bob Proulx in
45334         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
45335         All uses changed.
45336         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
45337         All uses changed.
45338         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
45339         to _Restrict_.
45340         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
45341         the parameter matches the prototype.
45342
45343 2007-01-28  Jim Meyering  <jim@meyering.net>
45344
45345         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
45346         sys/time.h here, reverting that part of the previous patch:
45347         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
45348
45349 2007-01-28  Bruno Haible  <bruno@clisp.org>
45350
45351         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
45352         value of $(SYS_TIME_H).
45353         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
45354         remove it conditionally, too. [added by Jim Meyering]
45355         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
45356         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
45357         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
45358         GETTIMEOFDAY_REPLACEMENT to 1.
45359
45360 2007-01-28  Bruno Haible  <bruno@clisp.org>
45361
45362         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
45363         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
45364         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
45365         Set UNISTD_H instead of UNISTD_H2.
45366         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
45367
45368 2007-01-28  Bruno Haible  <bruno@clisp.org>
45369
45370         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
45371         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
45372
45373 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45374
45375         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
45376         (func_create_testdir): Ensure C locale for `grep' and `tr'
45377         character ranges.
45378         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
45379         ACLOCAL_AMFLAGS parsing state machine.
45380
45381 2007-01-27  Bruno Haible  <bruno@clisp.org>
45382
45383         * modules/unistr/base: Update.
45384
45385 2007-01-27  Bruno Haible  <bruno@clisp.org>
45386
45387         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
45388         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
45389         * modules/unistr/u32-mbtouc-unsafe: Renamed from
45390         modules/unistr/u32-mbtouc.
45391         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
45392         * lib/unistr.h: Update.
45393         * lib/linebreak.c: Update.
45394         * modules/unistr/u32-mbtouc: Renamed from
45395         modules/unistr/u32-mbtouc-safe.
45396         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
45397         * lib/unistr.h: Update.
45398         * lib/unistr/u32-to-u8.c: Update.
45399         * lib/unistr/u32-to-u16.c: Update.
45400
45401 2007-01-27  Bruno Haible  <bruno@clisp.org>
45402
45403         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
45404         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
45405         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
45406         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
45407         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
45408         * modules/unistr/u16-mbtouc-unsafe: Renamed from
45409         modules/unistr/u16-mbtouc.
45410         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
45411         * lib/unistr.h: Update.
45412         * lib/linebreak.c: Update.
45413         * modules/linebreak: Update.
45414         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
45415         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
45416         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
45417         * modules/unistr/u16-mbtouc: Renamed from
45418         modules/unistr/u16-mbtouc-safe.
45419         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
45420         * lib/unistr.h: Update.
45421         * lib/unistr/u16-to-u8.c: Update.
45422         * modules/unistr/u16-to-u8: Update.
45423         * lib/unistr/u16-to-u32.c: Update.
45424         * modules/unistr/u16-to-u32: Update.
45425
45426 2007-01-27  Bruno Haible  <bruno@clisp.org>
45427
45428         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
45429         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
45430         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
45431         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
45432         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
45433         * modules/unistr/u8-mbtouc-unsafe: Renamed from
45434         modules/unistr/u8-mbtouc.
45435         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
45436         * lib/unistr.h: Update.
45437         * lib/striconveh.c: Update.
45438         * modules/striconveh: Update.
45439         * lib/linebreak.c: Update.
45440         * modules/linebreak: Update.
45441         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
45442         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
45443         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
45444         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
45445         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
45446         * lib/unistr.h: Update.
45447         * lib/striconveh.c: Update.
45448         * modules/striconveh: Update.
45449         * lib/unistr/u8-to-u16.c: Update.
45450         * modules/unistr/u8-to-u16: Update.
45451         * lib/unistr/u8-to-u32.c: Update.
45452         * modules/unistr/u8-to-u32: Update.
45453
45454 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45455
45456         Sync from Libtool.
45457         * lib/argz.c: Do not include strings.h nor memory.h, include
45458         string.h unconditionally.  Patch by Simon Josefsson.
45459
45460 2007-01-27  Bruno Haible  <bruno@clisp.org>
45461
45462         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
45463         from gl_HEADER_STRING_H_BODY.
45464         (gl_HEADER_STRING_H_BODY): Require it.
45465         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
45466         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
45467         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
45468         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
45469         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
45470         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
45471         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
45472         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
45473         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
45474         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
45475         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
45476         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
45477         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
45478         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
45479         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
45480
45481 2007-01-27  Bruno Haible  <bruno@clisp.org>
45482
45483         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
45484         check_PROGRAMS into noinst_PROGRAMS.
45485         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
45486         check_PROGRAMS in this case.
45487         (func_import): Set for_test to false.
45488         (func_create_testdir): Set for_test to true.
45489
45490 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
45491             Bruno Haible  <bruno@clisp.org>
45492
45493         * modules/strcasestr (Files): Remove lib/strcasestr.h.
45494         (Depends-on): Add string.
45495         (Includes): Use <string.h> instead of strcasestr.h.
45496         * modules/string (Makefile.am): Also substitute the value of
45497         REPLACE_STRCASESTR.
45498         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
45499         assume strcasestr is declared in <string.h> not <strings.h>. Also
45500         set REPLACE_STRCASESTR.
45501         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
45502         REPLACE_STRCASESTR.
45503         * lib/strcasestr.h: Remove file.
45504         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
45505         * lib/string_.h (strcasestr): New declaration.
45506
45507 2007-01-27  Bruno Haible  <bruno@clisp.org>
45508
45509         * lib/string_.h: Use 'extern'.
45510
45511 2007-01-27  Jim Meyering  <jim@meyering.net>
45512
45513         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
45514         of set-but-not-used local, "q".
45515
45516         * lib/mempcpy.c: Include <config.h> before <string.h>.
45517         This fixes a compilation error on HP-UX, due to the system's
45518         "restrict"-using mempcpy prototype.
45519
45520 2007-01-26  Bruno Haible  <bruno@clisp.org>
45521
45522         Small optimization.
45523         * lib/javacomp.c: Include c-strstr.h.
45524          (is_envjavac_gcj): Use c_strstr instead of strstr.
45525         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
45526
45527 2007-01-26  Bruno Haible  <bruno@clisp.org>
45528
45529         * MODULES.html.sh (Unicode string functions): Add the new modules.
45530
45531         * modules/uniconv/u32-strconv-to-locale: New file.
45532         * lib/uniconv/u32-strconv-to-locale.c: New file.
45533
45534         * modules/uniconv/u16-strconv-to-locale: New file.
45535         * lib/uniconv/u16-strconv-to-locale.c: New file.
45536
45537         * modules/uniconv/u8-strconv-to-locale: New file.
45538         * lib/uniconv/u8-strconv-to-locale.c: New file.
45539
45540         * modules/uniconv/u32-strconv-from-locale: New file.
45541         * lib/uniconv/u32-strconv-from-locale.c: New file.
45542
45543         * modules/uniconv/u16-strconv-from-locale: New file.
45544         * lib/uniconv/u16-strconv-from-locale.c: New file.
45545
45546         * modules/uniconv/u8-strconv-from-locale: New file.
45547         * lib/uniconv/u8-strconv-from-locale.c: New file.
45548
45549         * modules/uniconv/u32-strconv-to-enc: New file.
45550         * lib/uniconv/u32-strconv-to-enc.c: New file.
45551         * modules/uniconv/u32-strconv-to-enc-tests: New file.
45552         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
45553
45554         * modules/uniconv/u16-strconv-to-enc: New file.
45555         * lib/uniconv/u16-strconv-to-enc.c: New file.
45556         * lib/uniconv/u-strconv-to-enc.h: New file.
45557         * modules/uniconv/u16-strconv-to-enc-tests: New file.
45558         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
45559
45560         * modules/uniconv/u8-strconv-to-enc: New file.
45561         * lib/uniconv/u8-strconv-to-enc.c: New file.
45562         * modules/uniconv/u8-strconv-to-enc-tests: New file.
45563         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
45564
45565         * modules/uniconv/u32-strconv-from-enc: New file.
45566         * lib/uniconv/u32-strconv-from-enc.c: New file.
45567         * modules/uniconv/u32-strconv-from-enc-tests: New file.
45568         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
45569
45570         * modules/uniconv/u16-strconv-from-enc: New file.
45571         * lib/uniconv/u16-strconv-from-enc.c: New file.
45572         * modules/uniconv/u16-strconv-from-enc-tests: New file.
45573         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
45574
45575         * modules/uniconv/u8-strconv-from-enc: New file.
45576         * lib/uniconv/u8-strconv-from-enc.c: New file.
45577         * lib/uniconv/u-strconv-from-enc.h: New file.
45578         * modules/uniconv/u8-strconv-from-enc-tests: New file.
45579         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
45580
45581         * modules/uniconv/u32-conv-from-enc: New file.
45582         * lib/uniconv/u32-conv-from-enc.c: New file.
45583         * modules/uniconv/u32-conv-from-enc-tests: New file.
45584         * tests/uniconv/test-u32-conv-from-enc.c: New file.
45585
45586         * modules/uniconv/u16-conv-from-enc: New file.
45587         * lib/uniconv/u16-conv-from-enc.c: New file.
45588         * lib/uniconv/u-conv-from-enc.h: New file.
45589         * modules/uniconv/u16-conv-from-enc-tests: New file.
45590         * tests/uniconv/test-u16-conv-from-enc.c: New file.
45591
45592         * modules/uniconv/u8-conv-from-enc: New file.
45593         * lib/uniconv/u8-conv-from-enc.c: New file.
45594         * modules/uniconv/u8-conv-from-enc-tests: New file.
45595         * tests/uniconv/test-u8-conv-from-enc.c: New file.
45596
45597         * modules/uniconv/base: New file.
45598         * lib/uniconv.h: New file.
45599
45600 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
45601
45602         * doc/gnulib-tool.texi (Initial import): Update to match current
45603         behavior with strdup module.
45604         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
45605         * lib/memmem.h: Remove; all uses removed.  This is now done
45606         by <string.h>.
45607         * lib/mempcpy.h: Likewise.
45608         * lib/memrchr.h: Likewise.
45609         * lib/stpcpy.h: Likewise.
45610         * lib/stpncpy.h: Likewise.
45611         * lib/strcase.h: Likewise.
45612         * lib/strchrnul.h: Likewise.
45613         * lib/strdup.h: Likewise.
45614         * lib/strndup.h: Likewise.
45615         * lib/strnlen.h: Likewise.
45616         * lib/strpbrk.h: Likewise.
45617         * lib/strsep.h: Likewise.
45618         * lib/strstr.h: Likewise.
45619         * lib/strtok_r.h: Likewise.
45620         * lib/string_.h: New file.
45621         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
45622         Rely on <string.h> instead.
45623         * lib/canon-host.c: Likewise.
45624         * lib/chdir-long.c: Likewise.
45625         * lib/concatpath.c: Likewise.
45626         * lib/exclude.c: Likewise.
45627         * lib/fchdir.c: Likewise.
45628         * lib/getaddrinfo.c: Likewise.
45629         * lib/getcwd.c: Likewise.
45630         * lib/getsubopt.c: Likewise.
45631         * lib/glob.c: Likewise.
45632         * lib/hard-locale.c: Likewise.
45633         * lib/iconvme.c: Likewise.
45634         * lib/javacomp.c: Likewise.
45635         * lib/mempcpy.c: Likewise.
45636         * lib/memrchr.c: Likewise.
45637         * lib/regex_internal.h: Likewise.
45638         * lib/stpncpy.c: Likewise.
45639         * lib/strcasecmp.c: Likewise.
45640         * lib/strchrnul.c: Likewise.
45641         * lib/strdup.c: Likewise.
45642         * lib/striconv.c: Likewise.
45643         * lib/striconveh.c: Likewise.
45644         * lib/striconveha.c: Likewise.
45645         * lib/strncasecmp.c: Likewise.
45646         * lib/strndup.c: Likewise.
45647         * lib/strnlen.c: Likewise.
45648         * lib/strsep.c: Likewise.
45649         * lib/strstr.c: Likewise.
45650         * lib/strtok_r.c: Likewise.
45651         * lib/userspec.c: Likewise.
45652         * lib/w32spawn.h: Likewise.
45653         * lib/xstrndup.c: Likewise.
45654         * lib/mountlist.c (strstr): Remove decl.
45655         * m4/string_h.m4: New file.
45656         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
45657         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
45658         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
45659         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
45660         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
45661         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
45662         Set REPLACE_STRCASECMP if necessary.
45663         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
45664         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
45665         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
45666         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
45667         HAVE_DECL_STRDUP if necessary.
45668         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
45669         since gl_FUNC_STRNDUP does that now.
45670         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
45671         Check for decl here...
45672         (gl_PREREQ_STRNLEN): ... not here.
45673         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
45674         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
45675         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
45676         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
45677         necessary.
45678         * modules/string: New file.
45679         * modules/memmem (Files): Remove special-purpose include file.
45680         (Depends-on): Add string.
45681         (Include): Include <string.h>, not the removed file.
45682         * modules/mempcpy: Likewise.
45683         * modules/memrchr: Likewise.
45684         * modules/stpcpy: Likewise.
45685         * modules/stpncpy: Likewise.
45686         * modules/strcase: Likewise.
45687         * modules/strchrnul: Likewise.
45688         * modules/strdup: Likewise.
45689         * modules/strndup: Likewise.
45690         * modules/strnlen: Likewise.
45691         * modules/strpbrk: Likewise.
45692         * modules/strsep: Likewise.
45693         * modules/strstr: Likewise.
45694         * modules/strtok_r: Likewise.
45695         * tests/test-dirname.c: Don't include "strdup.h", since
45696         <string.h> now suffices.
45697         * tests/test-memmem.c: Don't include "memmem.h", since
45698         <string.h> now suffices.
45699
45700 2007-01-25  Bruno Haible  <bruno@clisp.org>
45701
45702         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
45703         *resultp is 0.
45704
45705         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
45706         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
45707         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
45708         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
45709
45710         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
45711         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
45712         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
45713         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
45714         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
45715         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
45716
45717 2007-01-24  Bruno Haible  <bruno@clisp.org>
45718
45719         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
45720         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
45721         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
45722         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
45723         gl_FUNC_FTS_CORE.
45724         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
45725         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
45726         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
45727         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
45728         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
45729         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
45730         gl_FUNC_FCHOWNAT.
45731         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
45732         gl_FUNC_STRFTIME.
45733         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
45734         Reported by Ralf Wildenhues.
45735
45736 2007-01-24  Bruno Haible  <bruno@clisp.org>
45737
45738         Drop AC_REQUIRE calls that are redundant with the module dependencies.
45739         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
45740         gl_GETADDRINFO.
45741         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
45742         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
45743         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
45744
45745 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
45746
45747         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
45748         Don't use 'exit'; just return from 'main'.
45749         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
45750
45751         * lib/fnmatch_.h: Readjust white space and comments to match
45752         glibc, to avoid spurious diffs.
45753
45754 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
45755
45756         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
45757         2004-12-01 change by Jakub Jelinek, since this code won't compile
45758         if !LIBC.  Problem reported by Bob Proulx.
45759
45760 2007-01-23  Bruno Haible  <bruno@clisp.org>
45761
45762         * lib/striconveh.c: Include c-strcaseeq.h.
45763         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
45764         * modules/striconveh (Depends-on): Add c-strcaseeq.
45765
45766 2007-01-23  Bruno Haible  <bruno@clisp.org>
45767
45768         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
45769
45770         * modules/c-strcaseeq: New file.
45771         * lib/c-strcaseeq.h: New file.
45772
45773         * modules/streq: New file.
45774         * lib/streq.h: New file.
45775
45776 2007-01-23  Bruno Haible  <bruno@clisp.org>
45777
45778         * modules/striconveha-tests: New file.
45779         * tests/test-striconveha.c: New file.
45780
45781         * lib/striconveha.h: Include <stdbool.h>.
45782         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
45783         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
45784         (mem_iconveha_notranslit): Renamed from mem_iconveha.
45785         (mem_iconveha): New function.
45786         (str_iconveha_notranslit): Renamed from str_iconveha.
45787         (str_iconveha): New function.
45788         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
45789         c-strcase.
45790
45791 2007-01-23  Bruno Haible  <bruno@clisp.org>
45792
45793         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
45794         encodings without forgiving before trying any encoding with handler.
45795         (str_iconveha): Try all encodings without forgiving before trying any
45796         encoding with handler.
45797
45798 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
45799
45800         Import the following changes from libc.
45801
45802         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
45803
45804         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
45805
45806         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
45807
45808         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
45809         normal_bracket label.
45810
45811         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
45812
45813         [BZ #361]
45814         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
45815         to normal_bracket after fetching the next character.
45816
45817 2007-01-22  Bruno Haible  <bruno@clisp.org>
45818
45819         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
45820         argument.
45821         * lib/striconveh.c (iconv_carefully_1): New function.
45822         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
45823         argument.
45824         (str_cd_iconveh): Update.
45825         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
45826         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
45827         * tests/test-striconveh.c (MAGIC): New macro.
45828         (new_offsets): New function.
45829         (main): Test call with and without offsets.
45830
45831 2007-01-22  Bruno Haible  <bruno@clisp.org>
45832
45833         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
45834         * modules/sys_select (Makefile.am): Likewise.
45835         * modules/sys_socket (Makefile.am): Likewise.
45836         * modules/sys_time (Makefile.am): Likewise.
45837
45838 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
45839
45840         * modules/gettimeofday (License): Change from GPL to LGPL, since
45841         gettimeofday is a library function.
45842
45843 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
45844
45845         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
45846
45847 2007-01-21  Bruno Haible  <bruno@clisp.org>
45848
45849         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
45850
45851 2007-01-21  Bruno Haible  <bruno@clisp.org>
45852
45853         * modules/striconveha: New file.
45854         * lib/striconveha.h: New file.
45855         * lib/striconveha.c: New file.
45856         * MODULES.html.sh (Internationalization functions): Add striconveha.
45857         * lib/striconv.c (str_iconv): Optimize the case of an empty input
45858         string.
45859         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
45860
45861 2007-01-21  Bruno Haible  <bruno@clisp.org>
45862
45863         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
45864         * lib/striconveh.c (str_iconveh): Likewise.
45865
45866 2007-01-21  Bruno Haible  <bruno@clisp.org>
45867
45868         * lib/striconveh.h (mem_iconveh): New declaration.
45869         * lib/striconveh.c (mem_iconveh): New function.
45870         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
45871
45872 2007-01-21  Bruno Haible  <bruno@clisp.org>
45873
45874         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
45875
45876         * lib/striconveh.h (mem_cd_iconveh): Change specification.
45877         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
45878         original result buffer.
45879         (str_cd_iconveh): Update.
45880         * tests/test-striconveh.c (main): Update.
45881
45882         * lib/striconv.h (mem_cd_iconv): Change specification.
45883         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
45884         result buffer.
45885         (str_cd_iconv): Update.
45886         * tests/test-striconv.c (main): Update.
45887
45888 2007-01-21  Bruno Haible  <bruno@clisp.org>
45889
45890         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
45891
45892 2007-01-20  Jim Meyering  <jim@meyering.net>
45893
45894         * lib/userspec.c (parse_with_separator): If a user or group string
45895         starts with "+", skip the corresponding name-to-ID look-up, since
45896         such a look-up must fail: user and group names may not include "+".
45897
45898 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
45899
45900         * lib/poll.c: Include sys/time.h and time.h unconditionally,
45901         since we now assume the sys_time module.
45902         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
45903         check for sys/time.h; no longer needed.
45904         * modules/poll (Depends-on): Depend on sys_time.
45905
45906 2007-01-18  Bruno Haible  <bruno@clisp.org>
45907
45908         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
45909         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
45910
45911         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
45912         gettimeofday.
45913
45914         * tests/test-gettimeofday.c: Include <time.h>.
45915         (dummy): Remove variable.
45916
45917         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
45918         gl_HEADER_SYS_TIME_H.
45919         (gl_HEADER_SYS_TIME_H): New macro.
45920
45921         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
45922         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
45923         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
45924         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
45925         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
45926         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
45927         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
45928         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
45929         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
45930         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
45931         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
45932
45933         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
45934         last change; it caused a compilation error when cross-compiling to
45935         Cygwin.
45936
45937 2007-01-18  Jim Meyering  <jim@meyering.net>
45938
45939         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
45940         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
45941         than the race-prone "test -d sys || mkdir sys".
45942         (configure.ac): Use AC_PROG_MKDIR_P.
45943         * modules/sys_select: Likewise.
45944         * modules/sys_socket: Likewise.
45945         * modules/sys_time: Likewise.
45946
45947 2007-01-18  Eric Blake  <ebb9@byu.net>
45948
45949         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
45950         replace gettimeofday.
45951         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
45952         name, to avoid infinite recursion.
45953
45954 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
45955
45956         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
45957         module sys_time.
45958         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
45959         assume timespec.h defines struct timeval.
45960         * lib/settime.c: Likewise.
45961         * lib/utimens.c: Likewise.
45962         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
45963         since we now assume the gettimeofday module.
45964         * lib/tempname.c (__gen_tempname): Likewise.
45965         * lib/gettimeofday.h: Remove.
45966         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
45967         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
45968         Include <time.h>, for 'time()'.
45969         (localtime_buffer_addr): Also use this workaround if
45970         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
45971         to simplify the uses.  All uses changed.
45972         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
45973         that #undef is inside {}, and 'const' follows type name consistently.
45974         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
45975         (gettimeofday): Do not use the maximum possible value for
45976         tv->tv_usec, since that might break usages other than ls.c.
45977         Instead, we'll leave ls.c alone.  This undoes today's patch
45978         by Bruno.  Add a compile-time warning for 1s-clock resolution;
45979         we've never observed the problem but might as well keep the
45980         canary.
45981         * lib/nanosleep.c: Include timespec.h first, for interface check.
45982         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
45983         now assume the sys_time module.
45984         * lib/tempname.c: Likewise.
45985         * lib/timespec.h: Likewise.
45986         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
45987         needed.
45988         * lib/strftime.c: Likewise.
45989         * lib/timespec.h: Likewise.
45990         * lib/posixtm.c: Include posixtm.h first, for interface check.
45991         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
45992         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
45993         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
45994         * lib/sys_time_.h: New file.
45995         * lib/timespec.h (struct timespec): Use long int, not long.
45996         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
45997         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
45998         Remove obsolescent call to AC_HEADER_TIME.
45999         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
46000         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
46001         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
46002         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
46003         Likewise.
46004         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
46005         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
46006         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
46007         into the sys_time module.  Check for gettimeofday just once.
46008         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
46009         for gettimeofday signature to just check the signature.  Merely
46010         compile it, since linking doesn't test signature.  Improve test for
46011         whether gettimeofday.o is actually needed.
46012         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
46013         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
46014         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
46015         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
46016         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
46017         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
46018         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
46019         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
46020         than worrying about sys/time.h.
46021         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
46022         Don't bother worrying about TIME_WITH_SYS_TIME.
46023         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
46024         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
46025         * m4/sys_time_h.m4: New file.
46026         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
46027         Don't include sys/time.h.  Return from main rather than exiting.
46028         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
46029         all uses changed.
46030         * modules/gethrxtime (Depends-on): Add sys_time.
46031         * modules/gettime (Depends-on): Likewise.
46032         * modules/gettimeofday (Depends-on): Likewise.
46033         * modules/nanosleep (Depends-on): Likewise.
46034         * modules/settime (Depends-on): Likewise.
46035         * modules/tempname (Depends-on): Likewise.
46036         * modules/utimens (Depends-on): Likewise.
46037         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
46038         (Include:) Change back to <sys/time.h>.
46039         (Maintainer:) Add self.
46040         * modules/sys_time: New file.
46041         * modules/tempname (Depends-on): Add gettimeofday.
46042         * tests/test-gettimeofday.c: Include <sys/time.h>
46043         rather than gettimeofday.h.
46044
46045 2007-01-17  Bruno Haible  <bruno@clisp.org>
46046
46047         * gnulib-tool (func_get_license): Revert last patch. Instead, let
46048         the license default to GPL.
46049         (func_create_testdir): Don't complain if a module is LGPL and its
46050         tests module depends on GPLed modules.
46051
46052 2007-01-17  Bruno Haible  <bruno@clisp.org>
46053
46054         * lib/gettimeofday.c (gettimeofday): Add code for the case
46055         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
46056         maximum possible value for tv->tv_usec, rather than the minimum one.
46057
46058 2005-10-08  Martin Lambers  <marlam@marlam.de>
46059 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
46060 2007-01-16  Bruno Haible  <bruno@clisp.org>
46061
46062         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
46063         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
46064         gl_FUNC_GETTIMEOFDAY.
46065         (Include): Add gettimeofday.h.
46066         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
46067         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
46068         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
46069         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
46070         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
46071         * lib/gettimeofday.h: New file.
46072         * lib/gettimeofday.c: Include <sys/timeb.h>.
46073         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
46074         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
46075         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
46076         fall back on time().
46077
46078         * tests/test-gettimeofday.c: New file.
46079         * modules/gettimeofday-tests: New file.
46080
46081 2007-01-16  Eric Blake  <ebb9@byu.net>
46082
46083         * modules/fnmatch (Depends-on): Depend on wchar.
46084         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
46085         * m4/fnmatch.m4: Likewise.
46086         * modules/mbchar (Makefile.am): Assume <wchar.h>.
46087         * m4/mbchar.m4: Likewise.
46088         * modules/mbswidth (Depends-on): Depend on wchar.
46089         * lib/mbswidth.c: Assume <wchar.h>.
46090         * m4/mbswidth.m4: Likewise.
46091         * modules/quotearg (Depends-on): Depend on wchar.
46092         * lib/quotearg.c: Assume <wchar.h>.
46093         * m4/quotearg.m4: Likewise.
46094         * modules/regex (Depends-on): Depend on wchar.
46095         * lib/regex_internal.h: Assume <wchar.h>.
46096         * m4/regex.m4: Likewise.
46097         * modules/stdint (Depends-on): Depend on wchar.
46098         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
46099         * m4/stdint.m4: Likewise.
46100         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
46101         * modules/strftime (Depends-on): Depend on wchar.
46102         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
46103         * modules/strtol (Depends-on): Depend on wchar.
46104         * lib/strtol.c: Assume <wchar.h>.
46105         * modules/wcwidth (Depends-on): Depend on wchar.
46106         * lib/wcwidth.h: Assume <wchar.h>.
46107         * m4/wcwidth.m4: Likewise.
46108
46109 2007-01-16  Bruno Haible  <bruno@clisp.org>
46110
46111         * modules/csharpexec-script: New, created from...
46112         * modules/csharpexec: ... this.
46113
46114 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
46115
46116         * modules/javaexec-script: New, created from...
46117         * modules/javaexec: ... this.
46118
46119 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46120
46121         * modules/poll (Dependencies): Add sys_select.
46122
46123 2007-01-15  Jim Meyering  <jim@meyering.net>
46124
46125         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
46126         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
46127         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
46128         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
46129
46130 2007-01-15  Bruno Haible  <bruno@clisp.org>
46131
46132         * modules/striconveh: New file.
46133         * lib/striconveh.h: New file.
46134         * lib/striconveh.c: New file.
46135         * MODULES.html.sh (Internationalization functions): Add striconveh.
46136
46137         * modules/striconveh-tests: New file.
46138         * tests/test-striconveh.c: New file.
46139
46140 2007-01-15  Bruno Haible  <bruno@clisp.org>
46141
46142         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
46143         not from GNU libiconv or GNU libc.
46144
46145 2007-01-15  Bruno Haible  <bruno@clisp.org>
46146
46147         * doc/gnulib-intro.texi (Copyright): Explain the different license
46148         terms for module descriptions, autoconf macros, tests, documentation.
46149
46150 2007-01-14  Bruno Haible  <bruno@clisp.org>
46151
46152         * modules/striconv-tests: New file.
46153         * tests/test-striconv.c: New file.
46154
46155 2007-01-14  Bruno Haible  <bruno@clisp.org>
46156
46157         * modules/iconv-tests: New file.
46158         * tests/test-iconv.c: New file.
46159
46160 2007-01-14  Bruno Haible  <bruno@clisp.org>
46161
46162         * gnulib-tool (func_get_license): For test modules, use the license of
46163         the main module.
46164
46165 2007-01-14  Bruno Haible  <bruno@clisp.org>
46166
46167         * modules/iconv (Include): Clarify that <iconv.h> can only be included
46168         if iconv is found to exist.
46169
46170 2007-01-14  Bruno Haible  <bruno@clisp.org>
46171
46172         * modules/c-ctype-tests: New file.
46173         * tests/test-c-ctype.c: New file.
46174
46175 2007-01-14  Bruno Haible  <bruno@clisp.org>
46176
46177         * modules/binary-io-tests: New file.
46178         * tests/test-binary-io.sh: New file.
46179         * tests/test-binary-io.c: New file.
46180
46181 2007-01-14  Bruno Haible  <bruno@clisp.org>
46182
46183         * modules/array-oset-tests: New file.
46184         * tests/test-array_oset.c: New file.
46185
46186 2007-01-14  Bruno Haible  <bruno@clisp.org>
46187
46188         * modules/array-list-tests: New file.
46189         * tests/test-array_list.c: New file.
46190
46191 2007-01-14  Bruno Haible  <bruno@clisp.org>
46192
46193         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
46194         and make.
46195         Reported by Simon Josefsson in
46196         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
46197
46198 2007-01-14  Bruno Haible  <bruno@clisp.org>
46199
46200         * modules/allocsa-tests: New file.
46201         * tests/test-allocsa.c: New file.
46202
46203 2007-01-14  Bruno Haible  <bruno@clisp.org>
46204
46205         * modules/fchdir (Depends-on): Add absolute-header.
46206         * modules/unistd (Depends-on): Likewise.
46207
46208 2006-12-30  Bruno Haible  <bruno@clisp.org>
46209
46210         * modules/fchdir: New file.
46211         * modules/unistd (Files): Add lib/unistd_.h.
46212         (Makefile.am): Generate unistd.h from unistd_.h.
46213         * lib/fchdir.c: New file.
46214         * lib/dirent_.h: New file.
46215         * lib/unistd_.h: New file.
46216         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
46217         * m4/fchdir.m4: New file.
46218         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
46219         (gl_HEADER_UNISTD): Invoke it.
46220         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
46221         function.
46222         * lib/backupfile.c (opendir, closedir): Undefine.
46223         * lib/chown.c (open, close): Undefine.
46224         * lib/clean-temp.c (open, close): Undefine.
46225         * lib/copy-file.c (open, close): Undefine.
46226         * lib/execute.c (open, close): Undefine.
46227         * lib/fsusage.c (open, close): Undefine.
46228         * lib/gc-gnulib.c (open, close): Undefine.
46229         * lib/getcwd.c (opendir, closedir): Undefine.
46230         * lib/glob.c (opendir, closedir): Undefine.
46231         * lib/javacomp.c (open, close): Undefine.
46232         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
46233         * lib/openat-proc.c (open, close): Undefine.
46234         * lib/pagealign_alloc.c (open, close): Undefine.
46235         * lib/pipe.c (open, close): Undefine.
46236         * lib/progreloc.c (open, close): Undefine.
46237         * lib/savedir.c (opendir, closedir): Undefine.
46238         * lib/utime.c (open, close): Undefine.
46239         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
46240
46241 2007-01-10  Bruno Haible  <bruno@clisp.org>
46242
46243         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
46244
46245 2007-01-12  Eric Blake  <ebb9@byu.net>
46246
46247         Provide a robust <wchar.h>.  Further simplifications are now
46248         possible in other modules, but not included here.
46249         * modules/wchar: New module.
46250         * m4/wchar.m4: New file.
46251         * lib/wchar_.h: Likewise.
46252         * modules/mbchar (Depends-on): Depend on wchar, as the first use
46253         of the new module.
46254         * MODULES.html.sh (Extended multibyte and wide character utilities):
46255         New section.
46256
46257 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
46258
46259         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
46260         to a reasonable default for memory allocation.
46261         (xreadlink): Don't allocate a huge buffer, to work around a buggy
46262         file system that reports garbage st_size values for symlinks.
46263         Problem reported by Liyang Hu.
46264
46265 2007-01-11  Simon Josefsson  <simon@josefsson.org>
46266
46267         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
46268         Emacs .#* auto-save files).
46269
46270 2007-01-11  Bruno Haible  <bruno@clisp.org>
46271
46272         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
46273         directory.
46274
46275 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
46276
46277         Use @...@ consistently in lib/wctype_.h.
46278         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
46279         on it being set to 1 or 0.
46280         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
46281         go back to AC_SUBSTing it.
46282         * modules/wctype (Makefile.am): Undo previous change.
46283
46284 2007-01-10  Eric Blake  <ebb9@byu.net>
46285
46286         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
46287         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
46288         * modules/wctype (Makefile.am): Likewise.
46289         Reported by Chris McGuire.
46290
46291 2007-01-10  Jim Meyering  <jim@meyering.net>
46292
46293         fts.c: a small readability/maintainability improvement
46294         * lib/fts.c (fts_read): Make this code slightly more readable and
46295         maintainable by hoisting the "sp->fts_cur = p" assignments to
46296         immediately follow the statements that set P.  Derived from
46297         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
46298
46299 2007-01-10  Eric Blake  <ebb9@byu.net>
46300
46301         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
46302         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
46303         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
46304         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
46305         Reported by Chris McGuire.
46306
46307 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46308
46309         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
46310         in sed script.
46311
46312 2007-01-09  Bruno Haible  <bruno@clisp.org>
46313
46314         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
46315         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
46316         variables.
46317         (func_module): Use them.
46318
46319 2007-01-09  Bruno Haible  <bruno@clisp.org>
46320
46321         * modules/unistr/base: New file.
46322         * lib/unistr.h: New file.
46323
46324         * modules/unistr/u8-to-u16: New file.
46325         * lib/unistr/u8-to-u16.c: New file.
46326
46327         * modules/unistr/u8-to-u32: New file.
46328         * lib/unistr/u8-to-u32.c: New file.
46329
46330         * modules/unistr/u16-to-u8: New file.
46331         * lib/unistr/u16-to-u8.c: New file.
46332
46333         * modules/unistr/u16-to-u32: New file.
46334         * lib/unistr/u16-to-u32.c: New file.
46335
46336         * modules/unistr/u32-to-u8: New file.
46337         * lib/unistr/u32-to-u8.c: New file.
46338
46339         * modules/unistr/u32-to-u16: New file.
46340         * lib/unistr/u32-to-u16.c: New file.
46341
46342         * modules/unistr/u8-check: New file.
46343         * modules/unistr/u16-check: New file.
46344         * modules/unistr/u32-check: New file.
46345         * lib/unistr/u8-check.c: New file.
46346         * lib/unistr/u16-check.c: New file.
46347         * lib/unistr/u32-check.c: New file.
46348
46349         * modules/unistr/u8-chr: New file.
46350         * modules/unistr/u16-chr: New file.
46351         * modules/unistr/u32-chr: New file.
46352         * lib/unistr/u8-chr.c: New file.
46353         * lib/unistr/u16-chr.c: New file.
46354         * lib/unistr/u32-chr.c: New file.
46355
46356         * modules/unistr/u8-cmp: New file.
46357         * modules/unistr/u16-cmp: New file.
46358         * modules/unistr/u32-cmp: New file.
46359         * lib/unistr/u8-cmp.c: New file.
46360         * lib/unistr/u16-cmp.c: New file.
46361         * lib/unistr/u32-cmp.c: New file.
46362
46363         * modules/unistr/u8-cpy: New file.
46364         * modules/unistr/u16-cpy: New file.
46365         * modules/unistr/u32-cpy: New file.
46366         * lib/unistr/u8-cpy.c: New file.
46367         * lib/unistr/u16-cpy.c: New file.
46368         * lib/unistr/u32-cpy.c: New file.
46369         * lib/unistr/u-cpy.h: New file.
46370
46371         * modules/unistr/u8-cpy-alloc: New file.
46372         * modules/unistr/u16-cpy-alloc: New file.
46373         * modules/unistr/u32-cpy-alloc: New file.
46374         * lib/unistr/u8-cpy-alloc.c: New file.
46375         * lib/unistr/u16-cpy-alloc.c: New file.
46376         * lib/unistr/u32-cpy-alloc.c: New file.
46377         * lib/unistr/u-cpy-alloc.h: New file.
46378
46379         * modules/unistr/u8-endswith: New file.
46380         * modules/unistr/u16-endswith: New file.
46381         * modules/unistr/u32-endswith: New file.
46382         * lib/unistr/u8-endswith.c: New file.
46383         * lib/unistr/u16-endswith.c: New file.
46384         * lib/unistr/u32-endswith.c: New file.
46385         * lib/unistr/u-endswith.h: New file.
46386
46387         * modules/unistr/u8-mblen: New file.
46388         * modules/unistr/u16-mblen: New file.
46389         * modules/unistr/u32-mblen: New file.
46390         * lib/unistr/u8-mblen.c: New file.
46391         * lib/unistr/u16-mblen.c: New file.
46392         * lib/unistr/u32-mblen.c: New file.
46393
46394         * modules/unistr/u8-mbtouc: New file.
46395         * modules/unistr/u16-mbtouc: New file.
46396         * modules/unistr/u32-mbtouc: New file.
46397         * lib/unistr/u8-mbtouc.c: New file.
46398         * lib/unistr/u16-mbtouc.c: New file.
46399         * lib/unistr/u32-mbtouc.c: New file.
46400
46401         * modules/unistr/u8-mbtouc-safe: New file.
46402         * modules/unistr/u16-mbtouc-safe: New file.
46403         * modules/unistr/u32-mbtouc-safe: New file.
46404         * lib/unistr/u8-mbtouc-safe.c: New file.
46405         * lib/unistr/u16-mbtouc-safe.c: New file.
46406         * lib/unistr/u32-mbtouc-safe.c: New file.
46407
46408         * modules/unistr/u8-move: New file.
46409         * modules/unistr/u16-move: New file.
46410         * modules/unistr/u32-move: New file.
46411         * lib/unistr/u8-move.c: New file.
46412         * lib/unistr/u16-move.c: New file.
46413         * lib/unistr/u32-move.c: New file.
46414         * lib/unistr/u-move.h: New file.
46415
46416         * modules/unistr/u8-next: New file.
46417         * modules/unistr/u16-next: New file.
46418         * modules/unistr/u32-next: New file.
46419         * lib/unistr/u8-next.c: New file.
46420         * lib/unistr/u16-next.c: New file.
46421         * lib/unistr/u32-next.c: New file.
46422
46423         * modules/unistr/u8-prev: New file.
46424         * modules/unistr/u16-prev: New file.
46425         * modules/unistr/u32-prev: New file.
46426         * lib/unistr/u8-prev.c: New file.
46427         * lib/unistr/u16-prev.c: New file.
46428         * lib/unistr/u32-prev.c: New file.
46429
46430         * modules/unistr/u8-set: New file.
46431         * modules/unistr/u16-set: New file.
46432         * modules/unistr/u32-set: New file.
46433         * lib/unistr/u8-set.c: New file.
46434         * lib/unistr/u16-set.c: New file.
46435         * lib/unistr/u32-set.c: New file.
46436         * lib/unistr/u-set.h: New file.
46437
46438         * modules/unistr/u8-startswith: New file.
46439         * modules/unistr/u16-startswith: New file.
46440         * modules/unistr/u32-startswith: New file.
46441         * lib/unistr/u8-startswith.c: New file.
46442         * lib/unistr/u16-startswith.c: New file.
46443         * lib/unistr/u32-startswith.c: New file.
46444         * lib/unistr/u-startswith.h: New file.
46445
46446         * modules/unistr/u8-stpcpy: New file.
46447         * modules/unistr/u16-stpcpy: New file.
46448         * modules/unistr/u32-stpcpy: New file.
46449         * lib/unistr/u8-stpcpy.c: New file.
46450         * lib/unistr/u16-stpcpy.c: New file.
46451         * lib/unistr/u32-stpcpy.c: New file.
46452         * lib/unistr/u-stpcpy.h: New file.
46453
46454         * modules/unistr/u8-stpncpy: New file.
46455         * modules/unistr/u16-stpncpy: New file.
46456         * modules/unistr/u32-stpncpy: New file.
46457         * lib/unistr/u8-stpncpy.c: New file.
46458         * lib/unistr/u16-stpncpy.c: New file.
46459         * lib/unistr/u32-stpncpy.c: New file.
46460         * lib/unistr/u-stpncpy.h: New file.
46461
46462         * modules/unistr/u8-strcat: New file.
46463         * modules/unistr/u16-strcat: New file.
46464         * modules/unistr/u32-strcat: New file.
46465         * lib/unistr/u8-strcat.c: New file.
46466         * lib/unistr/u16-strcat.c: New file.
46467         * lib/unistr/u32-strcat.c: New file.
46468         * lib/unistr/u-strcat.h: New file.
46469
46470         * modules/unistr/u8-strchr: New file.
46471         * modules/unistr/u16-strchr: New file.
46472         * modules/unistr/u32-strchr: New file.
46473         * lib/unistr/u8-strchr.c: New file.
46474         * lib/unistr/u16-strchr.c: New file.
46475         * lib/unistr/u32-strchr.c: New file.
46476
46477         * modules/unistr/u8-strcmp: New file.
46478         * modules/unistr/u16-strcmp: New file.
46479         * modules/unistr/u32-strcmp: New file.
46480         * lib/unistr/u8-strcmp.c: New file.
46481         * lib/unistr/u16-strcmp.c: New file.
46482         * lib/unistr/u32-strcmp.c: New file.
46483
46484         * modules/unistr/u8-strcpy: New file.
46485         * modules/unistr/u16-strcpy: New file.
46486         * modules/unistr/u32-strcpy: New file.
46487         * lib/unistr/u8-strcpy.c: New file.
46488         * lib/unistr/u16-strcpy.c: New file.
46489         * lib/unistr/u32-strcpy.c: New file.
46490         * lib/unistr/u-strcpy.h: New file.
46491
46492         * modules/unistr/u8-strcspn: New file.
46493         * modules/unistr/u16-strcspn: New file.
46494         * modules/unistr/u32-strcspn: New file.
46495         * lib/unistr/u8-strcspn.c: New file.
46496         * lib/unistr/u16-strcspn.c: New file.
46497         * lib/unistr/u32-strcspn.c: New file.
46498         * lib/unistr/u-strcspn.h: New file.
46499
46500         * modules/unistr/u8-strdup: New file.
46501         * modules/unistr/u16-strdup: New file.
46502         * modules/unistr/u32-strdup: New file.
46503         * lib/unistr/u8-strdup.c: New file.
46504         * lib/unistr/u16-strdup.c: New file.
46505         * lib/unistr/u32-strdup.c: New file.
46506         * lib/unistr/u-strdup.h: New file.
46507
46508         * modules/unistr/u8-strlen: New file.
46509         * modules/unistr/u16-strlen: New file.
46510         * modules/unistr/u32-strlen: New file.
46511         * lib/unistr/u8-strlen.c: New file.
46512         * lib/unistr/u16-strlen.c: New file.
46513         * lib/unistr/u32-strlen.c: New file.
46514         * lib/unistr/u-strlen.h: New file.
46515
46516         * modules/unistr/u8-strmblen: New file.
46517         * modules/unistr/u16-strmblen: New file.
46518         * modules/unistr/u32-strmblen: New file.
46519         * lib/unistr/u8-strmblen.c: New file.
46520         * lib/unistr/u16-strmblen.c: New file.
46521         * lib/unistr/u32-strmblen.c: New file.
46522
46523         * modules/unistr/u8-strmbtouc: New file.
46524         * modules/unistr/u16-strmbtouc: New file.
46525         * modules/unistr/u32-strmbtouc: New file.
46526         * lib/unistr/u8-strmbtouc.c: New file.
46527         * lib/unistr/u16-strmbtouc.c: New file.
46528         * lib/unistr/u32-strmbtouc.c: New file.
46529
46530         * modules/unistr/u8-strncat: New file.
46531         * modules/unistr/u16-strncat: New file.
46532         * modules/unistr/u32-strncat: New file.
46533         * lib/unistr/u8-strncat.c: New file.
46534         * lib/unistr/u16-strncat.c: New file.
46535         * lib/unistr/u32-strncat.c: New file.
46536         * lib/unistr/u-strncat.h: New file.
46537
46538         * modules/unistr/u8-strncmp: New file.
46539         * modules/unistr/u16-strncmp: New file.
46540         * modules/unistr/u32-strncmp: New file.
46541         * lib/unistr/u8-strncmp.c: New file.
46542         * lib/unistr/u16-strncmp.c: New file.
46543         * lib/unistr/u32-strncmp.c: New file.
46544
46545         * modules/unistr/u8-strncpy: New file.
46546         * modules/unistr/u16-strncpy: New file.
46547         * modules/unistr/u32-strncpy: New file.
46548         * lib/unistr/u8-strncpy.c: New file.
46549         * lib/unistr/u16-strncpy.c: New file.
46550         * lib/unistr/u32-strncpy.c: New file.
46551         * lib/unistr/u-strncpy.h: New file.
46552
46553         * modules/unistr/u8-strnlen: New file.
46554         * modules/unistr/u16-strnlen: New file.
46555         * modules/unistr/u32-strnlen: New file.
46556         * lib/unistr/u8-strnlen.c: New file.
46557         * lib/unistr/u16-strnlen.c: New file.
46558         * lib/unistr/u32-strnlen.c: New file.
46559         * lib/unistr/u-strnlen.h: New file.
46560
46561         * modules/unistr/u8-strpbrk: New file.
46562         * modules/unistr/u16-strpbrk: New file.
46563         * modules/unistr/u32-strpbrk: New file.
46564         * lib/unistr/u8-strpbrk.c: New file.
46565         * lib/unistr/u16-strpbrk.c: New file.
46566         * lib/unistr/u32-strpbrk.c: New file.
46567         * lib/unistr/u-strpbrk.h: New file.
46568
46569         * modules/unistr/u8-strrchr: New file.
46570         * modules/unistr/u16-strrchr: New file.
46571         * modules/unistr/u32-strrchr: New file.
46572         * lib/unistr/u8-strrchr.c: New file.
46573         * lib/unistr/u16-strrchr.c: New file.
46574         * lib/unistr/u32-strrchr.c: New file.
46575
46576         * modules/unistr/u8-strspn: New file.
46577         * modules/unistr/u16-strspn: New file.
46578         * modules/unistr/u32-strspn: New file.
46579         * lib/unistr/u8-strspn.c: New file.
46580         * lib/unistr/u16-strspn.c: New file.
46581         * lib/unistr/u32-strspn.c: New file.
46582         * lib/unistr/u-strspn.h: New file.
46583
46584         * modules/unistr/u8-strstr: New file.
46585         * modules/unistr/u16-strstr: New file.
46586         * modules/unistr/u32-strstr: New file.
46587         * lib/unistr/u8-strstr.c: New file.
46588         * lib/unistr/u16-strstr.c: New file.
46589         * lib/unistr/u32-strstr.c: New file.
46590         * lib/unistr/u-strstr.h: New file.
46591
46592         * modules/unistr/u8-strtok: New file.
46593         * modules/unistr/u16-strtok: New file.
46594         * modules/unistr/u32-strtok: New file.
46595         * lib/unistr/u8-strtok.c: New file.
46596         * lib/unistr/u16-strtok.c: New file.
46597         * lib/unistr/u32-strtok.c: New file.
46598         * lib/unistr/u-strtok.h: New file.
46599
46600         * modules/unistr/u8-uctomb: New file.
46601         * modules/unistr/u16-uctomb: New file.
46602         * modules/unistr/u32-uctomb: New file.
46603         * lib/unistr/u8-uctomb.c: New file.
46604         * lib/unistr/u16-uctomb.c: New file.
46605         * lib/unistr/u32-uctomb.c: New file.
46606
46607         * MODULES.html.sh (Unicode string functions): Add the new modules.
46608
46609 2007-01-08  Bruno Haible  <bruno@clisp.org>
46610
46611         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
46612         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
46613         subdirectories.
46614
46615 2007-01-08  Karl Berry  <karl@gnu.org>
46616
46617         * doc/error.texi: mention that main() fns must set program_name
46618         when progname is used.
46619
46620 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
46621
46622         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
46623         WCTYPE_H is empty, for the benefit of builds from non-distclean
46624         directories.  Problem reported by Eric Blake in
46625         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
46626
46627 2007-01-08  Bruno Haible  <bruno@clisp.org>
46628
46629         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
46630         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
46631         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
46632         PROVIDE_CANONICALIZE_FILENAME_MODE.
46633         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
46634
46635 2007-01-08  Bruno Haible  <bruno@clisp.org>
46636
46637         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
46638         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
46639         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
46640         * lib/fts.c: Likewise.
46641         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
46642
46643 2006-12-25  Bruno Haible  <bruno@clisp.org>
46644
46645         * modules/utf8-ucs4-safe: New file.
46646         * lib/utf8-ucs4-safe.h: New file.
46647         * lib/unistr/utf8-ucs4-safe.c: New file.
46648
46649         * modules/utf16-ucs4-safe: New file.
46650         * lib/utf16-ucs4-safe.h: New file.
46651         * lib/unistr/utf16-ucs4-safe.c: New file.
46652
46653         * MODULES.html.sh (Unicode string functions): Add the new modules.
46654
46655 2007-01-08  Bruno Haible  <bruno@clisp.org>
46656
46657         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
46658         (Depends-on): Add unitypes.
46659         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
46660         (u8_mbtouc_aux): Move out to separate file.
46661         (u8_mbtouc): Use ucs4_t, uint8_t types.
46662         * lib/unistr/utf8-ucs4.c: New file.
46663
46664         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
46665         (Depends-on): Add unitypes.
46666         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
46667         (u16_mbtouc_aux): Move out to separate file.
46668         (u16_mbtouc): Use ucs4_t, uint16_t types.
46669         * lib/unistr/utf16-ucs4.c: New file.
46670
46671         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
46672         (Depends-on): Add unitypes.
46673         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
46674         (u8_uctomb_aux): Move out to separate file.
46675         (u8_uctomb): Use ucs4_t, uint8_t types.
46676         * lib/unistr/ucs4-utf8.c: New file.
46677
46678         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
46679         (Depends-on): Add unitypes.
46680         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
46681         (u16_uctomb_aux): Move out to separate file.
46682         (u16_uctomb): Use ucs4_t, uint16_t types.
46683         * lib/unistr/ucs4-utf16.c: New file.
46684
46685 2006-12-25  Bruno Haible  <bruno@clisp.org>
46686
46687         * modules/unitypes: New file.
46688         * lib/unitypes.h: New file.
46689         * MODULES.html.sh (func_all_modules): New section "Unicode string
46690         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
46691         this section. Add unitypes.
46692
46693 2007-01-08  Bruno Haible  <bruno@clisp.org>
46694
46695         Avoid variable names that conflict with those from libtool.
46696         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
46697         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
46698         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
46699         library_names_spec to acl_library_names_spec, hardcode_* to
46700         acl_hardcode_*.
46701         Reported by Ralf Wildenhues.
46702
46703 2007-01-08  Bruno Haible  <bruno@clisp.org>
46704
46705         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
46706         definition.
46707         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
46708         definition.
46709         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
46710         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
46711         definition.
46712         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
46713         definition.
46714         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
46715         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
46716         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
46717         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
46718         definition.
46719         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
46720         definition.
46721         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
46722         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
46723         GC_USE_<algorithm>.
46724         * lib/gc-libgcrypt.c: Likewise.
46725         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
46726         * modules/gc-arctwo (configure.ac): Likewise.
46727         * modules/gc-des (configure.ac): Likewise.
46728         * modules/gc-hmac-md5 (configure.ac): Likewise.
46729         * modules/gc-hmac-sha1 (configure.ac): Likewise.
46730         * modules/gc-md2 (configure.ac): Likewise.
46731         * modules/gc-md4 (configure.ac): Likewise.
46732         * modules/gc-md5 (configure.ac): Likewise.
46733         * modules/gc-random (configure.ac): Likewise.
46734         * modules/gc-rijndael (configure.ac): Likewise.
46735         * modules/gc-sha1 (configure.ac): Likewise.
46736
46737 2007-01-08  Bruno Haible  <bruno@clisp.org>
46738
46739         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
46740         macro definition.
46741         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
46742         definition.
46743         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
46744         definition.
46745         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
46746         * modules/fcntl-safer (configure.ac): Likewise.
46747         * modules/fopen-safer (configure.ac): Likewise.
46748         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
46749         GNULIB_FWRITEERROR macro definition.
46750
46751 2007-01-08  Bruno Haible  <bruno@clisp.org>
46752
46753         * m4/gnulib-common.m4: New file.
46754         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
46755         (func_get_filelist): Add m4/gnulib-common.m4.
46756
46757 2007-01-08  Bruno Haible  <bruno@clisp.org>
46758
46759         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
46760         command.
46761
46762 2007-01-08  Jim Meyering  <jim@meyering.net>
46763
46764         Use a more robust test for a "can't happen" condition.
46765         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
46766         narrowed the st_size value.  Presuming the "can't happen" condition
46767         is true, that narrowing could conceivably convert an invalid st_size
46768         value into a valid one.  Instead, use a change based on Matthew
46769         Woehlke's original patch.
46770
46771         Slight readability improvement: use an assert-like macro
46772         in place of literal "abort ()" uses.
46773         * lib/fts.c (fts_assert): Define.
46774         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
46775         Use this macro instead of a bare 'abort'.
46776
46777 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
46778
46779         Don't worry about using IRIX 5.3's wctype.h broken definitions;
46780         simply work around them.
46781         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
46782         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
46783         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
46784         declaring.
46785         Don't bother to define as macros, since the standard doesn't require it.
46786         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
46787         longer worry about IRIX 5.3.
46788         (HAVE_WCTYPE_CTMP_BUG): Remove.
46789
46790 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
46791
46792         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
46793         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
46794         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
46795         Problems reported by Georg Schwarz for IRIX 5.3.
46796
46797         * gnulib-tool (autoconf_minversion): Take the maximum version number
46798         found, not the minimum.  Problem reported by James Youngman.
46799
46800 2007-01-03  Karl Berry  <karl@gnu.org>
46801
46802         * doc/error.texi: new file, explaining interaction with progname.
46803         * doc/gnulib.texi: include it.  Update copyright.
46804
46805 2007-01-03  Simon Josefsson  <simon@josefsson.org>
46806
46807         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
46808         AC_CANONICAL_HOST, to improve autobuild outputs.
46809
46810 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
46811             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
46812
46813         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
46814         sockets, server sockets, and other file descriptors.  Count errors
46815         to compute the return value.  Reorder the code a bit to be easier
46816         to follow.  Don't set event bits that were not requested (except
46817         POLLERR and POLLHUP).
46818
46819 2007-01-01  Bruno Haible  <bruno@clisp.org>
46820
46821         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
46822
46823 2007-01-03  Jim Meyering  <jim@meyering.net>
46824
46825         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
46826
46827 2007-01-02  Bruno Haible  <bruno@clisp.org>
46828
46829         * modules/settime (Include): Require timespec.h.
46830         * modules/nanosleep (Include): Likewise.
46831
46832 2007-01-01  Bruno Haible  <bruno@clisp.org>
46833
46834         * gnulib-tool (func_emit_copyright_notice): Bump year.
46835         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
46836
46837 2007-01-01  Bruno Haible  <bruno@clisp.org>
46838
46839         Improve support for OpenBSD.
46840         * build-aux/config.rpath (libname_spec): Export.
46841         (library_names_spec): New variable. Export.
46842         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
46843         library_names_spec from the config.rpath output. Locate shared library
46844         through the name pattern in library_names_spec.
46845
46846 2007-01-01  Eric Blake  <ebb9@byu.net>
46847
46848         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
46849
46850 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
46851
46852         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
46853         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
46854         assume the C locale, and avoid an "eval" that could cause trouble.
46855         Problem with SORT reported by Bob Proulx.
46856
46857         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
46858         Define.  Trivial patch from Henning Nielsen Lund, originally
46859         sent to bug-grep@gnu.org today.
46860
46861 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
46862
46863         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
46864         struct stat.  Problem reported by Henning Nielsen Lund.
46865         * lib/acl.c: Include acl.h first, to check interface.  Don't
46866         bother to include sys/types.h and sys/stat.h again.
46867
46868 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
46869
46870         Import the following change from libc; problem reported by
46871         Sven Verdoolaege.
46872
46873         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
46874
46875         [BZ #1373]
46876         * lib/argp.h: Remove __NTH for __argp_usage inline function.
46877
46878 2006-12-28  Jim Meyering  <jim@meyering.net>
46879
46880         * build-aux/announce-gen: Do not assume that the package
46881         builds any of tar.gz, tar.bz2, and .xdelta files.
46882         Suggestion from Simon Josefsson.
46883
46884 2006-12-28  Simon Josefsson  <simon@josefsson.org>
46885
46886         * modules/announce-gen: New file.
46887
46888 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
46889
46890         * lib/mbchar.h: Just include <wctype.h>; the wctype module
46891         handles its gotchas now.
46892         * lib/mbswidth.c: Likewise.
46893         * lib/wcwidth.h: Likewise.
46894         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
46895         and iswcntrl; the wctype module does this stuff now.
46896         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
46897         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
46898         * modules/mbchar (Depends-on): Add wctype.
46899         * modules/mbswidth (Depends-on): Likewise.
46900         * modules/wcwidth (Depends-on): Likewise.
46901
46902 2006-12-27  Eric Blake  <ebb9@byu.net>
46903
46904         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
46905         module uses more than what <wctype.h> is required to provide.
46906
46907 2006-12-26  Eric Blake  <ebb9@byu.net>
46908
46909         * gnulib-tool (sed_extract_prog): Avoid space-tab.
46910
46911 2006-12-26  Eric Blake  <ebb9@byu.net>
46912
46913         * modules/absolute-header: New module.
46914         * modules/fcntl (Depends-on): Depend on it.
46915         * modules/inttypes (Depends-on): Likewise.
46916         * modules/stdint (Depends-on): Likewise.
46917         * modules/sys_stat (Depends-on): Likewise.
46918         * modules/wctype (Depends-on): Likewise.
46919         * MODULES.html.sh (Support for building libraries and
46920         executables): Document it.
46921
46922 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
46923
46924         * gnulib-tool (SED): Remove, undoing previous change.
46925         The problem was that it broke coreutils on Solaris, because
46926         "sed --posix" leaked into a makefile.
46927         (sed): New alias, if 'alias' and GNU sed.
46928
46929 2006-12-24  Jim Meyering  <jim@meyering.net>
46930
46931         Work around an fchownat bug in glibc-2.4:
46932         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
46933         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
46934         in spite of the -P option.
46935         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
46936         New macros.
46937         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
46938         * modules/openat (Files): Add lib/fchownat.c.
46939         * lib/openat.c (fchownat): Don't define here.  Move to...
46940         * lib/fchownat.c: ...this new file.
46941
46942 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
46943
46944         Fix bug reported by Bruno Haible in
46945         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
46946         where quotearg.c didn't compile on Mac OS X 10.2 because it
46947         lacks <wchar.h> and wint_t.
46948         * lib/wctype_.h (__wctype_wint_t): New type.
46949         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
46950         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
46951         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
46952         Arg is now of type __wctype_wint_t, not wint_t.
46953         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
46954         substitute HAVE_WINT_T.
46955         * modules/wctype (Files): Add m4/wint_t.m4.
46956         (wctype.h): Substitute HAVE_WINT_T.
46957
46958 2006-12-23  Bruno Haible  <bruno@clisp.org>
46959
46960         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
46961
46962 2006-12-23  Bruno Haible  <bruno@clisp.org>
46963
46964         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
46965         S_ISLNK.
46966         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
46967         mingw.
46968
46969 2006-12-22  Bruno Haible  <bruno@clisp.org>
46970
46971         * lib/copy-file.c: Include acl.h.
46972         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
46973         Close the file descriptors only after being done with copy_acl.
46974         * modules/copy-file (Depends-on): Add acl.
46975
46976 2006-12-22  Bruno Haible  <bruno@clisp.org>
46977
46978         * gnulib-tool (SED): New variable.
46979         Use $SED instead of sed everywhere.
46980
46981 2006-12-22  Bruno Haible  <bruno@clisp.org>
46982
46983         * modules/no-c++: New file.
46984         * m4/no-c++.m4: New file.
46985         * MODULES.html.sh (Support for building libraries and executables):
46986         Add no-c++.
46987
46988 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
46989
46990         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
46991         Include <limits.h>, and use its INT_MAX to rewrite the
46992         j loop so that it does not overflow 'int'.  Problem reported by
46993         Ralf Wildenhues in
46994         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
46995         Play it safe by shifting left by 1 rather than multiplying by 2,
46996         as GCC is less likely to optimize this away when the value
46997         is signed (when it assumes overflow leads to undefined behavior).
46998         Also, don't assume time_t uses two's complement.
46999
47000 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
47001
47002         * MODULES.html.sh: New module wctype.
47003         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
47004         * lib/fnmatch.c: Don't bother to include <wchar.h> before
47005         <wctype.h>, since the new wctype module should fix this.
47006         * lib/quotearg.c: Include <wctype.h> unconditionally, since
47007         the wctype module should arrange for it.
47008         * lib/regex_internal.h: Likewise.
47009         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
47010         since the wctype module should handle this now.
47011         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
47012         * modules/fnmatch (Depends-on): Add wctype.
47013         * modules/quotearg (Depends-on): Likewise.
47014         * modules/regex (Depends-on): Likewise.
47015
47016 2006-12-19  Bruno Haible  <bruno@clisp.org>
47017
47018         * lib/strdup.h [C++]: Wrap definitions in extern "C".
47019         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
47020
47021 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47022
47023         * modules/savewd (Depends-on): Fix dependency on fcntl.
47024
47025 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
47026
47027         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
47028         conforms to C99, rather than relying on the user's environment
47029         setting of STDINT_H.
47030
47031 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
47032         and Eric Blake  <ebb9@byu.net>
47033
47034         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
47035         This is more consistent with the other defines here.
47036         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
47037         Port to z/OS.  Problem reported by Paul Gilmartin.
47038         Change local vars to use gl_ prefix rather than ac_.
47039         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
47040         with other defines.
47041         * modules/double-slash-root: New module.
47042         * modules/dirname (Files): Remove m4/double-slash-root.m4.
47043         (Depends-on): Add double-slash-root.
47044         * MODULES.html.sh (File system functions): Mention new module.
47045
47046 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
47047
47048         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
47049         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
47050         This is for the benefit of gzip, which doesn't do i18n.
47051
47052 2006-12-12  Jim Meyering  <jim@meyering.net>
47053
47054         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
47055         Reported by Andreas Schwab <schwab@suse.de>.
47056
47057 2006-12-12  Bruno Haible  <bruno@clisp.org>
47058
47059         Merge these changes.
47060         2006-09-05  Bruno Haible  <bruno@clisp.org>
47061         * lib/iconvme.c (iconv_string): No need to save and restore errno when
47062         iconv_alloc succeeded.
47063         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
47064         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
47065         test for " && dest " at the end - dest is always != NULL there. Call
47066         iconv with 4xNULL arguments initially, to reset the state. Call iconv
47067         with 2xNULL arguments, also to flush the state storage. Handle the
47068         IRIX iconv behaviour. Realloc the final result, to throw away unused
47069         memory.
47070
47071 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
47072
47073         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
47074         and fchmodat unconditionally, since glibc 2.4 has them.
47075         Problem reported by Arkadiusz Miskiewicz.
47076
47077 2006-12-10  Bruno Haible  <bruno@clisp.org>
47078
47079         * gnulib-tool (func_import): Show the include files only for those
47080         modules that are copied and specified.
47081         Reported by Karl Berry.
47082
47083 2006-12-08  Jim Meyering  <jim@meyering.net>
47084
47085         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
47086         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
47087
47088         * build-aux/announce-gen: Add two new options, both optional:
47089         --bootstrap-tools=TOOL_LIST
47090               a comma-separated list of tools, e.g.,
47091               autoconf,automake,bison,gnulib
47092         --gnulib-snapshot-date=DATE
47093               if gnulib is in the bootstrap tool list,
47094               then report this as the snapshot date.
47095               If not specified, use the current date/time.
47096               If you specify a date here, be sure it's UTC.
47097
47098 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47099
47100         * tests/test-argp-2.sh: Fix test to match actual output.
47101         (func_compare): Fix sed script to be portable.
47102
47103 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
47104
47105         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
47106         workaround for this case.  It is not autoconfigured now; offhand
47107         it's hard to see how to autoconfigure it.
47108
47109 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
47110
47111         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
47112         a directory that is about to be chowned.  Such a directory's
47113         initial file permissions should permit the owner only and this
47114         should not be changed until after the chown, since the group and
47115         other bits would be incorrect if they granted permission before
47116         the chown.
47117
47118         Fix porting problem for iswctype reported by Georg Schwarz in:
47119         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
47120         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
47121         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
47122         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
47123         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
47124
47125 2006-12-03  Jim Meyering  <jim@meyering.net>
47126
47127         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
47128         p->fts_statp may not yet be defined.
47129         (fts_read): Instead, set it in the caller, once p->fts_statp is
47130         sure to be defined, and corresponds to a top-level directory.
47131         This bug made du -x fail.  Here's the coreutils test case:
47132         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
47133         Reported by Mike Frysinger.
47134
47135 2006-12-01  Jim Meyering  <jim@meyering.net>
47136
47137         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
47138         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
47139         Reported by Simon Josefsson.
47140
47141 2006-11-30  Jim Meyering  <jim@meyering.net>
47142
47143         * m4/warning.m4: Use the all-permissive copyright notice
47144         recommended by RMS (rather than LGPL).
47145         * m4/vararrays.m4: Likewise.
47146         * m4/flexmember.m4: Likewise.
47147
47148 2006-11-29  Bruno Haible  <bruno@clisp.org>
47149
47150         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
47151         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
47152         using +=.
47153         Reported by Simon Josefsson <simon@josefsson.org>.
47154
47155 2006-11-28  James Youngman <jay@gnu.org>
47156
47157         * README: Advise users that they might find the bug-gnulib@gnu.org
47158         and autotools-announce@gnu.org mailing lists useful.
47159
47160 2006-11-28  Bruno Haible  <bruno@clisp.org>
47161
47162         * m4/ptrdiff_max.m4: Remove file.
47163
47164 2006-11-21  Bruno Haible  <bruno@clisp.org>
47165
47166         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
47167         _AC_COMPUTE_INT.
47168         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
47169         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
47170         _AC_COMPUTE_INT.
47171         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
47172         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
47173         _AC_COMPUTE_INT.
47174         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
47175
47176 2006-11-28  Jim Meyering  <jim@meyering.net>
47177
47178         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
47179         warning from "gcc -Wshadow" about shadowing the builtin.
47180
47181 2006-11-27  Bruno Haible  <bruno@clisp.org>
47182
47183         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
47184         _AC_COMPUTE_INT.
47185         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
47186
47187 2006-11-27  Bruno Haible  <bruno@clisp.org>
47188             Paul Eggert  <eggert@cs.ucla.edu>
47189
47190         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
47191
47192 2006-11-26  Bruno Haible  <bruno@clisp.org>
47193
47194         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
47195         noinst_LTLIBRARIES.
47196
47197 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
47198             Bruno Haible  <bruno@clisp.org>
47199
47200         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
47201         if compiling with "gcc -ansi".
47202
47203 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
47204
47205         Fix some incompatibilities with gcc -ansi -pedantic.
47206         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
47207         if compiling pedantically with GCC, unless it's C99 or later.
47208         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
47209         it mishandles gcc -ansi -pedantic as well.
47210         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
47211         if gcc -pedantic.
47212         * lib/regexec.c (check_node_accept_bytes): Don't use auto
47213         initializers for struct if -pedantic, unless it's C99 or later.
47214
47215 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
47216
47217         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
47218         Don't close an fd more than once. Identical atimes indicate
47219         success, not failure.
47220
47221 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
47222
47223         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
47224
47225 2006-11-23  Jim Meyering  <jim@meyering.net>
47226
47227         * build-aux/announce-gen: New file.  From coreutils.
47228
47229 2006-11-22  Jim Meyering  <jim@meyering.net>
47230
47231         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
47232         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
47233         (fts_read): Use a temporary to narrow the overused st_size member
47234         before using it in a switch statement.  Reported by Matthew Woehlke.
47235
47236         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
47237         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
47238
47239 2006-11-20  Bruno Haible  <bruno@clisp.org>
47240
47241         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
47242         changequote instead of pairs of brackets.
47243         Reported by Andreas Schwab <schwab@suse.de>.
47244
47245 2006-11-21  Jim Meyering  <jim@meyering.net>
47246
47247         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
47248         so as to remain compatible with older compilers.
47249         Patch from Michael Deutschmann.
47250
47251 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
47252
47253         * MODULES.html.sh (File system functions): Add openat.
47254
47255         * lib/openat.h (rpl_fstatat): New macro, if
47256         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
47257         (fstatat): Define to rpl_fstatat under the same conditions,
47258         unless COMPILING_FSTATAT.
47259         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
47260         seems to have the bug.
47261         * lib/fstatat.c: New file.
47262         * modules/openat (Files): Add it.
47263
47264 2006-11-20  Bruno Haible  <bruno@clisp.org>
47265
47266         * Makefile: New file.
47267
47268 2006-11-20  Jim Meyering  <jim@meyering.net>
47269
47270         The beginnings of syntax-related checks for gnulib.
47271         * lib/Makefile: New file.
47272         * lib/t-idcache: New script.  Ensure that the two halves of
47273         idcache.c stay in sync.
47274
47275         * lib/idcache.c: Adjust comments in user- and group- portions to
47276         be more accurate, and to be consistent with one another.
47277
47278 2006-11-20  Jim Meyering  <jim@meyering.net>
47279
47280         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
47281         continue using the flexible array member (thus, this module performs
47282         half as many malloc calls), with the addition that...
47283         (getgroup, getuser): Consistently record a non-match via an empty
47284         "name" string, and map an empty string match to a NULL return value.
47285         * modules/idcache (Depends-on): Re-add flexmember.
47286
47287         * lib/idcache.c (getuser): Remove all uses of the register keyword.
47288         (getuidbyname, getgroup, getgidbyname): Likewise.
47289
47290         Use cleaner syntax: NULL rather than 0.
47291         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
47292
47293 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
47294
47295         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
47296         It mishandled the case where the group was missing.
47297         Problem reported by Greg Schafer.
47298         * modules/idcache: Likewise.
47299
47300 2006-11-18  Jim Meyering  <jim@meyering.net>
47301
47302         * check-module (%exempt_header): Add exception for some
47303         conditionally-included headers.
47304
47305         * modules/i-ring (Depends-on): Add verify.
47306         (License): Change to LGPL.
47307
47308 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
47309
47310         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
47311         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
47312         and inttostr.h.  Use snprintf rather than uinttostr, so that
47313         LGPLed code doesn't depend on GPLed.
47314
47315 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
47316
47317         * modules/inline (License): Change from GPL to LGPL.
47318
47319 2006-11-17  Jim Meyering  <jim@meyering.net>
47320
47321         * modules/d-type (License): Switch to LGPL.
47322
47323 2006-11-15  Bruno Haible  <bruno@clisp.org>
47324
47325         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
47326
47327 2006-11-15  Eric Blake  <ebb9@byu.net>
47328
47329         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
47330         the module dependency.
47331
47332 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47333             Bruno Haible  <bruno@clisp.org>
47334
47335         * gnulib-tool (func_create_testdir): Add license consistency check.
47336
47337 2006-11-15  Eric Blake  <ebb9@byu.net>
47338
47339         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
47340         random "(cached)" in configure output.
47341
47342 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47343
47344         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
47345         test for conforming inttypes.h is both announced and cached.
47346
47347         * MODULES.html.sh (seen_modules, seen_files): New variables.
47348         (func_module): Rewrite to use a few less gnulib-tool and sed
47349         invocations.  Avoid a couple of quadratic algorithms for ...
47350         (missed_modules, missed_files): ... these, with ...
47351         (func_append, func_tmpdir): ... these new functions, from
47352         gnulib-tool.  Analogously, install traps for cleanup.
47353
47354         * tests/test-gc.c (main): Remove unused variables.
47355         * tests/test-read-file.c: Include stdlib.h, for 'free'.
47356
47357 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
47358
47359         * modules/inttostr (License): Change to LGPL.
47360
47361 2006-11-14  Eric Blake  <ebb9@byu.net>
47362
47363         * modules/tempname (License): Change to LGPL.
47364
47365 2006-11-14  Eric Blake  <ebb9@byu.net>
47366
47367         * doc/functions.texi (Function Portability): *printf functions on
47368         Cygwin now understand all POSIX size specifiers.
47369
47370 2006-11-14  Bruno Haible  <bruno@clisp.org>
47371
47372         * modules/c-ctype (License): Change to LGPL.
47373
47374 2006-11-12  Bruno Haible  <bruno@clisp.org>
47375
47376         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
47377         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
47378         for GNOME libraries, for which the include files are installed in
47379         subdirectories of $prefix/include.
47380
47381 2006-11-12  Bruno Haible  <bruno@clisp.org>
47382
47383         * m4/lib-link.m4: Require at least autoconf-2.54.
47384         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
47385         name to underscores for the --with option.
47386
47387 2006-11-13  Bruno Haible  <bruno@clisp.org>
47388
47389         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
47390         the tests directory.
47391         Reported by Ralf Wildenhues.
47392
47393 2006-11-13  Bruno Haible  <bruno@clisp.org>
47394
47395         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
47396         (func_emit_initmacro_end): Undo the override here.
47397         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
47398         Works around the famous automake error in coreutils.
47399
47400 2006-11-13  Eric Blake  <ebb9@byu.net>
47401
47402         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
47403         element, not its node.
47404
47405 2006-11-12  Bruno Haible  <bruno@clisp.org>
47406
47407         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
47408         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
47409
47410 2006-11-12  Bruno Haible  <bruno@clisp.org>
47411
47412         * gnulib-tool: New option --local-symlink.
47413         (func_usage): Document it.
47414         (lsymbolic): New variable.
47415         (func_import, func_create_testdir): If --symlink was not specified,
47416         test whether --local-symlink was specified and the file comes from
47417         the local_gnulib_dir.
47418
47419 2006-11-12  Bruno Haible  <bruno@clisp.org>
47420
47421         * gnulib-tool (func_ln): New function.
47422         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
47423
47424 2006-11-12  Bruno Haible  <bruno@clisp.org>
47425
47426         Finish support for source files in subdirectories.
47427         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
47428         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
47429         AUTOMAKE_OPTIONS.
47430         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
47431
47432 2006-11-12  Bruno Haible  <bruno@clisp.org>
47433
47434         * gnulib-tool (func_get_automake_snippet): Synthesize also an
47435         EXTRA_lib_SOURCES augmentation.
47436         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
47437
47438 2006-11-12  Jim Meyering  <jim@meyering.net>
47439
47440         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
47441         file descriptors.  This also averts a failure on systems with
47442         native openat support when a traversed directory lacks "x" access.
47443         * lib/fts_.h: Include "i-ring.h"
47444         (struct FTS) [fts_fd_ring]: New member.
47445         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
47446         (FCHDIR): Add parentheses.
47447         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
47448         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
47449         When descending, rather than simply closing the previous
47450         fts_cwd_fd value, push that file descriptor onto the ring.
47451         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
47452         (fts_open): Initialize the new fd_ring member.
47453         (fts_close): Clear the ring.
47454         (fts_safe_changedir): When possible, use our new fd_ring to skip
47455         the diropen and fstat and dev/ino comparison that would normally
47456         accompany a virtual `chdir ("..")'.
47457
47458         * modules/fts (Depends-on): Add i-ring.
47459         * modules/i-ring: New module.
47460         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
47461         * m4/i-ring.m4: New file.
47462
47463 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47464
47465         * gnulib-tool (func_create_testdir): Fix replacement of
47466         `build-aux' in configure.ac.  Run autotools in gltests
47467         subdirectory.
47468         (func_create_testdir, func_create_megatestdir, test): There is
47469         no need for '--force' in most autotool invocations in a new
47470         tree.  Actually fail the whole test if any of the tools, or the
47471         configure or make stages fail.
47472
47473         Sync from Automake.
47474         * build-aux/gnupload: Revert last change.  Add pointer to upload
47475         instructions of the GNU Maintenance Instructions.
47476         Suggestion by Karl Berry.
47477
47478 2006-11-10  Jim Meyering  <jim@meyering.net>
47479
47480         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
47481
47482 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
47483
47484         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
47485         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
47486         (bind_textdomain_codeset) [! ENABLE_NLS]:
47487         Evaluate all the arguments.  That way, callers get compatible behavior
47488         if the arguments have side effects.  Also, it avoids some GCC
47489         diagnostics in some cases; Joel E. Denny reported problems when Bison
47490         was configured with --enable-gcc-warnigs.
47491
47492 2006-11-10  Jim Meyering  <jim@meyering.net>
47493
47494         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
47495         relevant options in CFLAGS (like -O, -fno-inline) are taken into
47496         account.
47497
47498 2006-11-10  Jim Meyering  <jim@meyering.net>
47499
47500         * modules/inline: New file/module.
47501         * modules/xalloc (Files): Remove m4/inline.m4.
47502         (Depends-on): Add inline, instead.
47503         * modules/oset: Likewise.
47504         * modules/list: Likewise.
47505
47506 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
47507
47508         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
47509         Problem reported by Matthew Woehlke.
47510
47511 2006-11-09  Bruno Haible  <bruno@clisp.org>
47512
47513         * lib/tempname.c (gen_tempname): Remove variant that invokes
47514         __gen_tempname.
47515         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
47516         __gen_tempname.
47517
47518 2006-11-08  Bruno Haible  <bruno@clisp.org>
47519
47520         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
47521         to 'yes' instead of 'cross-compiling'.
47522
47523 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
47524
47525         * lib/quotearg.h (quotearg_free): New decl.
47526         * lib/quotearg.c (quotearg_free): New function.
47527         (slot0, nslots, slotvec0, slotvec):
47528         Now file-scope so that quotearg_free can get at them.
47529
47530 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47531
47532         Sync from Automake.
47533         * build-aux/gnupload: Add missing 'gnu' to example URL.
47534         Report by Karl Berry.
47535
47536 2006-11-08  Bruno Haible  <bruno@clisp.org>
47537
47538         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
47539         Suggested by Paul Eggert.
47540
47541 2006-11-08  Jim Meyering  <jim@meyering.net>
47542
47543         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
47544         It's already included if !_LIBC.
47545         (fts_safe_changedir): Add a comment.
47546
47547 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
47548
47549         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
47550         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
47551         Matthew Woehlke.
47552
47553         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
47554         definitions up, to avoid colliding with change below.
47555         (static_inline) [HAVE_INLINE]: New macro.
47556         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
47557         Provide extern decls when !HAVE_INLINE.  Do not define unless
47558         static_inline is defined, either by us or by xmalloc.c.  Use
47559         static_inline rather than static inline.
47560         (XCALLOC): Optimize sizeof(T) = 1 case.
47561         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
47562
47563 2006-11-07  Bruno Haible  <bruno@clisp.org>
47564
47565         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
47566         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
47567         AC_C_INLINE.
47568         * modules/xalloc (Files): Add m4/inline.m4.
47569
47570 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47571
47572         * README: Fix typo.
47573         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
47574         (Miscellanous Notes): ...from this.
47575
47576 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
47577
47578         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
47579         Mention that offsetof should be used instead of sizeof.
47580         From Bruno Haible.
47581
47582 2006-11-07  Bruno Haible  <bruno@clisp.org>
47583
47584         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
47585
47586 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
47587
47588         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
47589         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
47590         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
47591         (gl_tree_add_before, gl_tree_add_after):
47592         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
47593         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
47594         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
47595         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
47596         (gl_linked_add_after, gl_linked_add_at): Likewise.
47597         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
47598         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
47599         (gl_tree_add_before, gl_tree_add_after): Likewise.
47600         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
47601         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
47602         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
47603
47604 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47605
47606         * lib/gl_oset.h: Use C comment style, not C++ comment style.
47607
47608 2006-11-06  Bruno Haible  <bruno@clisp.org>
47609
47610         * m4/inline.m4: New file.
47611         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
47612         * modules/list (Files): Add m4/inline.m4.
47613         * modules/oset (Files): Likewise.
47614
47615 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
47616
47617         * lib/idcache.c: Include <stddef.h>, for offsetof.
47618         (struct userid.name): Change from char * to a flexible array member.
47619         All uses changed.
47620         * modules/idcache (Depends-on): Add flexmember.
47621
47622         * MODULES.html.sh (Core language properties): New module flexmember.
47623         * modules/flexmember, m4/flexmember.m4: New files.
47624
47625         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
47626         inline functions that are identical with the old xnmalloc_inline,
47627         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
47628         that we can avoid some unnecessary integer multiplications and
47629         divisions in the common case where the element size is known at
47630         compile time.
47631         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
47632         needed.
47633         (xnboundedmalloc): Remove.
47634         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
47635         arguments, for consistency with rest of this header.
47636         (xcharalloc): Rewrite using XNMALLOC.
47637         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
47638         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
47639         versions have been moved to lib/xalloc.h and renamed to be the
47640         non-*_inline versions.
47641         (xmalloc, xrealloc): Implement without reference to the xnmalloc
47642         and xnrealloc functions, since those functions are now inline and
47643         now call us.
47644         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
47645         renaming described above.
47646         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
47647         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
47648         captures the dependency in AC_C_INLINE.
47649
47650         New module canonicalize-lgpl, proposed by Charles Wilson in
47651         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
47652         with a few small changes afterwards.
47653         * MODULES.html.sh (File system functions): New module
47654         canonicalize-lgpl.
47655         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
47656         and canonicalize_file_name.
47657         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
47658         * modules/canonicalize-lgpl: New files.
47659
47660 2006-11-05  Bruno Haible  <bruno@clisp.org>
47661
47662         * gnulib-tool (func_import, func_create_testdir): Create directories
47663         also for files in subdirectories of lib/.
47664
47665 2006-11-05  Bruno Haible  <bruno@clisp.org>
47666
47667         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
47668         ANSI C compliant.
47669
47670 2006-11-03  Bruno Haible  <bruno@clisp.org>
47671
47672         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
47673         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
47674         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
47675         (xnboundedmalloc): New inline function.
47676         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
47677         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
47678         xmalloc.
47679         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
47680         xmalloc.
47681         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
47682         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
47683         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
47684         xmalloc.
47685         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
47686         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
47687         xmalloc.
47688         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
47689         gl_tree_add_after): Use XMALLOC instead of xmalloc.
47690         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
47691         xmalloc.
47692         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
47693         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
47694         gl_tree_add_after): Use XMALLOC instead of xmalloc.
47695         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
47696         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
47697         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
47698         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
47699
47700 2006-11-03  Bruno Haible  <bruno@clisp.org>
47701
47702         * lib/c-ctype.h [C++]: Define functions without name mangling.
47703         * lib/fwriteerror.h [C++]: Likewise.
47704         * lib/gcd.h [C++]: Likewise.
47705         * lib/linebreak.h [C++]: Likewise.
47706
47707 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
47708
47709         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
47710         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
47711         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
47712         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
47713         Check for functions and headers just once.
47714         Check for declaration of canonicalize_file_name.
47715         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
47716
47717 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
47718
47719         * gnulib-tool (func_import): Fix typo in actioncmd.
47720
47721 2006-11-02  Bruno Haible  <bruno@clisp.org>
47722
47723         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
47724         newline sequence in the Makefile.am snippet as a space, like "make"
47725         does.
47726         Reported by Roger Persson <perrog@gmail.com>.
47727
47728 2006-11-01  Bruno Haible  <bruno@clisp.org>
47729
47730         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
47731         already declared in <string.h>.
47732         * lib/strcase.h (strncasecmp): Don't declare it if yes.
47733
47734 2006-11-01  Bruno Haible  <bruno@clisp.org>
47735
47736         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
47737         * lib/strcase.h: Include <string.h>.
47738         (strcasecmp): Define to rpl_strcasecmp here.
47739
47740 2006-11-01  Bruno Haible  <bruno@clisp.org>
47741
47742         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
47743
47744 2006-11-01  Eric Blake  <ebb9@byu.net>
47745
47746         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
47747
47748         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
47749
47750 2006-10-29  Bruno Haible  <bruno@clisp.org>
47751
47752         Make it compile in C++ mode.
47753         * lib/full-write.c (full_rw): Add a cast.
47754
47755 2006-11-01  Bruno Haible  <bruno@clisp.org>
47756
47757         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
47758         be POSIX compliant.
47759         Reported by Roger Persson <perrog@gmail.com>.
47760
47761 2006-11-01  Eric Blake  <ebb9@byu.net>
47762
47763         * lib/getopt_.h: Fix comments.
47764
47765 2006-10-31  Eric Blake  <ebb9@byu.net>
47766
47767         * modules/tmpdir (Depends-on): Add sys_stat.
47768         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
47769         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
47770         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
47771         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
47772         tempname.
47773
47774 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
47775
47776         Avoid some C++ diagnostics reported by Bruno Haible.
47777         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
47778         xmalloc.
47779         (quotearg_alloc): Use xcharalloc rather than xmalloc.
47780         (struct slotvec): Move to top level.
47781         (quotearg_n_options): Rewrite to avoid xmalloc.
47782         * lib/xalloc.h (xcharalloc): New function.
47783         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
47784         [defined __cplusplus]: Add function template that provides result
47785         type propagation.  This part of the change is from Bruno Haible.
47786
47787 2006-10-29  Bruno Haible  <bruno@clisp.org>
47788
47789         Make it compile in C++ mode.
47790         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
47791         * lib/strnlen1.c (strnlen1): Cast memchr result.
47792         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
47793         * lib/clean-temp.c (string_equals, string_hash): Add casts.
47794         (create_temp_dir): Rename local variable 'template'.
47795         (compile_csharp_using_sscli): Add cast.
47796         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
47797         * lib/findprog.c (find_in_path): Likewise.
47798         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
47799         * lib/wait-process.c (register_slave_subprocess): Likewise.
47800
47801 2006-10-22  Bruno Haible  <bruno@clisp.org>
47802
47803         * modules/tsearch: New file.
47804         * lib/tsearch.h: New file.
47805         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
47806         * m4/tsearch.m4: New file.
47807         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
47808
47809 2006-10-29  Eric Blake  <ebb9@byu.net>
47810
47811         * lib/arcfour.c: Assume config.h.
47812         * lib/arctwo.c: Likewise.
47813         * lib/base64.c: Likewise.
47814         * lib/check-version.c: Likewise.
47815         * lib/crc.c: Likewise.
47816         * lib/des.c: Likewise.
47817         * lib/gc-gnulib.c: Likewise.
47818         * lib/gc-libgcrypt.c: Likewise.
47819         * lib/gc-pbkdf2-sha1.c: Likewise.
47820         * lib/getaddrinfo.c: Likewise.
47821         * lib/getdelim.c: Likewise.
47822         * lib/getline.c: Likewise.
47823         * lib/hmac-md5.c: Likewise.
47824         * lib/hmac-sha1.c: Likewise.
47825         * lib/iconvme.c: Likewise.
47826         * lib/md2.c: Likewise.
47827         * lib/md4.c: Likewise.
47828         * lib/memxor.c: Likewise.
47829         * lib/read-file.c: Likewise.
47830         * lib/readline.c: Likewise.
47831         * lib/rijndael-alg-fst.c: Likewise.
47832         * lib/rijndael-api-fst.c: Likewise.
47833         * lib/xgetdomainname.c: Likewise.
47834
47835 2006-10-28  Eric Blake  <ebb9@byu.net>
47836
47837         * lib/xstrndup.c: Assume config.h.
47838
47839 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
47840
47841         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
47842         stat-macros.h is now for our own macros, whereas stat_h is for
47843         macros in the <sys/stat.h> name space.
47844         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
47845         (STAT_MACROS_H): Remove.
47846         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
47847         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
47848         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
47849         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
47850         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
47851         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
47852         Move these macros to ...
47853         * lib/stat_.h: here.  Don't include stat-macros.h.
47854         * lib/canonicalize.c: Don't include stat-macros.h.
47855         * lib/chown.c: Likewise.
47856         * lib/euidaccess.c: Likewise.
47857         * lib/file-type.c: Likewise.
47858         * lib/filemode.c: Likewise.
47859         * lib/glob.c: Likewise.
47860         * lib/isapipe.c: Likewise.
47861         * lib/lchown.c: Likewise.
47862         * lib/lstat.c: Likewise.
47863         * lib/mkdir-p.c: Likewise.
47864         * lib/rmdir.c: Likewise.
47865         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
47866         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
47867         unless mkdir isn't declared, to speed up 'configure'.
47868         Always create sys/stat.h, since it's unlikely any real sys/stat.h
47869         would define all the S_* symbols.
47870         * modules/canonicalize (Depends-on):
47871         Depend on sys_stat, not stat-macros.
47872         * modules/chown: Likewise.
47873         * modules/euidaccess: Likewise.
47874         * modules/filemode: Likewise.
47875         * modules/file-type: Likewise.
47876         * modules/glob: Likewise.
47877         * modules/isapipe: Likewise.
47878         * modules/lchown: Likewise.
47879         * modules/lstat: Likewise.
47880         * modules/mkancesdirs: Likewise.
47881         * modules/rmdir: Likewise.
47882         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
47883         * modules/modechange: Likewise.
47884         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
47885         (configure.ac): Remove gl_STAT_MACROS.
47886         * modules/sys_stat (Depends-on): Remove stat-macros.
47887
47888 2006-10-27  Bruno Haible  <bruno@clisp.org>
47889
47890         * m4/signed.m4: Remove file.
47891         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
47892         invocation.
47893         * modules/vasnprintf (Files): Remove m4/signed.m4.
47894
47895 2006-10-27  Bruno Haible  <bruno@clisp.org>
47896
47897         Update to GNU gettext 0.16.
47898         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
47899         m4/inttypes-h.m4, m4/signed.m4.
47900         * m4/gettext.m4: Update to GNU gettext 0.16.
47901         * m4/intl.m4: New file, from GNU gettext.
47902         * m4/intldir.m4: New file, from GNU gettext.
47903         * config/srclist.txt: Update
47904
47905 2006-10-27  Eric Blake  <ebb9@byu.net>
47906
47907         * MODULES.html.sh: Document tempname.
47908         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
47909         dependencies.
47910         (Files): Move lib/tempname.c...
47911         * modules/tempname: ...to this new module.
47912         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
47913         (gl_PREREQ_TEMPNAME): Move...
47914         * m4/tempname.m4: ...to this new file.
47915         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
47916         * modules/sys_stat (Depends-on): Add stat-macros.
47917         * lib/stat_.h (includes): Pick up stat macros.
47918         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
47919         if stat macros are broken.
47920         * lib/tempname.c (includes): No need to include "stat-macros.h".
47921         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
47922         (direxists, __path_search) [!_LIBC]: Don't compile these in
47923         gnulib; the tmpdir module covers that.
47924         * lib/tempname.h: New file.
47925
47926 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
47927
47928         * COPYING: Explain how gnulib-tool converts licence headers.
47929         Almost all wording by Eric Blake.
47930
47931 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
47932
47933         * lib/mbchar.h (is_basic_table): Make read-only.
47934         * lib/mbchar.c (is_basic_table): Likewise.
47935         Reported by John Darrington.
47936
47937 2006-10-25  Bruno Haible  <bruno@clisp.org>
47938
47939         * lib/progname.h (set_program_name): Undefine before defining.
47940
47941 2006-10-25  Bruno Haible  <bruno@clisp.org>
47942
47943         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
47944         false for non-gcc C++ compilers.
47945         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
47946
47947 2006-10-24  Bruno Haible  <bruno@clisp.org>
47948
47949         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
47950         iconv implementations like Irix iconv.
47951
47952 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
47953
47954         * modules/vararrays: New file.
47955         * m4/vararrays.m4: New file, taken from diffutils.
47956         * MODULES.html.sh: New module vararrays.
47957
47958 2006-10-24  Karl Berry  <karl@gnu.org>
47959
47960         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
47961         Don't call GNU Unix.
47962
47963 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47964
47965         * users.txt: Add Libtool.
47966
47967         Sync from Libtool:
47968
47969         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
47970
47971         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
47972         to gnulib's policy of including config.h unconditionally.
47973
47974 2006-10-24  Bruno Haible  <bruno@clisp.org>
47975
47976         * modules/wcwidth (Files): Add m4/wint_t.m4.
47977         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
47978         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
47979
47980 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
47981
47982         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
47983         to pacify GCC with some -W flags enabled.  Problem reported by
47984         Bruno Haible.
47985
47986 2006-10-24  Jim Meyering  <jim@meyering.net>
47987
47988         * MODULES.html.sh: Remove uinttostr.  It's not a module.
47989         Reported by Karl Berry.
47990
47991 2006-10-23  Bruno Haible  <bruno@clisp.org>
47992
47993         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
47994
47995 2006-10-24  Bruno Haible  <bruno@clisp.org>
47996
47997         * lib/gl_list.h: Use C comment style, not C++ comment style.
47998
47999 2006-10-23  Eric Blake  <ebb9@byu.net>
48000
48001         * lib/getaddrinfo.c (includes): Add missing include.
48002
48003 2006-10-23  Bruno Haible  <bruno@clisp.org>
48004             Paul Eggert  <eggert@cs.ucla.edu>
48005
48006         Ability to rename obstack_free.
48007         * lib/obstack.h (__obstack_free): New macro. Declare instead of
48008         obstack_free.
48009         (obstack_free): Invoke the __obstack_free macro.
48010         * lib/obstack.c (obstack_free): Use __obstack_free macro.
48011
48012 2006-10-23  Bruno Haible  <bruno@clisp.org>
48013             Paul Eggert  <eggert@cs.ucla.edu>
48014
48015         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
48016         __argc, __argv from the declaration. (They are defined as macros on
48017         mingw.)
48018
48019 2006-10-22  Bruno Haible  <bruno@clisp.org>
48020
48021         * doc/gnulib-intro.texi: New file.
48022         * doc/gnulib.texi: Include it.
48023
48024 2006-10-21  Bruno Haible  <bruno@clisp.org>
48025
48026         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
48027         "Introduction", "Miscellanous Notes", "Particular Modules".
48028
48029 2006-10-21  Bruno Haible  <bruno@clisp.org>
48030
48031         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
48032         Change mostlyclean-local rule to avoid sh syntax error from bash
48033         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
48034
48035 2006-10-23  Jim Meyering  <jim@meyering.net>
48036
48037         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
48038         in place of snprintf.
48039
48040         * modules/inttostr (Files): Add lib/uinttostr.c.
48041         * lib/uinttostr.c (inttostr): New file/function.
48042         * lib/inttostr.h (uinttostr): Declare.
48043         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
48044         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
48045         Add uinttostr.
48046         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
48047
48048 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
48049
48050         * lib/canonicalize.c (ELOOP): Define if not already defined.
48051         Problem reported by Bruno Haible in
48052         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
48053
48054 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
48055
48056         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
48057         Problem reported by Perry Smith and Ville Laurikari.
48058
48059         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
48060         uses.
48061
48062 2006-10-19  Bruno Haible  <bruno@clisp.org>
48063
48064         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
48065         for mingw.
48066
48067 2006-10-19  Bruno Haible  <bruno@clisp.org>
48068
48069         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
48070         Needed for mingw.
48071
48072 2006-10-19  Bruno Haible  <bruno@clisp.org>
48073
48074         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
48075
48076 2006-10-19  Bruno Haible  <bruno@clisp.org>
48077
48078         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
48079         it.
48080
48081 2006-10-19  Bruno Haible  <bruno@clisp.org>
48082
48083         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
48084         invocation.
48085
48086 2006-10-19  Bruno Haible  <bruno@clisp.org>
48087
48088         * gnulib-tool (func_create_testdir): Don't include ftruncate and
48089         mountlist by default.
48090
48091 2006-10-16  Bruno Haible  <bruno@clisp.org>
48092
48093         * lib/c-strstr.c: Include c-strstr.h.
48094
48095 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
48096
48097         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
48098         in a slash.
48099
48100 2006-10-18  Bruno Haible  <bruno@clisp.org>
48101
48102         * lib/lock.h [C++]: Wrap definitions in extern "C".
48103
48104 2006-10-18  Bruno Haible  <bruno@clisp.org>
48105
48106         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
48107         gl_LIBOBJS list.
48108
48109 2006-10-18  Bruno Haible  <bruno@clisp.org>
48110
48111         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
48112
48113 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
48114
48115         * lib/xstrtol.h: Include gettext.h.
48116         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
48117         Problem reported by Eric Blake.
48118         * modules/xstrtol (Depends-on): Add gettext-h.
48119
48120 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
48121
48122         * lib/strftime.c (advance): New macro.
48123         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
48124         incomplete type, so you can't add 0 to it.  Problem and patch
48125         reported by Eelco Dolstra for dietlibc.
48126
48127 2006-10-18  Jim Meyering  <jim@meyering.net>
48128
48129         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
48130         type for a local, and rename it: s/up/user_proc/.
48131
48132 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
48133
48134         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
48135         READ_UTMP_USER_PROCESS.
48136         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
48137
48138 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
48139
48140         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
48141         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
48142
48143 2006-10-17  Eric Blake  <ebb9@byu.net>
48144
48145         * lib/sigprocmask.c (sigprocmask): Fix typo.
48146
48147         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
48148
48149         * modules/clean-temp (Makefile.am): Don't add to make output...
48150         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
48151         config.h.
48152
48153 2006-10-17  Bruno Haible  <bruno@clisp.org>
48154
48155         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
48156         differently if DEFAULT_TEXT_DOMAIN is set.
48157
48158 2006-10-16  Bruno Haible  <bruno@clisp.org>
48159
48160         * lib/clean-temp.c: Include fwriteerror.h.
48161
48162 2006-10-16  Bruno Haible  <bruno@clisp.org>
48163
48164         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
48165
48166 2006-10-16  Bruno Haible  <bruno@clisp.org>
48167
48168         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
48169         * lib/sigprocmask.h: Include <sys/types.h>.
48170         (sigset_t): Use the system's definition if present.
48171
48172 2006-10-17  Eric Blake  <ebb9@byu.net>
48173
48174         * lib/xvasprintf.c (includes): Assume config.h.
48175         * lib/xasprintf.c (includes): Likewise.
48176
48177 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
48178
48179         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
48180         at least as wide as intmax_t.
48181
48182 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
48183
48184         (Imported from Automake.)
48185         * build-aux/gnupload: Update to version 1.1 of directive file.
48186
48187 2006-10-16  Eric Blake  <ebb9@byu.net>
48188
48189         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
48190         match Automake 1.10a.
48191
48192 2006-10-14  Bruno Haible  <bruno@clisp.org>
48193
48194         * modules/sigprocmask: New file.
48195         * lib/sigprocmask.h: New file.
48196         * lib/sigprocmask.c: New file.
48197         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
48198         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
48199         request sigprocmask.o.
48200         (gl_PREREQ_SIGPROCMASK): New macro.
48201         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
48202         (Depends-on): Add sigprocmask.
48203         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
48204         gt_SIGNALBLOCKING. Test for 'raise' only once.
48205         * lib/fatal-signal.c: Include sigprocmask.h.
48206         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
48207         unblock_fatal_signals): Define always.
48208         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
48209         sigprocmask.
48210
48211 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
48212
48213         Sync from Automake.
48214         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
48215         which incorrectly sets the mode of an existing destination
48216         directory.  In some cases the unpatched install-sh could do the
48217         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
48218         system.  We hope this is rare in practice, but it's clearly worth
48219         fixing.  Problem reported by Alex Unleashed in
48220         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
48221         Also, don't bother to check for -m bugs unless we're using -m;
48222         suggested by Stepan Kasal.
48223
48224 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48225
48226         Sync from Automake.
48227         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
48228         `-c' flag, so they appear at the same position as in %FASTDEP%
48229         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
48230         which ignores unknown options only after the first non-option.
48231         Bug report against M4 by Nelson H. F. Beebe.
48232
48233 2006-10-13  Jim Meyering  <jim@meyering.net>
48234
48235         Fix a bug in yesterday's change.
48236         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
48237         p->fts_statp->st_dev would be used uninitialized.
48238         Ensures that we always call fts_stat on the very first entry.
48239         Miklos Szeredi reported that find -xdev stopped working.
48240
48241 2006-10-12  Bruno Haible  <bruno@clisp.org>
48242
48243         * gnulib-tool (func_get_automake_snippet): Append an automatically
48244         computed EXTRA_DIST augmentation.
48245         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
48246         * modules/alloca-opt (Makefile.am): Likewise.
48247         * modules/allocsa (Makefile.am): Likewise.
48248         * modules/arcfour (Makefile.am): Likewise.
48249         * modules/arctwo (Makefile.am): Likewise.
48250         * modules/argmatch (Makefile.am): Likewise.
48251         * modules/argz (Makefile.am): Likewise.
48252         * modules/atexit (Makefile.am): Likewise.
48253         * modules/backupfile (Makefile.am): Likewise.
48254         * modules/byteswap (Makefile.am): Likewise.
48255         * modules/c-strtod (Makefile.am): Likewise.
48256         * modules/c-strtold (Makefile.am): Likewise.
48257         * modules/calloc (Makefile.am): Likewise.
48258         * modules/canon-host (Makefile.am): Likewise.
48259         * modules/canonicalize (Makefile.am): Likewise.
48260         * modules/chdir-long (Makefile.am): Likewise.
48261         * modules/chdir-safer (Makefile.am): Likewise.
48262         * modules/check-version (Makefile.am): Likewise.
48263         * modules/chown (Makefile.am): Likewise.
48264         * modules/cloexec (Makefile.am): Likewise.
48265         * modules/close-stream (Makefile.am): Likewise.
48266         * modules/closeout (Makefile.am): Likewise.
48267         * modules/crc (Makefile.am): Likewise.
48268         * modules/csharpexec (Makefile.am): Likewise.
48269         * modules/cycle-check (Makefile.am): Likewise.
48270         * modules/des (Makefile.am): Likewise.
48271         * modules/dev-ino (Makefile.am): Likewise.
48272         * modules/dirfd (Makefile.am): Likewise.
48273         * modules/dirname (Makefile.am): Likewise.
48274         * modules/dup2 (Makefile.am): Likewise.
48275         * modules/eealloc (Makefile.am): Likewise.
48276         * modules/error (Makefile.am): Likewise.
48277         * modules/euidaccess (Makefile.am): Likewise.
48278         * modules/exclude (Makefile.am): Likewise.
48279         * modules/exitfail (Makefile.am): Likewise.
48280         * modules/fcntl-safer (Makefile.am): Likewise.
48281         * modules/fcntl (Makefile.am): Likewise.
48282         * modules/file-type (Makefile.am): Likewise.
48283         * modules/fileblocks (Makefile.am): Likewise.
48284         * modules/filemode (Makefile.am): Likewise.
48285         * modules/filenamecat (Makefile.am): Likewise.
48286         * modules/fnmatch (Makefile.am): Likewise.
48287         * modules/fopen-safer (Makefile.am): Likewise.
48288         * modules/fpending (Makefile.am): Likewise.
48289         * modules/fprintftime (Makefile.am): Likewise.
48290         * modules/free (Makefile.am): Likewise.
48291         * modules/fsusage (Makefile.am): Likewise.
48292         * modules/ftruncate (Makefile.am): Likewise.
48293         * modules/fts (Makefile.am): Likewise.
48294         * modules/gc-arcfour (Makefile.am): Likewise.
48295         * modules/gc-des (Makefile.am): Likewise.
48296         * modules/gc-hmac-md5 (Makefile.am): Likewise.
48297         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
48298         * modules/gc-md4 (Makefile.am): Likewise.
48299         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
48300         * modules/gc-sha1 (Makefile.am): Likewise.
48301         * modules/gc (Makefile.am): Likewise.
48302         * modules/getaddrinfo (Makefile.am): Likewise.
48303         * modules/getcwd (Makefile.am): Likewise.
48304         * modules/getdelim (Makefile.am): Likewise.
48305         * modules/getdomainname (Makefile.am): Likewise.
48306         * modules/getgroups (Makefile.am): Likewise.
48307         * modules/gethostname (Makefile.am): Likewise.
48308         * modules/gethrxtime (Makefile.am): Likewise.
48309         * modules/getline (Makefile.am): Likewise.
48310         * modules/getloadavg (Makefile.am): Likewise.
48311         * modules/getlogin_r (Makefile.am): Likewise.
48312         * modules/getndelim2 (Makefile.am): Likewise.
48313         * modules/getopt (Makefile.am): Likewise.
48314         * modules/getpagesize (Makefile.am): Likewise.
48315         * modules/getpass-gnu (Makefile.am): Likewise.
48316         * modules/getpass (Makefile.am): Likewise.
48317         * modules/getsubopt (Makefile.am): Likewise.
48318         * modules/gettime (Makefile.am): Likewise.
48319         * modules/gettimeofday (Makefile.am): Likewise.
48320         * modules/getugroups (Makefile.am): Likewise.
48321         * modules/getusershell (Makefile.am): Likewise.
48322         * modules/glob (Makefile.am): Likewise.
48323         * modules/group-member (Makefile.am): Likewise.
48324         * modules/hard-locale (Makefile.am): Likewise.
48325         * modules/hash (Makefile.am): Likewise.
48326         * modules/hmac-md5 (Makefile.am): Likewise.
48327         * modules/hmac-sha1 (Makefile.am): Likewise.
48328         * modules/human (Makefile.am): Likewise.
48329         * modules/idcache (Makefile.am): Likewise.
48330         * modules/imaxabs (Makefile.am): Likewise.
48331         * modules/imaxdiv (Makefile.am): Likewise.
48332         * modules/inet_ntop (Makefile.am): Likewise.
48333         * modules/inet_pton (Makefile.am): Likewise.
48334         * modules/intprops (Makefile.am): Likewise.
48335         * modules/inttostr (Makefile.am): Likewise.
48336         * modules/inttypes (Makefile.am): Likewise.
48337         * modules/isapipe (Makefile.am): Likewise.
48338         * modules/javaversion (Makefile.am): Likewise.
48339         * modules/lchmod (Makefile.am): Likewise.
48340         * modules/lchown (Makefile.am): Likewise.
48341         * modules/localcharset (Makefile.am): Likewise.
48342         * modules/long-options (Makefile.am): Likewise.
48343         * modules/lstat (Makefile.am): Likewise.
48344         * modules/malloc (Makefile.am): Likewise.
48345         * modules/mathl (Makefile.am): Likewise.
48346         * modules/mbchar (Makefile.am): Likewise.
48347         * modules/md2 (Makefile.am): Likewise.
48348         * modules/md4 (Makefile.am): Likewise.
48349         * modules/md5 (Makefile.am): Likewise.
48350         * modules/memcasecmp (Makefile.am): Likewise.
48351         * modules/memchr (Makefile.am): Likewise.
48352         * modules/memcmp (Makefile.am): Likewise.
48353         * modules/memcoll (Makefile.am): Likewise.
48354         * modules/memcpy (Makefile.am): Likewise.
48355         * modules/memmem (Makefile.am): Likewise.
48356         * modules/memmove (Makefile.am): Likewise.
48357         * modules/mempcpy (Makefile.am): Likewise.
48358         * modules/memrchr (Makefile.am): Likewise.
48359         * modules/memset (Makefile.am): Likewise.
48360         * modules/memxor (Makefile.am): Likewise.
48361         * modules/mkancesdirs (Makefile.am): Likewise.
48362         * modules/mkdir-p (Makefile.am): Likewise.
48363         * modules/mkdir (Makefile.am): Likewise.
48364         * modules/mkdtemp (Makefile.am): Likewise.
48365         * modules/mkstemp (Makefile.am): Likewise.
48366         * modules/mktime (Makefile.am): Likewise.
48367         * modules/modechange (Makefile.am): Likewise.
48368         * modules/mountlist (Makefile.am): Likewise.
48369         * modules/nanosleep (Makefile.am): Likewise.
48370         * modules/obstack (Makefile.am): Likewise.
48371         * modules/openat (Makefile.am): Likewise.
48372         * modules/pagealign_alloc (Makefile.am): Likewise.
48373         * modules/pathmax (Makefile.am): Likewise.
48374         * modules/physmem (Makefile.am): Likewise.
48375         * modules/poll (Makefile.am): Likewise.
48376         * modules/posixtm (Makefile.am): Likewise.
48377         * modules/posixver (Makefile.am): Likewise.
48378         * modules/putenv (Makefile.am): Likewise.
48379         * modules/quote (Makefile.am): Likewise.
48380         * modules/quotearg (Makefile.am): Likewise.
48381         * modules/raise (Makefile.am): Likewise.
48382         * modules/read-file (Makefile.am): Likewise.
48383         * modules/readline (Makefile.am): Likewise.
48384         * modules/readlink (Makefile.am): Likewise.
48385         * modules/readtokens (Makefile.am): Likewise.
48386         * modules/readutmp (Makefile.am): Likewise.
48387         * modules/realloc (Makefile.am): Likewise.
48388         * modules/regex (Makefile.am): Likewise.
48389         * modules/rename-dest-slash (Makefile.am): Likewise.
48390         * modules/rename (Makefile.am): Likewise.
48391         * modules/rijndael (Makefile.am): Likewise.
48392         * modules/rmdir (Makefile.am): Likewise.
48393         * modules/rpmatch (Makefile.am): Likewise.
48394         * modules/safe-read (Makefile.am): Likewise.
48395         * modules/safe-write (Makefile.am): Likewise.
48396         * modules/same-inode (Makefile.am): Likewise.
48397         * modules/same (Makefile.am): Likewise.
48398         * modules/save-cwd (Makefile.am): Likewise.
48399         * modules/savedir (Makefile.am): Likewise.
48400         * modules/setenv (Makefile.am): Likewise.
48401         * modules/settime (Makefile.am): Likewise.
48402         * modules/sha1 (Makefile.am): Likewise.
48403         * modules/sig2str (Makefile.am): Likewise.
48404         * modules/snprintf (Makefile.am): Likewise.
48405         * modules/stat-macros (Makefile.am): Likewise.
48406         * modules/stat-time (Makefile.am): Likewise.
48407         * modules/stdbool (Makefile.am): Likewise.
48408         * modules/stdint (Makefile.am): Likewise.
48409         * modules/stdlib-safer (Makefile.am): Likewise.
48410         * modules/stpcpy (Makefile.am): Likewise.
48411         * modules/stpncpy (Makefile.am): Likewise.
48412         * modules/strcase (Makefile.am): Likewise.
48413         * modules/strcasestr (Makefile.am): Likewise.
48414         * modules/strchrnul (Makefile.am): Likewise.
48415         * modules/strcspn (Makefile.am): Likewise.
48416         * modules/strdup (Makefile.am): Likewise.
48417         * modules/strerror (Makefile.am): Likewise.
48418         * modules/strftime (Makefile.am): Likewise.
48419         * modules/strndup (Makefile.am): Likewise.
48420         * modules/strnlen (Makefile.am): Likewise.
48421         * modules/strpbrk (Makefile.am): Likewise.
48422         * modules/strsep (Makefile.am): Likewise.
48423         * modules/strstr (Makefile.am): Likewise.
48424         * modules/strtod (Makefile.am): Likewise.
48425         * modules/strtoimax (Makefile.am): Likewise.
48426         * modules/strtok_r (Makefile.am): Likewise.
48427         * modules/strtol (Makefile.am): Likewise.
48428         * modules/strtoll (Makefile.am): Likewise.
48429         * modules/strtoul (Makefile.am): Likewise.
48430         * modules/strtoull (Makefile.am): Likewise.
48431         * modules/strtoumax (Makefile.am): Likewise.
48432         * modules/strverscmp (Makefile.am): Likewise.
48433         * modules/sys_socket (Makefile.am): Likewise.
48434         * modules/sys_stat (Makefile.am): Likewise.
48435         * modules/sysexits (Makefile.am): Likewise.
48436         * modules/time_r (Makefile.am): Likewise.
48437         * modules/timegm (Makefile.am): Likewise.
48438         * modules/timespec (Makefile.am): Likewise.
48439         * modules/tmpfile-safer (Makefile.am): Likewise.
48440         * modules/trim (Makefile.am): Likewise.
48441         * modules/unistd-safer (Makefile.am): Likewise.
48442         * modules/unlinkdir (Makefile.am): Likewise.
48443         * modules/unlocked-io (Makefile.am): Likewise.
48444         * modules/userspec (Makefile.am): Likewise.
48445         * modules/utime (Makefile.am): Likewise.
48446         * modules/utimecmp (Makefile.am): Likewise.
48447         * modules/utimens (Makefile.am): Likewise.
48448         * modules/vasnprintf (Makefile.am): Likewise.
48449         * modules/vasprintf (Makefile.am): Likewise.
48450         * modules/vsnprintf (Makefile.am): Likewise.
48451         * modules/xalloc (Makefile.am): Likewise.
48452         * modules/xgetcwd (Makefile.am): Likewise.
48453         * modules/xnanosleep (Makefile.am): Likewise.
48454         * modules/xreadlink (Makefile.am): Likewise.
48455         * modules/xstrtod (Makefile.am): Likewise.
48456         * modules/xstrtol (Makefile.am): Likewise.
48457         * modules/xstrtold (Makefile.am): Likewise.
48458         * modules/yesno (Makefile.am): Likewise.
48459         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
48460
48461 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
48462
48463         * modules/error (Makefile.am): Distribute files through
48464         EXTRA_DIST, not lib_SOURCES.
48465
48466 2006-10-12  Eric Blake  <ebb9@byu.net>
48467
48468         * modules/error (Makefile.am): Distribute files in /lib.
48469         * modules/obstack (Makefile.am): Likewise.
48470
48471 2006-10-12  Bruno Haible  <bruno@clisp.org>
48472
48473         * modules/acl (Makefile.am): Distribute all files in lib/ through
48474         EXTRA_DIST.
48475         * modules/arcfour (Makefile.am): Likewise.
48476         * modules/arctwo (Makefile.am): Likewise.
48477         * modules/argmatch (Makefile.am): Likewise.
48478         * modules/argz (Makefile.am): Likewise.
48479         * modules/atexit (Makefile.am): Likewise.
48480         * modules/backupfile (Makefile.am): Likewise.
48481         * modules/c-strtod (Makefile.am): Likewise.
48482         * modules/c-strtold (Makefile.am): Likewise.
48483         * modules/calloc (Makefile.am): Likewise.
48484         * modules/canon-host (Makefile.am): Likewise.
48485         * modules/canonicalize (Makefile.am): Likewise.
48486         * modules/chdir-long (Makefile.am): Likewise.
48487         * modules/chdir-safer (Makefile.am): Likewise.
48488         * modules/check-version (Makefile.am): Likewise.
48489         * modules/chown (Makefile.am): Likewise.
48490         * modules/cloexec (Makefile.am): Likewise.
48491         * modules/close-stream (Makefile.am): Likewise.
48492         * modules/closeout (Makefile.am): Likewise.
48493         * modules/crc (Makefile.am): Likewise.
48494         * modules/cycle-check (Makefile.am): Likewise.
48495         * modules/des (Makefile.am): Likewise.
48496         * modules/dirfd (Makefile.am): Likewise.
48497         * modules/dirname (Makefile.am): Likewise.
48498         * modules/dup2 (Makefile.am): Likewise.
48499         * modules/euidaccess (Makefile.am): Likewise.
48500         * modules/exclude (Makefile.am): Likewise.
48501         * modules/exitfail (Makefile.am): Likewise.
48502         * modules/fcntl-safer (Makefile.am): Likewise.
48503         * modules/file-type (Makefile.am): Likewise.
48504         * modules/fileblocks (Makefile.am): Likewise.
48505         * modules/filemode (Makefile.am): Likewise.
48506         * modules/filenamecat (Makefile.am): Likewise.
48507         * modules/fnmatch (Makefile.am): Likewise.
48508         * modules/fopen-safer (Makefile.am): Likewise.
48509         * modules/fpending (Makefile.am): Likewise.
48510         * modules/fprintftime (Makefile.am): Likewise.
48511         * modules/free (Makefile.am): Likewise.
48512         * modules/fsusage (Makefile.am): Likewise.
48513         * modules/ftruncate (Makefile.am): Likewise.
48514         * modules/fts (Makefile.am): Likewise.
48515         * modules/gc (Makefile.am): Likewise.
48516         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
48517         * modules/getaddrinfo (Makefile.am): Likewise.
48518         * modules/getcwd (Makefile.am): Likewise.
48519         * modules/getdelim (Makefile.am): Likewise.
48520         * modules/getdomainname (Makefile.am): Likewise.
48521         * modules/getgroups (Makefile.am): Likewise.
48522         * modules/gethostname (Makefile.am): Likewise.
48523         * modules/gethrxtime (Makefile.am): Likewise.
48524         * modules/getline (Makefile.am): Likewise.
48525         * modules/getloadavg (Makefile.am): Likewise.
48526         * modules/getlogin_r (Makefile.am): Likewise.
48527         * modules/getopt (Makefile.am): Likewise.
48528         * modules/getpass (Makefile.am): Likewise.
48529         * modules/getpass-gnu (Makefile.am): Likewise.
48530         * modules/getsubopt (Makefile.am): Likewise.
48531         * modules/gettime (Makefile.am): Likewise.
48532         * modules/gettimeofday (Makefile.am): Likewise.
48533         * modules/getugroups (Makefile.am): Likewise.
48534         * modules/getusershell (Makefile.am): Likewise.
48535         * modules/glob (Makefile.am): Likewise.
48536         * modules/group-member (Makefile.am): Likewise.
48537         * modules/hard-locale (Makefile.am): Likewise.
48538         * modules/hash (Makefile.am): Likewise.
48539         * modules/hmac-md5 (Makefile.am): Likewise.
48540         * modules/hmac-sha1 (Makefile.am): Likewise.
48541         * modules/human (Makefile.am): Likewise.
48542         * modules/idcache (Makefile.am): Likewise.
48543         * modules/imaxabs (Makefile.am): Likewise.
48544         * modules/imaxdiv (Makefile.am): Likewise.
48545         * modules/inet_ntop (Makefile.am): Likewise.
48546         * modules/inet_pton (Makefile.am): Likewise.
48547         * modules/inttostr (Makefile.am): Likewise.
48548         * modules/isapipe (Makefile.am): Likewise.
48549         * modules/lchown (Makefile.am): Likewise.
48550         * modules/long-options (Makefile.am): Likewise.
48551         * modules/lstat (Makefile.am): Likewise.
48552         * modules/malloc (Makefile.am): Likewise.
48553         * modules/mathl (Makefile.am): Likewise.
48554         * modules/mbchar (Makefile.am): Likewise.
48555         * modules/md2 (Makefile.am): Likewise.
48556         * modules/md4 (Makefile.am): Likewise.
48557         * modules/md5 (Makefile.am): Likewise.
48558         * modules/memcasecmp (Makefile.am): Likewise.
48559         * modules/memchr (Makefile.am): Likewise.
48560         * modules/memcmp (Makefile.am): Likewise.
48561         * modules/memcoll (Makefile.am): Likewise.
48562         * modules/memcpy (Makefile.am): Likewise.
48563         * modules/memmem (Makefile.am): Likewise.
48564         * modules/memmove (Makefile.am): Likewise.
48565         * modules/mempcpy (Makefile.am): Likewise.
48566         * modules/memrchr (Makefile.am): Likewise.
48567         * modules/memset (Makefile.am): Likewise.
48568         * modules/memxor (Makefile.am): Likewise.
48569         * modules/mkancesdirs (Makefile.am): Likewise.
48570         * modules/mkdir (Makefile.am): Likewise.
48571         * modules/mkdir-p (Makefile.am): Likewise.
48572         * modules/mkdtemp (Makefile.am): Likewise.
48573         * modules/mkstemp (Makefile.am): Likewise.
48574         * modules/mktime (Makefile.am): Likewise.
48575         * modules/modechange (Makefile.am): Likewise.
48576         * modules/mountlist (Makefile.am): Likewise.
48577         * modules/nanosleep (Makefile.am): Likewise.
48578         * modules/openat (Makefile.am): Likewise.
48579         * modules/pagealign_alloc (Makefile.am): Likewise.
48580         * modules/physmem (Makefile.am): Likewise.
48581         * modules/poll (Makefile.am): Likewise.
48582         * modules/posixtm (Makefile.am): Likewise.
48583         * modules/posixver (Makefile.am): Likewise.
48584         * modules/putenv (Makefile.am): Likewise.
48585         * modules/quote (Makefile.am): Likewise.
48586         * modules/quotearg (Makefile.am): Likewise.
48587         * modules/raise (Makefile.am): Likewise.
48588         * modules/read-file (Makefile.am): Likewise.
48589         * modules/readline (Makefile.am): Likewise.
48590         * modules/readlink (Makefile.am): Likewise.
48591         * modules/readtokens (Makefile.am): Likewise.
48592         * modules/readutmp (Makefile.am): Likewise.
48593         * modules/realloc (Makefile.am): Likewise.
48594         * modules/regex (Makefile.am): Likewise.
48595         * modules/rename (Makefile.am): Likewise.
48596         * modules/rename-dest-slash (Makefile.am): Likewise.
48597         * modules/rijndael (Makefile.am): Likewise.
48598         * modules/rmdir (Makefile.am): Likewise.
48599         * modules/rpmatch (Makefile.am): Likewise.
48600         * modules/safe-read (Makefile.am): Likewise.
48601         * modules/safe-write (Makefile.am): Likewise.
48602         * modules/same (Makefile.am): Likewise.
48603         * modules/save-cwd (Makefile.am): Likewise.
48604         * modules/savedir (Makefile.am): Likewise.
48605         * modules/setenv (Makefile.am): Likewise.
48606         * modules/settime (Makefile.am): Likewise.
48607         * modules/sha1 (Makefile.am): Likewise.
48608         * modules/sig2str (Makefile.am): Likewise.
48609         * modules/snprintf (Makefile.am): Likewise.
48610         * modules/stdlib-safer (Makefile.am): Likewise.
48611         * modules/stpcpy (Makefile.am): Likewise.
48612         * modules/stpncpy (Makefile.am): Likewise.
48613         * modules/strcase (Makefile.am): Likewise.
48614         * modules/strcasestr (Makefile.am): Likewise.
48615         * modules/strchrnul (Makefile.am): Likewise.
48616         * modules/strcspn (Makefile.am): Likewise.
48617         * modules/strdup (Makefile.am): Likewise.
48618         * modules/strerror (Makefile.am): Likewise.
48619         * modules/strftime (Makefile.am): Likewise.
48620         * modules/strndup (Makefile.am): Likewise.
48621         * modules/strnlen (Makefile.am): Likewise.
48622         * modules/strpbrk (Makefile.am): Likewise.
48623         * modules/strsep (Makefile.am): Likewise.
48624         * modules/strstr (Makefile.am): Likewise.
48625         * modules/strtod (Makefile.am): Likewise.
48626         * modules/strtoimax (Makefile.am): Likewise.
48627         * modules/strtok_r (Makefile.am): Likewise.
48628         * modules/strtol (Makefile.am): Likewise.
48629         * modules/strtoll (Makefile.am): Likewise.
48630         * modules/strtoul (Makefile.am): Likewise.
48631         * modules/strtoull (Makefile.am): Likewise.
48632         * modules/strtoumax (Makefile.am): Likewise.
48633         * modules/strverscmp (Makefile.am): Likewise.
48634         * modules/time_r (Makefile.am): Likewise.
48635         * modules/timegm (Makefile.am): Likewise.
48636         * modules/tmpfile-safer (Makefile.am): Likewise.
48637         * modules/unistd-safer (Makefile.am): Likewise.
48638         * modules/unlinkdir (Makefile.am): Likewise.
48639         * modules/userspec (Makefile.am): Likewise.
48640         * modules/utime (Makefile.am): Likewise.
48641         * modules/utimecmp (Makefile.am): Likewise.
48642         * modules/utimens (Makefile.am): Likewise.
48643         * modules/vasnprintf (Makefile.am): Likewise.
48644         * modules/vasprintf (Makefile.am): Likewise.
48645         * modules/vsnprintf (Makefile.am): Likewise.
48646         * modules/xalloc (Makefile.am): Likewise.
48647         * modules/xgetcwd (Makefile.am): Likewise.
48648         * modules/xnanosleep (Makefile.am): Likewise.
48649         * modules/xreadlink (Makefile.am): Likewise.
48650         * modules/xstrtod (Makefile.am): Likewise.
48651         * modules/xstrtol (Makefile.am): Likewise.
48652         * modules/xstrtold (Makefile.am): Likewise.
48653         * modules/yesno (Makefile.am): Likewise.
48654
48655 2006-10-12  Jim Meyering  <jim@meyering.net>
48656
48657         * m4/getloadavg.m4: Revert the change below.
48658
48659         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
48660         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
48661         fail with a symlink, which is what coreutils' ./bootstrap now
48662         creates by default.
48663
48664 2006-10-12  Bruno Haible  <bruno@clisp.org>
48665
48666         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
48667         mingw.
48668         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
48669         MSVC and mingw explicitly.
48670
48671 2006-10-11  Simon Josefsson  <jas@extundo.com>
48672             Bruno Haible  <bruno@clisp.org>
48673
48674         Add support for multiple gnulib-tool invocations in the scope of a
48675         single configure.ac file.
48676         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
48677         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
48678         with the same contents as the _LIBADD variable.
48679         (func_emit_initmacro_start, func_emit_initmacro_end,
48680         func_emit_initmacro_done): New functions.
48681         (func_import, func_create_testdir): Invoke them. Allow the identifiers
48682         gl_LIBOBJS and gl_LTLIBOBJS.
48683
48684 2006-10-11  Bruno Haible  <bruno@clisp.org>
48685
48686         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
48687         (func_create_testdir): Don't create po/Makefile.am, don't invoke
48688         autoreconf. Instead, invoke autopoint explicitly but move back the
48689         *.m4 files from gnulib.
48690
48691 2006-10-11  Bruno Haible  <bruno@clisp.org>
48692
48693         * gnulib-tool (func_usage): Make module names after --create-testdir
48694         optional.
48695         (func_create_testdir): If no module was specified, use nearly all
48696         modules.
48697
48698 2006-10-12  Jim Meyering  <jim@meyering.net>
48699
48700         Big performance improvement for fts-based tools that use FTS_NOSTAT.
48701         Avoid spurious inode-mismatch problems on non-POSIX file systems.
48702         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
48703         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
48704         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
48705         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
48706         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
48707         (fts_set_stat_required): New function.
48708         (fts_open): Defer the calls to fts_stat, if possible or requested.
48709         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
48710         into fts_stat itself.
48711         (fts_read): Perform any required (deferred) fts_stat call.
48712         (fts_build): Likewise, for the directory we're about to open and read.
48713         In the readdir loop, carefully decide whether each entry will require
48714         an eventual call to fts_stat, using dirent.d_type info if available.
48715         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
48716         a command line argument into this function.  Update all callers.
48717         Map a return value of FTS_DOT to FTS_D for a command line argument.
48718         * modules/fts (Depends-on): Add d-type.  Alphabetize.
48719         Thanks to Miklos Szeredi for his tenacity and for the initial
48720         bug report about "find" failing on a FUSE-based file system.
48721
48722         * lib/fts.c (fts_open): Use consistent indentation.
48723
48724 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
48725
48726         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
48727         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
48728         reported by Jim Meyering.  All uses of cache variables renamed
48729         to match Autoconf's.
48730         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
48731         the other one.
48732
48733         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
48734         Fix misspelling in diagnostic.
48735
48736 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
48737
48738         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
48739         defined.  Problem reported by Matthew Woehlke.
48740
48741         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
48742         Add support for Tandem NonStop R series.
48743         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
48744         Use new macro.
48745
48746         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
48747         (has_trailing_slash): Omit size arg; all callers changed.
48748         Omit 'inline', since it doesn't help performance and we'd
48749         need to configure it.
48750         Don't count //, ///, etc. as having a trailing slash.
48751         As a side effect, this removes a C99ism reported by Matthew Woehlke.
48752         (rpl_rename_dest_slash): On failure, use rename's errno rather
48753         than (in some cases) an incorrect or junk errno.
48754         Simplify code by removing need to compute length; this does
48755         cause it to make two passes instead of one over the file name,
48756         but it's worth it.
48757
48758         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
48759         change, since Autoconf's version may no longer be appropriate now
48760         that we are using CVS Autoconf's version.  Add support for Tandem.
48761
48762 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
48763             Bruno Haible  <bruno@clisp.org>
48764
48765         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
48766         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
48767         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
48768         gl_AC_TYPE_LONG_LONG.
48769
48770         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
48771         instead of HAVE_LONG_LONG.
48772         * lib/printf-args.c (printf_fetchargs): Likewise.
48773         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
48774         * lib/vasnprintf.c (VASNPRINTF): Likewise.
48775         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
48776         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
48777         gl_AC_TYPE_LONG_LONG.
48778
48779 2006-10-11  Bruno Haible  <bruno@clisp.org>
48780
48781         * m4/longlong.m4: Add comments.
48782         * m4/ulonglong.m4: Likewise.
48783
48784 2006-10-10  Bruno Haible  <bruno@clisp.org>
48785
48786         Make it possible to #define stpcpy, strdup to aliases.
48787         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
48788         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
48789
48790 2006-10-10  Bruno Haible  <bruno@clisp.org>
48791
48792         Make it possible to #define gcd to an alias.
48793         * lib/gcd.c: Include config.h.
48794
48795 2006-10-10  Bruno Haible  <bruno@clisp.org>
48796
48797         Make it possible to #define c_isascii to an alias.
48798         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
48799         defined. Undefine the macros before defining them, to avoid gcc
48800         warnings.
48801         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
48802         define NO_C_CTYPE_MACROS early.
48803
48804 2006-10-10  Bruno Haible  <bruno@clisp.org>
48805
48806         Make it possible to #define set_program_name to an alias.
48807         * lib/progname.c: Don't undefine set_program_name; instead, undefine
48808         ENABLE_RELOCATABLE early.
48809
48810 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
48811
48812         Port to Tandem NSK OSS, which has 64-bit signed int but at most
48813         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
48814         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
48815         More generally, don't assume that 64-bit signed int is available
48816         if unsigned int is, and vice versa.
48817         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
48818         unsigned symbols, not on their signed counterparts.
48819         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
48820         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
48821         (UINT64_C, UINTMAX_C):
48822         Likewise.
48823         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
48824         unsigned counterparts.
48825         (Have_long_long, Unsigned): New macros.
48826         (Int): Renamed from INT.
48827         (strtoimax): Use the new macros.
48828         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
48829         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
48830         * modules/inttypes (inttypes.h): Substitute
48831         HAVE_UNSIGNED_LONG_LONG_INT.
48832         * modules/stdint (stdint.h): Likewise.
48833         (Files): Add m4/ulonglong.m4.
48834
48835 2006-10-10  Bruno Haible  <bruno@clisp.org>
48836
48837         Fix a gcc -Wshadow warning.
48838         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
48839         to 'bucket'.
48840         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
48841         gl_linked_indexof_from_to): Likewise.
48842         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
48843         Likewise.
48844         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
48845         Likewise.
48846         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
48847         Reported by Eric Blake.
48848
48849 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
48850
48851         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
48852         for NetBSD.  Problem reported by Bruno Haible.
48853
48854 2006-10-09  Jim Meyering  <jim@meyering.net>
48855
48856         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
48857         Patch from Bruno Haible.
48858
48859 2006-10-09  Jim Meyering  <jim@meyering.net>
48860
48861         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
48862         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
48863         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
48864
48865 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
48866
48867         Don't include <config.h> twice; this doesn't work in some cases,
48868         e.g., when config.h has "#define intmax_t long long int" and
48869         we include <config.h>, <inttypes.h>, <config.h> in that order.
48870         Problem reported by Matthew Woehlke in:
48871         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
48872         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
48873         * lib/fts-cycle.c: Don't include config.h.
48874         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
48875         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
48876         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
48877         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
48878         inttypes.h.
48879         * lib/xstrtoumax.c: Likewise.
48880         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
48881         __strtol and the like, so that this module is more like its siblings.
48882         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
48883         Remove; no longer needed now that we assume gnulib inttypes.h.
48884
48885 2006-10-08  Bruno Haible  <bruno@clisp.org>
48886
48887         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
48888         option.
48889
48890 2006-10-07  Jim Meyering  <jim@meyering.net>
48891
48892         * modules/inttypes (inttypes.h): Revert what seems to have been
48893         an inadvertent part of today's change: use "|", not "/" in the
48894         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
48895
48896 2006-10-07  Bruno Haible  <bruno@clisp.org>
48897
48898         * modules/sublist: New file.
48899
48900 2006-10-07  Bruno Haible  <bruno@clisp.org>
48901
48902         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
48903         * modules/argz (argz.h): Likewise.
48904         * modules/arpa_inet (arpa/inet.h): Likewise.
48905         * modules/byteswap (byteswap.h): Likewise.
48906         * modules/configmake (configmake.h): Likewise.
48907         * modules/fcntl (fcntl.h): Likewise.
48908         * modules/fnmatch (fnmatch.h): Likewise.
48909         * modules/getopt (getopt.h): Likewise.
48910         * modules/glob (glob.h): Likewise.
48911         * modules/inttypes (inttypes.h): Likewise.
48912         * modules/netinet_in (netinet/in.h): Likewise.
48913         * modules/poll (poll.h): Likewise.
48914         * modules/stdbool (stdbool.h): Likewise.
48915         * modules/stdint (stdint.h): Likewise.
48916         * modules/sys_select (sys/select.h): Likewise.
48917         * modules/sys_socket (sys/socket.h): Likewise.
48918         * modules/sys_stat (sys/stat.h): Likewise.
48919         * modules/sysexits (sysexits.h): Likewise.
48920         * modules/unistd (unistd.h): Likewise.
48921         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
48922         Add a "DO NOT EDIT" comment to the generated file.
48923         (func_import): Likewise for gnulib-comp.m4.
48924
48925 2006-10-07  Bruno Haible  <bruno@clisp.org>
48926
48927         * lib/gl_sublist.h: New file.
48928         * lib/gl_sublist.c: New file.
48929
48930 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
48931
48932         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
48933         name (relative to the original working directory) and the file
48934         name component (relative to the temporary working directory).  All
48935         callers changed.
48936         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
48937         * lib/mkdir-p.c (make_dir_parents): Likewise.
48938         * lib/mkdir-p.h (make_dir_parents): Likewise.
48939
48940 2006-10-06  Eric Blake  <ebb9@byu.net>
48941
48942         Define several macros for use by the clean-temp module.
48943         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
48944         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
48945         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
48946
48947         * lib/clean-temp.h (close_stream_temp): New declaration.
48948         * lib/clean-temp.c (includes): Pull in headers according to what
48949         other modules are in use.
48950         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
48951
48952 2006-10-06  Bruno Haible  <bruno@clisp.org>
48953
48954         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
48955         instead of fopen, fwriteerror.
48956
48957 2006-10-06  Bruno Haible  <bruno@clisp.org>
48958
48959         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
48960         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
48961         int.
48962         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
48963         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
48964         Return an error indicator.
48965         Suggested by Eric Blake.
48966
48967 2006-10-06  Bruno Haible  <bruno@clisp.org>
48968
48969         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
48970         Reported by Eric Blake.
48971
48972 2006-10-06  Bruno Haible  <bruno@clisp.org>
48973
48974         * modules/closeout (Description): Mention stderr too.
48975
48976 2006-10-06  Bruno Haible  <bruno@clisp.org>
48977         and Paul Eggert  <eggert@cs.ucla.edu>
48978
48979         * lib/closeout.c (close_stdout): Also close stderr.
48980         * lib/closeout.h: Update comment.
48981
48982 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
48983
48984         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
48985         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
48986         * lib/dirchownmod.c: Include lchown.h.
48987         * lib/lchown.c: Don't include files that lchown.h now includes.
48988         Don't declare chown, since lchown.h now does that.
48989         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
48990         (lchown): Define to rpl_chown if lchown is declared but
48991         does not exist.  Declare using a prototype if lchown is not
48992         declared.  Add a copyright notice.
48993         * lib/mkstemp.h: Include <unistd.h>.
48994         * lib/openat.c: Include lchown.h.
48995
48996         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
48997         we now test for that separately.
48998         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
48999         rather than O_NOFOLLOW, when testing whether it's possible to
49000         avoid a race condition reliably.
49001         * lib/savewd.c (savewd_chdir): Likewise.
49002
49003         Remove macros that are no longer needed now that stdint.h is
49004         reliable.
49005         * lib/fsusage.c (UINTMAX_MAX): Remove.
49006         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
49007         * lib/utimecmp.c (SIZE_MAX): Remove.
49008
49009         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
49010
49011         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
49012         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
49013         O_NOATIME works.
49014
49015 2006-10-05  Bruno Haible  <bruno@clisp.org>
49016
49017         * lib/gl_list.h (gl_sortedlist_search_from_to,
49018         gl_sortedlist_indexof_from_to): New declarations.
49019         (gl_list_implementation): New fields sortedlist_search_from_to,
49020         sortedlist_indexof_from_to.
49021         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
49022         inline functions.
49023         * lib/gl_list.c (gl_sortedlist_search_from_to,
49024         gl_sortedlist_indexof_from_to): New functions.
49025         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
49026         function.
49027         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
49028         (gl_array_sortedlist_search_from_to): New function.
49029         (gl_array_list_implementation): Update.
49030         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
49031         function.
49032         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
49033         (gl_carray_sortedlist_search_from_to): New function.
49034         (gl_carray_list_implementation): Update.
49035         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
49036         gl_linked_sortedlist_indexof_from_to): New functions.
49037         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
49038         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
49039         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
49040         gl_tree_sortedlist_indexof_from_to): New functions.
49041         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
49042         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
49043         Update.
49044         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
49045         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
49046         Update.
49047
49048 2006-10-05  Bruno Haible  <bruno@clisp.org>
49049
49050         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
49051         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
49052         (struct gl_list_implementation): Add fields search_from_to,
49053         indexof_from_to. Remove fields search, indexof.
49054         (gl_list_search): Use the search_from_to method.
49055         (gl_list_search_from, gl_list_search_from_to): New functions.
49056         (gl_list_indexof): Use the indexof_from_to method.
49057         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
49058         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
49059         (gl_list_search_from, gl_list_search_from_to): New functions.
49060         (gl_list_indexof): Use the indexof_from_to method.
49061         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
49062         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
49063         gl_array_indexof. Add start_index, end_index arguments.
49064         (gl_array_search_from_to): Renamed from gl_array_search. Add
49065         start_index, end_index arguments.
49066         (gl_array_remove, gl_array_list_implementation): Update.
49067         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
49068         gl_carray_indexof. Add start_index, end_index arguments.
49069         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
49070         start_index, end_index arguments.
49071         (gl_carray_remove, gl_carray_list_implementation): Update.
49072         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
49073         gl_linked_search. Add start_index, end_index arguments.
49074         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
49075         start_index, end_index arguments.
49076         (gl_linked_remove): Update.
49077         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
49078         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
49079         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
49080         field to 'size_t'.
49081         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
49082         gl_tree_search. Add start_index, end_index arguments.
49083         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
49084         start_index, end_index arguments.
49085         (gl_tree_remove): Update.
49086         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
49087         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
49088         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
49089         function.
49090         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
49091         gl_tree_search. Add start_index, end_index arguments.
49092         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
49093         start_index, end_index arguments.
49094         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
49095         Update.
49096         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
49097
49098 2006-10-05  Bruno Haible  <bruno@clisp.org>
49099
49100         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
49101
49102         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
49103         fwriteerror_temp): New declarations.
49104         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
49105         (descriptors): New variable.
49106         (cleanup): First, close the descriptors.
49107         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
49108         fclose_temp, fwriteerror_temp): New functions.
49109
49110 2006-10-04  Jim Meyering  <jim@meyering.net>
49111
49112         * lib/fts.c (fts_open): Tiny comment change.
49113
49114 2006-10-04  Bruno Haible  <bruno@clisp.org>
49115
49116         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
49117         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
49118         gl_LOCK_BODY.
49119         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
49120         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
49121         gl_LOCK_EARLY_BODY.
49122         (gl_LOCK): Require gl_LOCK_BODY.
49123
49124 2006-10-04  Bruno Haible  <bruno@clisp.org>
49125
49126         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
49127         (gl_oset_search_atleast): New declaration.
49128         (struct gl_oset_implementation): Add field 'search_atleast'.
49129         (gl_oset_search_atleast): New inline function.
49130         * lib/gl_oset.c (gl_oset_search_atleast): New function.
49131         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
49132         (gl_array_oset_implementation): Update.
49133         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
49134         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
49135         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
49136
49137 2006-10-04  Bruno Haible  <bruno@clisp.org>
49138
49139         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
49140
49141 2006-10-03  Bruno Haible  <bruno@clisp.org>
49142
49143         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
49144         from gl_avltreehash_list_implementation.
49145
49146 2006-10-03  Bruno Haible  <bruno@clisp.org>
49147
49148         * lib/gl_oset.c (gl_oset_add): Fix return type.
49149
49150 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
49151
49152         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
49153
49154 2006-10-02  Eric Blake  <ebb9@byu.net>
49155
49156         * modules/strnlen (Depends-on): Add extensions.
49157
49158 2006-10-02  Eric Blake  <ebb9@byu.net>
49159
49160         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
49161         definition in 2.60+.
49162
49163 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
49164
49165         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
49166         checks.
49167
49168 2006-10-02  Bruno Haible  <bruno@clisp.org>
49169
49170         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
49171         to the AUTOMAKE_OPTIONS.
49172         Reported by Jim Meyering.
49173
49174 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
49175
49176         Work around bug in Solaris 10 /proc file system:
49177         /proc/self/fd/NNN/.. isn't the parent directory of
49178         the directory whose file descriptor is NNN.  This needs to
49179         be worked around at run time, not compile time, since a
49180         program might be built on Solaris 8, where things work, and
49181         run on Solaris 10.
49182         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
49183         to use the following interface instead:
49184         (OPENAT_BUFFER_SIZE): New macro.
49185         (openat_proc_name): New function.
49186         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
49187         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
49188         Likewise.
49189         * lib/openat-proc.c: New file.
49190         * modules/openat (Files): Add lib/openat-proc.c.
49191         (Depends-on): Add same-inode, stdbool.
49192         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
49193
49194 2006-09-29  Bruno Haible  <bruno@clisp.org>
49195
49196         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
49197         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
49198         argument. Set stdout_closed before testing for ferror, not after.
49199         (fwriteerror, fwriteerror_no_ebadf): New functions.
49200
49201 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49202
49203         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
49204
49205 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
49206
49207         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
49208         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
49209
49210 2006-09-28  Jim Meyering  <jim@meyering.net>
49211
49212         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
49213         Include <unistd.h>.
49214
49215 2006-09-28  Bruno Haible  <bruno@clisp.org>
49216
49217         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
49218         * modules/linkedhash-list (Depends-on): Likewise.
49219         * modules/rbtreehash-list (Depends-on): Likewise.
49220
49221 2006-09-28  Bruno Haible  <bruno@clisp.org>
49222
49223         * lib/strndup.h: Simplify the redefinition of strndup.
49224         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
49225         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
49226
49227 2006-09-28  Bruno Haible  <bruno@clisp.org>
49228
49229         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
49230         * lib/gl_linkedhash_list.c: Likewise.
49231         * lib/gl_rbtreehash_list.c: Likewise.
49232
49233 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
49234
49235         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
49236         getaddrinfo.
49237
49238         * lib/__fpending.h: Don't include <stdio_ext.h> unless
49239         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
49240         it causes <stdio_ext.h> to cause a compile-time error.
49241         Problem reported by Nelson H. F. Beebe.
49242         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
49243         of HAVE_DECL___PENDING.
49244
49245         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
49246         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
49247         declaration.
49248
49249 2006-09-27  Jim Meyering  <jim@meyering.net>
49250
49251         This file could end up with a definition for a function
49252         named __strndup, rather than rpl_strndup on a system with
49253         incomplete weak_alias support.
49254         * lib/strndup.c (strndup): Rename from __strndup.
49255         Remove #defines that used to map __strndup to strndup.
49256         Don't use K&R prototypes.
49257         Remove LIBC-related code, since this file is not sync'd with glibc.
49258         * lib/strndup.h: Revamp, accordingly.
49259         * m4/strndup.m4: Modernize.
49260
49261 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
49262
49263         * modules/savewd (Depends-on): Add 'raise'.
49264         * lib/savewd.c: Include <signal.h>, for 'raise'.
49265
49266 2006-09-26  Jim Meyering  <jim@meyering.net>
49267
49268         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
49269         when we detect Darwin 8.7.0's acl_get_file bug.
49270         Rearrange to perform the new (below) run-test while $LIBS
49271         contains any acl-related library.  Set USE_ACL at the end.
49272         (gl_ACL_GET_FILE): New function.
49273
49274 2006-09-26  Eric Blake  <ebb9@byu.net>
49275
49276         * lib/verror.c: Include <config.h> unconditionally.
49277
49278 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
49279
49280         * modules/clock-time (Maintainer): Add self.
49281         * modules/getlogin_r (Depends-on): Add extensions.
49282
49283 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49284
49285         * modules/clock-time: New module.
49286         * modules/nanosleep (Depends-on): Add clock-time.
49287         * modules/gethrxtime (Depends-on): Likewise.
49288         * modules/gettime (Depends-on): Likewise.
49289         * modules/settime (Depends-on): Likewise.
49290
49291         * modules/fts-lgpl: Depend on openat.
49292         * modules/mkancesdirs: Depend on savewd.
49293         * modules/mkdir-p: Likewise.
49294
49295 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49296
49297         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
49298
49299         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
49300         `gl_have_arbitrary_file_name_length_limit' to
49301         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
49302         actually works between configure runs.
49303
49304 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49305             Bruno Haible  <bruno@clisp.org>
49306
49307         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
49308
49309 2006-09-25  Jim Meyering  <jim@meyering.net>
49310
49311         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
49312         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
49313
49314 2006-09-25  Eric Blake  <ebb9@byu.net>
49315
49316         * gnulib-tool (func_import, func_create_testdir): Fix typos in
49317         exec's in 2006-09-18 patch when shuffling fds.
49318
49319 2006-09-25  Bruno Haible  <bruno@clisp.org>
49320
49321         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
49322         Reported by Jim Meyering.
49323
49324 2006-09-24  Jim Meyering  <jim@meyering.net>
49325
49326         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
49327         compare a pointer against a literal "0".  That caused failures with
49328         at least HP-UX's hpcc.
49329
49330 2006-09-22  Simon Josefsson  <jas@extundo.com>
49331
49332         * modules/gc-sha1:
49333         * modules/gc-md4:
49334         * modules/gc-hmac-sha1:
49335         * modules/gc-hmac-md5:
49336         * modules/gc-des:
49337         * modules/gc-arcfour: Distribute more files.
49338
49339 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49340
49341         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
49342         (gl_linked_iterator_from_to): Initialize struct completely.
49343         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
49344         (gl_tree_iterator_from_to): Likewise
49345         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
49346         * lib/gl_array_list.c [lint] (gl_array_iterator)
49347         (gl_array_iterator_from_to): Likewise.
49348         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
49349         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
49350         (gl_carray_iterator_from_to): Likewise.
49351
49352         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
49353         * lib/md4.c (md4_process_block): Remove unused variable.
49354         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
49355         parentheses for clarity.
49356
49357 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49358
49359         * modules/bison-i18n (Depends-on): Add gettext.
49360
49361 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49362
49363         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
49364         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
49365         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
49366         also add missing comma that caused broken test.
49367         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
49368         stdlib.h, for `abort'.
49369         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
49370         variables.
49371         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
49372         include unistd.h if present, for `rmdir'.
49373         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
49374         variables.
49375         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
49376         in the process include standard headers for prototypes.
49377         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
49378         gets declared on GNU/Linux.
49379         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
49380         unistd.h, for `rmdir'.
49381         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
49382
49383         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
49384         always true.
49385         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
49386
49387         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
49388
49389 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49390
49391         * gnulib-tool (func_version): Create output all at once.  This
49392         may help avoid triggering unnecessary SIGPIPEs, and at any
49393         rate it doesn't hurt.
49394
49395 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49396             Bruno Haible  <bruno@clisp.org>
49397
49398         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
49399         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
49400         * m4/signed.m4 (bh_C_SIGNED): Likewise.
49401
49402         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
49403         (gl_FUNC_VASPRINTF): Invoke it.
49404
49405 2006-09-22  Bruno Haible  <bruno@clisp.org>
49406
49407         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
49408         getloadavg.c as first argument.
49409
49410 2006-09-22  Bruno Haible  <bruno@clisp.org>
49411
49412         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
49413         at the beginning of the gl_INIT macro.
49414         * modules/getloadavg (configure.ac): Pass $gl_source_base to
49415         gl_GETLOADAVG.
49416
49417 2006-09-22  Bruno Haible  <bruno@clisp.org>
49418
49419         * gnulib-tool (func_create_megatestdir): Don't include the config-h
49420         module.
49421         Suggested by Ralf Wildenhues.
49422
49423 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
49424
49425         Import this patch from libc:
49426
49427         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
49428
49429         * lib/regex_internal.c (re_string_reconstruct): Handle
49430         offset < pstr->valid_raw_len && pstr->offsets_needed case.
49431         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
49432         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
49433         re_string_context_at.
49434
49435         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
49436         now requires it.
49437         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
49438         gl_REGEX now does it for us.
49439         (gl_REGEX): Add test taken from
49440         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
49441
49442         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
49443         Check that large offsets work.  Modernize Autoconf usages.
49444         Prefer "yes" to mean a good thing rather than a bad.
49445         Don't put "#define mkstemp" in config.h, as this might interfere
49446         with standard system headers that "#define mkstemp mkstemp64".
49447
49448         * modules/mkstemp (Depends-on): Add extensions, so that
49449         mkstemp is visible on some platforms.
49450         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
49451         (Include): Change to "mkstemp.h" from <stdlib.h>.
49452         (Files): Add mkstemp.h.
49453
49454         * lib/mkstemp.h: New file, since some standard headers
49455         #define mkstemp.
49456         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
49457         Include "mkstemp.h".
49458         Make the _LIBC code resemble glibc original more,
49459         e.g., use K&R style.
49460         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
49461         (mkstemp): Remove, since mkstemp.h does this for us.
49462         * lib/stdlib--.h: Include mkstemp.h.
49463
49464         Import this patch from libc:
49465
49466         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
49467
49468         * lib/tempname.c (__gen_tempname): Change attempts_min
49469         into a macro.  Use preprocessor to decide how to initialize
49470         attempts [Coverity CID 67].
49471
49472 2006-09-20  Bruno Haible  <bruno@clisp.org>
49473
49474         * lib/mkdtemp.c: Import from libc.
49475         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
49476                 * sysdeps/posix/tempname.c (__gen_tempname): Change
49477                 attempts_min into a macro.  Use preprocessor to decide how to
49478                 initialize attempts [Coverity CID 67].
49479         2001-11-27  Paul Eggert  <eggert@twinsun.com>
49480                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
49481                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
49482
49483 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49484
49485         * gnulib-tool (func_exit): New function, to allow to pass the
49486         exit status portably through the trap.  Use everywhere.
49487         (--help, --version): Signal a write error.
49488         (trap): catch SIGPIPE, for write errors.
49489         Exit at the end of the trap, with the correct exit status.
49490
49491 2006-09-19  Karl Berry  <karl@gnu.org>
49492
49493         * doc/gnulib.texi: note about the license texinfo files.
49494
49495 2006-09-19  Eric Blake  <ebb9@byu.net>
49496
49497         * gnulib-tool: Avoid space-tab.
49498
49499 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
49500
49501         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
49502         that prevented coreutils 6.1 from building.  Problem reported
49503         by Petter Reinholdtsen.
49504
49505 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
49506
49507         * gnulib-tool (avoidlist): Fix typo that broke options like
49508         --avoid=lock that are used by coreutils bootstrap.
49509
49510 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
49511
49512         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
49513         more systematically.
49514
49515 2006-09-18  Jim Meyering  <jim@meyering.net>
49516
49517         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
49518
49519 2006-09-18  Bruno Haible  <bruno@clisp.org>
49520
49521         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
49522
49523 2006-09-18  Bruno Haible  <bruno@clisp.org>
49524
49525         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
49526         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
49527         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
49528         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
49529         * m4/gettext.m4: Require autoconf >= 2.52.
49530         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
49531         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
49532         of gl_cv_header_inttypes_h.
49533
49534 2006-09-18  Bruno Haible  <bruno@clisp.org>
49535
49536         * lib/javaversion.c: Include configmake.h.
49537
49538 2006-09-18  Bruno Haible  <bruno@clisp.org>
49539
49540         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
49541         avoid that the while loops be executed in a subshell.
49542
49543 2006-09-18  Bruno Haible  <bruno@clisp.org>
49544
49545         * MODULES.html.sh (func_module): Break long lines.
49546         Suggested by Bruce Korb <bkorb@gnu.org>.
49547
49548 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49549
49550         Speed up by a factor of 1.12.
49551         * gnulib-tool (nl): New variable.
49552         (func_import): Rewrite include directive extraction to only read each
49553         directive once.
49554
49555 2006-09-17  Bruno Haible  <bruno@clisp.org>
49556
49557         * modules/javaversion (Makefile.am): Remove DEFS setting.
49558         (Depends-on): Add configmake, for PKGDATADIR definition.
49559
49560 2006-09-17  Bruno Haible  <bruno@clisp.org>
49561
49562         * gnulib-tool (func_create_testdir): Rewrite all files at once.
49563
49564 2006-09-17  Bruno Haible  <bruno@clisp.org>
49565
49566         * gnulib-tool (func_append): New function, stolen from libtool.m4.
49567         (func_modules_transitive_closure, func_modules_add_dummy,
49568         func_modules_to_filelist, func_import, func_create_testdir,
49569         func_create_megatestdir, ...): Use it wherever possible.
49570         Suggested by Ralf Wildenhues.
49571
49572 2006-09-16  Karl Berry  <karl@gnu.org>
49573
49574         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
49575         to avoid sectioning errors.
49576         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
49577         [ifinfo]: blank line after @center-ed titles.
49578         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
49579         Spell FSF address consistently with others.
49580         (These changes approved by rms.)
49581
49582 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49583
49584         Speed up by a factor of 1.61.
49585         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
49586         already checked module names again.
49587
49588 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49589
49590         Speed up by a factor of 1.13.
49591         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
49592         for new_files, and the input to func_add_or_update.
49593
49594 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49595
49596         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
49597         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
49598
49599 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
49600
49601         * modules/mkancesdirs (Depends-on): Add fcntl.
49602         * modules/savewd: New file.
49603         * MODULES.html.sh (File system functions): Add savewd.
49604
49605         * modules/configmake (Makefile.am): Add support for the
49606         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
49607
49608 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
49609
49610         * m4/savewd.m4: New file.
49611
49612 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
49613
49614         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
49615         (dirchownmod): New arg FD.  All callers changed.
49616         Use FD rather than opening the directory ourself, as opening is
49617         now the caller's responsibility.
49618         * lib/dirchownmod.h: Likewise.
49619         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
49620         hosts that require <sys/types.h> before <sys/stat.h>.  Include
49621         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
49622         (test_dir): Remove.
49623         (mkancesdirs): Return length of prefix of FILE that has already
49624         been made, or -2 if there is a child doing the work.  Redo
49625         algorithm so that it is O(N) rather than O(N**2).  Optimize away
49626         ".", and treat ".." specially since it might stray back into
49627         already-created areas.  Use a subprocess if necessary.  New arg
49628         WD; all users changed.  MAKE_DIR function should now return 1
49629         if it creates a directory that is not readable.  Return -2 if
49630         a child process is spun off.
49631         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
49632         Adjust signature to match code.
49633         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
49634         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
49635         all users changed.
49636         * lib/savewd.c, lib/savewd.h: New files.
49637
49638 2006-09-15  Jim Meyering  <jim@meyering.net>
49639
49640         * modules/rename-dest-slash: New module.
49641         * MODULES.html.sh (posix_compat): Add it here.
49642
49643         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
49644
49645 2006-09-15  Jim Meyering  <jim@meyering.net>
49646
49647         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
49648         file.
49649
49650         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
49651
49652 2006-09-15  Jim Meyering  <jim@meyering.net>
49653
49654         * lib/rename-dest-slash.c (has_trailing_slash): Use
49655         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
49656         (rpl_rename_dest_slash): Perform the cheaper trailing slash
49657         test before testing whether SRC is a directory.
49658         Suggestions from Bruno Haible.
49659
49660         Avoid a warning about an unused variable.
49661         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
49662         into the #ifdef block where it's used.
49663
49664         * lib/rename-dest-slash.c: New file.
49665
49666 2006-09-14  Bruno Haible  <bruno@clisp.org>
49667
49668         * lib/allocsa.c: Include <config.h> unconditionally.
49669         * lib/asnprintf.c: Likewise.
49670         * lib/asprintf.c: Likewise.
49671         * lib/c-strcasecmp.c: Likewise.
49672         * lib/c-strcasestr.c: Likewise.
49673         * lib/c-strncasecmp.c: Likewise.
49674         * lib/c-strstr.c: Likewise.
49675         * lib/classpath.c: Likewise.
49676         * lib/clean-temp.c: Likewise.
49677         * lib/concatpath.c: Likewise.
49678         * lib/copy-file.c: Likewise.
49679         * lib/csharpcomp.c: Likewise.
49680         * lib/csharpexec.c: Likewise.
49681         * lib/execute.c: Likewise.
49682         * lib/fatal-signal.c: Likewise.
49683         * lib/findprog.c: Likewise.
49684         * lib/fwriteerror.c: Likewise.
49685         * lib/gl_array_list.c: Likewise.
49686         * lib/gl_array_oset.c: Likewise.
49687         * lib/gl_avltree_list.c: Likewise.
49688         * lib/gl_avltree_oset.c: Likewise.
49689         * lib/gl_avltreehash_list.c: Likewise.
49690         * lib/gl_carray_list.c: Likewise.
49691         * lib/gl_linked_list.c: Likewise.
49692         * lib/gl_linkedhash_list.c: Likewise.
49693         * lib/gl_list.c: Likewise.
49694         * lib/gl_oset.c: Likewise.
49695         * lib/gl_rbtree_list.c: Likewise.
49696         * lib/gl_rbtree_oset.c: Likewise.
49697         * lib/gl_rbtreehash_list.c: Likewise.
49698         * lib/imaxabs.c: Likewise.
49699         * lib/imaxdiv.c: Likewise.
49700         * lib/javacomp.c: Likewise.
49701         * lib/javaexec.c: Likewise.
49702         * lib/javaversion.c: Likewise.
49703         * lib/linebreak.c: Likewise.
49704         * lib/localcharset.c: Likewise.
49705         * lib/lock.c: Likewise.
49706         * lib/mbchar.c: Likewise.
49707         * lib/mbswidth.c: Likewise.
49708         * lib/mkdtemp.c: Likewise.
49709         * lib/pipe.c: Likewise.
49710         * lib/printf-args.c: Likewise.
49711         * lib/printf-parse.c: Likewise.
49712         * lib/progname.c: Likewise.
49713         * lib/progreloc.c: Likewise.
49714         * lib/readlink.c: Likewise.
49715         * lib/sh-quote.c: Likewise.
49716         * lib/stpcpy.c: Likewise.
49717         * lib/stpncpy.c: Likewise.
49718         * lib/strcasecmp.c: Likewise.
49719         * lib/strcasestr.c: Likewise.
49720         * lib/strcspn.c: Likewise.
49721         * lib/striconv.c: Likewise.
49722         * lib/strncasecmp.c: Likewise.
49723         * lib/strnlen1.c: Likewise.
49724         * lib/strstr.c: Likewise.
49725         * lib/strtok_r.c: Likewise.
49726         * lib/tls.c: Likewise.
49727         * lib/tmpdir.c: Likewise.
49728         * lib/unicodeio.c: Likewise.
49729         * lib/unsetenv.c: Likewise.
49730         * lib/vasnprintf.c: Likewise.
49731         * lib/vasprintf.c: Likewise.
49732         * lib/wait-process.c: Likewise.
49733         * lib/xallocsa.c: Likewise.
49734         * lib/xsetenv.c: Likewise.
49735         * lib/xstriconv.c: Likewise.
49736
49737 2006-09-13  Simon Josefsson  <jas@extundo.com>
49738
49739         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
49740         that internally, suggested by Ralf Wildenhues
49741         <Ralf.Wildenhues@gmx.de>.
49742
49743 2006-09-13  Simon Josefsson  <jas@extundo.com>
49744
49745         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
49746         @LIBOBJS@.
49747         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
49748
49749 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
49750
49751         * lib/_fpending.c: Include <config.h> unconditionally, since we no
49752         longer worry about uses that don't define HAVE_CONFIG_H.
49753         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
49754         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
49755         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
49756         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
49757         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
49758         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
49759         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
49760         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
49761         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
49762         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
49763         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
49764         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
49765         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
49766         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
49767         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
49768         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
49769         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
49770         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
49771         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
49772         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
49773         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
49774         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
49775         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
49776         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
49777         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
49778         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
49779         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
49780         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
49781         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
49782         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
49783         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
49784         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
49785         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
49786         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
49787         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
49788         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
49789         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
49790         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
49791         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
49792         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
49793         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
49794         Likewise.
49795
49796 2006-09-13  Eric Blake  <ebb9@byu.net>
49797
49798         * lib/getopt.c: Fix typo in last commit.
49799
49800 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
49801
49802         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
49803         dgettext.
49804
49805 2006-09-12  Jim Meyering  <jim@meyering.net>
49806
49807         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
49808         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
49809         Reported by Nelson H. F. Beebe.
49810
49811 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
49812
49813         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
49814         program_invocation_name and program_invocation_short_name are
49815         initialized.
49816         * lib/argp-namefrob.h: Move declarations of program_invocation_name
49817         and program_invocation_short_name to argp.h, so they are visible
49818         to user programs.
49819         * lib/argp.h: Likewise
49820
49821 2006-09-10  Bruno Haible  <bruno@clisp.org>
49822
49823         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
49824         m4/inttypes_h.m4, m4/uintmax_t.m4.
49825
49826 2006-09-10  Bruno Haible  <bruno@clisp.org>
49827
49828         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
49829         gl_AC_TYPE_UINTMAX_T.
49830
49831 2006-09-10  Bruno Haible  <bruno@clisp.org>
49832
49833         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
49834
49835 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
49836
49837         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
49838         convention.  Text proposed by Bruno Haible.
49839         (struct argp_option): Document the use of N_() wrappers.
49840
49841         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
49842         '\v', and translate the two parts separately, instead of feeding
49843         the whole string to gettext.  This allows to exclude
49844         '\v' from the strings visible to the translator by writing doc
49845         strings as N_("..") "\v" N_("..").
49846
49847 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
49848
49849         * config/srclist.txt: Undo latest change; the bug was fixed.
49850
49851 2006-09-09  Bruno Haible  <bruno@clisp.org>
49852
49853         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
49854         assignments if building a library without libtool.
49855         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
49856         in func_emit_lib_Makefile_am.
49857         (func_import): When building a static library libfoo.a, arrange to
49858         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
49859         (func_create_testdir): Likewise.
49860         * modules/gc (configure.ac, Makefile.am): If building statically,
49861         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
49862         * modules/iconvme (configure.ac, Makefile.am): Likewise.
49863         * modules/striconv (configure.ac, Makefile.am): Likewise.
49864         Based on a suggestion by Ralf Wildenhues.
49865
49866 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
49867
49868         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
49869         Check for unistd.h too, since Autoconf doesn't assume POSIX.
49870         Also:
49871
49872         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
49873         Add year_2050_test to catch glibc bug 2821
49874         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
49875
49876         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
49877         Prefer #ifdef to #if.
49878
49879         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
49880         Return from 'main' instead of calling 'exit'.
49881
49882 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
49883
49884         * lib/mktime.c (guess_time_tm): Fix bug where mktime
49885         returned the maximum time_t value rather than (time_t) -1.
49886         Problem originally reported by William Bardwell
49887         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
49888
49889         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
49890         Moved to here ...
49891         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
49892         ... from here.
49893
49894 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
49895
49896         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
49897         2821 is fixed.
49898
49899 2006-09-08  Jim Meyering  <jim@meyering.net>
49900
49901         Don't make generated files read-only.  That would bother too many
49902         people.  However, do retain the ability to work when targets are
49903         read-only: remove the destination and temporary files before writing
49904         them (when generated via sed or echo), or by using the -f option for
49905         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
49906         * modules/alloca-opt, modules/argz, modules/arpa_inet:
49907         * modules/byteswap, modules/configmake, modules/fcntl:
49908         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
49909         * modules/localcharset, modules/netinet_in, modules/poll:
49910         * modules/stdbool, modules/stdint, modules/sys_select:
49911         * modules/sys_socket, modules/sys_stat, modules/sysexits:
49912
49913 2006-09-08  Jim Meyering  <jim@meyering.net>
49914
49915         Avoid new build failure on FreeBSD 6.0.
49916         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
49917         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
49918         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
49919
49920 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49921
49922         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
49923
49924 2006-09-07  Jim Meyering  <jim@meyering.net>
49925
49926         Fix global typo in last change: use chmod u-w, not chmod u-x.
49927         Spotted by Paul Eggert and Bruce Korb.
49928         * modules/alloca-opt, modules/argz, modules/arpa_inet:
49929         * modules/byteswap, modules/configmake, modules/fcntl:
49930         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
49931         * modules/localcharset, modules/netinet_in, modules/poll:
49932         * modules/stdbool, modules/stdint, modules/sys_select:
49933         * modules/sys_socket, modules/sys_stat, modules/sysexits:
49934
49935 2006-09-06  Jim Meyering  <jim@meyering.net>
49936
49937         Make generated files be read-only.
49938         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
49939         Ensure that each generated file is now read-only.
49940         * modules/argz: Likewise.
49941         * modules/arpa_inet: Likewise.
49942         * modules/byteswap: Likewise.
49943         * modules/configmake: Likewise.
49944         * modules/fcntl: Likewise.
49945         * modules/fnmatch: Likewise.
49946         * modules/getopt: Likewise.
49947         * modules/glob: Likewise.
49948         * modules/inttypes: Likewise.
49949         * modules/netinet_in: Likewise.
49950         * modules/poll: Likewise.
49951         * modules/stdbool: Likewise.
49952         * modules/stdint: Likewise.
49953         * modules/sys_select: Likewise.
49954         * modules/sys_socket: Likewise.
49955         * modules/sys_stat: Likewise.
49956         * modules/sysexits: Likewise.
49957         * modules/localcharset: Same as above, but continue using temporary
49958         file named "t-$@" (why different?) rather than the "$@-t" used
49959         everywhere else.
49960
49961         * modules/sysexits (Makefile.am): Replace literal occurrences
49962         of "sysexit.h" more readable, and more consistent, "$@".
49963
49964 2006-09-06  Bruno Haible  <bruno@clisp.org>
49965
49966         * modules/striconv: New file.
49967         * modules/xstriconv: New file.
49968         * MODULES.html.sh (Internationalization functions): Add striconv,
49969         xstriconv.
49970
49971 2006-09-06  Bruno Haible  <bruno@clisp.org>
49972
49973         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
49974         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
49975         not using libtool correctly.
49976
49977 2006-09-06  Bruno Haible  <bruno@clisp.org>
49978
49979         * lib/striconv.h: New file.
49980         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
49981         iconvstring.c.
49982         * lib/xstriconv.h: New file.
49983         * lib/xstriconv.c: New file.
49984
49985 2006-09-06  Bruno Haible  <bruno@clisp.org>
49986
49987         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
49988         lib_..._LDFLAGS.
49989
49990 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49991
49992         * lib/argz_.h: Sync from Libtool.
49993
49994         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
49995                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
49996
49997         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
49998
49999 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
50000
50001         * modules/trim: New file.
50002
50003 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
50004
50005         * lib/trim.h: New file.
50006         * lib/trim.c: New file.
50007
50008 2006-09-05  Bruno Haible  <bruno@clisp.org>
50009
50010         * MODULES.html.sh (String handling): Add trim.
50011
50012 2006-09-04  Karl Berry  <karl@gnu.org>
50013
50014         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
50015         until next release.
50016
50017 2006-09-03  Bruno Haible  <bruno@clisp.org>
50018
50019         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
50020         correctly.
50021
50022 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
50023
50024         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
50025         not gl_GETLOADAVG.  Omit unneeded semicolons.
50026         Problems reported by Ralf Wildenhues in
50027         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
50028         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
50029         at the end, which is the usual gnulib style.
50030
50031         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
50032         of doing all the work ourselves.
50033         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
50034         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
50035
50036 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
50037
50038         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
50039         Problem reported by Ralf Wildenhues in
50040         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
50041
50042         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
50043         HAVE_STRUCT_STATFS_F_FSTYPENAME.
50044
50045 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
50046
50047         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
50048         yesterday's patch by changing test -n to test -z.
50049
50050 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
50051
50052         * modules/getloadavg (Files): Add m4/getloadavg.m4.
50053         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
50054         the former is now obsolescent.
50055
50056         * modules/chdir-long (Depends-on): Add fcntl.
50057
50058 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
50059
50060         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
50061         obsolescent, and programs should use gnulib instead.
50062         * m4/getloadavg.m4: New file, with contents taken from Autoconf
50063         but with prefixes changed.
50064
50065 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
50066
50067         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
50068         or stdbool.h, because they might not exist while configuring.
50069
50070         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
50071         Don't include unistd.h or limits.h; not needed, since chdir-long.h
50072         does that for us.
50073         (O_DIRECTORY): Remove.
50074
50075 2006-08-31  Eric Blake  <ebb9@byu.net>
50076
50077         * gnulib-tool: Don't let emacs change spaces to TAB.
50078
50079 2006-08-31  Bruno Haible  <bruno@clisp.org>
50080
50081         * gnulib-tool: When calling func_import more than once, do it in a
50082         subshell.
50083         Reported by Eric Blake <ebb9@byu.net>.
50084
50085 2006-08-31  Bruno Haible  <bruno@clisp.org>
50086
50087         * gnulib-tool (nl): Remove variable.
50088         (sed_transform_lib_file): Use more robust test for config-h module.
50089         (func_import): Fix typo in 2006-08-25 patch.
50090
50091 2006-08-31  Bruno Haible  <bruno@clisp.org>
50092
50093         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
50094         specified, augment Makefile.am variables instead of assigning them.
50095
50096 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
50097
50098         Work around a bug in both the Linux and SunOS 64-bit kernels:
50099         nanosleep mishandles sleeps for longer than 2**31 seconds.
50100         Problem reported by Frank v Waveren in
50101         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
50102         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
50103         Check for nanosleep bug.
50104         (LIB_NANOSLEEP): Append clock_gettime library if needed.
50105
50106 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
50107
50108         Work around a bug in both the Linux and SunOS 64-bit kernels:
50109         nanosleep mishandles sleeps for longer than 2**31 seconds.
50110         Problem reported by Frank v Waveren in
50111         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
50112         * lib/nanosleep.c (BILLION): New constant.
50113         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
50114         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
50115         implementation.
50116
50117 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
50118
50119         * modules/nanosleep (Depends-on): Add gettime.
50120
50121 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
50122         and Simon Josefsson  <jas@extundo.com>
50123         and Oskar Liljeblad  <oskar@osk.mine.nu>
50124
50125         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
50126         * gnulib-tool (func_import): New license type 'unmodifiable license
50127         text'.
50128         * modules/fdl: Use it.  Longer description.
50129         * module/gpl, module/lgpl: New files.
50130
50131 2006-08-30  Jim Meyering  <jim@meyering.net>
50132
50133         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
50134         shadowing the parameter.
50135
50136 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50137
50138         Sync from Libtool:
50139
50140         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50141
50142         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
50143         sharing with gnulib.  Report by Eric Blake.
50144
50145 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
50146
50147         * modules/isapipe: New file.
50148         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
50149
50150 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
50151
50152         * modules/configmake (Makefile.am): Add a comment, and omit
50153         the CONFIGMAKE_ prefix from generated macro names.  Suggested
50154         by Bruno Haible.
50155
50156 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
50157
50158         * m4/isapipe.m4: New file.
50159
50160 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
50161
50162         * lib/isapipe.c, lib/isapipe.h: New files.
50163
50164 2006-08-29  Jim Meyering  <jim@meyering.net>
50165
50166         * modules/configmake (Makefile.am): Make configmake.h depend on
50167         Makefile.  Otherwise, a stale configmake.h could hang around.
50168
50169 2006-08-29  Eric Blake  <ebb9@byu.net>
50170
50171         * lib/error.c (error_at_line, print_errno_message): Match libc, after
50172         resolution of upstream bug 3044.
50173
50174 2006-08-29  Bruno Haible  <bruno@clisp.org>
50175
50176         * modules/localcharset (Depends-on): Add configmake.
50177         (Makefile.am): Remove setting of LIBDIR through DEFS.
50178
50179 2006-08-29  Bruno Haible  <bruno@clisp.org>
50180
50181         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
50182         defined.
50183
50184 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
50185
50186         * modules/fcntl: New file.
50187         * modules/chdir-safer (Depends-on): Add fcntl.
50188         * modules/fts: Likewise.
50189         * modules/mkdir-p: Likewise.
50190
50191         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
50192         This undoes the most recent change, since we're now addressing the
50193         problem in a different way.
50194
50195         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
50196         into output, since the output might be called Makefile.am even
50197         if $makefile_name is something different.
50198         (func_import): Use $makefile_am rather than
50199         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
50200         empty.
50201
50202         * modules/inttypes (Files): Add m4/inttypes-h.m4.
50203
50204 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
50205
50206         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
50207         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
50208         recent change to stdint.m4, since we're now addressing the problem in a
50209         different way.
50210
50211 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
50212
50213         * m4/fcntl_h.m4: New file.
50214
50215 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
50216
50217         * lib/fcntl_.h: New file.
50218         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
50219         the fcntl module.
50220         * lib/dirchownmod.c: Likewise.
50221         * lib/fts.c: Likewise.
50222
50223         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
50224         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
50225         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
50226         just before including <inttypes.h>, to avoid circular inclusion.
50227
50228 2006-08-28  Jim Meyering  <jim@meyering.net>
50229
50230         * doc/visibility.texi: Actually read and correct the grammar of the
50231         sentence affected by yesterday's change.
50232
50233 2006-08-28  Eric Blake  <ebb9@byu.net>
50234
50235         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
50236         needs wrapper.
50237
50238 2006-08-28  Eric Blake  <ebb9@byu.net>
50239
50240         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
50241
50242 2006-08-28  Eric Blake  <ebb9@byu.net>
50243
50244         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
50245
50246 2006-08-28  Bruno Haible  <bruno@clisp.org>
50247
50248         * modules/c-strstr: New file, from GNU gettext.
50249         * MODULES.html.sh (String handling): Add c-strstr.
50250
50251 2006-08-28  Bruno Haible  <bruno@clisp.org>
50252
50253         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
50254         macros.
50255         Reported by Eric Blake.
50256
50257 2006-08-28  Bruno Haible  <bruno@clisp.org>
50258
50259         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
50260         (VASNPRINTF): Return a string of length > INT_MAX without failing.
50261         * lib/vasprintf.c: Include errno.h, limits.h.
50262         (EOVERFLOW): New fallback definition.
50263         (vasprintf): Test here whether the string length is > INT_MAX.
50264         * lib/vsnprintf.c: Include errno.h, limits.h.
50265         (EOVERFLOW): New fallback definition.
50266         (vsnprintf): Fix bug when generated string was too long for the buffer.
50267         Test here whether the string length is > INT_MAX.
50268
50269 2006-08-28  Bruno Haible  <bruno@clisp.org>
50270
50271         * lib/inttypes_.h (SCNX*): Remove definitions.
50272         Reported by Eric Blake.
50273
50274 2006-08-28  Bruno Haible  <bruno@clisp.org>
50275
50276         * lib/c-strstr.h: New file, from GNU gettext.
50277         * lib/c-strstr.c: New file, from GNU gettext.
50278
50279 2006-08-28  Bruno Haible  <bruno@clisp.org>
50280
50281         * gnulib-tool: Reorder some statements.
50282
50283 2006-08-28  Bruno Haible  <bruno@clisp.org>
50284
50285         * gnulib-tool: New option --makefile-name.
50286         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
50287         $makefile_name.
50288         (func_import): Write $makefile_name to the cache file, and read it from
50289         there unless explicitly specified. Use $makefile_name as file name
50290         instead of Makefile.am. Adjust the recommendations accordingly.
50291
50292 2006-08-28  Bruno Haible  <bruno@clisp.org>
50293
50294         * gnulib-tool (func_verify_module): Check against misapplying patch.
50295
50296 2006-08-28  Bruno Haible  <bruno@clisp.org>
50297
50298         * gnulib-tool (func_relativize, func_relconcat): New functions.
50299         Give an error if --local-dir is given with --update.
50300         Remove trailing slashes from $local_gnulib_dir.
50301         (func_import): Store the relativized $local_gnulib_dir in
50302         gnulib-cache.m4, and read it from there if not specified explicitly.
50303
50304 2006-08-28  Bruno Haible  <bruno@clisp.org>
50305
50306         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
50307         is the current directory. Respect also $local_gnulib_dir.
50308
50309 2006-08-28  Bruno Haible  <bruno@clisp.org>
50310             Simon Josefsson  <jas@extundo.com>
50311
50312         BeOS portability.
50313         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
50314
50315 2006-08-27  Jim Meyering  <jim@meyering.net>
50316
50317         * doc/visibility.texi: Remove duplicate word: "pointer".
50318
50319 2006-08-26  Bruno Haible  <bruno@clisp.org>
50320
50321         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
50322         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
50323         (Makefile.am): Create inttypes.h from inttypes_.h.
50324         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
50325
50326         * modules/imaxabs: New file.
50327
50328         * modules/imaxdiv: New file.
50329
50330 2006-08-26  Bruno Haible  <bruno@clisp.org>
50331
50332         * m4/inttypes.m4: New file.
50333         * m4/_inttypes_h.m4: Remove file.
50334         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
50335         PRI_MACROS_BROKEN.
50336         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
50337
50338         * m4/imaxabs.m4: New file.
50339
50340         * m4/imaxdiv.m4: New file.
50341
50342 2006-08-26  Bruno Haible  <bruno@clisp.org>
50343
50344         * lib/inttypes_.h: New file.
50345         * lib/inttypes.h: Remove file.
50346         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
50347
50348         * lib/imaxabs.c: New file.
50349
50350         * lib/imaxdiv.c: New file.
50351
50352 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
50353
50354         New config-h module, so that "make" output needn't be cluttered
50355         by -DHAVE_CONFIG_H.
50356         * MODULES.html.sh (Support for building libraries and executables):
50357         Add config-h.
50358         * modules/config-h: New file.
50359         * gnulib-tool (nl, sed_transform_lib_file): New vars.
50360         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
50361         the config-h module is used.
50362
50363         New configmake module, so that "make" output needn't be cluttered
50364         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
50365         * MODULES.html.sh (Support for building libraries and executables):
50366         Add configmake.
50367         * modules/configmake: New file.
50368
50369 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
50370
50371         * m4/config-h.m4: New file.
50372
50373 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
50374
50375         * config/srclist.txt: Add elisp-comp.
50376
50377 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
50378
50379         * MODULES.html.sh (Support for building libraries and executables):
50380         Add elisp-comp.
50381         * build-aux/elisp-comp: New file.
50382         * modules/elisp-comp: New file.
50383
50384 2006-08-24  Bruno Haible  <bruno@clisp.org>
50385
50386         * gnulib-tool (func_create_testdir): Use non-default values of
50387         sourcebase and m4base.
50388
50389 2006-08-24  Bruno Haible  <bruno@clisp.org>
50390
50391         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
50392         HTML structure.
50393
50394 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
50395
50396         * modules/openat (Depends-on): Add lchown.
50397
50398 2006-08-23  Bruno Haible  <bruno@clisp.org>
50399
50400         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
50401         of gl_LOCK_EARLY instead of gl_LOCK.
50402
50403 2006-08-23  Bruno Haible  <bruno@clisp.org>
50404
50405         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
50406         on OSF/1 to no.
50407         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
50408
50409 2006-08-23  Bruno Haible  <bruno@clisp.org>
50410
50411         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
50412         as unusable.
50413
50414         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
50415         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
50416         (gl_LOCK): New macro.
50417
50418 2006-08-22  Simon Josefsson  <jas@extundo.com>
50419
50420         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
50421         to md5 module.
50422
50423 2006-08-22  Simon Josefsson  <jas@extundo.com>
50424
50425         * MODULES.html.sh: Add "Support for maintaining and release
50426         projects".
50427
50428         * build-aux/gnupload: New file, from coreutils.
50429
50430 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
50431
50432         Avoid the need for AC_LIBSOURCES in m4 macros.
50433         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
50434         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
50435         * modules/check-version (EXTRA_DIST): Add check-version.h.
50436         * modules/crc (EXTRA_DIST): Add crc.h.
50437         * modules/des (EXTRA_DIST): Add des.h.
50438         * modules/gc (EXTRA_DIST): Add gc.h.
50439         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
50440         * modules/getline (EXTRA_DIST): Add getline.h.
50441         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
50442         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
50443         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
50444         * modules/md2 (EXTRA_DIST): Add md2.h.
50445         * modules/md4 (EXTRA_DIST): Add md4.h.
50446         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
50447         * modules/read-file (EXTRA_DIST): Add read-file.h.
50448         * modules/readline (EXTRA_DIST): Add readline.h.
50449         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
50450         rijndael-api-fst.h.
50451
50452 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
50453
50454         * m4/rijndael.m4 (gl_ARCFOUR):
50455         * m4/arctwo.m4 (gl_ARCTWO):
50456         * m4/check-version.m4 (gl_CHECK_VERSION):
50457         * m4/crc.m4 (gl_CRC):
50458         * m4/des.m4 (gl_DES):
50459         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
50460         * m4/gc.m4 (gl_GC):
50461         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
50462         * m4/getline.m4 (gl_FUNC_GETLINE):
50463         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
50464         * m4/hmac-md5.m4 (gl_HMAC_MD5):
50465         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
50466         * m4/md2.m4 (gl_MD2):
50467         * m4/md4.m4 (gl_MD4):
50468         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
50469         * m4/read-file.m4 (gl_FUNC_READ_FILE):
50470         * m4/readline.m4 (gl_FUNC_READLINE):
50471         * m4/rijndael.m4 (gl_RIJNDAEL):
50472         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
50473         to get the necessary .h files and whatnot.
50474
50475 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
50476
50477         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
50478         gnulib rather than the other way around.
50479         * config/srclistvars.sh (COREUTILS): Remove.
50480
50481 2006-08-22  Jim Meyering  <jim@meyering.net>
50482
50483         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
50484
50485         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
50486
50487 2006-08-22  Eric Blake  <ebb9@byu.net>
50488
50489         * modules/regexprops-generic: New file.
50490         * MODULES.html.sh (Support for building documentation): List it.
50491
50492 2006-08-22  Eric Blake  <ebb9@byu.net>
50493
50494         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
50495         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
50496         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
50497         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
50498
50499 2006-08-22  Bruno Haible  <bruno@clisp.org>
50500
50501         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
50502         and lib_LTLIBRARIES like the other lib_* variables.
50503
50504 2006-08-22  Bruno Haible  <bruno@clisp.org>
50505
50506         * build-aux/x-to-1.in: New file, from GNU gettext.
50507
50508 2006-08-22  Bruno Haible  <bruno@clisp.org>
50509
50510         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
50511         <utmpx.h> exists.
50512
50513 2006-08-22  Bruno Haible  <bruno@clisp.org>
50514
50515         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
50516         <utmpx.h> exists.
50517
50518 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
50519
50520         BeOS portability.
50521         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
50522         exist.
50523         Problem reported by Bruno Haible.
50524
50525 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
50526
50527         Avoid the need for AC_LIBSOURCES in m4 macros.
50528         * modules/acl (EXTRA_DIST): Add acl.h.
50529         * modules/argmatch (Files): Add m4/argmatch.m4.
50530         (configure.ac): Add gl_ARGMATCH.
50531         (EXTRA_DIST): Renamed from lib_SOURCES, for
50532         consistency with the other modules.  Remove argmatch.c.
50533         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
50534         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
50535         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
50536         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
50537         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
50538         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
50539         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
50540         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
50541         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
50542         * modules/closeout (EXTRA_DIST): Add closeout.h.
50543         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
50544         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
50545         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
50546         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
50547         dirname.h; remove basename.c and stripslash.c.
50548         * modules/exclude (EXTRA_DIST): Add exclude.h.
50549         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
50550         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
50551         * modules/file-type (EXTRA_DIST): Add file-type.h.
50552         * modules/filemode (EXTRA_DIST): Add filemode.h.
50553         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
50554         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
50555         * modules/fpending (EXTRA_DIST): Add __fpending.h.
50556         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
50557         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
50558         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
50559         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
50560         * modules/getdate (EXTRA_DIST): Add getdate.c.
50561         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
50562         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
50563         * modules/getpass (EXTRA_DIST): Add getpass.h.
50564         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
50565         * modules/group-member (EXTRA_DIST): Add group-member.h.
50566         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
50567         * modules/hash (EXTRA_DIST): Add hash.h.
50568         * modules/human (EXTRA_DIST): Add human.h.
50569         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
50570         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
50571         * modules/lchown (EXTRA_DIST): Add lchown.h.
50572         * modules/long-options (EXTRA_DIST): Add long-options.h.
50573         * modules/lstat (EXTRA_DIST): Add lstat.h.
50574         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
50575         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
50576         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
50577         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
50578         * modules/memxor (EXTRA_DIST): Add memxor.h.
50579         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
50580         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
50581         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
50582         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
50583         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
50584         * modules/physmem (EXTRA_DIST): Add physmem.h.
50585         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
50586         * modules/posixver (EXTRA_DIST): Add posixver.h.
50587         * modules/quote (EXTRA_DIST): Add quote.h.
50588         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
50589         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
50590         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
50591         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
50592         regex_internal.h regexec.c.
50593         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
50594         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
50595         * modules/same (EXTRA_DIST): Add same.h.
50596         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
50597         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
50598         * modules/savedir (EXTRA_DIST): Add savedir.h.
50599         * modules/sha1 (EXTRA_DIST): Add sha1.h.
50600         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
50601         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
50602         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
50603         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
50604         * modules/strdup (EXTRA_DIST): Add strdup.h.
50605         * modules/strftime (EXTRA_DIST): Add strftime.h.
50606         * modules/strndup (EXTRA_DIST): Add strndup.h.
50607         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
50608         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
50609         * modules/time_r (EXTRA_DIST): Add time_r.h.
50610         * modules/timespec (EXTRA_DIST): Add timespec.h.
50611         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
50612         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
50613         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
50614         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
50615         * modules/userspec (EXTRA_DIST): Add userspec.h.
50616         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
50617         * modules/utimens (EXTRA_DIST): Add utimens.h.
50618         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
50619         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
50620         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
50621         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
50622         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
50623         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
50624         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
50625         * modules/yesno (EXTRA_DIST): Add yesno.h.
50626
50627 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
50628
50629         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
50630
50631         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
50632         * m4/dev-ino.m4, same-inode.m4: Remove.
50633
50634         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
50635         * m4/acl.m4 (AC_FUNC_ACL):
50636         * m4/backupfile.m4 (gl_BACKUPFILE):
50637         * m4/c-strtod.m4 (gl_C99_STRTOLD):
50638         * m4/canon-host.m4 (gl_CANON_HOST):
50639         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
50640         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
50641         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
50642         * m4/cloexec.m4 (gl_CLOEXEC):
50643         * m4/close-stream.m4 (gl_CLOSE_STREAM):
50644         * m4/closeout.m4 (gl_CLOSEOUT):
50645         * m4/dirfd.m4 (gl_FUNC_DIRFD):
50646         * m4/dirname.m4 (gl_DIRNAME):
50647         * m4/exclude.m4 (gl_EXCLUDE):
50648         * m4/exitfail.m4 (gl_EXITFAIL):
50649         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
50650         * m4/file-type.m4 (gl_FILE_TYPE):
50651         * m4/filemode.m4 (gl_FILEMODE):
50652         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
50653         * m4/fpending.m4 (gl_FUNC_FPENDING):
50654         * m4/fprintftime.m4 (gl_FPRINTFTIME):
50655         * m4/fts.m4 (gl_FUNC_FTS):
50656         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
50657         * m4/getdate.m4 (gl_GETDATE):
50658         * m4/gethrxtime.m4 (gl_GETHRXTIME):
50659         * m4/getpagesize.m4 (gl_GETPAGESIZE):
50660         * m4/getpass.m4 (gl_FUNC_GETPASS):
50661         * m4/gettime.m4 (gl_GETTIME):
50662         * m4/getugroups.m4 (gl_GETUGROUPS):
50663         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
50664         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
50665         * m4/hard-locale.m4 (gl_HARD_LOCALE):
50666         * m4/hash.m4 (gl_HASH):
50667         * m4/idcache.m4 (gl_IDCACHE):
50668         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
50669         * m4/lchown.m4 (gl_FUNC_LCHOWN):
50670         * m4/long-options.m4 (gl_LONG_OPTIONS):
50671         * m4/lstat.m4 (gl_FUNC_LSTAT):
50672         * m4/md5.m4 (gl_MD5):
50673         * m4/memcasecmp.m4 (gl_MEMCASECMP):
50674         * m4/memcoll.m4 (gl_MEMCOLL):
50675         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
50676         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
50677         * m4/memxor.m4 (gl_MEMXOR):
50678         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
50679         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
50680         * m4/modechange.m4 (gl_MODECHANGE):
50681         * m4/mountlist.m4 (gl_MOUNTLIST):
50682         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
50683         * m4/openat.m4 (gl_FUNC_OPENAT):
50684         * m4/pathmax.m4 (gl_PATHMAX):
50685         * m4/physmem.m4 (gl_PHYSMEM):
50686         * m4/posixtm.m4 (gl_POSIXTM):
50687         * m4/posixver.m4 (gl_POSIXVER):
50688         * m4/quote.m4 (gl_QUOTE):
50689         * m4/quotearg.m4 (gl_QUOTEARG):
50690         * m4/readtokens.m4 (gl_READTOKENS):
50691         * m4/readutmp.m4 (gl_READUTMP):
50692         * m4/regex.m4 (gl_REGEX):
50693         * m4/safe-read.m4 (gl_SAFE_READ):
50694         * m4/safe-write.m4 (gl_SAFE_WRITE):
50695         * m4/same.m4 (gl_SAME):
50696         * m4/save-cwd.m4 (gl_SAVE_CWD):
50697         * m4/savedir.m4 (gl_SAVEDIR):
50698         * m4/settime.m4 (gl_SETTIME):
50699         * m4/sha1.m4 (gl_SHA1):
50700         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
50701         * m4/stat-macros.m4 (gl_STAT_MACROS):
50702         * m4/stat-time.m4 (gl_STAT_TIME):
50703         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
50704         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
50705         * m4/strdup.m4 (gl_FUNC_STRDUP):
50706         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
50707         * m4/strndup.m4 (gl_FUNC_STRNDUP):
50708         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
50709         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
50710         * m4/time_r.m4 (gl_TIME_R):
50711         * m4/timespec.m4 (gl_TIMESPEC):
50712         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
50713         * m4/unlinkdir.m4 (gl_UNLINKDIR):
50714         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
50715         * m4/userspec.m4 (gl_USERSPEC):
50716         * m4/utimecmp.m4 (gl_UTIMECMP):
50717         * m4/utimens.m4 (gl_UTIMENS):
50718         * m4/xalloc.m4 (gl_XALLOC):
50719         * m4/xgetcwd.m4 (gl_XGETCWD):
50720         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
50721         * m4/xreadlink.m4 (gl_XREADLINK):
50722         * m4/xstrtod.m4 (gl_XSTRTOD):
50723         * m4/yesno.m4 (gl_YESNO):
50724         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
50725         to get the necessary .h files and whatnot.
50726
50727 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
50728             Bruno Haible  <bruno@clisp.org>
50729
50730         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
50731         /bin/sh understanding of '!' conditional negation.
50732
50733 2006-08-21  Jim Meyering  <jim@meyering.net>
50734
50735         * modules/openat (Depends-on): Really alphabetize.
50736
50737         * modules/acl (Depends-on): Add error and quote.
50738
50739         * check-module (find_included_lib_files): Add at-func.c to the
50740         ok-to-include-more-than-once white list.
50741
50742         * modules/openat (Depends-on): Add lstat.  Alphabetize.
50743
50744 2006-08-21  Bruno Haible  <bruno@clisp.org>
50745
50746         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
50747         Emit a pkgdata_DATA variable only if some snippets add contents to it.
50748         Reported by Martin Lambers <marlam@marlam.de>.
50749
50750 2006-08-21  Bruno Haible  <bruno@clisp.org>
50751
50752         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
50753         specify an installation location, don't emit a noinst_LIBRARIES or
50754         noinst_LTLIBRARIES assignment.
50755
50756 2006-08-21  Bruno Haible  <bruno@clisp.org>
50757
50758         BeOS portability.
50759         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
50760         BeOS has mbrtowc() but no <wctype.h>.
50761
50762 2006-08-21  Bruno Haible  <bruno@clisp.org>
50763
50764         BeOS portability.
50765         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
50766         exist.
50767
50768 2006-08-21  Bruno Haible  <bruno@clisp.org>
50769
50770         BeOS portability.
50771         * lib/mbchar.h: Include <wctype.h> only if it exists.
50772
50773 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
50774
50775         Remove files that are no longer needed by their respective modules.
50776         * m4/obstack.m4: Remove.
50777         * m4/strerror_r.m4: Remove.
50778         * m4/uint32_t.m4: Remove.
50779         * m4/uintptr_t.m4: Remove.
50780         * m4/ullong_max.m4: Remove.
50781         * m4/xstrtoimax.m4: Remove.
50782         * m4/xstrtoumax.m4: Remove.
50783
50784         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
50785         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
50786         dependencies now capture this.
50787
50788         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
50789         Do not use AC_LIBSOURCES, since gnulib modules now do this.
50790         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
50791         * m4/human.m4 (gl_HUMAN): Likewise.
50792         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
50793         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
50794
50795         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
50796
50797         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
50798         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
50799         stdint.
50800         * m4/human.m4 (gl_HUMAN): Likewise.
50801         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
50802         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
50803         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
50804         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
50805         * m4/xstrtol (gl_XSTRTOL): Likewise.
50806
50807         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
50808         AC_TYPE_LONG_LONG_INT.
50809         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
50810         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
50811         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
50812         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
50813
50814         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
50815         on stdbool.
50816
50817         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
50818         (gl_PREREQ_XSTRTOUL): Remove.
50819
50820         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
50821
50822         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
50823         mode.
50824
50825 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
50826
50827         Add and change modules to make it easier for coreutils to use
50828         gnulib-tool.
50829         * modules/backupfile (Files): Remove m4/d-ino.m4.
50830         (Depends-on): Add d-ino.
50831         * modules/cycle-check (Depends-on): Add stdint.
50832         (lib_SOURCES): Add cycle-check.h.
50833         * modules/d-ino: New module.
50834         * modules/d-type: New module.
50835         * modules/error (Files): Remove m4/strerror_r.m4.
50836         * modules/filemode (Files): Add m4/st_dm_mode.m4.
50837         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
50838         m4/inttypes_h.m4, m4/uintmax_t.m4.
50839         (Depends-on): Add stdint.
50840         (lib_SOURCES): Add fsusage.h.
50841         * modules/getcwd (Files): Remove d-ino.m4.
50842         (Depends-on): Add d-ino.
50843         * modules/getndelim2 (Depends-on): Add stdint.
50844         * modules/glob (Files): Remove m4/d-type.m4.
50845         (Depends-on): Add d-type.
50846         * modules/host-os: New module.
50847         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
50848         m4/inttypes_h.m4, m4/uintmax_t.m4.
50849         * Depends-on: Add stdint.
50850         (lib_SOURCES): Add human.h.
50851         * modules/inttostr (Files): Remove m4/intmax_t.m4,
50852         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
50853         m4/uintmax_t.m4, m4/ulonglong.m4.
50854         (Depends-on): Add stdint.
50855         (EXTRA_DIST): Add inttostr.h.
50856         * modules/lchmod: New module.
50857         * modules/link-follow: New module.
50858         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
50859         (Depends-on): Add lchmod.
50860         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
50861         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
50862         (Depends-on): Add stdint.
50863         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
50864         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
50865         (Depends-on): Add stdint.
50866         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
50867         * modules/perl: New module.
50868         * modules/regex (Depends-on): Add stdint.
50869         * modules/rmdir-errno: New module.
50870         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
50871         m4/intmax_t.m4.
50872         (Depends-on): Add stdint.
50873         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
50874         m4/uintmax_t.m4.
50875         (Depends-on): Add stdint.
50876         * modules/unlink-busy: New module.
50877         * modules/utimecmp (Depends-on): Add stdint.
50878         * modules/uptime: New module.
50879         * modules/winsz-ioctl: New module.
50880         * modules/winsz-termios: New module.
50881         * modules/xnanosleep (Depends-on): Add nanosleep.
50882         * modules/ullong_max: Remove.
50883         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
50884         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
50885         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
50886         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
50887         (Depends-on): Add inttypes.
50888         (lib_SOURCES): Add xstrtol.h.
50889         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
50890         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
50891         * MODULES.html.sh: Move 'assert' into the assert section.
50892         Move 'dummy' into the linking section.
50893         Remove ullong_max.
50894         Add section for compatibility checks for POSIX:2001 functions,
50895         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
50896         winsz-ioctl, and winsz-termios into it.
50897         Add lchmod.
50898         Add top-level Misc section and put host-os, perl, and uptime
50899         into it.
50900
50901 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
50902
50903         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
50904         now assume the stdint module.  Do not include inttypes.h.
50905         * lib/fsusage.h: Likewise.
50906         * lib/getndelim2.c: Likewise.
50907         * lib/human.h: Likewise.
50908         * lib/inttostr.h: Likewise.
50909         * lib/obstack.c: Likewise.
50910         * lib/regex_internal.h: Likewise.
50911         * lib/tempname.c: Likewise.
50912         * lib/utimecmp.c: Likewise.
50913         * lib/xstrtol.h: Likewise.
50914
50915         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
50916
50917         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
50918         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
50919         * lib/xtime.h: Likewise.
50920
50921 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
50922
50923         * modules/openat (Files): Add lib/fchmodat.c.
50924         Fixes problem reported by Jay Youngman.
50925
50926 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
50927
50928         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
50929         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
50930
50931 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
50932             Bruno Haible  <bruno@clisp.org>
50933
50934         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
50935         and is a script that invokes bison. Tighten the code. Add comments.
50936
50937 2006-08-18  Jim Meyering  <jim@meyering.net>
50938
50939         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
50940         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
50941         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
50942         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
50943
50944 2006-08-18  Bruno Haible  <bruno@clisp.org>
50945
50946         * modules/bison-i18n: New file.
50947         * MODULES.html.sh (Internationalization functions): Add it.
50948
50949 2006-08-18  Bruno Haible  <bruno@clisp.org>
50950
50951         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
50952         sys/statvfs.h. When getmntinfo was found, check its declaration and
50953         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
50954
50955 2006-08-18  Bruno Haible  <bruno@clisp.org>
50956
50957         * m4/bison-i18n.m4: New file, from bison.
50958
50959 2006-08-18  Bruno Haible  <bruno@clisp.org>
50960
50961         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
50962         (ME_DUMMY): Treat "kernfs" as a dummy.
50963         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
50964
50965 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
50966
50967         Update from coreutils.
50968
50969         2006-08-15  Jim Meyering  <jim@meyering.net>
50970
50971         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
50972
50973         2006-01-17  Jim Meyering  <jim@meyering.net>
50974
50975         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
50976
50977         2006-01-11  Jim Meyering  <jim@meyering.net>
50978
50979         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
50980         Check for the lchmod function.
50981
50982 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
50983
50984         Update from coreutils.
50985
50986         * lib/__fpending.h: Add copyright notice.
50987         * lib/fprintftime.h: Likewise.
50988         * lib/savedir.c: Use (C) in copyright notice.
50989         * lib/savedir.h: Likewise.
50990
50991         2006-08-15  Jim Meyering  <jim@meyering.net>
50992
50993         * lib/at-func.c: New file, with the logic of all emulated at-functions.
50994         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
50995         in support of the EXPECTED_ERRNO macro.
50996         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
50997         definitions.  Instead, define the appropriate symbols and include
50998         "at-func.c".
50999         * lib/mkdirat.c (mkdirat): Likewise.
51000         * lib/fchmodat.c (fchmodat): Likewise.
51001         (ENOSYS): Remove definition.
51002         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
51003         it.  Don't include "unistd--.h" -- it wasn't ever used.
51004
51005         2006-01-17  Jim Meyering  <jim@meyering.net>
51006
51007         Rewrite fts.c not to change the current working directory,
51008         by using openat, fstatat, fdopendir, etc..
51009
51010         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
51011         (HAVE_OPENAT_SUPPORT): Define.
51012         [_LIBC] (fchdir): Don't undef or define; no longer used.
51013         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
51014         Now, this `function' always succeeds, and consumes its file descriptor
51015         parameter -- so callers must not close such FDs.  Update callers.
51016         (diropen_fd, opendirat, cwd_advance_fd): New functions.
51017         (diropen): Add parameter, SP.  Adjust all callers.
51018         Implement using diropen_fd, rather than open.
51019         (fts_open): Initialize new member, fts_cwd_fd.
51020         Remove fts_rft-setting code.
51021         (fts_close): Close fts_cwd_fd, if necessary.
51022         (__opendir2): Define in terms of opendir or opendirat,
51023         depending on whether the FST_NOCHDIR flag is set.
51024         (fts_build): Since fts_safe_changedir consumes its FD, and since
51025         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
51026         and close the dup'd file descriptor upon failure.
51027         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
51028         (fts_safe_changedir): Tweak semantics to reflect that this function
51029         now calls cwd_advance_fd and hence consumes its FD argument.
51030         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
51031         [struct FTS] (fts_rft): Remove now-unused member.
51032         [struct FTS] (fts_cycle.state): Improve comment.
51033
51034         * lib/openat.c (openat_needs_fchdir): New function.
51035         * lib/openat.h (openat_needs_fchdir): Declare it.
51036
51037 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
51038
51039         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
51040         Problem and fix reported by Pádraig Brady in
51041         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
51042
51043 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
51044
51045         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
51046
51047 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
51048
51049         * lib/memcoll.c (memcoll): Optimize for the common case where the
51050         arguments are bytewise equal.
51051
51052 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
51053
51054         * doc/regexprops-generic.texi: Add a copyright notice.
51055
51056 2006-08-15  Bruno Haible  <bruno@clisp.org>
51057
51058         * modules/tmpdir (License): Change to LGPL.
51059
51060 2006-08-15  Bruno Haible  <bruno@clisp.org>
51061
51062         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
51063         module.
51064
51065 2006-08-14  Simon Josefsson  <jas@extundo.com>
51066
51067         * config/srclist.txt: Add gnupload.
51068
51069 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
51070
51071         Change copyright notice from LGPL 2 to GPL 2, since that's the
51072         standard form used in the gnulib repository.
51073         * tests/test-lock.c: Likewise.
51074         * tests/test-stdint.c: Likewise.
51075         * tests/test-tls.c: Likewise.
51076
51077         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
51078         prelude-manager.  User shorter URLs for GNU projects, without '?'.
51079         Add copyright notice.
51080
51081         * check-module: Add copyright notice.  Output a copyright
51082         notice if "--version" is specified.
51083         * modules/COPYING: New file.
51084         * tests/test-getaddrinfo.c: Add copyright notice.
51085         * tests/test-verify.c: Likewise.
51086
51087 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
51088
51089         Change copyright notice from LGPL 2 to GPL 2, since that's the
51090         standard form used in the gnulib repository.
51091         * lib/lock.c: LGPL -> GPL.
51092         * lib/lock.h: Likewise.
51093         * lib/strnlen1.c: Likewise.
51094         * lib/strnlen1.h: Likewise.
51095         * lib/tls.c: Likewise.
51096         * lib/tls.h: Likewise.
51097         * lib/tmpdir.c: Likewise.
51098
51099         * lib/TODO: Remove; this belongs only in coreutils.
51100
51101 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
51102
51103         Add copyright notices to long-enough files that lack them, since
51104         otherwise the files aren't clearly free.  Use the same notice that
51105         getdate.texi already uses.
51106         * doc/alloca-opt.texi: Add copyright notice.
51107         * doc/alloca.texi: Likewise.
51108         * doc/ctime.texi: Likewise.
51109         * doc/functions.texi: Likewise.
51110         * doc/gcd.texi: Likewise.
51111         * doc/gnulib-tool.texi: Likewise.
51112         * doc/inet_ntoa.texi: Likewise.
51113         * doc/visibility.texi: Likewise.
51114
51115         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
51116         * doc/quote.texi: Add copyright notice.
51117
51118         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
51119         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
51120         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
51121         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
51122         is now obsolete, and give a pointer to the Sun list.
51123         Add copyright notice.
51124
51125 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
51126
51127         * config/srclistvars.sh: Add copyright notice.
51128
51129 2006-08-14  Eric Blake  <ebb9@byu.net>
51130
51131         Import the following change from libc:
51132
51133         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
51134
51135         Upstream bug 2997.
51136         * lib/misc/error.c: Add space between program name and message if file
51137         name is missing.
51138
51139 2006-08-12  Karl Berry  <karl@gnu.org>
51140
51141         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
51142         remove, these originate in gnulib now.
51143
51144 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51145
51146         * doc/Makefile (standards.info standards.html standards.dvi):
51147         Also depend on make-stds.texi.
51148
51149 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
51150
51151         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
51152         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
51153
51154         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
51155         in wchar_t.  Problem reported by Eric Blake.
51156
51157         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
51158         LEN is smaller than SIZE.  Suggested by Bruno Haible.
51159         Also, help the compiler to keep LEN in a register.
51160
51161 2006-08-11  Eric Blake  <ebb9@byu.net>
51162
51163         * users.txt: Sort.  Add tar.
51164
51165 2006-08-11  Bruno Haible  <bruno@clisp.org>
51166
51167         * users.txt: New file.
51168
51169 2006-08-11  Bruno Haible  <bruno@clisp.org>
51170
51171         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
51172         before <wchar.h>. Needed for OSF/1 and BSD/OS.
51173
51174 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
51175
51176         * modules/snprintf (Depends-on): Remove minmax.
51177         (Maintainer): Add self and Bruno.
51178
51179 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
51180
51181         * lib/.cppi-disable: Add snprintf.h, socket_.h.
51182         * lib/snprintf.c: Include <errno.h> and <limits.h>.
51183         (EOVERFLOW): Define if the system does not.
51184         Do not include "minmax.h"; it wasn't used.
51185         (snprintf): Don't assume size_t promotes to an unsigned type.
51186         Fix bug when generated string was too long for the buffer: the
51187         buffer's contents are supposed to be the initial prefix of the
51188         output.  Don't assume vasnprintf returns EOVERFLOW if the size
51189         exceeds INT_MAX; do the check ourselves.
51190
51191         Import the following changes from libc:
51192
51193         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
51194
51195         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
51196         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
51197         set wc to the byte which couldn't be converted.
51198         (re_string_reconstruct): Don't clear valid_raw_len before calling
51199         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
51200         tip_context using re_string_context_at.
51201
51202         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
51203
51204         * lib/posix/regex.h: g++ still cannot handled [restrict].
51205
51206         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
51207
51208         * lib/posix/regex.h: Remove special handling for VMS.
51209
51210 2006-08-10  Jim Meyering  <jim@meyering.net>
51211
51212         * modules/same-inode: New module.
51213         * modules/dev-ino: New module.
51214         * modules/cycle-check: Depend on these modules, rather than simply
51215         including their .h files.
51216         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
51217         required via m4/cycle-check.m4.
51218         * modules/same: Depend on new same-inode module, rather than
51219         including same-inode.h.
51220         * modules/chdir-safer: New file.
51221
51222         * modules/chown (Depends-on): Add stat-macros.
51223
51224 2006-08-10  Jim Meyering  <jim@meyering.net>
51225
51226         * m4/cycle-check.m4: New file.
51227         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
51228         * m4/dev-ino.m4, m4/same-inode.m4: New files.
51229
51230 2006-08-10  Eric Blake  <ebb9@byu.net>
51231
51232         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
51233         in from original proposal.
51234
51235 2006-08-10  Eric Blake  <ebb9@byu.net>
51236         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
51237
51238         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
51239         namespace.
51240
51241 2006-08-10  Bruno Haible  <bruno@clisp.org>
51242
51243         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
51244         as well.
51245
51246 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
51247
51248         Sync from coreutils.
51249
51250         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
51251
51252         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
51253         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
51254
51255 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
51256
51257         * modules/restrict: Remove; no longer needed now that we assume
51258         Autoconf 2.59 or later.
51259         * MODULES.html.sh: Remove 'restrict'.
51260         * modules/argp (Depends-on): Remove 'restrict'.
51261         * modules/base64 (Depends-on): Likewise.
51262         * modules/gc (Depends-on): Likewise.
51263         * modules/getaddrinfo (Depends-on): Likewise.
51264         * modules/glob (Depends-on): Likewise.
51265         * modules/inet_ntop (Depends-on): Likewise.
51266         * modules/inet_pton (Depends-on): Likewise.
51267         * modules/memxor (Depends-on): Likewise.
51268         * modules/regex (Depends-on): Likewise.
51269         * modules/strtok_r (Depends-on): Likewise.
51270         * modules/time_r (Depends-on): Likewise.
51271
51272 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
51273
51274         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
51275         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
51276         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
51277         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
51278         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
51279         * m4/memxor.m4 (gl_MEMXOR): Likewise.
51280         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
51281         gl_C_RESTRICT replaced by AC_C_RESTRICT.
51282
51283         Merge from coreutils.
51284         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
51285         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
51286         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
51287         * m4/time_r.m4 (gl_TIME_R): Likewise.
51288
51289 2006-08-09  Karl Berry  <karl@gnu.org>
51290
51291         * config/srclist.txt: no more gettext-tools, per Bruno.
51292
51293 2006-08-08  Eric Blake  <ebb9@byu.net>
51294
51295         * modules/verror: New module.
51296         * MODULES.html.sh: Document it.
51297
51298 2006-08-08  Eric Blake  <ebb9@byu.net>
51299
51300         * lib/verror.h, lib/verror.c: New files.
51301
51302 2006-08-08  Eric Blake  <ebb9@byu.net>
51303
51304         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
51305         verror_at_line output complies with GNU Coding Standards even when
51306         file is NULL.
51307
51308 2006-08-07  Bruno Haible  <bruno@clisp.org>
51309
51310         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
51311         versions of AIX.
51312         Reported by Ralf Wildenhues.
51313
51314 2006-08-07  Bruno Haible  <bruno@clisp.org>
51315
51316         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
51317         in an AC_DEFUN. Needed so that the autoconf snippets can use
51318         AC_REQUIRE.
51319
51320 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51321
51322         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
51323         Initialize pkgdata_DATA.
51324         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
51325         overriding it.
51326
51327 2006-08-06  Eric Blake  <ebb9@byu.net>
51328
51329         * lib/error.h: Fold in some upstream changes from glibc.
51330         * lib/error.c: Likewise.
51331
51332 2006-08-04  Bruno Haible  <bruno@clisp.org>
51333
51334         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
51335         Make the mostlyclean-local rule depend on mostlyclean-generic.
51336         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
51337
51338 2006-07-31  Bruno Haible  <bruno@clisp.org>
51339
51340         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
51341         <stdlib.h>, <string.h>.
51342
51343 2006-07-30  Bruno Haible  <bruno@clisp.org>
51344
51345         * modules/readlink (License): Change to LGPL.
51346
51347 2006-07-30  Bruno Haible  <bruno@clisp.org>
51348
51349         * modules/javaversion (Makefile.am): Distribute javaversion.java and
51350         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
51351         set PKGDATADIR to point to it.
51352
51353 2006-07-30  Bruno Haible  <bruno@clisp.org>
51354
51355         * modules/csharpexec (configure.ac): Comment out macro invocation.
51356         * modules/javaexec (configure.ac): Likewise.
51357         * modules/javacomp-script (configure.ac): Likewise.
51358
51359         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
51360
51361 2006-07-30  Bruno Haible  <bruno@clisp.org>
51362
51363         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
51364         linked-list.
51365
51366 2006-07-30  Bruno Haible  <bruno@clisp.org>
51367
51368         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
51369
51370 2006-07-30  Bruno Haible  <bruno@clisp.org>
51371
51372         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
51373         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
51374         get removed.
51375
51376 2006-07-29  Bruno Haible  <bruno@clisp.org>
51377
51378         Make it possible for gnulib-tool to work with locally modified or
51379         augmented gnulib repositories.
51380         * gnulib-tool (func_usage): Document --local-dir option.
51381         (local_gnulib_dir): New variable.
51382         Handle --local-dir option.
51383         (func_lookup_file): New function.
51384         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
51385         (func_get_description, func_get_filelist, func_get_description,
51386         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
51387         func_get_automake_snippet, func_get_include_directive,
51388         func_get_license, func_get_maintainer): Use func_lookup_file.
51389         (func_import, func_create_testdir): Use func_lookup_file.
51390
51391 2006-07-29  Bruno Haible  <bruno@clisp.org>
51392
51393         * modules/setenv (Depends-on): Add unistd.
51394
51395 2006-07-29  Bruno Haible  <bruno@clisp.org>
51396
51397         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
51398
51399 2006-07-29  Bruno Haible  <bruno@clisp.org>
51400
51401         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
51402
51403 2006-07-29  Bruno Haible  <bruno@clisp.org>
51404
51405         * gnulib-tool (import, update): If there is no Makefile.am, look at
51406         aclocal.m4, instead of bailing out.
51407
51408 2006-07-29  Bruno Haible  <bruno@clisp.org>
51409
51410         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
51411         Categorize the options by when they are useful.
51412
51413 2006-07-29  Bruno Haible  <bruno@clisp.org>
51414
51415         * gnulib-tool (func_usage): Document option --no-libtool.
51416         Handle option --no-libtool.
51417         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
51418         for changed semantics of $libtool variable.
51419         (func_import): Likewise. If libtool is not used, show this through
51420         an option --no-libtool.
51421         (func_create_testdir): Update.
51422
51423 2006-07-29  Bruno Haible  <bruno@clisp.org>
51424
51425         * gnulib-tool (func_import): Extend error message about missing
51426         --doc-base.
51427
51428 2006-07-29  Bruno Haible  <bruno@clisp.org>
51429
51430         * gnulib-tool (func_import): Don't create the $docbase directory if
51431         there is no file to store there.
51432
51433 2006-07-29  Bruno Haible  <bruno@clisp.org>
51434
51435         * gnulib-tool (autoconf_minversion): If a --dir option is given and
51436         relevant, look for configure.ac there, not in the current directory.
51437         Also use a simple search for AC_PREREQ, not "autoconf --trace".
51438
51439 2006-07-29  Bruno Haible  <bruno@clisp.org>
51440
51441         * gnulib-tool (SORT): New variable.
51442         (func_usage): Undocument --assume-autoconf option.
51443         Remove --assume-autoconf option handling.
51444         (autoconf_minversion): Determine from the contents of configure.ac.
51445         (func_import): Remove autoconf_minversion handling.
51446         Suggested by Eric Blake.
51447
51448 2006-07-29  Bruno Haible  <bruno@clisp.org>
51449
51450         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
51451
51452 2006-07-29  Bruno Haible  <bruno@clisp.org>
51453
51454         * config/srclist.txt (*setenv.[ch]): Remove rules.
51455
51456 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51457
51458         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
51459
51460 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51461
51462         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
51463         arpa/inet.h.
51464
51465 2006-07-28  Simon Josefsson  <jas@extundo.com>
51466
51467         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
51468         * modules/inet_pton (Depends-on): Likewise.
51469
51470 2006-07-28  Simon Josefsson  <jas@extundo.com>
51471
51472         * m4/netinet_in_h.m4: New file.
51473
51474 2006-07-28  Simon Josefsson  <jas@extundo.com>
51475
51476         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
51477         #include's.
51478
51479 2006-07-28  Simon Josefsson  <jas@extundo.com>
51480
51481         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
51482         #include's.
51483
51484 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
51485
51486         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
51487         setgid on directories only if they set these bits.
51488         * lib/modechange.h: Remove obsolete comment about masks.
51489
51490 2006-07-28  Eric Blake  <ebb9@byu.net>
51491
51492         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
51493         macro expansion.
51494
51495 2006-07-28  Bruno Haible  <bruno@clisp.org>
51496
51497         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
51498
51499 2006-07-28  Bruno Haible  <bruno@clisp.org>
51500
51501         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
51502
51503 2006-07-28  Bruno Haible  <bruno@clisp.org>
51504
51505         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
51506         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
51507         Define fallbacks.
51508         Avoids link error on FreeBSD 4.x.
51509         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
51510
51511         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
51512         encoding.
51513         * lib/mbswidth.c (iswcntrl): Likewise.
51514
51515 2006-07-27  Bruno Haible  <bruno@clisp.org>
51516
51517         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
51518         test.
51519
51520 2006-07-27  Bruno Haible  <bruno@clisp.org>
51521
51522         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
51523         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
51524         defined.
51525
51526 2006-07-26  Eric Blake  <ebb9@byu.net>
51527
51528         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
51529
51530 2006-07-26  Eric Blake  <ebb9@byu.net>
51531
51532         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
51533         like mingw that lack mkstemp.
51534         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
51535         avoid compilation warning on mingw.
51536
51537 2006-07-26  Bruno Haible  <bruno@clisp.org>
51538
51539         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
51540         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
51541         INT_FAST*_MIN, INTPTR_MIN.
51542
51543 2006-07-25  Bruno Haible  <bruno@clisp.org>
51544
51545         * modules/version-etc (Depends-on): Add stdarg.
51546
51547 2006-07-25  Bruno Haible  <bruno@clisp.org>
51548
51549         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
51550         complex commands.
51551
51552 2006-07-25  Bruno Haible  <bruno@clisp.org>
51553
51554         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
51555         defined in <stdarg.h> or config.h.
51556
51557 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
51558
51559         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
51560         (gl_STDIO_SAFER): Remove.
51561
51562 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
51563
51564         * MODULES.html.sh (File stream based Input/Output):
51565         Add fopen-safer, tmpfile-safer; remove stdio-safer.
51566         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
51567         * modules/fopen-safer, modules/tmpfile-safer: New files.
51568         * modules/stdio-safer: Remove.
51569
51570 2006-07-24  Bruno Haible  <bruno@clisp.org>
51571
51572         * modules/tmpdir: New file.
51573         * MODULES.html.sh (File system functions): Add it.
51574
51575 2006-07-24  Bruno Haible  <bruno@clisp.org>
51576
51577         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
51578         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
51579
51580 2006-07-24  Bruno Haible  <bruno@clisp.org>
51581
51582         * modules/clean-temp: New file.
51583
51584 2006-07-24  Bruno Haible  <bruno@clisp.org>
51585
51586         * m4/tmpdir.m4: New file, from GNU gettext.
51587
51588 2006-07-24  Bruno Haible  <bruno@clisp.org>
51589
51590         * lib/tmpdir.h: New file, from GNU gettext.
51591         * lib/tmpdir.c: New file, from GNU gettext.
51592
51593 2006-07-24  Bruno Haible  <bruno@clisp.org>
51594
51595         * lib/clean-temp.h: New file, from GNU gettext.
51596         * lib/clean-temp.c: New file, from GNU gettext.
51597
51598 2006-07-23  Eric Blake  <ebb9@byu.net>
51599
51600         * modules/stdio-safer (Files): Add tmpfile-safer.c.
51601         (Depends-on): Add binary-io.
51602
51603 2006-07-23  Eric Blake  <ebb9@byu.net>
51604
51605         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
51606
51607 2006-07-23  Eric Blake  <ebb9@byu.net>
51608
51609         * lib/tmpfile-safer.c: New file.
51610         * lib/stdio-safer.h (fopen_safer): Add prototype.
51611         * lib/stdio--.h (tmpfile): Make safer.
51612
51613 2006-07-23  Bruno Haible  <bruno@clisp.org>
51614
51615         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
51616         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
51617         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
51618         gl_linked_remove_at): Use it.
51619
51620 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51621         and Simon Josefsson <jas@extundo.com>
51622
51623         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
51624
51625         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
51626
51627 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
51628
51629         * modules/close-stream: New file.
51630         * modules/closeout (Description): Make it clear that it exits
51631         with a diagnostic on error.
51632         (Depends-on): Add close-stream.  Remove fpending, stdbool.
51633         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
51634
51635 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
51636
51637         * m4/close-stream.m4: New file.
51638
51639 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
51640
51641         * lib/close-stream.c, lib/close-stream.h: New files.
51642
51643 2006-07-22  Bruno Haible  <bruno@clisp.org>
51644
51645         Merge from GNU gettext 0.15.
51646
51647         2006-05-01  Bruno Haible  <bruno@clisp.org>
51648
51649                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
51650
51651         2006-07-22  Bruno Haible  <bruno@clisp.org>
51652
51653                 * modules/javaversion: New file.
51654                 * MODULES.html.sh (Java): Add javaversion.
51655
51656         2006-03-12  Bruno Haible  <bruno@clisp.org>
51657
51658                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
51659
51660         2005-12-04  Bruno Haible  <bruno@clisp.org>
51661
51662                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
51663                 (untested).
51664
51665         2006-06-21  Bruno Haible  <bruno@clisp.org>
51666
51667                 Avoid warnings from recent versions of mcs.
51668                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
51669                 -o, -L, -r any more. Use options documented since mcs-1.0
51670                 instead. Similarly for -g.
51671
51672         2005-12-04  Bruno Haible  <bruno@clisp.org>
51673
51674                 * build-aux/csharpcomp.sh.in: Suffix for resources is
51675                 .resources, not .resource.
51676
51677         2005-07-09  Bruno Haible  <bruno@clisp.org>
51678
51679                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
51680                 add a .dll suffix.
51681                 Reported by Mark Junker <mjscod@gmx.de>.
51682
51683         2006-07-22  Bruno Haible  <bruno@clisp.org>
51684
51685                 * modules/gettext: Upgrade to gettext-0.15.
51686                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
51687                 m4/visibility.m4.
51688                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
51689
51690 2006-07-22  Bruno Haible  <bruno@clisp.org>
51691
51692         Merge from GNU gettext 0.15.
51693
51694         2006-03-25  Bruno Haible  <bruno@clisp.org>
51695
51696                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
51697
51698         2006-07-21  Bruno Haible  <bruno@clisp.org>
51699
51700                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
51701                 "1.1".
51702
51703         2006-05-09  Bruno Haible  <bruno@clisp.org>
51704
51705                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
51706                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
51707                 for the conftestver execution.
51708
51709         2006-05-01  Bruno Haible  <bruno@clisp.org>
51710
51711                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
51712                 optional target-version argument. Verify that the compiler
51713                 groks source of the specified source-version, or add -source
51714                 option as necessary. Verify that the compiler produces
51715                 bytecode in the specified target-version, or add -target and
51716                 -source options as necessary. Make the result of the test
51717                 available as variable CONF_JAVAC. Also log error output in
51718                 config.log.
51719
51720         2006-03-11  Bruno Haible  <bruno@clisp.org>
51721
51722                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
51723
51724         2006-05-09  Bruno Haible  <bruno@clisp.org>
51725
51726                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
51727                 CLASSPATH_SEPARATOR to a semicolon.
51728
51729         2006-03-12  Bruno Haible  <bruno@clisp.org>
51730
51731                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
51732                 available as variable CONF_JAVA, for subsequent autoconf
51733                 tests. Also log error output in config.log.
51734
51735         2006-07-19  Bruno Haible  <bruno@clisp.org>
51736
51737                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
51738                 that getline works on glibc2 systems. Needed to avoid trouble
51739                 in relocatable.c.
51740                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
51741
51742         2005-12-04  Bruno Haible  <bruno@clisp.org>
51743
51744                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
51745                 launcher (untested).
51746
51747         2005-12-04  Bruno Haible  <bruno@clisp.org>
51748
51749                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
51750
51751         2006-07-22  Bruno Haible  <bruno@clisp.org>
51752
51753                 * gettext.m4: Update from GNU gettext-0.15.
51754                 * nls.m4: Likewise.
51755                 * po.m4: Likewise.
51756                 * inttypes-pri.m4: Likewise.
51757                 * inttypes-h.m4: Renamed from inttypes.m4.
51758                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
51759
51760 2006-07-22  Bruno Haible  <bruno@clisp.org>
51761
51762         Merge from GNU gettext 0.15.
51763
51764         2005-07-05  Bruno Haible  <bruno@clisp.org>
51765
51766                 * printf-args.c (printf_fetchargs): Work around broken
51767                 definition of wint_t on mingw.
51768
51769         2005-02-12  Bruno Haible  <bruno@clisp.org>
51770
51771                 * xallocsa.h: Add extern "C" for C++.
51772
51773         2006-05-17  Bruno Haible  <bruno@clisp.org>
51774
51775                 Cygwin portability.
51776                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
51777
51778         2006-04-30  Bruno Haible  <bruno@clisp.org>
51779
51780                 * progreloc.c: Include <mach-o/dyld.h> if available.
51781                 (find_executable): Use _NSGetExecutablePath when possible.
51782
51783         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
51784
51785                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
51786                 function.
51787
51788         2005-12-29  Bruno Haible  <bruno@clisp.org>
51789
51790                 * progreloc.c (set_program_name_and_installdir): Fix
51791                 compilation error.
51792
51793         2005-12-04  Bruno Haible  <bruno@clisp.org>
51794
51795                 Cygwin portability.
51796                 * progreloc.c: Include <windows.h> also on Cygwin.
51797                 (find_executable): Add support for Cygwin.
51798                 (set_program_name_and_installdir): Handle also platforms with
51799                 nonempty EXEEXT.
51800
51801         2006-07-11  Bruno Haible  <bruno@clisp.org>
51802
51803                 * javacomp.c: Fix a comment.
51804                 Reported by Jim Meyering.
51805
51806         2006-04-30  Bruno Haible  <bruno@clisp.org>
51807
51808                 * javacomp.h (compile_java_class): Add source_version,
51809                 target_version arguments.
51810                 * javacomp.c: Rewritten to choose only a compiler that
51811                 respects the specified source_version and target_version.
51812
51813         2006-06-27  Bruno Haible  <bruno@clisp.org>
51814
51815                 Assume correct S_ISDIR macro.
51816                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
51817
51818         2006-07-22  Bruno Haible  <bruno@clisp.org>
51819
51820                 * javaversion.h: New file, from GNU gettext.
51821                 * javaversion.c: New file, from GNU gettext.
51822                 * javaversion.java: New file, from GNU gettext.
51823                 * javaversion.class: New file, from GNU gettext.
51824
51825         2006-05-17  Bruno Haible  <bruno@clisp.org>
51826
51827                 Cygwin portability.
51828                 * javaexec.c (execute_java_class): Test for jview program
51829                 also on Cygwin.
51830
51831         2006-04-09  Bruno Haible  <bruno@clisp.org>
51832
51833                 * fatal-signal.c: Don't include string.h.
51834                 (at_fatal_signal): Use a copying loop instead of memcpy.
51835
51836         2005-12-04  Bruno Haible  <bruno@clisp.org>
51837
51838                 * csharpexec.c: Add support for 'clix' launcher (untested).
51839                 (execute_csharp_using_sscli): New function.
51840                 (execute_csharp_program): Call it.
51841
51842         2006-06-21  Bruno Haible  <bruno@clisp.org>
51843
51844                 Avoid warnings from recent versions of mcs.
51845                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
51846                 -o, -L, -r any more. Use options documented since mcs-1.0
51847                 instead. Similarly for -g.
51848
51849         2005-07-09  Bruno Haible  <bruno@clisp.org>
51850
51851                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
51852                 add a .dll suffix.
51853                 Reported by Mark Junker <mjscod@gmx.de>.
51854
51855         2006-06-17  Bruno Haible  <bruno@clisp.org>
51856
51857                 * config.charset: Update for NetBSD 3.0.
51858
51859         2006-05-17  Bruno Haible  <bruno@clisp.org>
51860
51861                 Cygwin portability.
51862                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
51863
51864         2006-05-16  Bruno Haible  <bruno@clisp.org>
51865
51866                 * localcharset.c [CYGWIN]: Include <windows.h>.
51867                 (get_charset_aliases): For Cygwin, return the same CPxxx
51868                 aliases list as under WIN32.
51869                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
51870                 the environment variables. Fall back to GetACP().
51871
51872         2006-04-05  Bruno Haible  <bruno@clisp.org>
51873
51874                 * config.charset: Update Juan Manuel Guerrero's address.
51875
51876         2005-02-12  Bruno Haible  <bruno@clisp.org>
51877
51878                 * allocsa.h: Add extern "C" for C++.
51879
51880         2005-02-10  Bruno Haible  <bruno@clisp.org>
51881
51882                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
51883                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
51884
51885         2006-07-22  Bruno Haible  <bruno@clisp.org>
51886
51887                 * gettext.h: Update to GNU gettext-0.15.
51888
51889 2006-07-22  Bruno Haible  <bruno@clisp.org>
51890
51891         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
51892         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
51893         lib-prefix.m4, longdouble.m4, ssize_t.m4.
51894
51895 2006-07-21  Eric Blake  <ebb9@byu.net>
51896
51897         * modules/stdlib-safer: New file.
51898         * MODULES.html.sh (File stream based Input/Output): Add
51899         stdlib-safer.
51900
51901 2006-07-21  Eric Blake  <ebb9@byu.net>
51902
51903         * lib/stdlib-safer.h: New file from coreutils, required by
51904         stdlib--.h.
51905
51906 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
51907
51908         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
51909
51910 2006-07-20  Bruno Haible  <bruno@clisp.org>
51911
51912         * gnulib-tool: Recognize new option --assume-autoconf.
51913         (autoconf_minversion): New variable.
51914         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
51915
51916 2006-07-20  Bruno Haible  <bruno@clisp.org>
51917
51918         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
51919
51920 2006-07-19  Derek R. Price  <derek@ximbiot.com>
51921
51922         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
51923         Reindent and repaginate.
51924
51925 2006-07-19  Derek Price  <derek@ximbiot.com>
51926
51927         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
51928         Correct grammar.
51929
51930 2006-07-17  Bruno Haible  <bruno@clisp.org>
51931
51932         * modules/list: New file.
51933         * modules/array-list: New file.
51934         * modules/carray-list, modules/carray-list-tests: New files.
51935         * modules/linked-list, modules/linked-list-tests: New files.
51936         * modules/avltree-list, modules/avltree-list-tests: New files.
51937         * modules/rbtree-list, modules/rbtree-list-tests: New files.
51938         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
51939         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
51940         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
51941         * modules/oset: New file.
51942         * modules/array-oset: New file.
51943         * modules/avltree-oset, modules/avltree-oset-tests: New files.
51944         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
51945         * tests/test-carray_list.c: New file.
51946         * tests/test-linked_list.c: New file.
51947         * tests/test-avltree_list.c: New file.
51948         * tests/test-rbtree_list.c: New file.
51949         * tests/test-linkedhash_list.c: New file.
51950         * tests/test-avltreehash_list.c: New file.
51951         * tests/test-rbtreehash_list.c: New file.
51952         * tests/test-avltree_oset.c: New file.
51953         * tests/test-rbtree_oset.c: New file.
51954         * MODULES.html.sh (Container data structures): New section.
51955
51956 2006-07-17  Bruno Haible  <bruno@clisp.org>
51957
51958         * m4/gl_list.m4: New file.
51959
51960 2006-07-17  Bruno Haible  <bruno@clisp.org>
51961
51962         * lib/gl_list.h: New file.
51963         * lib/gl_list.c: New file.
51964         * lib/gl_array_list.h: New file.
51965         * lib/gl_array_list.c: New file.
51966         * lib/gl_carray_list.h: New file.
51967         * lib/gl_carray_list.c: New file.
51968         * lib/gl_linked_list.h: New file.
51969         * lib/gl_linked_list.c: New file.
51970         * lib/gl_anylinked_list1.h: New file.
51971         * lib/gl_anylinked_list2.h: New file.
51972         * lib/gl_avltree_list.h: New file.
51973         * lib/gl_avltree_list.c: New file.
51974         * lib/gl_anyavltree_list1.h: New file.
51975         * lib/gl_anyavltree_list2.h: New file.
51976         * lib/gl_rbtree_list.h: New file.
51977         * lib/gl_rbtree_list.c: New file.
51978         * lib/gl_anyrbtree_list1.h: New file.
51979         * lib/gl_anyrbtree_list2.h: New file.
51980         * lib/gl_anytree_list1.h: New file.
51981         * lib/gl_anytree_list2.h: New file.
51982         * lib/gl_linkedhash_list.h: New file.
51983         * lib/gl_linkedhash_list.c: New file.
51984         * lib/gl_anyhash_list1.h: New file.
51985         * lib/gl_anyhash_list2.h: New file.
51986         * lib/gl_avltreehash_list.h: New file.
51987         * lib/gl_avltreehash_list.c: New file.
51988         * lib/gl_rbtreehash_list.h: New file.
51989         * lib/gl_rbtreehash_list.c: New file.
51990         * lib/gl_anytreehash_list1.h: New file.
51991         * lib/gl_anytreehash_list2.h: New file.
51992
51993         * lib/gl_oset.h: New file.
51994         * lib/gl_oset.c: New file.
51995         * lib/gl_array_oset.h: New file.
51996         * lib/gl_array_oset.c: New file.
51997         * lib/gl_avltree_oset.h: New file.
51998         * lib/gl_avltree_oset.c: New file.
51999         * lib/gl_rbtree_oset.h: New file.
52000         * lib/gl_rbtree_oset.c: New file.
52001         * lib/gl_anytree_oset.h: New file.
52002
52003 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
52004
52005         * m4/mkancesdirs.m4: New file.
52006         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
52007         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
52008         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
52009         it.
52010
52011 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
52012
52013         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
52014         * lib/mkancesdirs.h: New files.
52015         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
52016         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
52017         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
52018         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
52019         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
52020         callers changed.  Revamp internals significantly, by not
52021         attempting to create directories that are temporarily more
52022         permissive than the final results.  Do not attempt to use
52023         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
52024         This removes some race conditions, fixes some bugs, and simplifies
52025         things.  Use new dirchownmod function to do owner and mode changes.
52026         * lib/mkdir-p.h: Likewise.
52027         * lib/modechange.c (octal_to_mode): New function.
52028         (struct mode_change): New member mentioned.
52029         (make_node_op_equals): New arg mentioned.  All callers changed.
52030         (mode_compile): Keep track of which mode bits the user has explicitly
52031         mentioned.
52032         (mode_adjust): New arg DIR, so that we implement the X op correctly.
52033         New arg PMODE_BITS, to keep track of which mode bits the user
52034         mentioned; it treats S_ISUID and S_ISGID speciall.
52035         All callers changed.
52036         * lib/modechange.h: Likewise.
52037
52038 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
52039
52040         * MODULES.html.sh: Add mkancestors.
52041         * modules/mkancesdirs: New module.
52042         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
52043         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
52044         The chdir-safer and afs files are now orphans; I'll remove them
52045         unless someone speaks up.
52046         Add lib/dirchownmod.c, lib/dirchownmod.h.
52047         (Depends-on): Remove alloca, chown, save-cwd, dirname.
52048         Add lchown, mkancesdirs.
52049         (Maintainer): Add self.
52050
52051 2006-07-15  Karl Berry  <karl@gnu.org>
52052
52053         * gnulib-tool: help message wording/arrangement.
52054
52055 2006-07-14  Simon Josefsson  <jas@extundo.com>
52056
52057         * doc/gnulib.texi (Libtool and Windows): New section.
52058
52059 2006-07-12  Simon Josefsson  <jas@extundo.com>
52060
52061         * modules/gendocs (License): Fix license, approved by Karl.
52062
52063 2006-07-12  Eric Blake  <ebb9@byu.net>
52064
52065         * MODULES.html.sh: Add gendocs.
52066
52067 2006-07-11  Eric Blake  <ebb9@byu.net>
52068
52069         * modules/fdl: New module, to install doc/fdl.texi.
52070         * MODULES.html.sh: Add new section for documentation modules.
52071         * gnulib-tool: Avoid space-tab.
52072         (--doc-base): New option, to manage files from doc.
52073
52074 2006-07-11  Eric Blake  <ebb9@byu.net>
52075
52076         * m4/absolute-header.m4: Fix comments to match recent change.
52077
52078 2006-07-11  Eric Blake  <ebb9@byu.net>
52079
52080         * gnulib-tool: List --doc-base before --tests-base.
52081
52082 2006-07-11  Derek R. Price  <derek@ximbiot.com>
52083
52084         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
52085
52086 2006-07-11  Bruno Haible  <bruno@clisp.org>
52087
52088         * README: Mention where to put documentation.
52089
52090 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52091
52092         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
52093
52094 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
52095
52096         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
52097         to stdint.m4.
52098
52099 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
52100
52101         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
52102         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
52103         "no/such/file/stdint.h" when there is no such file, so that
52104         the resulting C code can be parsed by dodgy compilers.
52105         Problems reported by Bob Proulx.
52106
52107 2006-07-10  Derek R. Price  <derek@ximbiot.com>
52108
52109         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
52110         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
52111         macros into the GNU _D_EXACT_NAMLEN.
52112         * lib/savedir.c:  Likewise.
52113         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
52114
52115 2006-07-10  Derek R. Price  <derek@ximbiot.com>
52116         and Paul Eggert  <eggert@cs.ucla.edu>
52117
52118         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
52119         * m4/savedir.m4:
52120         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
52121         macros into the GNU _D_EXACT_NAMLEN.
52122
52123 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
52124
52125         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
52126         around the absolute name, to work around a problem with the HP-UX
52127         11.23 native C compiler, reported by Bob Proulx.
52128
52129 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
52130
52131         * doc/maintain.texi, make-stds.texi: Sync from
52132         <http://savannah.gnu.org/projects/gnustandards>.
52133
52134 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
52135
52136         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
52137
52138 2006-07-09  Jim Meyering  <jim@meyering.net>
52139
52140         * m4/glob.m4: Remove a doubled word in a comment.
52141
52142 2006-07-09  Jim Meyering  <jim@meyering.net>
52143
52144         * lib/argp-pv.c: Remove a doubled word in a comment.
52145         * lib/check-version.c (check_version): Likewise.
52146         * lib/javacomp.c (compile_java_class): Likewise.
52147
52148 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
52149
52150         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
52151         for the benefit of people using Autoconf 2.60.  If you want to
52152         support older Autoconf versions you can copy m4/onceonly_2_57.m4
52153         (or m4/onceonly.m4, if pre-2.57) manually.
52154
52155 2006-07-08  Jim Meyering  <jim@meyering.net>
52156
52157         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
52158         comment.
52159         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
52160         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
52161         comment.
52162
52163 2006-07-08  Jim Meyering  <jim@meyering.net>
52164
52165         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
52166
52167 2006-07-07  Simon Josefsson  <jas@extundo.com>
52168
52169         * tests/test-crc.c: Change expected crc value, the test vector
52170         were probably computed using the old broken crc.c?
52171
52172 2006-07-06  Simon Josefsson  <jas@extundo.com>
52173
52174         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
52175         now the canonical place for the M4 file).
52176
52177         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
52178         from the sys_socket dependency now.
52179
52180         * modules/inet_pton (Files): Ditto.
52181
52182         * modules/inet_ntop (Files): Ditto.
52183
52184 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
52185
52186         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
52187         not gl_PREREQ_GETUSERSHELL.
52188
52189 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52190
52191         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
52192         with only one argument, for Autoconf 2.60.
52193         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
52194         expand to nothing, so add a shell command to avoid syntax error.
52195         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
52196
52197 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52198
52199         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
52200
52201 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
52202
52203         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
52204         no longer needed.  Check for isblank decl.
52205         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
52206         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
52207         of existence.
52208
52209 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
52210
52211         * lib/getloadavg.c: Use __VMS, not VMS.
52212         * lib/getopt.c: Likewise.
52213         * lib/getpagesize.h: Likewise.
52214         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
52215         and probably does not work.
52216
52217 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
52218
52219         * lib/.cppi-disable: Add wcwidth.
52220         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
52221         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
52222         (ISGRAPH): Remove.  All uses changed to isgraph.
52223         (FOLD) [!defined _LIBC]: Remove special case.
52224         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
52225         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
52226         HAVE_ISBLANK.
52227         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
52228         case.
52229
52230 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
52231
52232         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
52233         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
52234         brackets.  Other minor changes to suppress some compiler
52235         warnings.
52236
52237 2006-07-06  Derek R. Price  <derek@ximbiot.com>
52238         and Paul Eggert  <eggert@cs.ucla.edu>
52239
52240         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
52241         of invoking obsolescent AC_HEADER_DIRENT macro.
52242         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
52243         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
52244         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
52245         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
52246         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
52247         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
52248         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
52249         * m4/readdir.m4: Remove; no longer needed.
52250
52251 2006-07-06  Derek R. Price  <derek@ximbiot.com>
52252         and Paul Eggert  <eggert@cs.ucla.edu>
52253
52254         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
52255         Don't worry about this obsolete case any more.
52256         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
52257         directories.
52258         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
52259         worry about this obsolete case any more.
52260         * lib/fts.c: Likewise.
52261         * lib/getcwd.c: Likewise.
52262         * lib/glob.h: Likewise.
52263         * lib/savedir.c: Likewise.
52264
52265 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
52266
52267         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
52268         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
52269         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
52270         needed.
52271         All uses removed.
52272         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
52273         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
52274         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
52275         needed.
52276         * m4/getdate.m4 (gl_GETDATE): Likewise.
52277         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
52278         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
52279         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
52280         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
52281         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
52282         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
52283         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
52284         needed.
52285
52286 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
52287
52288         * lib/memcasecmp.c: Include <limits.h>.
52289         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
52290         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
52291         Don't assume isdigit succeeds only on '0' through '9'.
52292
52293 2006-07-05  Eric Blake  <ebb9@byu.net>
52294
52295         * modules/getaddrinfo (Depends-on): Add snprintf.
52296
52297 2006-07-05  Eric Blake  <ebb9@byu.net>
52298
52299         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
52300         to avoid 'header present but could not be compiled' on cygwin.
52301
52302 2006-07-05  Eric Blake  <ebb9@byu.net>
52303
52304         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
52305         missing from netdb.h.
52306         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
52307
52308 2006-07-05  Derek R. Price  <derek@ximbiot.com>
52309
52310         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
52311         no longer needed.
52312         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
52313         * m4/getdate.m4 (gl_GETDATE): Likewise.
52314         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
52315         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
52316         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
52317         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
52318         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
52319
52320 2006-07-05  Derek R. Price  <derek@ximbiot.com>
52321
52322         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
52323         All uses of is_space replaced by isspace.
52324         * lib/exit.h: Don't talk about STDC_HEADERS.
52325         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
52326         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
52327         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
52328         replaced by isprint etc.
52329         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
52330         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
52331         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
52332         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
52333         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
52334         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
52335
52336 2006-07-05  Bruno Haible  <bruno@clisp.org>
52337
52338         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
52339         the function exists, before testing against AIX.
52340         Reported by Martin Lambers <marlam@marlam.de>.
52341
52342 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
52343
52344         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
52345         From Mark D. Baushke.
52346
52347 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
52348
52349         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
52350         to the absolute name, not just one, to bypass Sun C 5.8's
52351         "warning: #include of /usr/include/... may be non-portable".
52352
52353 2006-07-04  Eric Blake  <ebb9@byu.net>
52354
52355         * modules/dirname-tests: New test module.
52356         * tests/test-dirname.c: New file, replacing dirname.c
52357         TEST_DIRNAME section that was recently deleted.
52358
52359 2006-07-04  Bruno Haible  <bruno@clisp.org>
52360
52361         Assume ANSI C header files and <ctype.h> functions.
52362         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
52363         (mbsnwidth): Use isprint, iscntrl instead.
52364
52365 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
52366
52367         Merge from coreutils.
52368         * MODULES.html.sh: Add xstrtold.
52369         * modules/xstrtold: New file.
52370         * modules/cycle-check (Files): Add lib/same-inode.h.
52371         * modules/dirname (Files): Add m4/double-slash-root.m4.
52372         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
52373         * modules/mkdir-p (Files): Add lib/same-inode.h.
52374         * modules/same (Files): Add lib/same-inode.h.
52375
52376 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
52377
52378         * m4/absolute-header.m4: Renamed from full-header-path.m4.
52379         This is to keep the terminology clean; POSIX talks about
52380         "absolute pathnames", not "full pathnames", but the GNU
52381         Coding Standards say to use "path" for something else;
52382         so use "absolute" to keep both sides happy.
52383         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
52384         Set gl_absolute_header, not gl_full_header_path.
52385         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
52386         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
52387         All uses changed.
52388
52389         Merge from coreutils.
52390
52391         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
52392
52393         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
52394         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
52395         want to require the building of c-strtod.o.
52396         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
52397         needs -lm directly.
52398         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
52399
52400         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
52401
52402         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
52403         --as-needed option if available.  Problem reported by Albert Chin in
52404         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
52405         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
52406         cc merely issues a bunch of annoying warnings for --as-needed
52407         (this problem was reported by Bob Proulx).  Also, try linking with
52408         -lm to detect a bug in binutils 2.16 (this problem was reported
52409         by Ralf Wildenhues).
52410
52411         2006-06-18  Jim Meyering  <jim@meyering.net>
52412
52413         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
52414         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
52415         macro.
52416         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
52417         also check for glibc-2.4's abort-inducing bug.
52418
52419         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
52420         Low-probability clean-up should be to use rmdir to get rid of
52421         the just-created directory, not unlink.
52422
52423         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
52424         configure fail, and request a bug report to inform us about it.
52425         Add a comment that, barring reports to the contrary, in 2007 we'll
52426         assume ftruncate is universally available.
52427
52428         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
52429
52430         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
52431
52432         2006-03-12  Jim Meyering  <jim@meyering.net>
52433
52434         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
52435         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
52436         * m4/same.m4 (gl_SAME): Likewise.
52437         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
52438
52439         2006-03-11  Eric Blake  <ebb9@byu.net>
52440
52441         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
52442         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
52443         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
52444         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
52445
52446 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
52447
52448         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
52449         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
52450         reported by Mark D. Baushke, one in
52451         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
52452
52453         Merge from coreutils.
52454
52455         * lib/.cppi-disable: Add stdint_.h.
52456         * lib/.cvsignore: Add stdint.h.
52457
52458         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
52459
52460         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
52461         both double and long double versions.
52462         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
52463         * lib/xstrtold.c: New file.
52464         * lib/xstrtod.h (xstrtold): New decl.
52465
52466         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
52467
52468         * lib/filemode.c (setst): Remove.
52469         (strmode): Rewrite to avoid setst.  This makes the code shorter,
52470         (arguably) clearer, and the generated code is a bit smaller on my
52471         Debian GNU/Linux stable x86 host.
52472
52473         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
52474
52475         * lib/filemode.c: Include "filemode.h" first, to test the interface.
52476         Assume that filemode.h includes sys/types.h and sys/stat.h.
52477         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
52478         (ftypelet): Reorder to put common cases first, for efficiency.
52479         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
52480         to do 'M'.
52481         (strmode): Renamed from mode_string, and now stores 12 bytes instead
52482         of 10, for compatibility with FreeBSD.  All callers changed.
52483         (filemodestring): Now stores 12 bytes instead of 10, and sets file
52484         types that can't be deduced solely from st_mode.  First arg is now a
52485         const pointer.
52486         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
52487         (strmode): Renamed from mode_string.
52488         (filemodestring): New decl.
52489         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
52490         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
52491         needed.
52492         (S_ISPORT, S_ISWHT): New macros, if not already defined.
52493
52494         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
52495
52496         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
52497         fsusage.h now does that.  Include fsusage.h first, to test interface.
52498         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
52499         at most one method (the old code could have generated decls that
52500         didn't conform to C89, not that this was ever exercised).
52501         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
52502
52503         2006-03-19  Jim Meyering  <jim@meyering.net>
52504
52505         Work even in a chroot where d_ino values for entries in "/"
52506         don't match the stat.st_ino values for the same names.
52507         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
52508         number, iterate through all entries again, using lstat instead.
52509         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
52510         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
52511
52512         * lib/getcwd.c (__getcwd): Clarify a comment.
52513         Use memcpy in place of a call to strcpy.
52514
52515         2006-03-12  Jim Meyering  <jim@meyering.net>
52516
52517         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
52518         matches that of the current directory (which we're about to chdir ".."
52519         out of), then save the dev-ino of the parent, instead.
52520
52521         * lib/same-inode.h (SAME_INODE): New file/macro.
52522         * lib/chdir-safer.c (SAME_INODE): Remove definition.
52523         Include "same-inode.h", instead.
52524         * lib/same.c: Likewise.
52525         * lib/cycle-check.h: Include "same-inode.h".
52526         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
52527         * lib/cycle-check.c (SAME_INODE): Remove definition.
52528         * lib/root-dev-ino.h: Include "same-inode.h".
52529
52530         2006-03-11  Eric Blake  <ebb9@byu.net>
52531
52532         * lib/same.c (same_name): s/base_name/last_component/
52533         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
52534         * lib/filenamecat.c (file_name_concat): Likewise.
52535
52536         2006-03-11  Eric Blake  <ebb9@byu.net>,
52537                     Paul Eggert  <eggert@cs.ucla.edu>
52538
52539         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
52540         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
52541         drive prefix.
52542         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
52543         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
52544         (last_component): New method.
52545         * lib/dirname.c (dir_len): Determine when drive letters need a
52546         subsequent slash.  Preserve // when it is special.
52547         (dir_name): Don't append dot when drive letter is absolute.
52548         [TEST_DIRNAME]: Move into a full-blown gnulib test.
52549         * lib/basename.c (base_name): New semantics - malloc the result.
52550         Preserve // when it is special.  Preserve relative files that look
52551         like drive letters.
52552         (base_len): Preserve // when it is special.
52553         (last_component): New method, similar to old base_name semantics.
52554         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
52555         base_name.  Strip redundant slashes from ///.
52556
52557 2006-07-03  Jim Meyering  <jim@meyering.net>
52558
52559         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
52560         macro is used before the first cycle_check call.
52561
52562 2006-07-03  Eric Blake  <ebb9@byu.net>
52563
52564         * modules/dirname (Depends-on): Add xstrndup.
52565
52566 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
52567
52568         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
52569         test cases, so that config.log is a bit easier to follow.
52570
52571 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
52572
52573         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
52574         both are 64 bits, since this seems to be the tradition, and this
52575         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
52576         we ever run into a host that prefers long long to long in this
52577         case, we'll need another configure-time test.  Problem reported by
52578         Jim Meyering.
52579
52580 2006-07-02  Eric Blake  <ebb9@byu.net>
52581
52582         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
52583
52584 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
52585
52586         * modules/inttypes (Depends-on): No longer depends on stdint.
52587         * modules/stdint (Description): Say more about assumptions.
52588         Say that the fast types might differ.  Say macros are used.
52589         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
52590         (Makefile.am): Revise list of substituted symbols to match
52591         new stdint.m4.
52592         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
52593         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
52594         * tests/test-stdint.c (verify_same_types)
52595         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
52596         the code conforms to C99/C89.
52597         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
52598         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
52599
52600 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
52601
52602         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
52603         but fix a bug, by requiring at least 64 bits.
52604         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
52605         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
52606         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
52607         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
52608
52609         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
52610         changes.  Make 2.59 a prerequisite.  Check and substitute for
52611         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
52612         inttypes.h.  Do not use special include files; just use the
52613         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
52614         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
52615         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
52616         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
52617         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
52618         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
52619         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
52620         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
52621         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
52622         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
52623         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
52624         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
52625         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
52626         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
52627         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
52628         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
52629         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
52630         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
52631         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
52632         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
52633         WINT_MAX.  Check for C99 conformance more strictly, by detecting
52634         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
52635         not check for things that C99 does not require, e.g., int8_t.  If
52636         a test isn't needed unless <stdint.h> isn't working, and is
52637         unlikely to be needed for any other reason, then don't do it
52638         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
52639         size_t, since we assume C89 freestanding at least.  Do not check
52640         for sig_atomic_t, wchar_t, or wint_t, since the code now does
52641         the right thing even if the types are not defined.  Instead use:
52642         (gl_STDINT_TYPE_PROPERTIES): New macro.
52643         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
52644         testing whether <sys/types.h> clashes, as Autoconf does this for
52645         us now.  All uses removed.
52646         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
52647         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
52648         (gl_CHECK_TYPE_SAME):
52649         Remove; no longer needed.
52650         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
52651         exists, since we'll return 0 anyway in that case.
52652         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
52653
52654 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
52655
52656         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
52657         possible collision with system files.
52658         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
52659         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
52660         WCHAR_MIN and WCHAR_MAX in this case.
52661         (<stddef.h>): Do not include; no longer needed.
52662         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
52663         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
52664         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
52665         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
52666         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
52667         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
52668         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
52669         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
52670         !defined(__c99))]: Include in this case too, since it's harmless
52671         now.
52672         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
52673         dangerous to do so.
52674         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
52675         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
52676         (_STDINT_MIN, _STDINT_MAX): New macros.
52677         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
52678         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
52679         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
52680         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
52681         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
52682         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
52683         macros, not typedefs; this simplifies things quite a bit.
52684         Use long int for all types narrower than int64_t.
52685         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
52686         Define in terms of long long int or int64_t or long int,
52687         not int64_t or int32_t.  This saves some compile-time testing.
52688         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
52689         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
52690         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
52691         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
52692         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
52693         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
52694         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
52695         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
52696         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
52697         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
52698         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
52699         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
52700         undef any previous version and define our own version, for
52701         simplicity and consistency with the new macros for types.
52702         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
52703         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
52704         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
52705         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
52706         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
52707         @WINT_T_SUFFIX@ to keep things simple here.
52708         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
52709         Simplify by assuming typical 8/16/32/64 host, since we're
52710         already doing that elsewhere anyway.
52711         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
52712         and assume long long int is 64 bits if available.  This
52713         speeds up 'configure'.
52714
52715 2006-07-01  Eric Blake  <ebb9@byu.net>
52716
52717         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
52718         Reported by Andreas Buening.
52719
52720 2006-07-01  Eric Blake  <ebb9@byu.net>
52721
52722         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
52723
52724 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
52725
52726         * lib/getaddrinfo.c: fixed typo
52727
52728 2006-06-29  Jim Meyering  <jim@meyering.net>
52729
52730         * modules/strftime (Maintainer): Add my name, since with the
52731         FPRINTFTIME changes strftime.c has forked from glibc.
52732
52733 2006-06-29  Eric Blake  <ebb9@byu.net>
52734
52735         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
52736
52737 2006-06-29  Eric Blake  <ebb9@byu.net>
52738
52739         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
52740
52741 2006-06-29  Eric Blake  <ebb9@byu.net>
52742
52743         * lib/stat_.h: New file.
52744
52745 2006-06-29  Eric Blake  <ebb9@byu.net>
52746
52747         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
52748         unused static function.
52749
52750 2006-06-29  Eric Blake  <ebb9@byu.net>
52751
52752         * doc/functions.texi (Function Portability): Document missing lstat
52753         on mingw.
52754
52755 2006-06-29  Eric Blake  <ebb9@byu.net>
52756
52757         * MODULES.html.sh: Add sys_stat.
52758         * modules/sys_stat: New module.
52759         * modules/mkstemp (Depends-on): Add sys_stat.
52760
52761 2006-06-29  Derek R. Price  <derek@ximbiot.com>
52762
52763         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
52764
52765 2006-06-29  Derek R. Price  <derek@ximbiot.com>
52766
52767         * m4/c-bs-a.m4: Removed.
52768
52769 2006-06-29  Derek R. Price  <derek@ximbiot.com>
52770
52771         * lib/strftime.c: Assume strftime() exists.
52772
52773 2006-06-29  Derek Price  <derek@ximbiot.com>
52774
52775         * modules/c-bs-a: Removed - \a is C89.
52776         * MODULES.html.sh: Remove c-bs-a.
52777
52778 2006-06-29  Bruno Haible  <bruno@clisp.org>
52779
52780         * modules/wcwidth (License): Change to LGPL.
52781
52782 2006-06-28  Simon Josefsson  <jas@extundo.com>
52783
52784         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
52785         on _WIN32.
52786
52787         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
52788         getnameinfo.
52789
52790 2006-06-28  Simon Josefsson  <jas@extundo.com>
52791
52792         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
52793
52794 2006-06-28  Simon Josefsson  <jas@extundo.com>
52795
52796         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
52797         functions there.  It will succeed on Windows XP, but on Windows
52798         2000 and (presumably) earlier, it will fail, and use the internal
52799         re-implementation.
52800         (use_win32_p): New function.
52801         (getaddrinfo): Use strtoul on servname, to support numeric ports.
52802         Support AI_NUMERICSERV to disable getservbyname.
52803         (getnameinfo): New function, only supports
52804         NI_NUMERICHOST|NI_NUMERICSERV for now.
52805
52806         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
52807         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
52808         getnameinfo.
52809
52810 2006-06-28  Eric Blake  <ebb9@byu.net>
52811
52812         * modules/wcwidth: New file.
52813         * modules/mbchar (Depends-on): Add wcwidth.
52814         * modules/mbswidth (Depends-on): Add wcwidth.
52815         * MODULES.html.sh: Add wcwidth.
52816
52817 2006-06-28  Eric Blake  <ebb9@byu.net>
52818
52819         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
52820         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
52821
52822 2006-06-28  Eric Blake  <ebb9@byu.net>
52823
52824         * lib/xvasprintf.h: Fix comments.
52825
52826 2006-06-28  Eric Blake  <ebb9@byu.net>
52827
52828         * lib/mbchar.h (wcwidth): Include wcwidth.h.
52829         * lib/mbswidth.c (wcwidth): Move from here...
52830         * lib/wcwidth.h: ...to this new file.
52831
52832 2006-06-28  Derek R. Price  <derek@ximbiot.com>
52833
52834         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
52835
52836         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
52837         it's obsolete.
52838         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
52839
52840 2006-06-28  Derek R. Price  <derek@ximbiot.com>
52841
52842         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
52843         Autoconf 2.60 says this stuff was obsolete.
52844
52845 2006-06-28  Bruno Haible  <bruno@clisp.org>
52846
52847         * modules/wcwidth (Files): Add m4/wchar_t.m4.
52848
52849 2006-06-28  Bruno Haible  <bruno@clisp.org>
52850
52851         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
52852         gt_TYPE_WCHAR_T.
52853
52854 2006-06-28  Bruno Haible  <bruno@clisp.org>
52855
52856         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
52857         declaration for wcwidth.
52858         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
52859
52860 2006-06-28  Bruno Haible  <bruno@clisp.org>
52861
52862         * lib/mkdtemp.c [MINGW]: Include <io.h>.
52863         (mkdir): Define using _mkdir.
52864
52865 2006-06-28  Bruno Haible  <bruno@clisp.org>
52866
52867         * lib/getaddrinfo.h: Fix POSIX URL.
52868         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
52869         _WIN32.
52870         (use_win32_p): Make static.
52871         (getaddrinfo): Reject service name if it is empty or does not consist
52872         solely of decimal digits, or if its value is > 65535.
52873         (getnameinfo): Remove useless casts.
52874
52875 2006-06-27  Simon Josefsson  <jas@extundo.com>
52876
52877         * modules/sys_select: New file, suggested by Bruno Haible, Paul
52878         Eggert and Martin Lambers.
52879
52880 2006-06-27  Simon Josefsson  <jas@extundo.com>
52881
52882         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
52883         Eggert and Martin Lambers.
52884
52885 2006-06-27  Bruno Haible  <bruno@clisp.org>
52886
52887         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
52888         result to 0, not to empty.
52889         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
52890
52891 2006-06-27  Bruno Haible  <bruno@clisp.org>
52892
52893         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
52894
52895 2006-06-26  Simon Josefsson  <jas@extundo.com>
52896
52897         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
52898         present.
52899
52900 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
52901
52902         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
52903         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
52904         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
52905
52906 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
52907
52908         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
52909
52910 2006-06-26  Bruno Haible  <bruno@clisp.org>
52911
52912         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
52913
52914 2006-06-26  Bruno Haible  <bruno@clisp.org>
52915
52916         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
52917
52918 2006-06-26  Bruno Haible  <bruno@clisp.org>
52919
52920         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
52921         SGI C compiler in pre-C99 mode.
52922         Suggested by Mark D. Baushke and Larry Jones.
52923
52924 2006-06-26  Bruno Haible  <bruno@clisp.org>
52925
52926         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
52927         WCHAR_MAX.
52928         Reported by Mark D. Baushke and Larry Jones.
52929
52930 2006-06-26  Bruno Haible  <bruno@clisp.org>
52931
52932         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
52933         in pre-C99 mode.
52934         Suggested by Mark D. Baushke and Larry Jones.
52935
52936 2006-06-23  Simon Josefsson  <jas@extundo.com>
52937             Bruno Haible  <bruno@clisp.org>
52938
52939         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
52940         Emit mostlyclean-local rule.
52941         (func_emit_tests_Makefile_am): Likewise.
52942         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
52943
52944 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
52945
52946         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
52947
52948 2006-06-23  Bruno Haible  <bruno@clisp.org>
52949
52950         * tests/test-stdint.c: Update to match ISO C 99 Technical
52951         Corrigendum 1.
52952
52953 2006-06-23  Bruno Haible  <bruno@clisp.org>
52954
52955         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
52956
52957 2006-06-23  Bruno Haible  <bruno@clisp.org>
52958
52959         * lib/stdint_.h: Treat IRIX like OpenBSD.
52960
52961 2006-06-23  Bruno Haible  <bruno@clisp.org>
52962
52963         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
52964         ISO C 99 Technical Corrigendum 1.
52965
52966 2006-06-22  Simon Josefsson  <jas@extundo.com>
52967
52968         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
52969         MinGW.
52970
52971 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
52972
52973         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
52974         needed.  Some compiler complained about some of them.  Problem reported
52975         by Larry Jones in
52976         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
52977
52978 2006-06-21  Simon Josefsson  <jas@extundo.com>
52979
52980         * tests/test-getaddrinfo.c: New file.
52981
52982         * modules/getaddrinfo-tests: New file.
52983
52984         * MODULES.html.sh: Add inet_pton.
52985
52986         * modules/inet_pton: New file.
52987
52988 2006-06-21  Simon Josefsson  <jas@extundo.com>
52989
52990         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
52991         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
52992         of using the (limited) gnulib implementation on Windows XP.
52993
52994         * m4/inet_pton.m4: New file.
52995
52996 2006-06-21  Simon Josefsson  <jas@extundo.com>
52997
52998         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
52999         variable.
53000
53001         * lib/socket_.h: Don't define WINVER.
53002
53003         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
53004         slightly modified to work in gnulib.
53005
53006 2006-06-21  Simon Josefsson  <jas@extundo.com>
53007
53008         * doc/gnulib.texi (Windows sockets): Add.
53009
53010 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
53011
53012         * lib/read-file.c (fread_file): Start with buffer allocation of
53013         0 bytes rather than 1 byte; this simplifies the code.
53014         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
53015         code to free buffer and save/restore errno.
53016         (internal_read_file): Remove unused local.
53017
53018 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
53019
53020         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
53021         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
53022         Problem reported by Denis Excoffier in
53023         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
53024
53025 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53026
53027         * modules/sys_socket, modules/socklen: Include sys/types since
53028         FreeBSD 4.x's sys/socket.h needs it.
53029
53030 2006-06-19  Simon Josefsson  <jas@extundo.com>
53031
53032         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
53033
53034 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
53035
53036         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
53037
53038 2006-06-19  Bruno Haible  <bruno@clisp.org>
53039
53040         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
53041         and FULL_PATH_INTTYPES_H in angle brackets.
53042         Reported by Mark D. Baushke <mdb@gnu.org>.
53043
53044 2006-06-17  Eric Blake  <ebb9@byu.net>
53045
53046         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
53047         errno.
53048
53049 2006-06-17  Bruno Haible  <bruno@clisp.org>
53050
53051         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
53052         <sys/inttypes.h>.
53053
53054 2006-06-17  Bruno Haible  <bruno@clisp.org>
53055
53056         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
53057         whether errno is declared. Assume <errno.h> declares errno.
53058
53059 2006-06-17  Bruno Haible  <bruno@clisp.org>
53060
53061         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
53062
53063 2006-06-17  Bruno Haible  <bruno@clisp.org>
53064
53065         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
53066         problem on Solaris 2.5.1.
53067
53068 2006-06-16  Eric Blake  <ebb9@byu.net>
53069
53070         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
53071         * lib/unicodeio.c [!defined errno]: Likewise.
53072         * lib/strtol.c [!defined errno]: Likewise.
53073         * lib/strtod.c [!defined errno]: Likewise.
53074
53075 2006-06-15  Eric Blake  <ebb9@byu.net>
53076
53077         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
53078
53079 2006-06-15  Eric Blake  <ebb9@byu.net>
53080
53081         * config/srclist.txt (ssize_t.m4): Lose sync.
53082
53083 2006-06-15  Bruno Haible  <bruno@clisp.org>
53084
53085         * modules/stdint (Files): Include m4/full-header-path.m4,
53086         m4/size_max.m4, m4/wchar_t.m4.
53087         (Makefile.am): Many more substitutions.
53088         * modules/stdint-tests: New file.
53089         * tests/test-stdint.c: New file.
53090
53091 2006-06-15  Bruno Haible  <bruno@clisp.org>
53092
53093         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
53094         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
53095         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
53096         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
53097         gl_CHECK_TYPE_SAME): New macros.
53098
53099 2006-06-15  Bruno Haible  <bruno@clisp.org>
53100
53101         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
53102
53103 2006-06-15  Bruno Haible  <bruno@clisp.org>
53104
53105         * lib/stdint_.h: Rewritten to be fully auto-configured.
53106         Fixes bug on HP-UX/IA64.
53107
53108 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
53109
53110         * lib/getdate.y (__attribute__): Don't define if already defined.
53111         Problem reported by Larry Jones.
53112         * lib/utimens.c (__attribute__): Likewise.
53113
53114 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
53115
53116         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
53117         reported by Andreas Schwab.
53118
53119 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53120             Bruno Haible  <bruno@clisp.org>
53121
53122         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
53123         check for the declaration of strnlen and a run test that exposes the
53124         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
53125         rpl_strndup.
53126
53127 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53128             Bruno Haible  <bruno@clisp.org>
53129
53130         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
53131
53132 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53133
53134         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
53135         compile test, for Tru64 4.0D.
53136
53137 2006-05-28  Karl Berry  <karl@gnu.org>
53138
53139         * config/srclist.txt (printf-args.c): lose sync.
53140
53141 2006-05-26  Martin Lambers  <marlam@marlam.de>
53142
53143         * lib/getpass.c: Updates the test for the native W32 API, and adds
53144         missing includes, thus fixing compilation warnings.
53145
53146 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
53147
53148         * lib/exclude.c (exclude_fnmatch): New function.
53149         (excluded_file_name): Call exclude_fnmatch.
53150         * lib/exclude.h (excluded_file_name): New prototype
53151
53152 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
53153
53154         * lib/tempname.c (small_open, large_open): New macros.
53155         (__open, __open64) [!_LIBC]: Remove.
53156         (__gen_tempname): Use small_open and large_open instead of __open
53157         and __open64.  This fixes a portability bug on HP-UX 11.11i
53158         reported by Simon Wing-Tang in
53159         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
53160
53161 2006-05-24  Bruno Haible  <bruno@clisp.org>
53162
53163         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
53164         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
53165         Reported by Thorsten Maerz <torte@netztorte.de> via
53166         Aaron Stone <aaron@serendipity.cx>.
53167
53168 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
53169
53170         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
53171         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
53172         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
53173         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
53174         not really conditional on the cache.
53175         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
53176
53177 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
53178
53179         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
53180         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
53181         (my_usleep): Don't mishandle maximum value.
53182
53183 2006-05-19  Jim Meyering  <jim@meyering.net>
53184
53185         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
53186
53187 2006-05-17  Bruno Haible  <bruno@clisp.org>
53188
53189         Cygwin portability.
53190         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
53191
53192 2006-05-17  Bruno Haible  <bruno@clisp.org>
53193
53194         * lib/stdint_.h: Fix recognition of Cygwin.
53195
53196 2006-05-15  Bruno Haible  <bruno@clisp.org>
53197
53198         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
53199         on libtool patch by Ralf Wildenhues.
53200
53201 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
53202
53203         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
53204         test for C99 conformance; (bool) 0.5 is an integer constant
53205         expression, but (bool) -0.5 is not.  Problem reported by Fedor
53206         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
53207
53208 2006-05-11  Simon Josefsson  <jas@extundo.com>
53209
53210         * m4/xvasprintf.m4: Fix obvious typo.
53211
53212 2006-05-11  Jim Meyering  <jim@meyering.net>
53213
53214         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
53215         James Lemley.
53216
53217 2006-05-10  Simon Josefsson  <jas@extundo.com>
53218
53219         * lib/md4.c: Typo fix, update copyright years.
53220         (K1, K2): Don't use L because it turn computations into 64-bit on
53221         64-bit platforms.
53222
53223 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
53224
53225         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
53226         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
53227         unwanted sign propagation, e.g., on hosts with 64-bit int.
53228         There still are some problems with reeelly weird theoretical hosts
53229         (e.g., 33-bit int) but it's not worth worrying about now.
53230         * lib/sha1.c (rol): Likewise.
53231         (K1, K2, K3, K4): Remove unnecessary L suffix.
53232
53233 2006-05-10  Bruno Haible  <bruno@clisp.org>
53234
53235         * lib/des.c: Cast to avoid warnings.
53236
53237 2006-05-09  Bruno Haible  <bruno@clisp.org>
53238
53239         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
53240         (Depends-on): Depend also on xsize, stdarg.
53241         (configure.ac): Add gl_XVASPRINTF.
53242
53243 2006-05-09  Bruno Haible  <bruno@clisp.org>
53244
53245         * m4/xvasprintf.m4: New file.
53246
53247 2006-05-09  Bruno Haible  <bruno@clisp.org>
53248
53249         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
53250         (EOVERFLOW): Define fallback value.
53251         (xstrcat): New function.
53252         (xvasprintf): Recognize the special case of a string concatenation.
53253
53254 2006-05-08  Eric Blake  <ebb9@byu.net>
53255
53256         * gnulib-tool (func_version): Base copyright year on CVS date.
53257         (func_emit_copyright_notice): New function.
53258         (func_emit_lib_Makefile_am): Use it.
53259         (func_emit_tests_Makefile_am): Likewise.
53260         (func_import): Likewise.
53261
53262 2006-05-08  Bruno Haible  <bruno@clisp.org>
53263
53264         * modules/stdarg: New file.
53265         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
53266
53267 2006-05-08  Bruno Haible  <bruno@clisp.org>
53268
53269         * m4/stdarg.m4: New file, from GNU gettext.
53270
53271 2006-05-08  Bruno Haible  <bruno@clisp.org>
53272
53273         * config/srclist.txt (build-aux/config.rpath): different from latest
53274         release.
53275
53276 2006-05-08  Bruno Haible  <bruno@clisp.org>
53277
53278         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
53279
53280 2006-05-05  Jim Meyering  <jim@meyering.net>
53281
53282         * m4/warning.m4: New file, derived from bison's file by the same name.
53283
53284 2006-05-03  Bruno Haible  <bruno@clisp.org>
53285
53286         * lib/stdint_.h: Shorter URL.
53287         * lib/inttypes.h: Likewise.
53288
53289 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
53290
53291         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
53292
53293 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
53294
53295         * lib/verify.h: Document the internals better.  Most of this change
53296         was written by Bruno Haible.
53297
53298 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
53299
53300         * doc/verify.texi: New file, partly based on a proposal by
53301         Bruno Haible.
53302
53303 2006-05-02  Bruno Haible  <bruno@clisp.org>
53304
53305         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
53306         test from here...
53307         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
53308
53309 2006-04-29  Bruno Haible  <bruno@clisp.org>
53310
53311         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
53312         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
53313
53314 2006-04-29  Bruno Haible  <bruno@clisp.org>
53315
53316         * gnulib-tool: Make --update option actually work.
53317
53318 2006-04-29  Bruno Haible  <bruno@clisp.org>
53319
53320         * doc/gcd.texi: New file.
53321         * doc/gnulib.texi: Include it.
53322
53323 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
53324
53325         * lib/getdate.y (get_date): When adding relative date, start with the
53326         initial time, not with the result of the first mktime call.
53327
53328 2006-04-25  Bruno Haible  <bruno@clisp.org>
53329
53330         * gnulib-tool (func_import): Output the include directives in three
53331         blocks, sorted separately.
53332         Reported by Ben Pfaff <blp@cs.stanford.edu>.
53333
53334 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
53335
53336         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
53337         to define main with arguments, for C++.  Reported by Eric Blake.
53338         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
53339         Prefer 'int main ()' to 'int main (void)', for C++.
53340         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
53341         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
53342         for 'main', for C99 and C++.
53343
53344 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
53345
53346         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
53347         Don't assume that exit status -1 is valid.
53348         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
53349         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
53350         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
53351         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
53352         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
53353         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
53354         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
53355         functions can be used without declaring them, or that you can
53356         exit with status -1.
53357         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
53358
53359 2006-04-24  Karl Berry  <karl@gnu.org>
53360
53361         * config/srclist.txt (longdouble.m4): sync lost.
53362
53363 2006-04-24  Eric Blake  <ebb9@byu.net>
53364
53365         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
53366
53367 2006-04-24  Bruno Haible  <bruno@clisp.org>
53368
53369         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
53370         poll() implementation in AIX.
53371         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
53372
53373 2006-04-24  Bruno Haible  <bruno@clisp.org>
53374
53375         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
53376         assigned exactly once.
53377
53378 2006-04-23  Claudio Fontana  <claudio@gnu.org>
53379             Bruno Haible  <bruno@clisp.org>
53380
53381         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
53382         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
53383         for AM_CPPFLAGS.
53384
53385 2006-04-23  Bruno Haible  <bruno@clisp.org>
53386
53387         * modules/copy-file: Depend on unistd.
53388         * modules/execute: Likewise.
53389         * modules/fatal-signal: Likewise.
53390         * modules/findprog: Likewise.
53391         * modules/mkdtemp : Likewise.
53392         * modules/pipe: Likewise.
53393         * modules/wait-process: Likewise.
53394
53395 2006-04-23  Bruno Haible  <bruno@clisp.org>
53396
53397         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
53398         condition was already detected.
53399         Reported by Ben Pfaff <blp@cs.stanford.edu>.
53400
53401 2006-04-23  Bruno Haible  <bruno@clisp.org>
53402
53403         * lib/copy-file.c: Include <unistd.h> unconditionally.
53404         * lib/execute.c: Likewise.
53405         * lib/fatal-signal.c: Likewise.
53406         * lib/findprog.c: Likewise.
53407         * lib/mkdtemp.c: Likewise.
53408         * lib/pipe.h: Likewise.
53409         * lib/pipe.c: Likewise.
53410         * lib/wait-process.h: Likewise.
53411
53412 2006-04-23  Bruno Haible  <bruno@clisp.org>
53413
53414         * gnulib-tool (func_usage): Fix --import description. Document
53415         --update.
53416         (func_import): Create temporary file in a temporary directory, if
53417         --dry-run is specified. Silence errors from 'grep' when there are no
53418         m4 files in $m4dir.
53419         (func_create_testdir): Silence errors from 'grep' when there are no
53420         m4 files in $m4dir.
53421         Reported by Karl Berry <karl@freefriends.org>.
53422
53423 2006-04-20  Bruno Haible  <bruno@clisp.org>
53424
53425         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
53426         one argument, so that the code will be portable to Autoconf 2.60.
53427         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
53428         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
53429         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
53430
53431 2006-04-19  Derek Price  <derek@ximbiot.com>
53432             Eric Blake  <ebb9@byu.net>
53433
53434         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
53435         rather than "/full/path.h".  Update comment to match.  Shorten &
53436         generalize m4_translit call via AS_TR_CPP.
53437
53438 2006-04-19  Derek Price  <derek@ximbiot.com>
53439             Eric Blake  <ebb9@byu.net>
53440
53441         * lib/inttypes.h: Correct grammar in comment.
53442
53443 2006-04-18  Derek Price  <derek@ximbiot.com>
53444             Paul Eggert  <eggert@cs.ucla.edu>
53445
53446         * modules/inttypes: New file.
53447         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
53448
53449 2006-04-18  Derek Price  <derek@ximbiot.com>
53450             Paul Eggert  <eggert@cs.ucla.edu>
53451
53452         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
53453         New files.
53454
53455 2006-04-18  Derek Price  <derek@ximbiot.com>
53456             Paul Eggert  <eggert@cs.ucla.edu>
53457
53458         * lib/inttypes.h: New file.
53459         * lib/strtoimax.c: Assume <inttypes.h>.
53460
53461 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
53462
53463         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
53464         isn't mounted.  Problem reported by Kir Kolyshkin.
53465
53466 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
53467
53468         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
53469         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
53470         Derek R. Price.
53471         * lib/regex.h (RE_DUP_MAX): Update comment to match current
53472         implementation.
53473
53474 2006-04-12  Eric Blake  <ebb9@byu.net>
53475
53476         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
53477         is now done automatically by the corresponding Autoconf macro.
53478
53479 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
53480
53481         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
53482         time_r.h.
53483
53484 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
53485
53486         Merge regex changes from libc, removing some of our
53487         POSIX-conformance changes that were rejected and redoing them in a
53488         less-intrusive way.
53489
53490         * lib/regcomp.c (re_compile_internal, init_dfa):
53491         Length arg is now size_t, not Idx.  All uses changed.
53492         (peek_token): Forward decl now says internal_function.
53493         (__re_error_msgid, __re_error_msgid_idx):
53494         Now static rather than extern with attribute_hidden.
53495         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
53496         For some reason libc prefers K&R style defns for external functions.
53497         (regerror) [!defined _LIBC]: Likewise.
53498         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
53499         (seek_collating_symbol_entry, lookup_collation_sequence_value):
53500         (build_range_exp, build_collating_symbol):
53501         Use K&R-style defn.
53502         (re_compile_fastmap): Use '\0' to memset, not 0.
53503         (utf8_sb_map): Make the calculations more obvious.
53504         (init_dfa, parse_bracket_exp, build_charclass_op):
53505         Call calloc and cast result, as glibc does.
53506         (init_word_char, fetch_token, peek_token, peek_token_bracket):
53507         (build_range_exp, build_collating_symbol):
53508         Now internal functions.
53509
53510         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
53511
53512         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
53513         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
53514         Don't depend on VMS; depend on __VMS instead, for POSIX
53515         namespace cleanness.
53516         (regoff_t): Define to ssize_t, not long int.
53517
53518         Remove the REG_ macros named below.  Instead, make the old names
53519         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
53520         __USE_GNU_REGEX.
53521         (REG_BACKSLASH_ESCAPE_IN_LISTS):
53522         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
53523         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
53524         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
53525         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
53526         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
53527         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
53528         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
53529         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
53530         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
53531         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
53532         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
53533         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
53534         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
53535         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
53536         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
53537         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
53538         (REG_NREGS):
53539         Remove.  All uses replaced by the old RE_* names.
53540         (RE_BACKSLASH_ESCAPE_IN_LISTS):
53541         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
53542         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
53543         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
53544         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
53545         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
53546         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
53547         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
53548         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
53549         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
53550         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
53551         Don't bother having these macros be independent of each others'
53552         values, since they no longer exist in the POSIX name space.
53553
53554         Rename the following member names back to their old names,
53555         unless !__USE_GNU_REGEX.  All uses changed back.
53556         (buffer): Renamed from re_buffer.
53557         (allocated): Renamed from re_allocated.
53558         (used): Renamed from re_used.
53559         (syntax): Renamed from re_syntax.
53560         (fastmap): Renamed from re_fastmap.
53561         (translate): Renamed from re_translate.
53562         (can_be_null): Renamed from re_can_be_null.
53563         (regs_allocated): Renamed from re_regs_allocated.
53564         (fastmap_accurate): Renamed from re_fastmap_accurate.
53565         (no_sub): Renamed from re_no_sub.
53566         (not_bol): Renamed from re_not_bol.
53567         (not_eol): Renamed from re_not_eol.
53568         (newline_anchor): Renamed from re_newline_anchor.
53569         (num_regs): Renamed from rm_num_regs.
53570         (start): Renamed from rm_start.
53571         (end): Renamed from rm_end.
53572
53573         (free_state): Move up a bit.
53574
53575         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
53576         #define to be empty.
53577         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
53578         when that is what is intended.
53579         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
53580         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
53581         (MAX): New macro.
53582         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
53583         All uses changed back to re_malloc, etc.  It's now the caller's
53584         responsibility to check for overflow; all callers changed.
53585         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
53586         (re_x2nrealloc): Remove.
53587         (free_state): Remove decl.
53588
53589         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
53590         (re_set_registers, re_exec):
53591         Use K&R-style defn.
53592
53593         2006-01-31  Roland McGrath  <roland@redhat.com>
53594
53595         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
53596         Reported by Mike Frysinger <vapier@gentoo.org>.
53597
53598         2006-01-15  Andreas Jaeger  <aj@suse.de>
53599
53600         [BZ #1950]
53601         * lib/regex_internal.c (re_string_reconstruct): Adjust for
53602         build_wcs_upper_buffer change.
53603         (build_wcs_upper_buffer): Change return type.
53604
53605         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
53606
53607         * lib/regex_internal.h: Include <stdint.h> if available.
53608
53609         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
53610
53611         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
53612
53613         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
53614
53615         * lib/regcomp.c: Adjust for changed secondary hash function.
53616
53617         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
53618
53619         * lib/regex.h: Pretty printing.
53620         Clean up namespace a bit.
53621
53622         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
53623
53624         * lib/regexec.c (update_cur_sifted_state, check_arrival,
53625         check_arrival_add_next_nodes): Avoid using uninitialized variable.
53626
53627         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
53628                     Ulrich Drepper  <drepper@redhat.com>
53629
53630         [BZ #1302]
53631         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
53632         changed.
53633         (bitset_word_t): Renamed from bitset_word.  All uses changed.
53634
53635         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
53636
53637         [BZ #281]
53638         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
53639         * lib/regcomp.c: Remove unnecessary uses of
53640         unsigned RE_TRANSLATE_TYPE.
53641         * lib/regex_internal.h: Likewise.
53642         * lib/regex_internal.c: Likewise.
53643         * lib/regexec.c: Likewise.
53644         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
53645
53646         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
53647
53648         * lib/regexec.c (find_recover_state): Remove unnecessary
53649         initialization.
53650         (transit_state_bkref): Make DFA a const pointer.
53651         (get_subexp): Likewise.
53652         (check_arrival): Likewise.
53653         (update_cur_sifted_state): Likewise.
53654         (re_search_internal): Likewise.
53655         (prune_impossible_nodes): Likewise.
53656         (acquire_init_state_context): Likewise.
53657         (proceed_next_node): Likewise.
53658         (set_regs): Likewise.
53659         (free_fail_stack_return): Likewise.
53660         (check_arrival_expand_ecl): Mark DFA parameter as const.
53661         (check_arrival_expand_ecl_sub): Likewise.
53662         (check_subexp_limits): Likewise.
53663         (sub_epsilon_src_nodes):  Likewise.
53664         (add_epsilon_src_nodes):  Likewise.
53665         (merge_state_array): Likewise.
53666         (update_regs): Likewise.
53667         (build_trtable): Likewise.
53668         (sift_states_backward): Mark MCTX parameter as const.
53669         (build_sifted_states): Likewise.
53670         (update_cur_sifted_state): Likewise.
53671         (sift_states_mkref): Likewise.
53672         (check_arrival_expand_ecl): Mark eclosure as const.
53673         (check_dst_limits_calc_pos_1): Likewise.
53674         * lib/regex_internal.h (re_match_context_t): Make dfa a const
53675         pointer.
53676
53677         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
53678
53679         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
53680         (transit_state_sb): Likewise.
53681         (transit_state_mb): Likewise.
53682         (sift_states_iter_mb): Likewise.
53683         (check_arrival_add_next_nodes): Likewise.
53684         (check_node_accept_bytes): Change first parameter to pointer-to-const.
53685         [_LIBC] (re_search_2_stub): Use mempcpy.
53686
53687         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
53688         mbrtowc for very simple UTF-8 case.
53689
53690         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
53691         a pointer-to-const.
53692         (re_acquire_state_context): Likewise.
53693         * lib/regex_internal.h: Adjust prototypes.
53694
53695         * lib/regex.c: Prevent using C++ compilers.
53696
53697         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
53698         (re_acquire_state_context): Likewise.
53699
53700 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
53701
53702         * modules/regex (Depends-on): Add ssize_t.
53703
53704 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
53705
53706         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
53707         translation table.
53708
53709 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
53710
53711         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
53712
53713 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
53714             Bruno Haible  <bruno@clisp.org>
53715
53716         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
53717         <sys/types.h> and <inttypes.h>.
53718
53719 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53720
53721         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
53722         `__error_t_defined', so argp.h will not typedef the former.
53723
53724 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
53725
53726         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
53727         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
53728         glibc names.  Even if glibc is changed to conform to POSIX, the
53729         traditional names will be available anyway, since regex depends on
53730         the extensions module.  Also, fix a longstanding typo in the
53731         implementation of Spencer ERE test #75 from grep 2.3.  Problems
53732         reported by Emanuele Giaquinta.  Also, change sense of cached
53733         variable, so that the message makes sense.
53734
53735 2006-03-24  Simon Josefsson  <jas@extundo.com>
53736
53737         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
53738         including some doc fixes.
53739         (base64_encode_alloc): Fix +1 bug on allocation failures.
53740
53741 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53742
53743         * lib/base64.c (base64_encode): Do not read past end of array with
53744         unsanitized input on systems with CHAR_BIT > 8.
53745
53746 2006-03-24  Eric Blake  <ebb9@byu.net>
53747
53748         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
53749
53750 2006-03-22  Karl Berry  <karl@gnu.org>
53751
53752         * config/srclist.txt (*setenv.[ch]): get from coreutils.
53753         * config/srclistvars.sh (COREUTILS): new var.
53754
53755 2006-03-17  Jim Meyering  <jim@meyering.net>
53756
53757         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
53758         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
53759
53760 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
53761
53762         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
53763         no longer needs it.  Instead, check that regoff_t is as least
53764         as wide as ptrdiff_t.
53765
53766         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
53767         so that our regex.h stays compatible with the installed regex.
53768         This is helpful for installers who configure --without-included-regex.
53769         Problem reported by Emanuele Giaquinta.
53770
53771 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
53772
53773         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
53774         Typedef to long int, not to off_, as POSIX will likely change
53775         in that direction.
53776
53777 2006-03-15  Eric Blake  <ebb9@byu.net>
53778
53779         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
53780
53781 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
53782
53783         * lib/argp-help.c (validate_uparams): Fix typo
53784         * lib/argp-parse.c (argp_default_options): Consistently begin help
53785         messages with a lowercase letter.
53786
53787 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
53788
53789         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
53790         overrun buffers and shouldn't be used (much as gets shouldn't be
53791         used).
53792         * lib/time_r.c (asctime_r, ctime_r): Likewise.
53793
53794 2006-03-08  Simon Josefsson  <jas@extundo.com>
53795
53796         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
53797         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
53798
53799 2006-03-08  Simon Josefsson  <jas@extundo.com>
53800
53801         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
53802         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
53803
53804 2006-03-08  Simon Josefsson  <jas@extundo.com>
53805
53806         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
53807         signal that configure disabled the device.
53808
53809 2006-03-08  Simon Josefsson  <jas@extundo.com>
53810
53811         * build-aux/maint.mk: Fix refresh-po, to handle no translated
53812         languages.
53813
53814 2006-03-07  Simon Josefsson  <jas@extundo.com>
53815
53816         * modules/getopt (Depends-on): Add unistd.
53817
53818         * modules/unistd: New file.
53819
53820 2006-03-07  Simon Josefsson  <jas@extundo.com>
53821
53822         * modules/gc-random: New file.
53823
53824 2006-03-07  Simon Josefsson  <jas@extundo.com>
53825
53826         * m4/unistd_h.m4: New file.
53827
53828 2006-03-07  Simon Josefsson  <jas@extundo.com>
53829
53830         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
53831         test to be side-effect free by storing the result in the cache
53832         variable gl_cv_lib_readline, and moving the assignment of
53833         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
53834         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
53835
53836 2006-03-07  Simon Josefsson  <jas@extundo.com>
53837
53838         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
53839         error on missing devices (the functions will return an error).
53840
53841         * m4/gc.m4: Move random stuff to gc-random.m4
53842
53843 2006-03-07  Simon Josefsson  <jas@extundo.com>
53844
53845         * lib/unistd_.h: New file.
53846
53847 2006-03-07  Simon Josefsson  <jas@extundo.com>
53848
53849         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
53850
53851 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
53852
53853         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
53854         Problem reported by Juan Manuel Guerrero.
53855
53856 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
53857
53858         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
53859         the unistd module.
53860         * lib/getlogin_r.c: Likewise.
53861         * lib/getlogin_r.h: Likewise.
53862         * lib/glob.c: Likewise.
53863         * lib/pagealign_alloc.c: Likewise.
53864         * lib/unistd_.h: Remove; no longer needed.
53865
53866 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
53867
53868         * MODULES.html.sh (Support for systems lacking POSIX:2001):
53869         Add unistd.
53870         * modules/c-stack (Depends-on): Add unistd.
53871         * modules/getlogin_r: Likewise.
53872         * modules/glob: Likewise.
53873         * modules/pagealign_alloc: Likewise.
53874         * modules/unistd (Files): Remove lib/unistd_.h.
53875         (EXTRA_DIST): Remove.
53876         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
53877         need unistd_.h.
53878         (MOSTLYCLEANFILES): Remove unistd.h-t.
53879
53880 2006-03-03  Simon Josefsson  <jas@extundo.com>
53881
53882         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
53883
53884 2006-03-03  Simon Josefsson  <jas@extundo.com>
53885
53886         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
53887         libidn and bison.
53888
53889 2006-03-03  Simon Josefsson  <jas@extundo.com>
53890
53891         * build-aux/maint.mk: Add indent target.
53892
53893 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
53894
53895         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
53896         our replacement poll.h in any case, to avoid a differing
53897         declaration from a system header.  Seen on AIX.
53898
53899 2006-03-01  Simon Josefsson  <jas@extundo.com>
53900
53901         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
53902         <kasal@ucw.cz>.
53903
53904 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
53905
53906         * modules/gettime (Depends-on): Add extensions module.
53907         * modules/nanosleep (Depends-on): Likewise.
53908         * modules/settime (Depends-on): Likewise.
53909
53910 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
53911
53912         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
53913         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
53914         pedantically.
53915         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
53916         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
53917
53918         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
53919         not "==".  Reported by Ralf Wildenhues.
53920
53921 2006-03-01  Karl Berry  <karl@gnu.org>
53922
53923         * doc/Copyright/request-*: new files, synced from gnuorg.
53924
53925 2006-03-01  Karl Berry  <karl@gnu.org>
53926
53927         * config/srclist.txt (Copyright/*): new entries.
53928
53929 2006-02-28  Simon Josefsson  <jas@extundo.com>
53930
53931         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
53932
53933 2006-02-27  Simon Josefsson  <jas@extundo.com>
53934
53935         * lib/base64.h: Indent #define's.  From Jim Meyering
53936         <jim@meyering.net>.
53937
53938 2006-02-27  Jim Meyering  <jim@meyering.net>
53939
53940         Revert the change of 2006-02-24, so these files can continue
53941         to be sync'd from gettext.
53942         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
53943         of `config.h'.
53944
53945 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
53946
53947         * modules/intprops: New file.
53948         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
53949         Add intprops.
53950         * modules/getloadavg (Files): Remove lib/intprops.h.
53951         (Depends-on): Add intprops.
53952         * modules/human: Likewise.
53953         * modules/inttostr: Likewise.
53954         * modules/openat: Likewise.
53955         * modules/sig2str: Likewise.
53956         * modules/userspec: Likewise.
53957         * modules/utimecmp: Likewise.
53958         * modules/xnanosleep: Likewise.
53959         * modules/xstrtol: Likewise.
53960
53961 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
53962
53963         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
53964         * modules/lock-tests (TESTS): Use $(EXEEXT).
53965         * modules/tls-tests: Likewise.
53966         * modules/argp-tests: Likewise.
53967         (check_PROGRAMS): New var, replacing...
53968         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
53969
53970 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53971
53972         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
53973         `config.h'.
53974
53975 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
53976
53977         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
53978
53979 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53980
53981         Sync from coreutils.
53982         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
53983         gl_CHDIR_SAFER.
53984
53985 2006-02-22  Jim Meyering  <jim@meyering.net>
53986
53987         Sync from coreutils.
53988         * m4/chdir-safer.m4: New file.
53989
53990 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
53991
53992         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
53993         AT_FDCWD exceeds INT_MAX.
53994         * lib/openat.h (AT_FDCWD): Likewise.
53995
53996 2006-02-17  Eric Blake  <address@hidden>
53997
53998         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
53999
54000 2006-02-16  Simon Josefsson  <jas@extundo.com>
54001
54002         * modules/getaddrinfo (Depends-on): Add sys_socket.
54003
54004 2006-02-15  Simon Josefsson  <jas@extundo.com>
54005
54006         * build-aux/maint.mk: Add dsyntax-check rule.
54007
54008 2006-02-15  Eric Blake  <ebb9@byu.net>
54009
54010         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
54011         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
54012         'present but cannot compile' warnings on cygwin.
54013         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
54014         use ws2tcpip.h if sys/socket.h works.
54015         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
54016         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
54017
54018 2006-02-14  Simon Josefsson  <jas@extundo.com>
54019
54020         * modules/maintainer-makefile (Files): Rename.
54021
54022         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
54023         and (the local) Makefile.cfg to maint-cfg.mk.
54024
54025         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
54026         to the latter.
54027
54028         * modules/maintainer-makefile: New module.
54029
54030         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
54031         severaly stripped to make it possible to build it up from scratch
54032         with reliable tests.
54033
54034         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
54035         fixes to permit overriding the default actions when configure and
54036         makefile are not available.
54037
54038 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
54039
54040         Sync from coreutils.
54041         * modules/lstat (Depends-on): Don't depend on xalloc.
54042         (License): Change from GPL to LGPL, since this is now simply a
54043         replacement for a libc function.
54044
54045 2006-02-14  Jim Meyering  <jim@meyering.net>
54046
54047         Sync from coreutils.
54048
54049         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
54050         failure on deficient systems, and simplify gnulib lgpl dependencies.
54051         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
54052         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
54053
54054         * lib/xalloc-die.c: Remove unused definition of N_.
54055
54056 2006-02-14  Jim Meyering  <jim@meyering.net>
54057
54058         Sync from coreutils.
54059         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
54060         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
54061         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
54062         double-quote uses of that variable, to accommodate the rare case in
54063         which getmntent is available in none of the libraries checked.  This
54064         happens at least on FreeBSD 5.0.
54065
54066 2006-02-13  Simon Josefsson  <jas@extundo.com>
54067
54068         * gnulib-tool (Usage): Fix --import, from
54069         karl@freefriends.org (Karl Berry).
54070
54071 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
54072
54073         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
54074
54075 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
54076
54077         * lib/argp-namefrob.h: Restore changes accidentally lost during the
54078         "autoupdate" on 2005-12-12.
54079
54080 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
54081
54082         * modules/closeout (Depends-on): Remove atexit.
54083
54084 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
54085
54086         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
54087         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
54088
54089 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
54090
54091         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
54092         __EXTENSIONS__ if this causes compilation to fail.  Problem
54093         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
54094         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
54095
54096 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
54097
54098         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
54099         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
54100         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
54101         All uses changed.
54102
54103 2006-01-26  Simon Josefsson  <jas@extundo.com>
54104
54105         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
54106         prototype is visible on mingw32.
54107
54108         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
54109         for mingw32.
54110
54111         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
54112         mingw32).
54113
54114 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
54115
54116         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
54117         attempt to open for write; this always fails, at least on POSIX
54118         hosts.  This reinstates the 2006-01-09 change, which was
54119         inadvertently removed.
54120
54121 2006-01-26  Bruno Haible  <bruno@clisp.org>
54122
54123         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
54124         Reported by Paul Eggert.
54125
54126 2006-01-26  Bruno Haible  <bruno@clisp.org>
54127             Paul Eggert  <eggert@cs.ucla.edu>
54128
54129         * lib/stdbool_.h (_Bool)
54130         [(! (defined __cplusplus || defined __BEOS__)
54131           && !defined __GNUC__
54132           && !(defined __HP_cc || defined __xlc__
54133                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
54134                || defined __sgi))]:
54135         #define to signed char in these cases too; this simplifies
54136         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
54137         etc., separately) and makes it more conservative.
54138
54139 2006-01-25  Simon Josefsson  <jas@extundo.com>
54140
54141         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
54142         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
54143         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
54144
54145 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
54146
54147         * lib/argp-namefrob.h: Bugfix. Remove stray #
54148
54149 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
54150
54151         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
54152         so that we test the test.
54153         Check for yet another HP-UX cc bug involving *bool |= bool.
54154
54155 2006-01-25  Karl Berry  <karl@gnu.org>
54156
54157         * config/srclist.txt (vasnprintf.c): sync lost.
54158
54159 2006-01-25  Jim Meyering  <jim@meyering.net>
54160
54161         Sync from the stable (b5) branch of coreutils:
54162
54163         * lib/fts.c (fts_children): Don't let close() clobber errno from
54164         failed fchdir().
54165
54166         * lib/fts.c (fts_stat): When following a symlink-to-directory,
54167         don't necessarily interpret stat-fails+lstat-succeeds as indicating
54168         a dangling symlink.  That can also happen at least for ELOOP.
54169         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
54170         FYI, this bug predates the inclusion of fts.c in coreutils.
54171
54172         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
54173         in their own block, so pre-c99 compilers don't object.
54174
54175         Avoid the double-free (first in fts_read, second in fts_close) that
54176         would occur when an `active' directory is made inaccessible (e.g.,
54177         via chmod a-x) during a traversal.
54178         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
54179         before returning.  Reproduce this failure by
54180         mkdir -p a/b; cd a; chmod a-x . b
54181         Reported by Stavros Passas.
54182
54183 2006-01-25  Jim Meyering  <jim@meyering.net>
54184
54185         * lib/fileblocks.c: Remove more useless parentheses.
54186         * lib/readutmp.h: Likewise.
54187
54188 2006-01-25  Bruno Haible  <bruno@clisp.org>
54189
54190         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
54191         warnings.
54192         Reported by Paul Eggert.
54193
54194 2006-01-25  Bruno Haible  <bruno@clisp.org>
54195
54196         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
54197         rid of a trap command. For Solaris sh.
54198         Reported by Mark D. Baushke <mdb@gnu.org>.
54199
54200 2006-01-24  Simon Josefsson  <jas@extundo.com>
54201
54202         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
54203         Bruno.
54204
54205 2006-01-24  Karl Berry  <karl@gnu.org>
54206
54207         * config/srclist.txt (argp-namefrob.h): sync lost.
54208
54209 2006-01-24  Jim Meyering  <jim@meyering.net>
54210
54211         * modules/openat (Files): Add lib/intprops.h.
54212         From Mark D. Baushke.
54213
54214 2006-01-24  Jim Meyering  <jim@meyering.net>
54215
54216         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
54217         Reported by Mark D. Baushke.
54218
54219 2006-01-24  Jim Meyering  <jim@meyering.net>
54220
54221         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
54222
54223 2006-01-24  Bruno Haible  <bruno@clisp.org>
54224
54225         * modules/strnlen (Maintainer): Change from glibc to all.
54226
54227 2006-01-24  Bruno Haible  <bruno@clisp.org>
54228
54229         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
54230         Patch by Paul Eggert.
54231
54232 2006-01-24  Bruno Haible  <bruno@clisp.org>
54233
54234         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
54235         already has it.
54236         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
54237         2005-11-26.
54238
54239         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
54240         'signed char' to avoid problems with the built-in _Bool type.
54241         Reported by Paul Eggert on 2005-11-26.
54242
54243 2006-01-24  Bruno Haible  <bruno@clisp.org>
54244
54245         * gnulib-tool (func_import): Avoid constructing complicated sed
54246         expressions inside backquote.
54247         Report and solution by Mark D. Baushke <mdb@gnu.org>.
54248
54249 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
54250
54251         These changes imported from libc.
54252         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
54253         test and two separate function calls.
54254         * lib/strndup.c (__strndup): Add libc_hidden_def.
54255
54256 2006-01-23  Simon Josefsson  <jas@extundo.com>
54257
54258         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
54259         Remove the test_*_SOURCES variable: automake infers it by default.
54260         * modules/tls-tests: Likewise.
54261
54262 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
54263
54264         Work around porting bugs reported by Dieter in
54265         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
54266         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
54267         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
54268         Include "getopt.h" first, to check interface.
54269         (getenv): Declare only if defined HAVE_DECL_GETENV &&
54270         !HAVE_DECL_GETENV.
54271         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
54272         (__strndup): Revert to K&R-style function dfns, the glibc style.
54273         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
54274         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
54275         Include strnlen.h first, to get prototype properly.
54276         (strnlen): Renamed from __strnlen.
54277         Remove weak alias.
54278
54279 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
54280
54281         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
54282
54283 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
54284
54285         * config/srclist.txt: Adjust to reflect glibc reorganization.
54286         This affects only comments.
54287
54288 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
54289
54290          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
54291          Reported by Bruce Korb <bkorb@gnu.org>.
54292
54293 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
54294
54295         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
54296         to pacify gcc -Wswitch-default.
54297
54298 2006-01-22  Bruno Haible  <bruno@clisp.org>
54299
54300         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
54301         temporary buffer for sprintf, take into account the precision also
54302         for 'd', 'i', 'u', 'o', 'x', 'X'.
54303
54304 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
54305
54306         * modules/argp-tests: New module
54307         * tests/test-argp.c: New file
54308         * tests/test-argp-2.sh: New file
54309
54310 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
54311
54312         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
54313         (__argp_base_name): Removed
54314         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
54315         typo.
54316         (__argp_base_name): Provide macro definition or extern declaration
54317         depending on the configuration
54318
54319 2006-01-20  Simon Josefsson  <jas@extundo.com>
54320
54321         * modules/inet_ntop (Depends-on): Depend on sys_socket.
54322
54323 2006-01-20  Simon Josefsson  <jas@extundo.com>
54324
54325         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
54326
54327 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
54328
54329         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
54330         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
54331         Suggested by Bruno Haible.
54332
54333 2006-01-20  Karl Berry  <karl@gnu.org>
54334
54335         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
54336         until changes propagate, I guess.
54337
54338 2006-01-19  Simon Josefsson  <jas@extundo.com>
54339
54340         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
54341
54342 2006-01-19  Simon Josefsson  <jas@extundo.com>
54343
54344         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
54345
54346 2006-01-19  Simon Josefsson  <jas@extundo.com>
54347
54348         * gnulib-tool: Set check_PROGRAMS.
54349
54350         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
54351         modules/des-tests, modules/gc-arcfour-tests,
54352         modules/gc-arctwo-tests, modules/gc-des-tests,
54353         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
54354         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
54355         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
54356         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
54357         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
54358         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
54359         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
54360         test_*_SOURCES.
54361
54362 2006-01-18  Simon Josefsson  <jas@extundo.com>
54363
54364         * modules/socklen (Depends-on): Depend on sys_socket.
54365
54366 2006-01-18  Simon Josefsson  <jas@extundo.com>
54367
54368         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
54369         modules/des-tests, modules/gc-arcfour-tests,
54370         modules/gc-arctwo-tests, modules/gc-des-tests,
54371         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
54372         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
54373         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
54374         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
54375         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
54376         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
54377         $(EXEEXT) to automake TESTS variable, for mingw32.
54378
54379 2006-01-17  Simon Josefsson  <jas@extundo.com>
54380
54381         * modules/socklen (Include): Need sys/socket.h.
54382
54383 2006-01-17  Bruno Haible  <bruno@clisp.org>
54384
54385         * modules/ssize_t (Include): Add <sys/types.h>.
54386
54387 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
54388
54389         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
54390         it's not portable and it doesn't work with cross-compiles.
54391         Problem reported by Bruno Haible.  Fix missing-$ typo in
54392         'test "gl_cv_ignore_unused_libraries" ...' that prevented
54393         -zignore from being used with Sun's C compiler.
54394
54395 2006-01-12  Simon Josefsson  <jas@extundo.com>
54396
54397         * lib/base64.c: Fix warning, reported by Bruno Haible
54398         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
54399
54400 2006-01-12  Bruno Haible  <bruno@clisp.org>
54401
54402         * modules/ldd: New file.
54403         * build-aux/ldd.sh.in: New file.
54404         * MODULES.html.sh (Support for building libraries and executables): Add
54405         ldd.
54406
54407 2006-01-12  Bruno Haible  <bruno@clisp.org>
54408
54409         * m4/ldd.m4: New file.
54410
54411 2006-01-12  Bruno Haible  <bruno@clisp.org>
54412
54413         * gnulib-tool (func_import, func_create_testdir): Don't go into an
54414         endless loop while replacing $auxdir with build-aux.
54415
54416 2006-01-11  Simon Josefsson  <jas@extundo.com>
54417
54418         * lib/stdint_.h (SIZE_MAX): Add missing (.
54419
54420 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
54421
54422         Sync from coreutils.
54423         * lib/md5.c: Fix commentary typos.
54424         (alignof, UNALIGNED_P): No need for a GCC-specific version.
54425         * lib/md5.h (__attribute__): Remove; unused.
54426         * lib/sha1.c: Fix commentary to match md5 better.
54427         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
54428         so that we don't need to worry about alignment.  All uses changed.
54429         This merges the 2005-10-28 md5 change into sha1.
54430
54431 2006-01-11  Jim Meyering  <jim@meyering.net>
54432
54433         Sync from coreutils.
54434         * lib/md5.c (OP): Fix spacing.
54435
54436 2006-01-11  Bruno Haible  <bruno@clisp.org>
54437
54438         Ensure automatic ordering between gl_LOCK and gl_ARGP.
54439         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
54440         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
54441
54442 2006-01-11  Bruno Haible  <bruno@clisp.org>
54443
54444         Ensure automatic ordering between gl_LOCK and gl_ARGP.
54445         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
54446         the "early" section as well.
54447
54448 2006-01-11  Bruno Haible  <bruno@clisp.org>
54449
54450         Avoid "ar: no archive members specified" error on MacOS X.
54451         * gnulib-tool (func_modules_add_dummy): New function.
54452         (func_import, func_create_testdir): Invoke it.
54453
54454 2006-01-11  Bruno Haible  <bruno@clisp.org>
54455
54456         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
54457         with $auxdir in AC_CONFIG_FILES statements.
54458
54459 2006-01-11  Bruno Haible  <bruno@clisp.org>
54460
54461         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
54462         Initialize also noinst_HEADERS to empty.
54463
54464 2006-01-11  Bruno Haible  <bruno@clisp.org>
54465
54466         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
54467         variables.
54468         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
54469         autoreconf.
54470
54471 2006-01-11  Bruno Haible  <bruno@clisp.org>
54472
54473         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
54474         overridable by the user.
54475         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
54476
54477 2006-01-10  Simon Josefsson  <jas@extundo.com>
54478
54479         * modules/sys_socket: New file.
54480
54481 2006-01-10  Simon Josefsson  <jas@extundo.com>
54482
54483         * m4/sys_socket_h.m4: New file.
54484
54485 2006-01-10  Simon Josefsson  <jas@extundo.com>
54486
54487         * lib/socket_.h: New file.
54488
54489 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
54490
54491         * modules/readutmp (Maintainer): Add myself.
54492
54493 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
54494
54495         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
54496         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
54497         People who are still concerned with buggy memcmp implementations
54498         can invoke gl_FUNC_MEMCMP themselves.
54499
54500 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
54501
54502         * lib/regex_internal.h (BITSET_WORD_BITS):
54503         Work around a bug in 64-bit PGC (before version 6.1-2), where the
54504         preprocessor mishandles large unsigned values as if they were signed.
54505         Problem reported by Claudio Fontana in
54506         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
54507
54508 2006-01-10  Jim Meyering  <jim@meyering.net>
54509
54510         Avoid the double-free (first in fts_read, second in fts_close) that
54511         would occur when an `active' directory is made inaccessible (e.g.,
54512         via chmod a-x) during a traversal.
54513         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
54514         before returning.  Reproduce this failure by
54515         mkdir -p a/b; cd a; chmod a-x . b
54516         Reported by Stavros Passas.
54517
54518         Sync from coreutils.
54519         * lib/sha1.c: Tweak grammar in a comment.
54520
54521 2006-01-10  Jim Meyering  <jim@meyering.net>
54522
54523         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
54524         Patch by Joerg Sonnenberger.
54525
54526 2006-01-10  Bruno Haible  <bruno@clisp.org>
54527
54528         * modules/readutmp: Depend on module free.
54529         * modules/strtok_r: Depend on module restrict.
54530
54531 2006-01-10  Bruno Haible  <bruno@clisp.org>
54532
54533         * modules/gettext (configure.ac): Add an invocation of
54534         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
54535
54536 2006-01-10  Bruno Haible  <bruno@clisp.org>
54537
54538         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
54539         Reported by Werner Lemberg <wl@gnu.org>.
54540
54541 2006-01-10  Bruno Haible  <bruno@clisp.org>
54542
54543         * lib/localcharset.c: Update from GNU gettext.
54544
54545 2006-01-10  Bruno Haible  <bruno@clisp.org>
54546
54547         * lib/argp.h (__const): Remove macro. Use const instead.
54548         * lib/argp-fmtstream.h (__const): Likewise.
54549         * lib/glob_.h (__const): Remove macro.
54550         * lib/glob-libc.h: Use const instead of __const.
54551
54552 2006-01-10  Bruno Haible  <bruno@clisp.org>
54553
54554         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
54555         variable.
54556         Needed to avoid an automake error regarding the 'gettext' module.
54557
54558 2006-01-09  Simon Josefsson  <jas@extundo.com>
54559
54560         * modules/inet_ntop (Depends-on): Add restrict.
54561
54562 2006-01-09  Simon Josefsson  <jas@extundo.com>
54563
54564         * modules/gc-rijndael-tests (License): Put under LGPL.
54565
54566         * modules/gc-des-tests (License): Likewise.
54567
54568         * modules/gc-arcfour-tests (License): Likewise.
54569
54570         * modules/gc-arctwo-tests (License): Likewise.
54571
54572         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
54573
54574         * modules/gc-hmac-sha1-tests (Files): Likewise.
54575
54576         * modules/gc-hmac-md5-tests (License): Likewise.
54577
54578         * modules/gc-sha1-tests (License): Likewise.
54579
54580         * modules/gc-md5-tests (License): Likewise.
54581
54582         * modules/gc-md4-tests (License): Likewise.
54583
54584         * modules/gc-md2-tests (License): Likewise.
54585
54586         * modules/gc-tests (License): Likewise.
54587
54588         * modules/des-tests (License): Likewise.
54589
54590         * modules/md4-tests (License): Likewise.
54591
54592         * modules/md2-tests (License): Likewise.
54593
54594 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
54595
54596         Sync from coreutils:
54597
54598         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
54599         * modules/lib-ignore: New file.
54600         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
54601         chdir-safer.m4, lchmod.m4.
54602         * modules/openat: Add mkdirat.c, openat-priv.h.
54603
54604 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
54605
54606         Sync from coreutils.
54607         * m4/lib-ignore.m4: New file.
54608         * m4/lchmod.m4: New file.
54609
54610 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
54611
54612         Sync from coreutils.
54613         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
54614         for write access: POSIX says that must fail.
54615         * lib/fts.c (diropen): Likewise.
54616         * lib/save-cwd.c (save_cwd): Likewise.
54617         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
54618         well, for minor improvements on hosts that lack O_DIRECTORY.
54619         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
54620         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
54621         Fall back on chown if open failed with EACCES.
54622
54623         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
54624         Report an error at compile-time if only a 1-second nominal clock
54625         resolution is found.
54626
54627         * lib/lchmod.h: New file.
54628         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
54629         (make_dir_parents): Use lchown rather than chown, and
54630         lchmod rather than chmod.
54631
54632         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
54633         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
54634         "proc" reported by n0dalus.
54635
54636         * lib/mountlist.c: Include <limits.h>.
54637         (dev_from_mount_options)
54638         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
54639         New function.  It no longer assumes "dev=" has the System V meaning
54640         on Linux (since it doesn't).  It also parses "dev=" more carefully.
54641         (read_file_system_list)
54642         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
54643         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
54644         dev= in that case.
54645
54646         * lib/posixtm.h (PDS_PRE_2000): New macro.
54647         * lib/posixtm.c (year): Arg is now syntax_bits rather than
54648         allow_century.  All usages changed.  Reject dates outside the range
54649         1969-1999 if PDS_PRE_2000 is used.
54650
54651 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
54652
54653         Sync from coreutils.
54654         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
54655         (Time of day items): Mention the possibility of leap seconds.
54656         Problem reported by Dr. David Alan Gilbert.
54657
54658 2006-01-09  Jim Meyering  <jim@meyering.net>
54659
54660         Sync from coreutils.
54661
54662         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
54663
54664         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
54665
54666         * lib/modechange.c (mode_compile): Reject an invalid mode string
54667         that starts with an octal digit.  From Andreas Gruenbacher.
54668
54669         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
54670         and dup to open_safer and dup_safer, respectively.
54671         (openat_permissive): Fix typo in comment.
54672
54673         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
54674         "gettext.h"; either no longer needed or are guaranteed by openat.h.
54675         (_): Remove; no longer needed.
54676         (openat): Renamed from rpl_openat; no need for rpl_openat
54677         since openat.h renames openat for us.
54678         Replace most of the body with a call to openat_permissive,
54679         to avoid duplicate code.
54680         Port to (probably hypothetical) environments were mode_t is
54681         wider than int.
54682         (openat_permissive): Require mode arg, so that we can check
54683         types better.  Put it just after flags.  Change cwd failure
54684         indicator from pointer-to-bool to pointer-to-errno-value.
54685         All callers changed.
54686         Invoke openat_save_fail and/or openat_restore_fail if
54687         cwd_errno is null, so that openat can call us.
54688         (openat_permissive, fdopendir, fstatat, unlinkat):
54689         Simplify errno handling to avoid some duplicate code,
54690         as it's OK to set errno on success.
54691         * lib/openat.h: Revamp code so that function macros depend on
54692         __OPENAT_PREFIX only, not also on AT_FDCWD.
54693         (openat_ro): Remove.  Caller changed to use openat_permissive.
54694         (openat_permissive): Now a macro, if not a function.
54695         (openat_restore_fail, openat_save_fail): Now always functions,
54696         since mkdirat needs them even if __OPENAT_PREFIX is defined.
54697
54698         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
54699         and openat.c.
54700         * lib/mkdirat.c: Include openat-priv.h.
54701         Remove definitions of macros defined therein.
54702         * lib/openat.c: Likewise.
54703
54704         * lib/mkdirat.c (mkdirat): New file and function.
54705         * lib/openat.h (mkdirat): Declare.
54706
54707         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
54708
54709         * lib/openat.h (openat_permissive): Declare.
54710         (openat_ro): Define.
54711
54712         * lib/openat.c (EXPECTED_ERRNO): New macro.
54713         (openat_permissive): New function -- used in remove.c rewrite.
54714         (all functions): Set errno just before returning, only if there
54715         was an actual failure.
54716         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
54717
54718         Emulate openat-family functions using Linux's procfs, if possible.
54719         Idea and some code based on Ulrich Drepper's glibc changes.
54720
54721         * lib/openat.c: (BUILD_PROC_NAME): New macro.
54722         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
54723         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
54724         before falling back on save_cwd and restore_cwd.
54725         (fdopendir, fstatat, unlinkat): Likewise.
54726
54727         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
54728         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
54729
54730         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
54731         as second argument to va_arg.  Otherwise, some versions of gcc
54732         warn that `if this code is reached, the program will abort'.
54733
54734 2006-01-09  Jim Meyering  <jim@meyering.net>
54735
54736         Sync from coreutils.
54737         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
54738         Require openat-priv.h.
54739
54740 2006-01-09  Bruno Haible  <bruno@clisp.org>
54741
54742         * modules/strnlen (Include): Use strnlen.h.
54743
54744 2006-01-09  Bruno Haible  <bruno@clisp.org>
54745
54746         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
54747
54748 2006-01-09  Bruno Haible  <bruno@clisp.org>
54749
54750         * lib/sysexit_.h (EX_OK): New macro.
54751         Suggested by Martin Lambers <marlam@marlam.de>.
54752
54753 2006-01-09  Bruno Haible  <bruno@clisp.org>
54754
54755         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
54756         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
54757
54758 2006-01-09  Bruno Haible  <bruno@clisp.org>
54759
54760         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
54761         numbers.
54762
54763 2006-01-09  Bruno Haible  <bruno@clisp.org>
54764
54765         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
54766         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
54767         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
54768         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
54769
54770 2006-01-09  Bruno Haible  <bruno@clisp.org>
54771
54772         * build-aux/javacomp.sh.in: New file, moved from lib/.
54773         * modules/javacomp-script (Files): Update.
54774         (configure.ac): Add AC_CONFIG_FILES invocation.
54775         (EXTRA_DIST): Remove variable.
54776
54777         * build-aux/javaexec.sh.in: New file, moved from lib/.
54778         * modules/javaexec (Files): Update.
54779         (configure.ac): Add AC_CONFIG_FILES invocation.
54780         (EXTRA_DIST): Remove javaexec.sh.in.
54781
54782         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
54783         * modules/csharpcomp-script (Files): Update.
54784         (configure.ac): Add AC_CONFIG_FILES invocation.
54785         (EXTRA_DIST): Remove variable.
54786
54787         * build-aux/csharpexec.sh.in: New file, moved from lib/.
54788         * modules/csharpexec (Files): Update.
54789         (configure.ac): Add AC_CONFIG_FILES invocation.
54790         (EXTRA_DIST): Remove csharpexec.sh.in.
54791
54792 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
54793
54794         Sync from coreutils.
54795
54796         Add POSIX ACL support
54797         * lib/acl.h (copy_acl, set_acl): Add declarations.
54798         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
54799         systems other than Linux.
54800         (chmod_or_fchmod): New function: use fchmod when possible,
54801         and chmod otherwise.
54802         (file_has_acl): Add a POSIX ACL implementation, with a
54803         Linux-specific subcase.
54804         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
54805         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
54806         acls are unsupported.
54807         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
54808         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
54809         are unsupported.
54810
54811 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
54812
54813         Sync from coreutils.
54814         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
54815
54816 2006-01-07  Bruno Haible  <bruno@clisp.org>
54817
54818         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
54819         gl_EARLY.
54820
54821 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
54822
54823         * lib/strftime.c (tzname): Don't declare if it is already #defined.
54824         Problem reported for Mingw by Mark Junker.
54825
54826 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
54827
54828         * README: Gnulib normally doesn't generate a tarball.
54829
54830 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
54831
54832         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
54833         long int, not int, for nanosecond counts, so that people who are
54834         used to POSIX struct timespec won't be surprised.  Reported by Jim
54835         Meyering.
54836
54837 2005-12-28  Bruno Haible  <bruno@clisp.org>
54838
54839         * build-aux/config.rpath: Update from GNU gettext.
54840
54841 2005-12-16  Jim Meyering  <jim@meyering.net>
54842
54843         * modules/fprintftime: New module.
54844         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
54845
54846 2005-12-16  Jim Meyering  <jim@meyering.net>
54847
54848         * m4/fprintftime.m4: New file.
54849
54850 2005-12-16  Jim Meyering  <jim@meyering.net>
54851
54852         * lib/fprintftime.c, lib/fprintftime.h: New files.
54853
54854 2005-12-15  Simon Josefsson  <jas@extundo.com>
54855
54856         * modules/socklen (configure.ac): Fix M4 macro name, to align with
54857         new m4/socklen.m4.
54858
54859 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
54860
54861         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
54862         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
54863
54864 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
54865
54866         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
54867         * lib/argp-help.c (fill_in_uparams): Check if the constructed
54868         struct uparams is valid. Fall back to the default values if it is
54869         not.
54870
54871 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
54872
54873         * modules/argp (Files): Add argp-pin.c
54874         (Depends-on): dirname
54875         (lib_SOURCES): Add argp-pin.c
54876
54877 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
54878
54879         * m4/argp.m4:  Check if program_invocation_name and
54880         program_invocation_short_name are declared and define appropriate
54881         macros if they are not.
54882
54883 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
54884
54885         * lib/argp-help.c (__argp_base_name): New function
54886         (__argp_short_program_name): Rewrite using __argp_base_name
54887         * lib/argp-namefrob.h: Define program_invocation_name and
54888         program_invocation_short_name if requested
54889         (__argp_base_name): Add prototype
54890         * lib/argp-parse.c (argp_def): Use gettext wrappers
54891         (argp_default_parser): Use __argp_base_name
54892         * lib/argp-pin.c: New file. Defines program_invocation_name and
54893         program_invocation_short_name on systems that lack them.
54894
54895 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
54896
54897         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
54898         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
54899         porting problem reported by Georg Schwarz in
54900         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
54901
54902 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
54903
54904         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
54905         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
54906         porting problem reported by Georg Schwarz in
54907         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
54908
54909 2005-12-05  Bruno Haible  <bruno@clisp.org>
54910
54911         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
54912         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
54913         Reported by Mark Junker <mjscod@gmx.de>.
54914
54915 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
54916
54917         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
54918         Use implementation from Albert Chin, with some
54919         comments/corrections by Stepan Kasal and myself.
54920
54921 2005-12-02  Bruno Haible  <bruno@clisp.org>
54922
54923         * gnulib-tool (func_import): Accept GPLed build tool modules when
54924         --lgpl is given.
54925         * modules/csharpcomp-script: New file.
54926         * modules/csharpcomp: Depend on it.
54927         * modules/javacomp-script: New file.
54928         * modules/javacomp: Depend on it.
54929         Suggested by Simon Josefsson.
54930
54931 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
54932
54933         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
54934         statement, to work around an HP-UX 10.20 compiler bug reported by
54935         Peter O'Gorman.
54936
54937 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
54938
54939         * modules/savedir (Depends-on): Add openat.
54940
54941 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
54942
54943         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
54944         (uintmax_t) [defined uintmax_t]: Do not declare.
54945         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
54946         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
54947         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
54948         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
54949         sake of portability to weird hosts that C allows (though we don't
54950         know of any practical examples).
54951
54952         * lib/savedir.h (fdsavedir): New decl.
54953         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
54954         contains most of the former guts of savedir.
54955         (savedir): Use savedirstream.
54956         Include "openat.h".
54957
54958 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
54959
54960         * modules/obstack (Files): Add m4/ulonglong.m4.
54961         Problem reported by Davide Angelocola.
54962
54963 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
54964
54965         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
54966         coreutils no longer futzes with rounding modes.
54967
54968 2005-11-14  Jim Meyering  <jim@meyering.net>
54969
54970         * lib/mkstemp-safer.c: Include <config.h>, required for possible
54971         replacement of mkstemp.
54972
54973 2005-11-10  Simon Josefsson  <jas@extundo.com>
54974
54975         * lib/readline.c: Remove EOL.
54976
54977 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
54978
54979         * modules/gethrxtime (Depends-on): Add gettime.
54980
54981 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
54982
54983         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
54984         or gettimeofday; no longer needed.
54985
54986 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
54987
54988         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
54989         time business.
54990         (gethrxtime) [! (HAVE_NANOUPTIME
54991         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
54992         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
54993         our own approximation.
54994
54995 2005-11-08  Eric Blake  <ebb9@byu.net>
54996
54997         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
54998
54999 2005-11-08  Eric Blake  <ebb9@byu.net>
55000
55001         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
55002
55003 2005-11-04  Bruno Haible  <bruno@clisp.org>
55004
55005         * gnulib-tool: Implement --update mode.
55006
55007 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
55008
55009         Fix porting problem reported by Theodoros V. Kalamatianos.
55010         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
55011         Don't assume that futimes failing means we must fail.
55012
55013 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
55014
55015         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
55016         variables to suggest the intended function of the PATH_MAX check.
55017
55018 2005-10-30  Kean Johnston  <jkj@sco.com>
55019
55020         Trivial changes to support SCO systems.
55021         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
55022         as PATH_MAX.
55023         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
55024         where __ptr is null when no I/O is pending.
55025
55026 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
55027
55028         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
55029         leave errno alone.  Problem reported by Dmitry V. Levin.
55030
55031 2005-10-28  Simon Josefsson  <jas@extundo.com>
55032
55033         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
55034         Test more.
55035
55036         * tests/test-gc-md2.c, tests/test-md2.c: New files.
55037
55038         * modules/md2, modules/md2-tests: New files.
55039
55040 2005-10-28  Simon Josefsson  <jas@extundo.com>
55041
55042         * m4/inet_ntop.m4: More tests.
55043
55044         * m4/gc-md2.m4, md2.m4: New file.
55045
55046 2005-10-28  Simon Josefsson  <jas@extundo.com>
55047
55048         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
55049         "restrict" keywords, as per POSIX.  Protect the function
55050         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
55051         Don't use K&R prototypes.  Check the sprintf return values.
55052         Re-define EAFNOSUPPORT if not present.  Indent.
55053
55054         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
55055         suggested by Bruno Haible <bruno@clisp.org>.
55056
55057         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
55058
55059         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
55060
55061         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
55062         libgcrypt).
55063
55064         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
55065
55066         * lib/md2.h, lib/md2.c: New files.
55067
55068 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
55069
55070         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
55071         errno alone.  Problem reported by Frederic Jolliton.
55072
55073 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
55074
55075         * modules/verify (License): Change from GPL to LGPL.  This is a
55076         tiny module and there are apparently near-equivalents that are
55077         under the BSD license.
55078
55079 2005-10-24  Simon Josefsson  <jas@extundo.com>
55080
55081         * modules/sha1: Relicense to LGPL.
55082
55083 2005-10-24  Simon Josefsson  <jas@extundo.com>
55084
55085         * lib/md4.h: Shrink buffer size, now that we changed the type.
55086
55087 2005-10-23  Simon Josefsson  <jas@extundo.com>
55088
55089         * gnulib-tool (func_import): Fix --tests-base.
55090
55091 2005-10-22  Simon Josefsson  <jas@extundo.com>
55092
55093         * modules/arcfour (Depends-on): Need stdint.
55094
55095 2005-10-22  Simon Josefsson  <jas@extundo.com>
55096
55097         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
55098         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
55099
55100 2005-10-22  Simon Josefsson  <jas@extundo.com>
55101
55102         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
55103         suggested by Bruno Haible <bruno@clisp.org>.
55104
55105 2005-10-22  Simon Josefsson  <jas@extundo.com>
55106
55107         * lib/crc.h: Include stddef.h, for size_t.
55108
55109 2005-10-22  Simon Josefsson  <jas@extundo.com>
55110
55111         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
55112         arcfour_context struct (simplify test vector testing in GNU
55113         Shishi).
55114
55115 2005-10-21  Simon Josefsson  <jas@extundo.com>
55116
55117         * modules/des, modules/des-tests: New files.
55118
55119         * modules/gc-des, modules/gc-des-tests: New files.
55120
55121         * tests/test-des.c, tests/test-gc-des.c: New file.
55122
55123 2005-10-21  Simon Josefsson  <jas@extundo.com>
55124
55125         * modules/arctwo, modules/arctwo-tests: New files.
55126
55127         * tests/test-arctwo.c: New file.
55128
55129         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
55130
55131         * tests/test-gc-arctwo.c: New file.
55132
55133 2005-10-21  Simon Josefsson  <jas@extundo.com>
55134
55135         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
55136         Bruno Haible <bruno@clisp.org>.
55137
55138         * m4/gc-des.m4: New file.
55139
55140 2005-10-21  Simon Josefsson  <jas@extundo.com>
55141
55142         * m4/arctwo.m4: New file.
55143
55144         * m4/gc-arctwo.m4: New file.
55145
55146 2005-10-21  Simon Josefsson  <jas@extundo.com>
55147
55148         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
55149         block.
55150
55151 2005-10-21  Simon Josefsson  <jas@extundo.com>
55152
55153         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
55154         <bruno@clisp.org>.
55155
55156         * lib/hmac-sha1.c (hmac_sha1): Likewise.
55157
55158         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
55159         Bruno Haible <bruno@clisp.org>.
55160
55161         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
55162         <bruno@clisp.org>.
55163
55164 2005-10-21  Simon Josefsson  <jas@extundo.com>
55165
55166         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
55167
55168 2005-10-21  Simon Josefsson  <jas@extundo.com>
55169
55170         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
55171
55172 2005-10-21  Simon Josefsson  <jas@extundo.com>
55173
55174         * lib/des.h, lib/des.c: New files.
55175
55176         * lib/gc-gnulib.c: Support DES.c
55177
55178 2005-10-21  Simon Josefsson  <jas@extundo.com>
55179
55180         * lib/arctwo.h, lib/arctwo.c: New files.
55181
55182         * lib/gc-gnulib.c: Support ARCTWO.
55183
55184 2005-10-21  Simon Josefsson  <jas@extundo.com>
55185
55186         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
55187         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
55188
55189 2005-10-21  Simon Josefsson  <jas@extundo.com>
55190
55191         * gnulib-tool (func_import, func_create_testdir): Define automake
55192         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
55193         Makefile.am snippet),
55194         suggested by Bruno Haible <bruno@clisp.org>.
55195
55196         * modules/gc (Makefile.am): Use it.
55197
55198 2005-10-21  Bruno Haible  <bruno@clisp.org>
55199
55200         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
55201         patch.
55202
55203 2005-10-19  Simon Josefsson  <jas@extundo.com>
55204
55205         * tests/test-gc-rijndael.c: New file.
55206
55207         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
55208
55209 2005-10-19  Simon Josefsson  <jas@extundo.com>
55210
55211         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
55212         interface too.
55213
55214 2005-10-19  Simon Josefsson  <jas@extundo.com>
55215
55216         * tests/test-gc-arcfour.c: New file.
55217
55218         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
55219
55220 2005-10-19  Simon Josefsson  <jas@extundo.com>
55221
55222         * modules/gc-md4, modules/gc-md4-tests: New file.
55223
55224         * tests/test-gc-md4.c: New file.
55225
55226 2005-10-19  Simon Josefsson  <jas@extundo.com>
55227
55228         * m4/gc-md4.m4: New file.
55229
55230 2005-10-19  Simon Josefsson  <jas@extundo.com>
55231
55232         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
55233         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
55234         <kasal@ucw.cz>.
55235
55236 2005-10-19  Simon Josefsson  <jas@extundo.com>
55237
55238         * m4/gc-arcfour.m4: New file.
55239
55240         * m4/gc-rijndael.m4: New file.
55241
55242 2005-10-19  Simon Josefsson  <jas@extundo.com>
55243
55244         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
55245
55246 2005-10-19  Simon Josefsson  <jas@extundo.com>
55247
55248         * lib/gc-gnulib.c: Support ARCFOUR.
55249
55250 2005-10-19  Simon Josefsson  <jas@extundo.com>
55251
55252         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
55253         support.
55254
55255         * lib/gc.h: Add ECB enum type.
55256
55257         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
55258
55259 2005-10-18  Simon Josefsson  <jas@extundo.com>
55260
55261         * tests/test-md5.c: New file.
55262
55263         * modules/md5-tests: New file.
55264
55265 2005-10-18  Simon Josefsson  <jas@extundo.com>
55266
55267         * tests/test-md4.c: New file.
55268
55269         * modules/md4, modules/md4-tests: New files.
55270
55271 2005-10-18  Simon Josefsson  <jas@extundo.com>
55272
55273         * m4/md4.m4: New file.
55274
55275 2005-10-18  Simon Josefsson  <jas@extundo.com>
55276
55277         * lib/md4.h, lib/md4.c: New files, based on md5.?.
55278
55279 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
55280
55281         * gnulib-tool (func_create_testdir): Omit the second check whether
55282         BUILT_SOURCES in nonempty.
55283
55284 2005-10-17  Simon Josefsson  <jas@extundo.com>
55285
55286         * tests/test-rijndael.c: New file.
55287
55288 2005-10-17  Simon Josefsson  <jas@extundo.com>
55289
55290         * modules/sha1: Depend on stdint instead of md5.
55291
55292         * modules/md5: Depend on stdint, remove uint32_t.
55293
55294 2005-10-17  Simon Josefsson  <jas@extundo.com>
55295
55296         * modules/gc-sha1-tests: New file.
55297
55298         * tests/test-gc-sha1.c: New file.
55299
55300 2005-10-17  Simon Josefsson  <jas@extundo.com>
55301
55302         * m4/md5.m4: Remove call to uint32_t.m4.
55303
55304 2005-10-17  Simon Josefsson  <jas@extundo.com>
55305
55306         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
55307
55308         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
55309         md5.h.
55310
55311         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
55312
55313         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
55314
55315 2005-10-17  Simon Josefsson  <jas@extundo.com>
55316
55317         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
55318
55319 2005-10-17  Simon Josefsson  <jas@extundo.com>
55320
55321         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
55322
55323 2005-10-17  Simon Josefsson  <jas@extundo.com>
55324
55325         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
55326
55327         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
55328
55329 2005-10-17  Bruno Haible  <bruno@clisp.org>
55330
55331         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
55332         that it can also be used in a test.
55333
55334 2005-10-16  Bruno Haible  <bruno@clisp.org>
55335
55336         * gnulib-tool (func_emit_tests_Makefile_am): Also define
55337         TESTS_ENVIRONMENT, so that individual tests can augment it.
55338
55339         * gnulib-tool (func_create_testdir): Use an intermediate target for
55340         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
55341         macros, like $(ALLOCA_H), which cannot be passed through the command
55342         line.
55343
55344 2005-10-15  Simon Josefsson  <jas@extundo.com>
55345
55346         * modules/rijndael-tests: New file.
55347
55348         * modules/rijndael: New file.
55349
55350 2005-10-15  Simon Josefsson  <jas@extundo.com>
55351
55352         * m4/rijndael.m4: New file.
55353
55354 2005-10-15  Simon Josefsson  <jas@extundo.com>
55355
55356         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
55357
55358         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
55359
55360 2005-10-14  Simon Josefsson  <jas@extundo.com>
55361
55362         * tests/test-arcfour.c: New file.
55363
55364         * modules/arcfour, modules/arcfour-tests: New files.
55365
55366 2005-10-14  Simon Josefsson  <jas@extundo.com>
55367
55368         * m4/arcfour.m4: New file.
55369
55370 2005-10-14  Simon Josefsson  <jas@extundo.com>
55371
55372         * lib/arcfour.h, lib/arcfour.c: New files.
55373
55374 2005-10-14  Roland McGrath  <roland@redhat.com>
55375
55376         Import from libc.  [BZ #1331]
55377         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
55378         macro argument.
55379         Reported by Matej Vela <vela@debian.org>.
55380
55381 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
55382
55383         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
55384         include <wchar.h>; no longer needed.
55385
55386 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
55387
55388         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
55389
55390 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
55391         and  Ulrich Drepper  <drepper@redhat.com>
55392
55393         Import from libc.
55394         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
55395         instead of inline stream orientation test and two separate
55396         function calls.  Pay no attention to USE_IN_LIBIO.
55397
55398 2005-10-13  Simon Josefsson  <jas@extundo.com>
55399
55400         * modules/gc-hmac-md5-tests: New file.
55401
55402         * tests/test-gc-hmac-sha1.c: New file.
55403
55404         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
55405
55406         * modules/gc-hmac-md5-tests: New file.
55407
55408         * tests/test-gc-md5.c: New file.
55409
55410         * modules/gc-md5-tests: New file.
55411
55412 2005-10-13  Simon Josefsson  <jas@extundo.com>
55413
55414         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
55415         Move memory allocation outside of loop.
55416
55417 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
55418
55419         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
55420         intermediate directory is in a read-only file system.  Problem
55421         reported by Eric Blake.
55422
55423 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
55424
55425         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
55426
55427 2005-10-12  Simon Josefsson  <jas@extundo.com>
55428
55429         * tests/test-hmac-sha1.c: New file.
55430
55431         * modules/hmac-sha1-tests: New file.
55432
55433         * modules/hmac-sha1: New file.
55434
55435 2005-10-12  Simon Josefsson  <jas@extundo.com>
55436
55437         * modules/gc-sha1: New file.
55438
55439 2005-10-12  Simon Josefsson  <jas@extundo.com>
55440
55441         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
55442
55443         * tests/test-gc-pbkdf2-sha1.c: New file.
55444
55445 2005-10-12  Simon Josefsson  <jas@extundo.com>
55446
55447         * modules/gc-md5, modules/gc-hmac-md5: New files.
55448
55449         * modules/gc (Files): Remove md5, memxor and hmac files.
55450
55451 2005-10-12  Simon Josefsson  <jas@extundo.com>
55452
55453         * m4/gc-pbkdf2-sha1.m4: New file.
55454
55455         * m4/gc-hmac-sha1.m4: New file.
55456
55457         * m4/gc-sha1: New file.
55458
55459         * m4/hmac-sha1.m4: New file.
55460
55461 2005-10-12  Simon Josefsson  <jas@extundo.com>
55462
55463         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
55464
55465         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
55466
55467 2005-10-12  Simon Josefsson  <jas@extundo.com>
55468
55469         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
55470         suggested by Bruno Haible <bruno@clisp.org>.
55471
55472 2005-10-12  Simon Josefsson  <jas@extundo.com>
55473
55474         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
55475
55476 2005-10-12  Simon Josefsson  <jas@extundo.com>
55477
55478         * lib/gc-pbkdf2-sha1.c: New file.
55479
55480         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
55481
55482 2005-10-12  Simon Josefsson  <jas@extundo.com>
55483
55484         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
55485
55486         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
55487
55488 2005-10-12  Simon Josefsson  <jas@extundo.com>
55489
55490         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
55491         GC_USE_HMAC_MD5, respectively.
55492
55493         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
55494         (gc_md5): Fix typo.
55495
55496         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
55497
55498         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
55499
55500         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
55501
55502 2005-10-12  Bruno Haible  <bruno@clisp.org>
55503
55504         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
55505         Reported by Stepan Kasal <kasal@ucw.cz>.
55506
55507 2005-10-11  Simon Josefsson  <jas@extundo.com>
55508
55509         * tests/test-crc.c: New file.
55510
55511         * modules/crc, modules/crc-tests: New files.
55512
55513 2005-10-11  Simon Josefsson  <jas@extundo.com>
55514
55515         * m4/crc.m4: New file.
55516
55517 2005-10-11  Simon Josefsson  <jas@extundo.com>
55518
55519         * lib/gc.h: Add gc_hash and gc_hash_buffer.
55520
55521         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
55522
55523         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
55524
55525 2005-10-11  Simon Josefsson  <jas@extundo.com>
55526
55527         * lib/crc.h, lib/crc.c: New files.
55528
55529         * lib/gc.h (gc_hash_buffer): Add doc.
55530
55531 2005-10-11  Bruno Haible  <bruno@clisp.org>
55532
55533         * modules/c-strcasestr: New file.
55534         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
55535
55536 2005-10-11  Bruno Haible  <bruno@clisp.org>
55537
55538         * modules/c-strcase: New file.
55539         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
55540
55541 2005-10-11  Bruno Haible  <bruno@clisp.org>
55542
55543         * lib/strcasecmp.c: Include limits.h.
55544         (strcasecmp): Avoid integer overflow on exotic platforms.
55545         * lib/strncasecmp.c: Include limits.h.
55546         (strncasecmp): Avoid integer overflow on exotic platforms.
55547         Reported by Paul Eggert.
55548
55549 2005-10-11  Bruno Haible  <bruno@clisp.org>
55550
55551         * lib/c-strcasestr.h: New file, from GNU gettext.
55552         * lib/c-strcasestr.c: New file, from GNU gettext.
55553
55554 2005-10-11  Bruno Haible  <bruno@clisp.org>
55555
55556         * lib/c-strcase.h: New file, from GNU gettext.
55557         * lib/c-strcasecmp.c: New file, from GNU gettext.
55558         * lib/c-strncasecmp.c: New file, from GNU gettext.
55559
55560 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
55561
55562         * modules/mempcpy (License): GPL -> LGPL.
55563         * modules/strchrnul (License): Likewise.
55564         * modules/sysexits (License): Likewise.
55565
55566 2005-10-08  Simon Josefsson  <jas@extundo.com>
55567
55568         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
55569
55570 2005-10-07  Simon Josefsson  <jas@extundo.com>
55571
55572         * m4/memxor.m4: Remove gl_C_RESTRICT call.
55573
55574 2005-10-06  Simon Josefsson  <jas@extundo.com>
55575
55576         * tests/test-hmac-md5.c: New file.
55577
55578         * modules/hmac-md5-tests: New file.
55579
55580         * modules/hmac-md5: New file.
55581
55582 2005-10-06  Simon Josefsson  <jas@extundo.com>
55583
55584         * m4/hmac-md5.m4: New file.
55585
55586         * m4/memxor.m4: Require gl_C_RESTRICT.
55587
55588 2005-10-06  Simon Josefsson  <jas@extundo.com>
55589
55590         * lib/memxor.c (memxor): Avoid casts and warnings.
55591
55592 2005-10-06  Simon Josefsson  <jas@extundo.com>
55593
55594         * lib/hmac-md5.c: New file.
55595
55596         * lib/hmac.h: New file.
55597
55598 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
55599
55600         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
55601         promotes to int, not unsigned int, to catch the AIX 5.3
55602         compiler bug.
55603
55604 2005-10-05  Simon Josefsson  <jas@extundo.com>
55605
55606         * modules/memxor: New file.
55607
55608         * modules/iconv (Files): Move config.rpath to havelib, it is used
55609         there.
55610
55611         * modules/havelib (Files): Add config.rpath.
55612
55613 2005-10-05  Simon Josefsson  <jas@extundo.com>
55614
55615         * m4/memxor.m4: New file.
55616
55617 2005-10-05  Simon Josefsson  <jas@extundo.com>
55618
55619         * lib/memxor.c (memxor): Fix compiler error.
55620
55621         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
55622         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
55623
55624         * lib/memxor.h, lib/memxor.c: New files.
55625
55626         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
55627         we assume all systems have it, suggested by Jim Meyering
55628         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
55629         any systems lack sys/socket.h; mingw32 is known to lack it, but we
55630         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
55631         same reasons.
55632
55633 2005-10-05  Simon Josefsson  <jas@extundo.com>
55634
55635         * config/srclist.txt: Add glibc bug 1423 for md5.h.
55636
55637 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
55638
55639         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
55640         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
55641         needed, since the source code now assumes these .h files.
55642
55643 2005-10-05  Derek Price  <derek@ximbiot.com>
55644
55645         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
55646
55647 2005-10-05  Bruno Haible  <bruno@clisp.org>
55648
55649         * modules/stdint (License): Change to LGPL.
55650
55651 2005-10-04  Simon Josefsson  <jas@extundo.com>
55652
55653         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
55654         D. Baushke" <mdb@gnu.org>.
55655
55656 2005-10-04  Bruno Haible  <bruno@clisp.org>
55657
55658         * lib/verify.h (verify_true): Provide alternative definition for C++.
55659
55660 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
55661
55662         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
55663         (SSIZE_MAX): New macro, if not already defined.
55664         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
55665         than 2 GiB.
55666
55667 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
55668
55669         Sync from coreutils.
55670         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
55671         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
55672         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
55673         ULLONG_MAX doesn't work with 2.7.2.1.
55674
55675 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
55676
55677         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
55678         From Ben Pfaff.
55679
55680         * modules/exclude (Depends-on): Depend on verify.
55681         * modules/strtoimax (Depends-on): Likewise.
55682         * modules/utimecmp (Depends-on): Likewise.
55683
55684 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
55685
55686         * lib/exclude.c: Include verify.h.
55687         (verify): Remove.  All callers changed to use verify.h's version.
55688         * lib/strtoimax.c: Likewise.
55689         * lib/utimecmp.c: Likewis.e
55690
55691         Sync from coreutils.
55692         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
55693         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
55694         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
55695         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
55696         bother returning ENOSYS if settimeofday or stime fails; just let
55697         them return whatever errno they want to return.
55698         * lib/utimens.c: Include unistd.h, for dup2.
55699         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
55700         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
55701
55702 2005-10-02  Jim Meyering  <jim@meyering.net>
55703
55704         Sync from coreutils.
55705         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
55706         from glibc-2.2.5 that fails for read-only files.
55707
55708 2005-10-02  Jim Meyering  <jim@meyering.net>
55709
55710         Sync from coreutils.
55711         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
55712         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
55713         `#if HAVE_CONFIG_H'.
55714         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
55715         Remove AT_FDCWD test.
55716         Do not consume the fd unless successful.
55717         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
55718         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
55719         block, so that we don't even try to compile it if settimeofday is
55720         available.  This works around a compilation failure on OSF1 V5.1,
55721         due to stime requiring a `long int*' while tv_sec is `int'.
55722
55723 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
55724
55725         Sync from coreutils.
55726         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
55727         against `yes', rather than just testing for nonempty.
55728
55729 2005-10-01  Simon Josefsson  <jas@extundo.com>
55730
55731         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
55732         and Darwin.
55733
55734         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
55735         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
55736         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
55737         freeaddrinfo and gai_strerror are declared by the POSIX headers.
55738         Check if struct addrinfo is declared.
55739
55740 2005-10-01  Simon Josefsson  <jas@extundo.com>
55741
55742         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
55743         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
55744         AI_* and EAI_* definitions.  Protect function declarations.
55745
55746 2005-10-01  Jim Meyering  <jim@meyering.net>
55747
55748         Sync from coreutils.
55749
55750         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
55751         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
55752         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
55753         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
55754         in the inet and nsl libraries.  Required on Solaris 5.7.
55755
55756 2005-10-01  Jim Meyering  <jim@meyering.net>
55757
55758         Sync from coreutils.
55759         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
55760         in the inet and nsl libraries.  Required on Solaris 5.7.
55761
55762 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
55763
55764         * lib/getdelim.c (getdelim): Remove unused variables.
55765
55766 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
55767
55768         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
55769         so that the code works even with ancient cpp.  Portability problem
55770         with GCC 2.7.2.1 reported by Thomas M.Ott.
55771
55772 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
55773
55774         * modules/regex (Depends-on): Add strcase.
55775
55776         * modules/gethostname (Licence): Change from GPL to LGPL, since
55777         gethostname.c is a trivial implementation of a standard library
55778         function.
55779         * modules/poll (License): Change from GPL to LGPL, since it's
55780         derived from LGPL code.
55781
55782 2005-09-27  Jim Meyering  <jim@meyering.net>
55783
55784         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
55785         HAVE_CONFIG_H.
55786
55787         * lib/intprops.h (signed_type_or_expr__): Define.
55788         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
55789         for unsigned types.
55790
55791 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
55792
55793         * lib/verify.h (verify_expr): Remove, replacing with:
55794         (verify_true): New macro that returns true instead of void.
55795         (verify_type__): Remove.
55796         (verify): Use verify_true rather than verify_type__.
55797
55798 2005-09-26  Bruno Haible  <bruno@clisp.org>
55799
55800         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
55801         is necessary.
55802         (lib_SOURCES): Remove mbchar.c.
55803         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
55804         (Files): Add m4/mbrtowc.m4.
55805         * modules/mbiter: Likewise.
55806         * modules/mbuiter: Likewise.
55807
55808 2005-09-26  Bruno Haible  <bruno@clisp.org>
55809
55810         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
55811         compile mbchar.c if they are not both present.
55812         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
55813         * m4/mbiter.m4 (gl_MBITER): Likewise.
55814         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
55815         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
55816         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
55817
55818 2005-09-25  Jim Meyering  <jim@meyering.net>
55819
55820         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
55821         also uses socklen_t.
55822
55823 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
55824
55825         * lib/utimens.c (ENOSYS): Define if not already defined.
55826         (futimens): Support having a null PATH if the file descriptor
55827         is nonnegative.
55828
55829         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
55830         Remove.
55831         (__attribute): Define to empty unless GCC 3.1 or later.
55832         This works around a core dump on OpenBSD 3.4, which has GCC
55833         2.95.3, which dumps core when given __attribute__(()).  It also
55834         simplifies other tests, since we really don't want to bother with
55835         worrying about which ancient version of GCC supported what.
55836         Original problem reported by Yoann Vandoorselaere, with part of
55837         the fix suggested by Derek Price.
55838
55839 2005-09-24  Jim Meyering  <jim@meyering.net>
55840
55841         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
55842         so we can once again use a positive bitfield width of 1 -- now we
55843         don't have to explain why we were using a bitfield width of 2.
55844
55845 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
55846
55847         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
55848         and similarly for the other external symbols.  Problem reported
55849         by James Gallager.
55850
55851         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
55852         bug reported by Jim Meyering.
55853
55854         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
55855         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
55856         not needed, since socklen is a prerequisite module.
55857
55858 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
55859
55860         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
55861         Problem reported by Eric Blake.
55862         (getaddrinfo): Initialize se so that it's not garbage.
55863         Redo internal storage allocation so that it doesn't make unportable
55864         assumptions about alignment.
55865         Fix a memory leak.
55866
55867         * lib/utimens.c (futimens): Use futimesat if available.
55868         Prefer it to futimes since it doesn't have the futimes bug.
55869
55870         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
55871         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
55872         Instead, declare a function that returns a pointer to an array,
55873         and use verify_type__ to declare the size of the array.
55874         Problem and germ of a solution reported by Bruno Haible.
55875         (verify_type__): Use 2, not 1, for bitfield size, to avoid
55876         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
55877
55878 2005-09-23  Jim Meyering  <jim@meyering.net>
55879
55880         Sync from coreutils.
55881         Correct build failure (socklen_t not defined) on at least
55882         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
55883         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
55884
55885 2005-09-23  Jim Meyering  <jim@meyering.net>
55886
55887         * modules/getaddrinfo (Depends-on): Add socklen.
55888
55889 2005-09-23  Bruno Haible  <bruno@clisp.org>
55890
55891         * tests/test-verify.c: New file.
55892
55893 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
55894
55895         Sync from coreutils.
55896
55897         * modules/argmatch (Depends-on): Add verify.
55898         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
55899         unistd-safer.
55900         * modules/save-cwd (Depends-on): Likewise.
55901
55902         * modules/openat (Files): Add lib/openat-die.c.
55903         (Depends-on): Remove error, exitfail.
55904         Add dirname.
55905
55906         * modules/verify: New file.
55907         * MODULES.html.sh (Diagnostics <assert.h>): New section,
55908         with "verify" module.
55909
55910 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
55911
55912         Sync from coreutils.
55913
55914         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
55915         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
55916         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
55917         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
55918         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
55919         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
55920         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
55921         Don't bother checking for string.h, stdlib.h, unistd.h.
55922         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
55923         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
55924         module's job.
55925         * m4/jm-macros.m4 (gl_MACROS): Likewise.
55926         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
55927
55928         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
55929         (gl_GETDATE): Use it.
55930
55931         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
55932
55933 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
55934
55935         Sync from coreutils.
55936
55937         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
55938         stat-time.h.
55939         * lib/argmatch.h: Include verify.h
55940         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
55941         (ARGMATCH_ASSERT): Remove; unused.
55942         * lib/canonicalize.c: Assume STDC_HEADERS.
55943         * lib/exclude.c: Include "strcase.h".
55944         * lib/regex_internal.h [!defined _LIBC]: Likewise.
55945         * lib/getusershell.c: Include stdio--.h rather than stdio.h
55946         and stdio-safer.h.
55947         (getusershell): Call fopen, not fopen_safer.
55948         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
55949         Do not include unistd-safer.h.
55950         (save_cwd): Don't call fd_safer; no longer needed
55951         now that we include fcntl--.h.
55952
55953         * lib/getdate.y (relative_time): New type.
55954         (RELATIVE_TIME_0): New constant.
55955         (parser_control): Use relative_time instead of doing it ourselves.
55956         (%union): Add new relative_time rel member.
55957         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
55958         Now typeless.
55959         (relunit, relunit_snumber): Now of type rel.
55960         (zone, rel, relunit, get_date): Adjust to above changes.
55961
55962         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
55963         Do not include unistd-safer.h.
55964         (getloadavg): Don't call fd_safer; no longer needed
55965         now that we include fcntl--.h.
55966
55967         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
55968         (make_dir_parents): Treat ENOSYS like EEXIST.
55969
55970         Improve quality of diagnostics on restore_cwd failure.
55971         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
55972         (make_dir_parents): Last arg is now int * (for errno), not bool *.
55973         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
55974         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
55975         each time through the loop.  Do not diagnose restore_cwd failure;
55976         that is the caller's job (and perhaps the caller does not care).
55977
55978         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
55979         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
55980         If the file already exists but is not a directory, don't bother
55981         to try to make its parents.
55982         Close potential file descriptor leak if we can't chdir("/") (!).
55983         Don't always return true if chdir($PWD) fails; return true only
55984         if the requested action was done successfully (except for the
55985         chdir($PWD)).
55986         Don't log final directory unless we actually made it.
55987         Refactor to avoid duplicate code to fix up permissions.
55988         Don't attempt to fix up parent permissions if chdir($PWD) fails.
55989
55990         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
55991         to make it a bit faster and (I hope) clearer.
55992         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
55993         Fix bug in formats like %2N.
55994
55995         * lib/verify.h: New file.
55996
55997 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
55998
55999         Sync from coreutils.
56000         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
56001
56002 2005-09-22  Jim Meyering  <jim@meyering.net>
56003
56004         Sync from coreutils.
56005
56006         * m4/lstat.m4 (gl_FUNC_LSTAT):
56007         Use AC_LIBSOURCES to require lstat.c and lstat.h.
56008         Remove obsolete comment.
56009         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
56010         * m4/xstrtod.m4: Likewise.
56011
56012         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
56013
56014 2005-09-22  Jim Meyering  <jim@meyering.net>
56015
56016         Sync from coreutils.
56017
56018         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
56019
56020         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
56021         the .tm_year member, since otherwise gcc-4.0 would now warn about
56022         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
56023
56024         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
56025         order to avoid an unsuppressible warning from gcc on 64-bit systems.
56026
56027         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
56028         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
56029         when run in a time zone for which daylight savings time is in effect
56030         for the starting date.
56031
56032         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
56033         stop us from restricting permissions of just-created absolute-named
56034         directories.
56035         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
56036         to restore initial working directory.
56037         * lib/mkdir-p.c (make_dir_parents): New parameter:
56038         different_working_dir, to tell caller if/when we change the working
56039         directory and are unable to return to the initial one.
56040         * lib/mkdir-p.h (make_dir_parents): Update prototype.
56041         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
56042         `return false'.  This fixes a bug introduced on 2004-07-30.
56043
56044         * lib/openat.c (fdopendir): Be sure to close the supplied
56045         file descriptor before returning.  This makes our replacement
56046         implementation a little closer to Solaris's, where fdopendir
56047         ties the file descriptor to the returned DIR* pointer.
56048         * lib/openat.c (unlinkat): New function.
56049         * lib/openat.h (unlinkat): Add prototype.
56050         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
56051         (openat_restore_fail): Rename from openat_restore_die.
56052         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
56053
56054         Provide an alternative to exiting immediately upon save_cwd or
56055         restore_cwd failure.  Now, an application can arrange e.g.,
56056         to perform a longjump in that case.
56057         * lib/openat.c: Include dirname.h.
56058         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
56059         (rpl_openat, fdopendir, fstatat): Call openat_save_die
56060         and openat_restore_die rather than calling error directly.
56061         Don't include "error.h" or "exitfail.h"; they're no longer needed.
56062
56063         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
56064         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
56065         define.
56066
56067         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
56068         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
56069                             int utc, int nanoseconds);
56070         Background:
56071         date should not have to allocate a megabyte of virtual memory to
56072         handle a format argument like +%1048575T.  When implemented with
56073         strftime, it must allocate such a buffer, use strftime to fill it
56074         in, print it, then free it.
56075         With fprintftime, it simply prints everything and exits.
56076         With no need for memory allocation, that's one fewer way to fail.
56077         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
56078         optional field width, not before, so we accept %9:z, not %:9z.
56079         (my_strftime): Be sure to use L_('x') for literals.
56080
56081         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
56082         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
56083         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
56084         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
56085         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
56086         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
56087         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
56088         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
56089         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
56090         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
56091         * lib/xgethostname.c, lib/xreadlink.c:
56092         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
56093
56094         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
56095         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
56096         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
56097         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
56098         and don't include <sys/file.h>).
56099
56100 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
56101
56102         Sync from coreutils.
56103
56104         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
56105         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
56106         [!LDAV_DONE]: Avoid unused variable warning.
56107
56108 2005-09-21  Bruno Haible  <bruno@clisp.org>
56109
56110         * lib/unicodeio.h (unicode_to_mb): New declaration.
56111
56112 2005-09-20  Derek Price  <derek@ximbiot.com>
56113
56114         * lib/getaddrinfo.c: Don't include <netdb.h> included from
56115         getaddrinfo.h.
56116
56117 2005-09-20  Bruno Haible  <bruno@clisp.org>
56118
56119         * gnulib-tool: Remove trailing slashes from the values specified for
56120         --source-base, --m4-base, --tests-base, --aux-dir.
56121         Suggested by Simon Josefsson <jas@extundo.com>.
56122
56123 2005-09-20  Bruno Haible  <bruno@clisp.org>
56124
56125         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
56126         func_modules_to_filelist, func_import, func_create_testdir): Make all
56127         sorting results locale-independent, so that gnulib-cache.m4 doesn't
56128         change when gnulib-tool is invoked in a different locale.
56129
56130 2005-09-19  Simon Josefsson  <jas@extundo.com>
56131
56132         * m4/socklen.m4: Fix typo.
56133
56134 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56135
56136         Use a consistent style for including <config.h>.
56137         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
56138         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
56139         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
56140         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
56141         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
56142         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
56143         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
56144         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
56145         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
56146         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
56147         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
56148         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
56149         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
56150         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
56151         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
56152         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
56153         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
56154         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
56155         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
56156         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
56157         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
56158         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
56159         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
56160         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
56161         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
56162         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
56163         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
56164         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
56165         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
56166         lib/xstrtoumax.c, lib/yesno.c:
56167         Standardize inclusion of config.h.
56168         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
56169         lib/inttostr.h:  Removed inclusion of config.h from header files.
56170         * lib/inttostr.c:  Adjusted in-tree users.
56171         * lib/timespec.h: Remove superfluous warning to include config.h.
56172         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
56173         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
56174         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
56175         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
56176         config.h with HAVE_CONFIG_H.
56177
56178 2005-09-19  Jim Meyering  <jim@meyering.net>
56179
56180         * modules/pathmax (License): Change to LGPL.
56181
56182 2005-09-19  Derek Price  <derek@ximbiot.com>
56183
56184         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
56185
56186 2005-09-19  Bruno Haible  <bruno@clisp.org>
56187
56188         * gnulib-tool (import): Provide default for --tests-base.
56189
56190 2005-09-19  Bruno Haible  <bruno@clisp.org>
56191
56192         * doc/quote.texi: New file, extracted from gnulib.texi.
56193         * doc/ctime.texi: New file, extracted from gnulib.texi.
56194         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
56195         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
56196         * doc/gnulib.texi: Include them.
56197
56198 2005-09-18  Bruno Haible  <bruno@clisp.org>
56199
56200         Portability fix.
56201         * gnulib-tool (func_readlink): New function.
56202         (func_ln_if_changed): Use it.
56203
56204 2005-09-18  Bruno Haible  <bruno@clisp.org>
56205
56206         * gnulib-tool: Support --with-tests also with --import.
56207         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
56208         (func_import): Use variables $testsbase and $inctests. Emit a
56209         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
56210         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
56211         SUBDIRS += $testsdir.
56212         (func_create_testdir): Update.
56213
56214 2005-09-18  Bruno Haible  <bruno@clisp.org>
56215
56216         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
56217         instead of $dry_run.
56218         (func_cp_if_changed, func_mv_if_changed): Remove functions.
56219         (func_ln_if_changed): Don't handle dry-run here.
56220         (func_import): In dry-run mode, detect more precisely which actions
56221         would be performed, and don't use "...ing" verbs.
56222
56223 2005-09-18  Bruno Haible  <bruno@clisp.org>
56224
56225         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
56226         (func_import): Use join on two temporary files instead of three nested
56227         loops, in order to determine which files are new or old.
56228
56229 2005-09-18  Bruno Haible  <bruno@clisp.org>
56230
56231         * gnulib-tool (func_import): Comment out code that spits out the
56232         new files with --dry-run.
56233
56234 2005-09-18  Bruno Haible  <bruno@clisp.org>
56235
56236         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
56237
56238 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
56239
56240         * lib/stat-time.h: New file.
56241         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
56242         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
56243         in a different way.
56244         (timespec_cmp): New function.
56245         * lib/utimecmp.c: Include stat-time.h.
56246         (SYSCALL_RESOLUTION): Depend on whether various struct stat
56247         members exist, not on the obsolescent ST_MTIM_NSEC.
56248         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
56249
56250 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
56251
56252         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
56253
56254 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
56255
56256         * MODULES.html.sh (File system functions): Add stat-time.
56257         * modules/stat-time: New file.
56258         * modules/timespec (Files): Remove m4/st_mtim.m4; this
56259         is now done in a different way, by the stat-time module.
56260         * modules/utimecmp (Depends-on): Add stat-time.
56261
56262 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
56263
56264         * m4/st_mtim.m4: Remove.  Superseded by...
56265         * m4/stat-time.m4: New file.
56266         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
56267         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
56268
56269 2005-09-15  Derek Price  <derek@ximbiot.com>
56270
56271         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
56272
56273 2005-09-15  Derek Price  <derek@ximbiot.com>
56274
56275         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
56276         * lib/regex_internal.c: Ditto, using this...
56277         (__GNUC_PREREQ): ...new macro.
56278         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
56279         using...
56280         (__GNUC_PREREQ): ...this new macro.
56281
56282         * lib/strstr.h: Include string.h. Define strstr as a macro here.
56283
56284 2005-09-15  Derek Price  <derek@ximbiot.com>
56285             Paul Eggert  <eggert@cs.ucla.edu>
56286
56287         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
56288         changes, consolidating in...
56289         * lib/regex_internal.h: ...this file.
56290
56291 2005-09-13  Jim Meyering  <jim@meyering.net>
56292
56293         * lib/canon-host.c: Filter through gnu indent and reword comments
56294         slightly.
56295         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
56296
56297 2005-09-13  Derek Price  <derek@ximbiot.com>
56298
56299         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
56300         failure.
56301         Reported by Jim Meyering  <jim@meyering.net>.
56302
56303 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
56304
56305         * lib/base64.c: Typo.
56306         (base64_encode): Put b64str in initialized data section.
56307
56308 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
56309
56310         Merge glibc and coreutils changes into gnulib, plus a few
56311         extra fixes.
56312         * lib/md5.c: Use #error rather than a string.
56313         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
56314         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
56315         (__attribute__): Define to empty for non recent-GCC.
56316         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
56317         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
56318         Renamed from their non-__ counterparts, with new macros replacing
56319         them if not _LIBC.  Add __THROW attribute.
56320         (rol): Remove.
56321         (struct md5_ctx): Align buffer if using GCC.
56322         * lib/sha1.h (struct sha1_ctx): Likewise.
56323         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
56324         The old name was backwards.
56325         (NOTSWAP): Remove; not used.
56326         (rol): New macro, moved here from md5.h.
56327         (sha1_process_block): Remove a FIXME that doesn't make sense.
56328
56329 2005-09-12  Derek Price  <derek@ximbiot.com>
56330
56331         Return usable errors from canon-host.
56332         * lib/canon-host.h: New file.
56333         * lib/canon-host.c (canon_host): Wrap...
56334         (canon_host_r): ...this new function, which now relies exclusively on
56335         getaddrinfo.
56336         (ch_strerror): New function.
56337         (last_cherror): New global.
56338         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
56339         interface.
56340         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
56341         void *.
56342         (freeaddrinfo): Free ai->ai_canonname when set.
56343
56344 2005-09-12  Derek Price  <derek@ximbiot.com>
56345
56346         Make canon-host require getaddrinfo.
56347         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
56348         AC_LIBSOURCE canon-host.h.  Call...
56349         (gl_PREREQ_CANON_HOST): ...this new function, which requires
56350         gl_GETADDRINFO.
56351         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
56352
56353 2005-09-12  Derek Price  <derek@ximbiot.com>
56354
56355         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
56356         LGPL.
56357         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
56358
56359 2005-09-12  Derek Price  <derek@ximbiot.com>
56360
56361         * lib/gai_strerror.c: Include config.h when available.  Include
56362         getaddrinfo.h before other headers to test interface.
56363         Reported by Larry Jones <lawrence.jones@ugs.com>.
56364
56365 2005-09-12  Derek Price  <derek@ximbiot.com>
56366             Paul Eggert  <eggert@cs.ucla.edu>
56367
56368         * modules/glob (Files): Add glob-libc.h.
56369
56370 2005-09-12  Derek Price  <derek@ximbiot.com>
56371             Paul Eggert  <eggert@cs.ucla.edu>
56372
56373         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
56374         glob_.h, glob-libc.h.
56375         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
56376
56377 2005-09-12  Derek Price  <derek@ximbiot.com>
56378             Paul Eggert  <eggert@cs.ucla.edu>
56379
56380         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
56381         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
56382         protecting things that should be done only in gnulib contexts.
56383         * lib/glob_.h: New file, containing only the glob things needed for
56384         gnulib.
56385         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
56386         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
56387         (glob, globfree, glob_pattern_p): Now defined simply in terms of
56388         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
56389         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
56390         and to respect the namespace rules better.
56391
56392 2005-09-08  Simon Josefsson  <jas@extundo.com>
56393
56394         * modules/socklen: New file.
56395
56396 2005-09-08  Simon Josefsson  <jas@extundo.com>
56397
56398         * m4/socklen.m4: New file.
56399
56400 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
56401
56402         * modules/utimens (Files): Add m4/utimbuf.m4, since
56403         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
56404         Reported by Sergey Poznyakoff.
56405
56406 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
56407
56408         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
56409         definitions, since that's the preferred style in glibc.
56410         Fix a minor spacing issue, and update copyright notice to match
56411         glibc's.
56412
56413 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
56414
56415         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
56416
56417 2005-09-06  Simon Josefsson  <jas@extundo.com>
56418
56419         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
56420         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
56421
56422 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
56423
56424         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
56425         warning.
56426
56427 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
56428
56429         * config/srclist.txt: Add glibc bug 1302.
56430
56431 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
56432
56433         Change bitset word type from unsigned int to unsigned long int,
56434         as this has better performance on typical 64-bit hosts.
56435         Port bitset code to hosts with unusual word sizes.
56436         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
56437         (build_collating_symbol):
56438         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
56439         argument is a bitset.  This is merely a style issue, but it makes
56440         it clearer that an entire array is expected.
56441         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
56442         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
56443         Port to the case where bitset_word is not the same as unsigned int.
56444         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
56445         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
56446         Likewise.
56447         * lib/regexec.c (check_dst_limits_calc_pos_1,
56448         check_subexp_matching_top):
56449         (build_trtable, group_nodes_into_DFAstates):
56450         Likewise.
56451         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
56452         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
56453         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
56454         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
56455         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
56456         * lib/regcomp.c (optimize_subexps, lower_subexp):
56457         Work even if bitset_word has holes in its bitwise representation.
56458         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
56459         * lib/regexec.c (check_dst_limits_calc_pos_1,
56460         check_subexp_matching_top):
56461         Likewise.
56462         * lib/regex_internal.c (re_string_reconstruct):
56463         Don't assume UCHAR_MAX == 255.
56464         * lib/regex_internal.h (bitset_set_all): Likewise.
56465         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
56466         All uses changed.
56467         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
56468         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
56469         All uses changed.
56470         (BITSET_WORD_MAX): New macro.
56471         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
56472         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
56473         (bitset_empty, bitset_copy):
56474         Prefer sizeof (bitset) to multiplying it out ourselves.
56475         (bitset_not_merge): Remove; unused.
56476         (bitset_contain): Return bool, not unsigned int with one bit on.
56477         All callers changed.
56478         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
56479         alignment than re_node_set; do this by defining a new internal
56480         type struct dests_alloc and using it to allocate memory.
56481
56482 2005-09-05  Bruno Haible  <bruno@clisp.org>
56483
56484         * gnulib-tool (func_import): Fix comparison in handling of symbolic
56485         links.
56486
56487 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
56488
56489         * modules/size_max (Makefile.am): Add size_max.h
56490
56491 2005-09-04  Derek Price  <derek@ximbiot.com>
56492
56493         * gnulib-tool (func_import): Fix reversed $symbolic logic.
56494
56495 2005-09-03  Simon Josefsson  <jas@extundo.com>
56496
56497         * gnulib-tool: Fix typo.
56498
56499 2005-09-03  Simon Josefsson  <jas@extundo.com>
56500
56501         * config/srclist.txt: Add glibc bug 1293.
56502
56503 2005-09-03  Derek Price  <derek@ximbiot.com>
56504
56505         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
56506         From Larry Jones <lawrence.jones@ugs.com>.
56507
56508 2005-09-02  Simon Josefsson  <jas@extundo.com>
56509
56510         * modules/socklen: New file.
56511
56512 2005-09-02  Simon Josefsson  <jas@extundo.com>
56513
56514         * modules/havelib: New module.
56515
56516         * modules/gettext, modules/iconv, modules/lock, modules/readline:
56517         Use havelib.
56518
56519 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
56520
56521         Check for arithmetic overflow when calculating sizes, to prevent
56522         some buffer-overflow issues.  These patches are conservative, in the
56523         sense that when I couldn't determine whether an overflow was possible,
56524         I inserted a run-time check.
56525         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
56526         macros.
56527         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
56528         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
56529         (re_xnrealloc, re_x2nrealloc): New inline functions.
56530         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
56531         parse_bracket_exp):
56532         (build_equiv_class, build_charclass): Check for arithmetic overflow
56533         in size expression calculations.
56534         * lib/regex_internal.c (re_string_realloc_buffers):
56535         (build_wcs_upper_buffer, re_node_set_add_intersect):
56536         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
56537         (re_dfa_add_node, register_state): Likewise.
56538         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
56539         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
56540         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
56541         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
56542
56543 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
56544
56545         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
56546         m4/ulonglong.m4.  Problem reported by Martin Lambers.
56547
56548 2005-09-02  Bruno Haible  <bruno@clisp.org>
56549
56550         Support for lib vs. lib64 distinction on biarch platforms.
56551         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
56552         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
56553         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
56554
56555 2005-09-02  Bruno Haible  <bruno@clisp.org>
56556
56557         * gnulib-tool (import): In the other first-use case, provide defaults
56558         as well.
56559
56560 2005-09-02  Bruno Haible  <bruno@clisp.org>
56561
56562         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
56563         patches not yet found in the latest gettext release.
56564
56565 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
56566
56567         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
56568         to avoid a collision with bits/local_lim.h in glibc.
56569         All uses changed.  Problem reported by Dmitry V. Levin in
56570         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
56571
56572         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
56573         bugs in int versus size_t comparisons.
56574         (re_string_context_at): Fix bug where the code assumed that
56575         Idx is signed.
56576
56577         Use bool where appropriate.
56578         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
56579         All callers changed.
56580         (calc_eclosure_iter): Likewise, for ROOT arg.
56581         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
56582         (build_charclass_op): Likewise, for NON_MATCH arg.
56583         * lib/regex_internal.c (re_string_allocate, re_string_construct):
56584         (re_string_construct_common): Likewise, for ICASE arg.
56585         * lib/regexec.c (re_search_2_stub, re_search_stub):
56586         Likewise, for RET_LEN arg.
56587         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
56588         (set_regs): Likewise, for FL_BACKTRACK arg.
56589         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
56590         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
56591         (calc_eclosure_iter, parse_bracket_exp):
56592         Use bool for internal variables that are booleans.
56593         * lib/regexec.c (re_search_internal, check_matching,
56594         proceed_next_node):
56595         (set_regs, build_sifted_states, sift_states_bkref):
56596         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
56597         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
56598         (find_collation_sequence_value):
56599         Likewise.
56600         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
56601         (re_node_set_compare):
56602         Return bool, not int. All callers changed.
56603         * lib/regexec.c (check_halt_node_context, check_dst_limits):
56604         (build_trtable, check_node_accept): Likewise.
56605         * lib/regex_internal.h: Include stdbool.h.
56606
56607         Fix bugs uncovered when converting to bool.
56608         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
56609         failure instead of charging ahead blindly.
56610         * lib/regex_internal.c (register_state): Likewise.
56611         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
56612         for freeing internal storage.
56613         (group_nodes_into_DFA_states): Use unsigned int, not int, for
56614         bitset pieces used as boolean, to avoid undefined behavior
56615         on hosts that do int overflow checking.
56616
56617 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
56618
56619         * config/srclist.txt: Add glibc bugs 1285-1287.
56620
56621 2005-09-01  Jim Meyering  <jim@meyering.net>
56622
56623         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
56624         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
56625         Require gl_STAT_MACROS, too.
56626
56627 2005-09-01  Bruno Haible  <bruno@clisp.org>
56628
56629         * gnulib-tool (import): In the first-use case, provide defaults.
56630
56631 2005-09-01  Bruno Haible  <bruno@clisp.org>
56632
56633         * gnulib-tool (func_import): Remove the .tmp files.
56634
56635 2005-09-01  Bruno Haible  <bruno@clisp.org>
56636
56637         * gnulib-tool (func_import): Fix handling of symbolic links.
56638
56639 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
56640
56641         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
56642         old glibc regex code mishandles strings longer than 2**31 bytes.
56643         This patch fixes this when the regex code is used in gnulib
56644         (i.e., outside glibc).
56645
56646         This patch should not affect the use of the regex code inside
56647         glibc.  No doubt this problem also needs to be handled for glibc
56648         as well, but the result will be an incompatible change to the
56649         glibc ABI, and the old ABI will have to be supported too.  That
56650         can be the the subject for another patch.
56651
56652         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
56653         governing whether the rest of this patch is active.  By default,
56654         the macro is disabled and the patch has no effect.
56655         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
56656         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
56657         (struct re_pattern_buffer, re_search, re_search_2, re_match):
56658         (re_match_2, re_set_registers): Use the new types.
56659         * lib/regex_internal.h (Idx, re_hashval_t): New types.
56660         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
56661         New macros.
56662         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
56663         (re_string_context_at, bin_tree_t, re_dfastate_t):
56664         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
56665         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
56666         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
56667         (re_string_char_size_at, re_string_wchar_at):
56668         (re_string_elem_size_at):
56669         Use the new types and macros to port to 64-bit hosts.
56670         Use unsigned types for internal values, so that the code
56671         mostly works even for arrays larger than SSIZE_MAX.
56672         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
56673         (search_duplicated_node, calc_eclosure_iter, fetch_number):
56674         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
56675         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
56676         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
56677         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
56678         (calc_inveclosure, parse_dup_op, build_range_exp):
56679         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
56680         (fetch_number, create_token_tree, mark_opt_subexp):
56681         Likewise.
56682         * lib/regex_internal.c (re_string_construct_common,
56683         create_ci_newstate):
56684         (create_cd_newstate, re_string_allocate, re_string_construct):
56685         (re_string_realloc_buffers, build_wcs_upper_buffer):
56686         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
56687         (re_string_reconstruct, re_string_peek_byte_case):
56688         (re_string_fetch_byte_case, re_string_context_at):
56689         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
56690         (re_node_set_init_copy, re_node_set_add_intersect):
56691         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
56692         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
56693         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
56694         (re_acquire_state, re_acquire_state_context, register_state):
56695         Likewise.
56696         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
56697         search_cur_bkref_entry):
56698         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
56699         (re_search_internal, re_search_2_stub, re_search_stub)
56700         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
56701         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
56702         (update_cur_sifted_state, check_dst_limits):
56703         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
56704         (check_subexp_limits, sift_states_bkref, merge_state_array):
56705         (check_subexp_matching_top, get_subexp, get_subexp_sub):
56706         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
56707         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
56708         (expand_bkref_cache, check_node_accept_bytes):
56709         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
56710         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
56711         (acquire_init_state_context, check_halt_node_context):
56712         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
56713         (sift_states_backward, clean_state_log_if_needed):
56714         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
56715         (find_recover_state, transit_state_sb, transit_state_mb):
56716         (transit_state_bkref, build_trtable, match_ctx_clean):
56717         Likewise.
56718         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
56719         to work around an assumption that REG_MISSING is negative.
56720
56721         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
56722         (seek_collating_symbol_entry) [defined _LIBC]:
56723         (lookup_collation_sequence_value) [defined _LIBC]:
56724         (build_range_exp, build_collating_symbol) [defined _LIBC]:
56725         Use prototypes rather than old-style function definitions.
56726         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
56727         (transit_state_sb) [0]:
56728         (find_collation_sequence_value) [defined _LIBC]: Likewise.
56729
56730         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
56731         rm_eo.
56732
56733         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
56734         (optimize_subexps, lower_subexp):
56735         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
56736         since the signed shift might overflow.  Use 1u<<31 instead.
56737         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
56738         Likewise.
56739         * lib/regexec.c (check_dst_limits_calc_pos_1,
56740         check_subexp_matching_top): Likewise.
56741
56742         * lib/regcomp.c (optimize_subexps, lower_subexp):
56743         Use CHAR_BIT rather than 8, for clarity.
56744         * lib/regexec.c (check_dst_limits_calc_pos_1):
56745         (check_subexp_matching_top): Likewise.
56746         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
56747         have to worry about portability issues when shifting it left.
56748         Remove no-longer-needed test for table_size > 0.
56749         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
56750         in a word, as the resulting behavior is undefined.
56751         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
56752         in one case, a <= should have been an <, and in another case the
56753         whole test was missing.
56754         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
56755         the standard name CHAR_BIT.
56756         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
56757         this is not true on one's complement and signed-magnitude hosts.
56758
56759         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
56760         next_last_offset.
56761         (struct re_dfa_t): Remove unused member states_alloc.
56762         * lib/regcomp.c (init_dfa): Don't initialize unused members.
56763
56764 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
56765
56766         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
56767         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
56768         and large-file glibc and in 32-bit large-file Solaris.
56769
56770 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
56771
56772         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
56773         lengths fit in regoff_t; this isn't true if regoff_t is the same
56774         width as size_t.
56775         * lib/regex.c (re_search_internal): 5th arg is LAST_START
56776         (= START + RANGE) instead of RANGE.  This avoids overflow
56777         problems when regoff_t is the same width as size_t.
56778         All callers changed.
56779         (re_search_2_stub): Check for overflow when adding the
56780         sizes of the two strings.
56781         (re_search_stub): Check for overflow when adding START
56782         to RANGE; if it occurs, substitute the extreme value.
56783
56784 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
56785
56786         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
56787
56788 2005-08-31  Jim Meyering  <jim@meyering.net>
56789
56790         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
56791         a pointer-to-const.
56792         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
56793         (register_state): Likewise.
56794         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
56795         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
56796         (group_nodes_into_DFAstates): Likewise.
56797
56798 2005-08-31  Jim Meyering  <jim@meyering.net>
56799
56800         * check-module: Add a FIXME comment.
56801
56802 2005-08-31  Eric Blake  <ebb9@byu.net>
56803
56804         * modules/unistd-safer (Files): Add unistd--.h.
56805         * modules/stdio-safer (Files): Add stdio--.h.
56806
56807 2005-08-31  Derek Price  <derek@ximbiot.com>
56808
56809         * lib/getdelim.c (getdelim): Return EOF on EOF.
56810         Reported by Larry Jones <lawrence.jones@ugs.com>.
56811
56812 2005-08-31  Bruno Haible  <bruno@clisp.org>
56813
56814         Avoid unnecessary diffs in the generated lib/Makefile.am.
56815         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
56816         the generated files.
56817         (func_import): Don't set cmd.
56818
56819 2005-08-31  Bruno Haible  <bruno@clisp.org>
56820
56821         * lib/strstr.c: Include <stddef.h>, for NULL.
56822         * lib/strcasestr.c: Likewise.
56823         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
56824
56825 2005-08-31  Bruno Haible  <bruno@clisp.org>
56826
56827         * gnulib-tool: New option --macro-prefix.
56828         (func_import): Use macro_prefix.
56829         (import): Handle option --macro-prefix.
56830
56831 2005-08-31  Bruno Haible  <bruno@clisp.org>
56832
56833         * gnulib-tool (import): Rename most ac_* variables to cached_*.
56834         Also use new variables cached_lgpl, cached_libtool.
56835
56836 2005-08-31  Bruno Haible  <bruno@clisp.org>
56837
56838         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
56839         always instantiating them.
56840
56841 2005-08-31  Bruno Haible  <bruno@clisp.org>
56842
56843         * gnulib-tool (func_import): Read the previous cached settings
56844         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
56845         earlier added by gnulib but are now dropped. Warn when a gnulib file
56846         overwrites a non-gnulib file.
56847
56848 2005-08-31  Bruno Haible  <bruno@clisp.org>
56849
56850         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
56851         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
56852         projects that don't keep autogenerated files in CVS. Put into
56853         actioncmd only the specified modules, not the transitive closure.
56854
56855 2005-08-31  Bruno Haible  <bruno@clisp.org>
56856
56857         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
56858         Create directories that shall be filled.
56859         (import): Don't look for gl_* macros in configure.ac. Recurse across
56860         all directories containing a gnulib-cache.m4 files, if meaningful.
56861
56862 2005-08-31  Bruno Haible  <bruno@clisp.org>
56863
56864         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
56865         (import): Set seen_libtool when we see gl_LIBTOOL.
56866
56867 2005-08-31  Bruno Haible  <bruno@clisp.org>
56868
56869         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
56870         declaration macro definitions from generated gnulib.m4.
56871
56872 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
56873
56874         * lib/iconvme.h: Add prototype for iconv_alloc.
56875
56876 2005-08-29  Simon Josefsson  <jas@extundo.com>
56877
56878         * lib/iconvme.c: Fix errno.
56879
56880 2005-08-29  Bruno Haible  <bruno@clisp.org>
56881
56882         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
56883         that it works when the directory contains spaces.
56884
56885 2005-08-29  Bruno Haible  <bruno@clisp.org>
56886
56887         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
56888
56889 2005-08-29  Bruno Haible  <bruno@clisp.org>
56890
56891         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
56892         Emit more advice.
56893
56894 2005-08-29  Bruno Haible  <bruno@clisp.org>
56895         and Stepan Kasal  <kasal@ucw.cz>
56896
56897         * check-module: If more parameters are given, check each of them
56898         separately; add more exceptions, as noted by Jim Meyering.
56899         (check_module): New procedure.
56900         (%exempt_header): Now contains all exceptions.
56901
56902 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
56903
56904         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
56905
56906 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
56907
56908         * lib/iconvme.c: Split iconv_string into iconv_alloc.
56909
56910 2005-08-28  Bruno Haible  <bruno@clisp.org>
56911
56912         * m4/gnulib-tool.m4: New file.
56913
56914 2005-08-27  Jim Meyering  <jim@meyering.net>
56915
56916         * modules/unistd-safer (Files): Add pipe-safer.c.
56917         * modules/fcntl-safer (Files): Add creat-safer.c.
56918
56919 2005-08-27  Jim Meyering  <jim@meyering.net>
56920
56921         * m4/stdlib-safer.m4: New file.  From coreutils.
56922         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
56923         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
56924         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
56925         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
56926         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
56927
56928 2005-08-27  Jim Meyering  <jim@meyering.net>
56929
56930         * lib/fopen-safer.c: Merge minor changes from coreutils.
56931         * lib/dup-safer.c: Likewise.
56932         * lib/fd-safer.c: Likewise.
56933
56934         Merge from coreutils.
56935         * lib/stdio--.h: New file.
56936         * lib/stdlib--.h: New file.
56937         * lib/mkstemp-safer.c: New file.
56938
56939         GNU tar needs these.
56940         * lib/pipe-safer.c: New file.
56941         * lib/creat-safer.c: New file.
56942         * lib/fcntl--.h (creat): Define to creat_safer.
56943         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
56944         * lib/unistd--.h (pipe): Define to pipe_safer.
56945         * lib/unistd-safer.h: Declare pipe_safer.
56946
56947 2005-08-26  Simon Josefsson  <jas@extundo.com>
56948
56949         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
56950         Haible <bruno@clisp.org>.
56951
56952 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
56953
56954         * lib/regex_internal.h: Remove all references to
56955         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
56956         or better.
56957         (bitset_not, bitset_merge, bitset_not_merge):
56958         (bitset_mask, re_string_allocate, re_string_construct):
56959         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
56960         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
56961         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
56962         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
56963         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
56964         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
56965         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
56966         (re_acquire_state_context):
56967         Remove unnecessary forward decls.
56968         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
56969         Put __attribute at function definition,
56970         now that the function decl has been removed.
56971         * lib/regex_internal.c (re_string_peek_byte_case):
56972         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
56973         Likewise.
56974
56975 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
56976
56977         * m4/regex.m4: Add AC_PREREQ(2.50).
56978         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
56979
56980 2005-08-25  Simon Josefsson  <jas@extundo.com>
56981
56982         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
56983         __fsetlocking.
56984
56985 2005-08-25  Simon Josefsson  <jas@extundo.com>
56986
56987         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
56988         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
56989         GLIBC specific code.
56990
56991 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
56992
56993         Make regex safe for g++.  This fixes one real bug (an "err"
56994         that should have been "*err").  g++ problem reported by
56995         Sam Steingold.
56996         * lib/regex_internal.h (re_calloc): New macro, consistent with
56997         re_malloc etc.  All callers of calloc changed to use re_calloc.
56998         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
56999         not int.  All callers changed.
57000         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
57001         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
57002         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
57003         (find_recover_state): Change "err" to "*err"; this fixes what
57004         appears to be a real bug.
57005         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
57006         versus int.
57007
57008 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
57009
57010         * modules/regex (Depends-on): Add malloc, since the code
57011         assumes that !malloc(0) means failure.
57012
57013 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
57014
57015         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
57016
57017         alloca modernization/simplification for regex.
57018         * lib/regex.c: Remove portability cruft for alloca.  This no longer
57019         needs to be at the start of the file, and can be moved into
57020         regex_internal.h and simplified.
57021         * lib/regex_internal.h: Include <alloca.h>.
57022         (__libc_use_alloca) [!defined _LIBC]: New macro.
57023         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
57024         now works outside glibc.
57025
57026 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
57027
57028         * config/srclist.txt: Add glibc bugs 1241, 1245.
57029
57030 2005-08-25  Jim Meyering  <jim@meyering.net>
57031
57032         * lib/open-safer.c: Include <config.h>.
57033         Otherwise, we'd lose LARGEFILE support in any file using
57034         e.g. "fcntl--.h"
57035
57036 2005-08-25  Bruno Haible  <bruno@clisp.org>
57037
57038         * m4/minmax.m4: Require autoconf 2.52.
57039         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
57040         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
57041         alternatives of translit over the alphabet.
57042         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
57043
57044 2005-08-24  Simon Josefsson  <jas@extundo.com>
57045
57046         * tests/test-getpass.c: New file.
57047
57048 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
57049
57050         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
57051         for GNU regex features.
57052
57053 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
57054
57055         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
57056         * lib/regex.h (regerror): Likewise.
57057
57058         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
57059         requires this.  (The code never needed it.)
57060
57061         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
57062         All uses of recently-renamed identifiers changed to use the new,
57063         POSIX-compliant names.  The code will build and run just fine
57064         without these changes, but it's better to eat our own dog food
57065         and use the standard-conforming names.
57066
57067         * lib/regex.h: Fix a multitude of POSIX name space violations.
57068         These changes have an effect only for programs that define
57069         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
57070         do not change anything for programs compiled in the normal way.
57071         Also, there is no effect on the ABI.
57072
57073         (_REGEX_SOURCE): New macro.
57074         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
57075         defined and _GNU_SOURCE is not; this fixes a name space violation.
57076
57077         Rename the following macros to obey POSIX requirements.
57078         The old names are still visible as macros if _REGEX_SOURCE is defined.
57079         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
57080         RE_BACKSLASH_ESCAPE_IN_LISTS.
57081         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
57082         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
57083         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
57084         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
57085         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
57086         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
57087         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
57088         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
57089         (REG_INTERVALS): renamed from RE_INTERVALS.
57090         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
57091         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
57092         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
57093         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
57094         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
57095         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
57096         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
57097         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
57098         RE_UNMATCHED_RIGHT_PAREN_ORD.
57099         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
57100         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
57101         (REG_DEBUG): renamed from RE_DEBUG.
57102         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
57103         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
57104         unusual, since we can't clash with the POSIX REG_ICASE.
57105         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
57106         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
57107         (REG_NO_SUB): renamed from RE_NO_SUB.
57108         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
57109         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
57110         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
57111         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
57112         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
57113         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
57114         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
57115         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
57116         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
57117         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
57118         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
57119         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
57120         RE_SYNTAX_POSIX_MINIMAL_BASIC.
57121         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
57122         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
57123         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
57124         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
57125         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
57126         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
57127         (REG_FIXED): Renamed from REGS_FIXED.
57128         (REG_NREGS): Renamed from RE_NREGS.
57129
57130         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
57131         of other REG_* macros, since POSIX says the user is allowed to
57132         #undef these macros selectively.
57133
57134         (reg_errcode_t): Update comment stating what other tables need
57135         to be consistent.
57136
57137         Rename the following enum values to obey POSIX requirements.
57138         The old names are still visible as macros.
57139         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
57140         is not defined, since GNU is supposed to be a superset of POSIX as
57141         much as possible, and since we want reg_errcode_t to be a signed
57142         type for implementation consistency.
57143         (_REG_NOERROR): Renamed from REG_NOERROR.
57144         (_REG_NOMATCH): Renamed from REG_NOMATCH.
57145         (_REG_BADPAT): Renamed from REG_BADPAT.
57146         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
57147         (_REG_ECTYPE): Renamed from REG_ECTYPE.
57148         (_REG_EESCAPE): Renamed from REG_EESCAPE.
57149         (_REG_ESUBREG): Renamed from REG_ESUBREG.
57150         (_REG_EBRACK): Renamed from REG_EBRACK.
57151         (_REG_EPAREN): Renamed from REG_EPAREN.
57152         (_REG_EBRACE): Renamed from REG_EBRACE.
57153         (_REG_BADBR): Renamed from REG_BADBR.
57154         (_REG_ERANGE): Renamed from REG_ERANGE.
57155         (_REG_ESPACE): Renamed from REG_ESPACE.
57156         (_REG_BADRPT): Renamed from REG_BADRPT.
57157         (_REG_EEND): Renamed from REG_EEND.
57158         (_REG_ESIZE): Renamed from REG_ESIZE.
57159         (_REG_ERPAREN): Renamed from REG_ERPAREN.
57160         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
57161         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
57162         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
57163         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
57164
57165         (_REG_RE_NAME, _REG_RM_NAME): New macros.
57166         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
57167         changed.  But support the old name if the new one is not defined
57168         and if _REGEX_SOURCE.
57169
57170         Change the following member names in struct re_pattern_buffer.
57171         The old names are still supported if !_REGEX_SOURCE.
57172         The new names are always supported, regardless of _REGEX_SOURCE.
57173         (re_buffer): Renamed from buffer.
57174         (re_allocated): Renamed from allocated.
57175         (re_used): Renamed from used.
57176         (re_syntax): Renamed from syntax.
57177         (re_fastmap): Renamed from fastmap.
57178         (re_translate): Renamed from translate.
57179         (re_can_be_null): Renamed from can_be_null.
57180         (re_regs_allocated): Renamed from regs_allocated.
57181         (re_fastmap_accurate): Renamed from fastmap_accurate.
57182         (re_no_sub): Renamed from no_sub.
57183         (re_not_bol): Renamed from not_bol.
57184         (re_not_eol): Renamed from not_eol.
57185         (re_newline_anchor): Renamed from newline_anchor.
57186
57187         Change the following member names in struct re_registers.
57188         The old names are still supported if !_REGEX_SOURCE.
57189         The new names are always supported, regardless of _REGEX_SOURCE.
57190         (rm_num_regs): Renamed from num_regs.
57191         (rm_start): Renamed from start.
57192         (rm_end): Renamed from end.
57193
57194         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
57195         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
57196         Prepend __ to parameter names.
57197
57198         Undo yesterday's changes.
57199
57200 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
57201
57202         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
57203         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
57204         lib/regex.c.
57205
57206 2005-08-24  Jim Meyering  <jim@meyering.net>
57207
57208         Sync from coreutils.
57209         * m4/fcntl-safer.m4: New file.
57210
57211         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
57212         and object files for this module.
57213
57214 2005-08-24  Jim Meyering  <jim@meyering.net>
57215
57216         Sync from coreutils.
57217         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
57218
57219 2005-08-24  Jim Meyering  <jim@meyering.net>
57220
57221         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
57222         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
57223
57224 2005-08-24  Jim Meyering  <jim@meyering.net>
57225
57226         * modules/fcntl-safer: New module.
57227         * modules/fts (Depends-on): Add fcntl-safer.
57228         * MODULES.html.sh (File descriptor based Input/Output):
57229         Add fcntl-safer.
57230
57231 2005-08-24  Bruno Haible  <bruno@clisp.org>
57232
57233         Support for unit test modules.
57234         * modules/README: Mention tests modules.
57235         * modules/TEMPLATE-TESTS: New file.
57236         * gnulib-tool: New options --extract-tests-module, --with-tests and
57237         --tests-base (unused for the moment).
57238         (testsbase, inctests): New variables.
57239         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
57240         (func_verify_module): Exclude TEMPLATE-TESTS.
57241         (func_verify_nontests_module, func_verify_tests_module): New functions.
57242         (func_get_dependencies): Add implicit dependency for tests modules.
57243         (func_get_tests_module): New function.
57244         (func_modules_transitive_closure): When --with-tests was specified,
57245         include the unit tests as well, unless explicitly avoided.
57246         (func_emit_lib_Makefile_am): Ignore the tests modules here.
57247         (func_emit_tests_Makefile_am): New function.
57248         (func_create_testdir): When --with-tests was specified, emit a
57249         tests/ directory.
57250         * MODULES.html.sh (Future developments): Update.
57251
57252 2005-08-24  Bruno Haible  <bruno@clisp.org>
57253
57254         * modules/tls-tests: New file.
57255         * tests/test-tls.c: New file, from GNU gettext.
57256
57257 2005-08-24  Bruno Haible  <bruno@clisp.org>
57258
57259         * modules/lock-tests: New file.
57260         * tests/test-lock.c: New file, from GNU gettext.
57261
57262 2005-08-24  Bruno Haible  <bruno@clisp.org>
57263
57264         * lib/lock.h: Add multiple inclusion guard.
57265         * lib/tls.h: Add multiple inclusion guard.
57266
57267 2005-08-24  Bruno Haible  <bruno@clisp.org>
57268
57269         * gnulib-tool: Add support for the --aux-dir option to
57270         --create-testdir, --create-megatestdir, --test, --megatest.
57271         (func_create_testdir, func_create_megatestdir): Optionally emit a
57272         AC_CONFIG_AUX_DIR directive.
57273         (create-testdir, create-megatestdir, test, megatest): Provide a
57274         default value for $auxdir.
57275
57276 2005-08-24  Bruno Haible  <bruno@clisp.org>
57277
57278         * gnulib-tool (import): Use compound statement instead of subshell
57279         where possible.
57280
57281 2005-08-24  Bruno Haible  <bruno@clisp.org>
57282
57283         * gnulib-tool (import): Change --aux-dir default to "build-aux".
57284
57285 2005-08-24  Bruno Haible  <bruno@clisp.org>
57286
57287         * gnulib-tool (func_version): Update.
57288
57289 2005-08-24  Bruno Haible  <bruno@clisp.org>
57290
57291         * gnulib-tool (func_import, func_create_testdir,
57292         func_create_megatestdir): Quote all autoconf macro arguments.
57293
57294 2005-08-24  Bruno Haible  <bruno@clisp.org>
57295
57296         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
57297         option --force, because --force causes the aclocal.m4 of each
57298         subdirectory to be newer than the corresponding config.h.in.
57299
57300 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
57301
57302         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
57303         All contents moved to gl_REGEX.
57304         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
57305         assume that it does.
57306
57307 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
57308
57309         * lib/regex.h (REG_NOSYS)
57310         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
57311         Define, since POSIX requires it as of 2001.
57312         (_REG_ENOSYS)
57313         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
57314         New private symbol, used to keep the enum signed in all cases.
57315         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
57316         Youngman in
57317         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
57318
57319         * lib/regex_internal.c (re_string_skip_chars, register_state):
57320         (calc_state_hash):
57321         Remove forward decls; no longer needed now that we use prototypes.
57322         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
57323         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
57324         (clean_state_log_if_needed): Likewise.
57325
57326 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
57327
57328         * config/srclist.txt: Add glibc bugs 1231-1233.
57329
57330 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
57331
57332         Fix problems reported by Sam Steingold in
57333         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
57334         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
57335         assumed that reg_errcode_t is a signed type, which is not
57336         necessarily true if _XOPEN_SOURCE is not defined.
57337         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
57338         since some compilers warn about it otherwise.
57339
57340 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
57341
57342         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
57343         (init_word_char, create_initial_state, duplicate_node_closure):
57344         (fetch_token, peek_token_bracket, build_range_exp):
57345         (build_collating_symbol): Remove forward decls; no longer needed
57346         now that we use prototypes.
57347
57348         * lib/regcomp.c:
57349         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
57350         (re_compile_fastmap_iter, regcomp, regerror, regfree):
57351         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
57352         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
57353         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
57354         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
57355         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
57356         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
57357         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
57358         (build_range_exp, build_collating_symbol, parse_bracket_exp):
57359         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
57360         (build_charclass, build_charclass_op, fetch_number, create_tree):
57361         (create_token_tree, mark_opt_subexp, duplicate_tree):
57362         Use prototypes rather than old-style definitions.
57363
57364         * lib/regex_internal.c:
57365         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
57366         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
57367         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
57368         (re_string_reconstruct, re_string_peek_byte_case):
57369         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
57370         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
57371         (re_node_set_init_copy, re_node_set_add_intersect):
57372         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
57373         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
57374         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
57375         (re_acquire_state, re_acquire_state_context, register_state):
57376         (create_ci_newstate, create_cd_newstate, free_state):
57377         Likewise.
57378         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
57379         re_search_2):
57380         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
57381         (re_search_internal, prune_impossible_nodes):
57382         (acquire_init_state_context, check_matching, static):
57383         (check_halt_node_context, check_halt_state_context, proceed_next_node):
57384         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
57385         (update_regs, sift_states_backward, build_sifted_states):
57386         (clean_state_log_if_needed, merge_state_array):
57387         (update_cur_sifted_state, add_epsilon_src_nodes):
57388         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
57389         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
57390         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
57391         (find_recover_state, check_subexp_matching_top, transit_state_mb):
57392         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
57393         (check_arrival, check_arrival_add_next_nodes):
57394         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
57395         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
57396         (check_node_accept_bytes, check_node_accept, extend_buffers):
57397         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
57398         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
57399         (sift_ctx_init):
57400         Likewise.
57401
57402         * lib/regex_internal.h:
57403         (re_string_allocate, re_string_construct, re_string_reconstruct):
57404         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
57405         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
57406         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
57407         (re_string_context_at, re_string_peek_byte_case):
57408         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
57409         is defined, since we now use prototypes always.
57410
57411         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
57412         C89 or better.  All uses removed.
57413
57414 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
57415
57416         * config/srclist.txt: Add glibc bugs 1220-1227.
57417
57418 2005-08-20  Jim Meyering  <jim@meyering.net>
57419
57420         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
57421         of unused local, dfa.
57422
57423 2005-08-20  Bruno Haible  <bruno@clisp.org>
57424
57425         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
57426
57427 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
57428
57429         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
57430         (re_node_set_insert_last, re_dfa_add_node):
57431         Rename local variables to avoid GCC shadowing warnings.
57432
57433 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
57434
57435         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
57436         [defined lint]: Suppress bogus uninitialized-variable warnings.
57437
57438         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
57439         and let the caller return REG_ESPACE if out of space.  This
57440         removes an uninitialied-variable warning with GCC 4.0.1, and also
57441         avoids taking the address of a local variable.  All callers
57442         changed.
57443
57444 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
57445
57446         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
57447         $LIBCSRC/posix/regexec.c.
57448         Add glibc bug 1217 for regcomp.c.
57449
57450 2005-08-19  Jim Meyering  <jim@meyering.net>
57451
57452         * lib/regexec.c (proceed_next_node): Redo local variables to
57453         avoid GCC shadowing warnings.
57454
57455 2005-08-18  Bruno Haible  <bruno@clisp.org>
57456
57457         * lib/strstr.c (strstr): Fix return value in multibyte case.
57458         * lib/strcasestr.c (strcasestr): Likewise.
57459
57460 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
57461
57462         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
57463
57464 2005-08-17  Jim Meyering  <jim@meyering.net>
57465
57466         Make the %s format (seconds since the epoch) work for a negative
57467         number and when used with a zero-padded field width, e.g. %015s.
57468
57469         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
57470         label so that it precedes the code to set `digits'.  Otherwise,
57471         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
57472         print `00-22'.  Now, it prints `-0022', as it should.
57473
57474 2005-08-17  Bruno Haible  <bruno@clisp.org>
57475
57476         * modules/strstr (Files): Add m4/mbrtowc.m4.
57477         (Depends-on): Add mbuiter.
57478
57479 2005-08-17  Bruno Haible  <bruno@clisp.org>
57480
57481         * modules/strcasestr: New file.
57482         * MODULES.html.sh (String handling, based on ANSI C 89): Add
57483         strcasestr.
57484
57485 2005-08-17  Bruno Haible  <bruno@clisp.org>
57486
57487         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
57488
57489 2005-08-17  Bruno Haible  <bruno@clisp.org>
57490
57491         * modules/mbuiter: New file.
57492         * MODULES.html.sh (Extended multibyte and wide character utilities):
57493         Add mbuiter.
57494
57495 2005-08-17  Bruno Haible  <bruno@clisp.org>
57496
57497         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
57498         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
57499
57500 2005-08-17  Bruno Haible  <bruno@clisp.org>
57501
57502         * m4/strcasestr.m4: New file.
57503
57504 2005-08-17  Bruno Haible  <bruno@clisp.org>
57505
57506         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
57507         * lib/strstr.c: Completely rewritten, with multibyte locale support.
57508
57509 2005-08-17  Bruno Haible  <bruno@clisp.org>
57510
57511         * lib/strcasestr.h: New file.
57512         * lib/strcasestr.c: New file.
57513
57514 2005-08-17  Bruno Haible  <bruno@clisp.org>
57515
57516         * lib/strcasecmp.c: Use mbuiter.h.
57517
57518 2005-08-17  Bruno Haible  <bruno@clisp.org>
57519
57520         * lib/mbuiter.h: New file.
57521
57522 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
57523
57524         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
57525         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
57526         and gl_GETOPT are both invoked via different paths (as happens
57527         with GNU tar CVS because it uses both argp and getopt), the former
57528         wins.
57529
57530 2005-08-16  Bruno Haible  <bruno@clisp.org>
57531
57532         * modules/tls: New file.
57533         * MODULES.html.sh (Multithreading): Add tls.
57534
57535 2005-08-16  Bruno Haible  <bruno@clisp.org>
57536
57537         * modules/strnlen1: New file.
57538         * MODULES.html.sh (String handling): Add strnlen1.
57539
57540 2005-08-16  Bruno Haible  <bruno@clisp.org>
57541
57542         * modules/strcase (Files): Add m4/mbrtowc.m4.
57543         (Depends-on): Add strnlen1, mbchar.
57544
57545 2005-08-16  Bruno Haible  <bruno@clisp.org>
57546
57547         * modules/mbiter: New file.
57548         * MODULES.html.sh (Extended multibyte and wide character utilities):
57549         Add mbiter.
57550
57551 2005-08-16  Bruno Haible  <bruno@clisp.org>
57552
57553         * modules/mbfile: New file.
57554         * MODULES.html.sh (Extended multibyte and wide character utilities):
57555         Add mbfile.
57556
57557 2005-08-16  Bruno Haible  <bruno@clisp.org>
57558
57559         * modules/mbchar: New file.
57560         * MODULES.html.sh (Extended multibyte and wide character utilities):
57561         New section.
57562
57563 2005-08-16  Bruno Haible  <bruno@clisp.org>
57564
57565         * m4/tls.m4: New file, from GNU gettext.
57566
57567 2005-08-16  Bruno Haible  <bruno@clisp.org>
57568
57569         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
57570         always.
57571         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
57572
57573 2005-08-16  Bruno Haible  <bruno@clisp.org>
57574
57575         * m4/mbiter.m4: New file.
57576
57577 2005-08-16  Bruno Haible  <bruno@clisp.org>
57578
57579         * m4/mbfile.m4: New file.
57580
57581 2005-08-16  Bruno Haible  <bruno@clisp.org>
57582
57583         * m4/mbchar.m4: New file.
57584
57585 2005-08-16  Bruno Haible  <bruno@clisp.org>
57586
57587         * lib/tls.h: New file, from GNU gettext.
57588         * lib/tls.c: New file, from GNU gettext.
57589
57590 2005-08-16  Bruno Haible  <bruno@clisp.org>
57591
57592         * lib/strnlen1.h: New file.
57593         * lib/strnlen1.c: New file.
57594
57595 2005-08-16  Bruno Haible  <bruno@clisp.org>
57596
57597         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
57598         (mbi_init): Update.
57599         (mbi_avail, mbi_advance): Let the iteration end before the terminating
57600         NUL byte, not after it.
57601
57602 2005-08-16  Bruno Haible  <bruno@clisp.org>
57603
57604         * lib/strcase.h (strcasecmp): Add note in comments.
57605         * lib/strncasecmp.c: Use code from strcasecmp.c.
57606         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
57607         (strcasecmp): Work correctly in multibyte locales.
57608
57609 2005-08-16  Bruno Haible  <bruno@clisp.org>
57610
57611         * lib/mbiter.h: New file.
57612
57613 2005-08-16  Bruno Haible  <bruno@clisp.org>
57614
57615         * lib/mbfile.h: New file.
57616
57617 2005-08-16  Bruno Haible  <bruno@clisp.org>
57618
57619         * lib/mbchar.h: New file.
57620         * lib/mbchar.c: New file.
57621
57622 2005-08-16  Bruno Haible  <bruno@clisp.org>
57623
57624         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
57625         the valid ones. Makes the comparison operations transitive:
57626         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
57627         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
57628
57629 2005-08-15  Simon Josefsson  <jas@extundo.com>
57630
57631         * modules/ssize_t (License): Change to 'unlimited'.
57632
57633         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
57634
57635 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
57636
57637         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
57638         Add comments for each pending glibc patch.
57639
57640 2005-08-15  Bruno Haible  <bruno@clisp.org>
57641
57642         * lib/regex.h (__restrict_arr): Don't define to __restrict if
57643         __cplusplus is defined.
57644
57645 2005-08-14  Jim Meyering  <jim@meyering.net>
57646
57647         Sync from coreutils.
57648
57649         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
57650         Use the hash-table-based cycle-detection code not just when
57651         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
57652         Reported by James Youngman in
57653         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
57654         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
57655         FTS_TIGHT_CYCLE_CHECK.
57656         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
57657         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
57658         once again.
57659         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
57660         * lib/fts.c (fd_safer): Remove decl.
57661         Include fcntl--.h rather than unistd-safer.h
57662         (fts_safe_changedir): Don't call fd_safer; no longer needed
57663         now that we include fcntl--.h.
57664
57665 2005-08-12  Simon Josefsson  <jas@extundo.com>
57666
57667         * modules/getndelim2: Use ssize_t module.
57668         * modules/getnline: Likewise.
57669         * modules/safe-read: Likewise.
57670         * modules/xreadlink: Likewise.
57671
57672         * modules/ssize_t: New file.
57673
57674 2005-08-12  Simon Josefsson  <jas@extundo.com>
57675
57676         * m4/readline.m4: Look for termcap, curses or ncurses if required.
57677
57678 2005-08-12  Simon Josefsson  <jas@extundo.com>
57679
57680         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
57681         ssize_t.
57682
57683 2005-08-12  Simon Josefsson  <jas@extundo.com>
57684
57685         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
57686         readline, getdelim and check_version.
57687         (Support for systems lacking ISO C 99: Sizes of integer types):
57688         Add size_max.
57689
57690 2005-08-12  Bruno Haible  <bruno@clisp.org>
57691
57692         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
57693
57694 2005-08-11  Simon Josefsson  <jas@extundo.com>
57695
57696         * modules/readline: New file.
57697
57698         * modules/strnlen (Files): Add strnlen.h.
57699
57700 2005-08-11  Simon Josefsson  <jas@extundo.com>
57701
57702         * m4/readline.m4: New file.
57703
57704 2005-08-11  Simon Josefsson  <jas@extundo.com>
57705
57706         * lib/readline.h, readline.c: New file.
57707
57708 2005-08-11  Simon Josefsson  <jas@extundo.com>
57709
57710         * doc/gnulib.texi (Initial import, Finishing touches): Mention
57711         gl_AVOID.
57712
57713 2005-08-11  Bruno Haible  <bruno@clisp.org>
57714
57715         * lib/strnlen.h (strnlen): Change parameter name to match comment.
57716
57717 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
57718
57719         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
57720
57721 2005-08-10  Simon Josefsson  <jas@extundo.com>
57722
57723         * tests/test-iconvme.c: New file.
57724
57725 2005-08-10  Simon Josefsson  <jas@extundo.com>
57726
57727         * m4/strnlen.m4: New file.
57728
57729         * m4/strndup.m4: Don't check for strnlen declaration, done in
57730         strnlen.m4.
57731
57732 2005-08-10  Simon Josefsson  <jas@extundo.com>
57733
57734         * lib/strndup.c: Use strnlen.h.
57735
57736         * lib/strnlen.h: New file.
57737
57738 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
57739
57740         * README: Typos.
57741
57742 2005-08-02  Simon Josefsson  <jas@extundo.com>
57743
57744         * modules/readline: New file.
57745
57746 2005-08-02  Simon Josefsson  <jas@extundo.com>
57747
57748         * modules/getdelim: New file.
57749
57750         * modules/getline: Rewrite, don't use getndelim2.
57751
57752 2005-08-02  Simon Josefsson  <jas@extundo.com>
57753
57754         * m4/getline.m4: Separate out getdelim stuff into separate module.
57755
57756         * m4/getdelim.m4: New file.
57757
57758 2005-08-02  Simon Josefsson  <jas@extundo.com>
57759
57760         * lib/getline.h, getline.c: Rewrite.
57761
57762         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
57763
57764 2005-07-31  Bruno Haible  <bruno@clisp.org>
57765
57766         * lib/lock.h (gl_lock_initializer): New macro.
57767         (gl_lock_define_initialized): Use it.
57768         (gl_rwlock_initializer): New macro.
57769         (gl_rwlock_define_initialized): Use it.
57770         (gl_recursive_lock_initializer): New macro.
57771         (gl_recursive_lock_define_initialized): Use it.
57772
57773 2005-07-30  Karl Berry  <karl@gnu.org>
57774
57775         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
57776         Report from Ben Pfaff, regarding getopt.
57777
57778 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
57779
57780         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
57781         normal way.
57782         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
57783         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
57784         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
57785         (gl_GETOPT): Use the new macros.  Most of the implementation
57786         is moved to the new macros.  This is for programs like Emacs
57787         that don't want all the functionality of gl_GETOPT.
57788
57789 2005-07-26  Bruno Haible  <bruno@clisp.org>
57790
57791         * m4/lock.m4: Update from GNU gettext.
57792
57793 2005-07-26  Bruno Haible  <bruno@clisp.org>
57794
57795         * lib/lock.h: Update from GNU gettext.
57796         * lib/lock.c: Update from GNU gettext.
57797
57798 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
57799
57800         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
57801         obsolescent AC_TRY_RUN.  Include the default includes files, for
57802         'exit'.
57803
57804 2005-07-24  Bruno Haible  <bruno@clisp.org>
57805
57806         * modules/visibility: New file.
57807         * MODULES.html.sh (Misc): Add visibility.
57808
57809 2005-07-24  Bruno Haible  <bruno@clisp.org>
57810
57811         * m4/visibility.m4: New file.
57812
57813 2005-07-24  Bruno Haible  <bruno@clisp.org>
57814
57815         * doc/visibility.texi: New file.
57816
57817 2005-07-22  Bruno Haible  <bruno@clisp.org>
57818
57819         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
57820         $(ALLOCA_H), redundant through BUILT_SOURCES.
57821         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
57822         redundant through BUILT_SOURCES.
57823         * modules/byteswap (Makefile.am): Remove explicit dependency on
57824         $(BYTESWAP_H), redundant through BUILT_SOURCES.
57825         * modules/fnmatch (Makefile.am): Remove explicit dependency on
57826         $(FNMATCH_H), redundant through BUILT_SOURCES.
57827         * modules/getopt (Makefile.am): Remove explicit dependency on
57828         $(GETOPT_H), redundant through BUILT_SOURCES.
57829         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
57830         redundant through BUILT_SOURCES.
57831         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
57832         redundant through BUILT_SOURCES.
57833         * modules/stdbool (Makefile.am): Remove explicit dependency on
57834         $(STDBOOL_H), redundant through BUILT_SOURCES.
57835         * modules/stdint (Makefile.am): Remove explicit dependency on
57836         $(STDINT_H), redundant through BUILT_SOURCES.
57837         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
57838         Remove explicit dependency on $(SYSEXITS_H).
57839         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
57840
57841 2005-07-18  Simon Josefsson  <jas@extundo.com>
57842
57843         * lib/check-version.c (check_version): Accept identical versions too.
57844
57845 2005-07-18  Bruno Haible  <bruno@clisp.org>
57846
57847         * modules/lock: New file.
57848         * MODULES.html.sh (Multithreading): New section.
57849
57850 2005-07-18  Bruno Haible  <bruno@clisp.org>
57851
57852         * m4/lock.m4: New file, from GNU gettext.
57853
57854 2005-07-18  Bruno Haible  <bruno@clisp.org>
57855
57856         * lib/lock.h: New file, from GNU gettext.
57857         * lib/lock.c: New file, from GNU gettext.
57858
57859 2005-07-18  Bruno Haible  <bruno@clisp.org>
57860
57861         * lib/lock.h (gl_once_t): New type.
57862         (gl_once_define, gl_once): New macros.
57863         * lib/lock.c (fresh_once): New variable.
57864         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
57865         functions.
57866
57867 2005-07-16  Simon Josefsson  <jas@extundo.com>
57868
57869         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
57870         workaround, suggested by Bruno.
57871
57872 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
57873
57874         * modules/xalloc (Depends-on): Add xalloc-die.
57875         * modules/xvasprintf (Depends-on): Add xalloc-die.
57876
57877 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
57878
57879         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
57880         with a minor change.
57881
57882 2005-07-15  Bruno Haible  <bruno@clisp.org>
57883
57884         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
57885         When using lib/poll.c, define poll as rpl_poll.
57886
57887 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
57888
57889         * modules/argp (Depends-on): Remove unlocked-io.
57890
57891 2005-07-14  Derek Price  <derek@ximbiot.com>
57892
57893         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
57894         for glob symlink bug.
57895
57896 2005-07-14  Bruno Haible  <bruno@clisp.org>
57897
57898         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
57899         Instead, test for *_unlocked function declarations directly.
57900
57901 2005-07-11  Simon Josefsson  <jas@extundo.com>
57902
57903         * modules/size_max: New file.
57904
57905         * modules/xsize: Depend on size_max module for size_max.m4.
57906
57907 2005-07-11  Simon Josefsson  <jas@extundo.com>
57908
57909         * lib/size_max.h: New file.
57910
57911 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
57912
57913         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
57914         copyright symbol and the year.
57915         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
57916         (version_etc_va): Use parameterized copyright notice.
57917         Reword to conform to the current GNU coding standards.
57918
57919 2005-07-11  Karl Berry  <karl@gnu.org>
57920
57921         * doc/gnulib.texi (Quoting): new node.
57922         (Initial import): more info, from Patrice.
57923
57924 2005-07-11  Bruno Haible  <bruno@clisp.org>
57925
57926         * gnulib-tool (func_usage): Document option --avoid.
57927         (Command line options): Handle --avoid.
57928         (func_acceptable): New function.
57929         (func_modules_transitive_closure): Use it.
57930
57931 2005-07-11  Bruno Haible  <bruno@clisp.org>
57932
57933         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
57934         Reported by Jim Meyering.
57935
57936 2005-07-10  Bruno Haible  <bruno@clisp.org>
57937
57938         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
57939         Needed when size_t is smaller than 'unsigned int'.
57940         Reported by Paul Eggert.
57941
57942 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
57943
57944         * modules/argp (Depends-on): Add unlocked-io
57945
57946 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
57947
57948         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
57949         block of defines.
57950
57951 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
57952
57953         * config/srclist.txt: Comment out regcomp.c, since we have a porting
57954         fix now.
57955
57956 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
57957         and Paul Eggert  <eggert@cs.ucla.edu>
57958
57959         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
57960         in wint_t, not wchar_t.  Remove now-unnecessary cast.
57961
57962 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
57963
57964         * modules/regex (Files): Add lib/regex_internal.c,
57965         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
57966         (Depends-on): Add extensions.
57967         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
57968
57969 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
57970
57971         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
57972         pathconf.
57973         * m4/same.m4 (gl_SAME): Likewise.
57974         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
57975
57976         * m4/regex.m4: Adjust to new libc regex implementation.
57977         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
57978         all the .c and .h parts of (the new) regex.
57979         Quote the m4 stuff better.
57980         Check for RE_ICASE bug of old gnulib.
57981         Check for REG_STARTEND of recent libc.
57982         Rename local variables from jm_* to gl_*.
57983         Quote operand of "test -f".
57984         Say "recent enough" version of libc, not "version 2".
57985         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
57986         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
57987         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
57988         Remove check for btowc, isascii.
57989         Require AM_LANGINFO_CODESET.
57990
57991 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
57992
57993         * lib/regex.c, regex.h: Sync from libc.
57994         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
57995         * lib/regexec.c:
57996         New files, synced from libc, except that regex_internal.h
57997         currently has a small porting fix.
57998
57999 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
58000
58001         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
58002         regex_internal.c, regexec.c.
58003         Add regex_internal.h too, but as a comment, since the libc version
58004         is currently broken in gnulib mode.
58005
58006 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
58007
58008         Support programs like Emacs that use gnulib but not gettext.
58009         * MODULES.html.sh (Internationalization functions): Add gettext-h.
58010         * modules/gettext-h: New file.
58011         * modules/gettext (Files): Remove lib/gettext.h.
58012         (Depends-on): Add gettext-h.
58013         (Makefile.am): Remove lib_SOURCES.
58014         * modules/argmatch, modules/c-stack, modules/closeout:
58015         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
58016         * modules/execute, modules/file-type, modules/getaddrinfo:
58017         * modules/getopt, modules/human, modules/javacomp:
58018         * modules/javaexec, modules/mkdir-p, modules/obstack:
58019         * modules/openat, modules/pagealign_alloc, modules/pipe:
58020         * modules/quotearg, modules/regex, modules/rpmatch:
58021         * modules/unicodeio, modules/userspec, modules/version-etc:
58022         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
58023         * modules/xsetenv:
58024         Depend on gettext-h, not gettext.
58025
58026 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
58027
58028         * gnulib-tool (func_import): Add support for 'public domain' license.
58029         * modules/alloca, modules/atexit, modules/memmove:
58030         Now public domain, not GPL.
58031         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
58032         * modules/realloc, modules/strerror, modules/strtod:
58033         Now LGPL, not GPL.
58034
58035 2005-07-05  Bruno Haible  <bruno@clisp.org>
58036
58037         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
58038         autoconf CVS. Needed for mingw.
58039
58040 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
58041
58042         Remove the dependency of the strftime module on the tzset module.
58043         * modules/strftime (Depends-on): Remove dependency on tzset.
58044
58045 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
58046
58047         Remove the dependency of the strftime module on the tzset module.
58048         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
58049         gl_FUNC_TZSET_CLOBBER.
58050
58051 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
58052
58053         Remove the dependency of the strftime module on the tzset module.
58054         * lib/strftime.c (my_strftime)
58055         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
58056         Copy the input structure, to work around some of the bug with
58057         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
58058         Solaris releases, you should also use the tzset module, but we won't
58059         require it as a dependency any more since we don't want LGPLed code
58060         to depend on GPLed code.
58061
58062 2005-07-02  Jim Meyering  <jim@meyering.net>
58063
58064         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
58065         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
58066         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
58067         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
58068
58069 2005-07-02  Jim Meyering  <jim@meyering.net>
58070
58071         * lib/backupfile.c (backup_args): Change a `0' to NULL.
58072
58073 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
58074
58075         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
58076         declares only 'struct timespec;' (!).
58077
58078 2005-07-01  Jim Meyering  <jim@meyering.net>
58079
58080         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
58081         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
58082         * lib/save-cwd.c, tempname.c:
58083         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
58084         and don't include <sys/file.h>).
58085
58086 2005-06-29  Jim Meyering  <jim@meyering.net>
58087
58088         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
58089         type name.  Use the variable name instead.
58090         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
58091         Likewise.
58092
58093 2005-06-28  Simon Josefsson  <jas@extundo.com>
58094
58095         * modules/check-version (Files): Add check-version.m4.
58096
58097 2005-06-28  Simon Josefsson  <jas@extundo.com>
58098
58099         * m4/check-version.m4: New file, suggested by Jim Meyering
58100         <jim@meyering.net>.
58101
58102 2005-06-28  Simon Josefsson  <jas@extundo.com>
58103
58104         * lib/check-version.h, lib/check-version.c: New files.
58105
58106 2005-06-28  Simon Josefsson  <jas@extundo.com>
58107
58108         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
58109         collision with global variable.  Better indentation.  Don't
58110         increment buffer pointer beyond buffer end.  Based on comments
58111         from Paul Eggert <eggert@cs.ucla.edu>.
58112
58113         * lib/base64.h: Indent.
58114
58115 2005-06-28  Simon Josefsson  <jas@extundo.com>
58116
58117         * doc/gnulib.texi (Library version handling): New section.
58118
58119 2005-06-28  Jim Meyering  <jim@meyering.net>
58120
58121         * check-module (find_included_lib_files): Hard-code another
58122         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
58123         but modules/fts-lgpl (correctly) does not list those files.
58124
58125         * modules/canonicalize (Files): Add lib/pathmax.h.
58126
58127 2005-06-25  Simon Josefsson  <jas@extundo.com>
58128
58129         * modules/check-version: New file.
58130
58131 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
58132
58133         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
58134         initializer of struct addrinfo, as an indication that we don't
58135         care how many members the structure has.
58136
58137 2005-06-24  Derek Price  <derek@ximbiot.com>
58138         and Bruno Haible  <bruno@clisp.org>
58139
58140         Remove stat module & update lstat.
58141         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
58142         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
58143         * m4/stat.m4: Remove this file.
58144
58145 2005-06-24  Derek Price  <derek@ximbiot.com>
58146         and Bruno Haible  <bruno@clisp.org>
58147
58148         Remove stat module & update lstat.
58149         * lib/stat.c: Remove this file...
58150         (slash_aware_lstat): ...moving this content and its support...
58151         * lib/lstat.c (rpl_lstat): ...into here.
58152         * lib/lstat.h: New file.
58153
58154 2005-06-24  Derek Price  <derek@ximbiot.com>
58155         and Bruno Haible  <bruno@clisp.org>
58156
58157         Remove stat module & update lstat.
58158         * config/srclist.txt (libc sources): Remove stat.
58159
58160 2005-06-24  Derek Price  <derek@ximbiot.com>
58161         and Bruno Haible  <bruno@clisp.org>
58162
58163         Remove stat module & update lstat.
58164         * MODULES.html.sh (stat): Remove.
58165         * MODULES.html: Regenerated.
58166         * modules/lstat (Description): Correct function name.
58167         (Files): Add "lstat.h".
58168         (Depends-on): Remove stat, add xalloc, stat-macros.
58169         * modules/stat: Remove this file.
58170         (Include): Add "lstat.h", remove <sys/stat.h>.
58171
58172 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
58173
58174         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
58175         (ranged_convert): Don't save conversion in a temporary struct.
58176         This causes a warning with GCC 4.0.0, and anyway in the typical
58177         case it's not worth the extra 100 bytes or so of code.
58178         (ranged_convert, __mktime_internal): When calling a function via a
58179         pointer P, use P () rather than (*P) (), as we now assume C89 or
58180         better.
58181
58182 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
58183
58184         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
58185         "who -r" failed to give output.  Problem reported by Tim Waugh.
58186
58187         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
58188         (xcalloc): Use it to avoid needless tests.
58189         Problem reported by Jim Meyering.
58190
58191 2005-06-20  Derek Price  <derek@ximbiot.com>
58192
58193         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
58194         unnecessary for Autoconfs > 2.59c.
58195
58196 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
58197
58198         * lib/argp.h (__option_is_short): Check upper limit of
58199         __key. Isprint() requires its argument to have the value
58200         of an unsigned char or EOF.
58201
58202 2005-06-16  Jim Meyering  <jim@meyering.net>
58203
58204         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
58205         when either N or S is zero.
58206
58207 2005-06-16  Derek Price  <derek@ximbiot.com>
58208
58209         * m4/bison.m4: Declare YACC & YFLAGS precious.
58210
58211 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
58212
58213         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
58214         multibyte string or pattern, fall back on unibyte matching.
58215         Problem reported by James Youngman.
58216
58217 2005-06-08  Bruno Haible  <bruno@clisp.org>
58218
58219         * modules/csharpcomp: New file.
58220         * MODULES.html.sh (C#): Add csharpcomp.
58221
58222 2005-06-08  Bruno Haible  <bruno@clisp.org>
58223
58224         * m4/csharpcomp.m4: New file, from GNU gettext.
58225
58226 2005-06-08  Bruno Haible  <bruno@clisp.org>
58227
58228         * lib/csharpcomp.h: New file, from GNU gettext.
58229         * lib/csharpcomp.c: New file, from GNU gettext.
58230         * lib/csharpcomp.sh.in: New file, from GNU gettext.
58231
58232 2005-06-08  Bruno Haible  <bruno@clisp.org>
58233
58234         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
58235         warning on mingw.
58236
58237 2005-06-07  Derek Price  <derek@ximbiot.com>
58238
58239         Sync from CVS.
58240         * lib/glob_.h: Indent nested #ifdef.
58241
58242 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
58243
58244         Sync from coreutils.
58245         Use "file name" when talking about file names, instead of "filename"
58246         or "path", as per the GNU coding standards.
58247         * lib/mkdir-p.c: Renamed from makepath.c.
58248         (make_dir_parents): Renamed from make_path.  All callers changed.
58249         * lib/mkdir-p.h: Likewise.  All includers changed.
58250         * lib/filenamecat.c: Renamed from path-concat.c.
58251         (file_name_concat): Renamed from path_concat.  All callers changed.
58252         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
58253         * lib/filenamecat.h: Likewise.  All includers changed.
58254         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
58255         in comments or local variable names.
58256         * lib/basename.c: Likewise.
58257         * lib/canonicalize.c, canonicalize.h: Likewise.
58258         * lib/dirname.c, dirname.h: Likewise.
58259         * lib/euidaccess.c: Likewise.
58260         * lib/exclude.c: Likewise
58261         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
58262         * lib/fsusage.c, fsuage.h: Likewise.
58263         * lib/fts.c, fts_.h: Likewise.
58264         * lib/getcwd.c: Likewise.
58265         * lib/getloadavg.c: Likewise.
58266         * lib/mkstemp.c: Likewise.
58267         * lib/mountlist.c, mountlist.h: Likewise.
58268         * lib/openat.c, openat.h: Likewise.
58269         * lib/readlink-stub.c: Likewise.
58270         * lib/readutmp.c, readutmp.h: Likewise.
58271         * lib/rename.c: Likewise.
58272         * lib/rmdir.c: Likewise.
58273         * lib/same.c: Likewise.
58274         * lib/savedir.c: Likewise.
58275         * lib/stripslash.c: Likewise.
58276         * lib/tempname.c: Likewise.
58277         * lib/xreadlink.c: Likewise.
58278         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
58279         All uses changed.
58280         * lib/exclude.h: Likewise.
58281
58282         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
58283         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
58284         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
58285         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
58286         * lib/pathmax.h: Include <limits.h> unconditionally, since other
58287         files have been getting away with it for years (MORE/BSD 4.3
58288         is extinct now).
58289         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
58290         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
58291
58292         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
58293         Define to 256, not 255, as per modern POSIX.
58294
58295 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
58296
58297         Sync from coreutils.
58298         Use "file name" when talking about file names, instead of "filename"
58299         or "path", as per the GNU coding standards.
58300         * MODULES.html.sh: mkdir-p renamed from makepath.
58301         filenamecat renamed from path-concat.
58302         * modules/filenamecat: Renamed from modules/path-concat.
58303         (Files): filenamecat.h and filenamecat.c renamed from
58304         path-concat.h and path-concat.c.
58305         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
58306         (Include): filenamecat.h, not path-concat.h.
58307         * modules/mkdir-p: Renamed from modules/makepath.
58308         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
58309         makepath.c.
58310         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
58311         (Include): mkdir-p.h, not makepath.h.
58312
58313 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
58314
58315         Sync from coreutils.
58316         * m4/mkdir-p.m4: Renamed from makepath.m4.
58317         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
58318         Rename files from makepath.c to mkdir-p.c, and from
58319         makepath.h to mkdir-p.h.
58320         * m4/filenamecat.m4: Renamed from path-concat.m4.
58321         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
58322         Rename files from path-concat.c to filenamecat.c,
58323         and from path-concat.h to filenamecat.h.
58324         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
58325         "file name" in local variables or comments.
58326         * m4/rename.m4: Likewise.
58327
58328 2005-06-01  Bruno Haible  <bruno@clisp.org>
58329
58330         * modules/csharpexec: New file.
58331         * MODULES.html.sh (C#): New section.
58332
58333 2005-06-01  Bruno Haible  <bruno@clisp.org>
58334
58335         * m4/csharp.m4: New file, from GNU gettext.
58336         * m4/csharpexec.m4: New file, from GNU gettext.
58337
58338 2005-06-01  Bruno Haible  <bruno@clisp.org>
58339
58340         * lib/csharpexec.h: New file, from GNU gettext.
58341         * lib/csharpexec.c: New file, from GNU gettext.
58342         * lib/csharpexec.sh.in: New file, from GNU gettext.
58343
58344 2005-05-31  Derek Price  <derek@ximbiot.com>
58345             Paul Eggert  <eggert@cs.ucla.edu>
58346
58347         Sync from cvs.
58348         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
58349
58350 2005-05-31  Derek Price  <derek@ximbiot.com>
58351             Paul Eggert  <eggert@cs.ucla.edu>
58352
58353         Sync from cvs.
58354         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
58355
58356 2005-05-29  Derek Price  <derek@ximbiot.com>
58357
58358         * config/srclist.txt (glob_.h, glob.c): Add these files.
58359
58360 2005-05-29  Derek Price  <derek@ximbiot.com>
58361
58362         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
58363         * modules/glob: New file.
58364         * modules/getlogin_r: Add link to POSIX spec in description.
58365
58366 2005-05-29  Derek Price  <derek@ximbiot.com>
58367             Paul Eggert  <eggert@cs.ucla.edu>
58368
58369         * m4/glob.m4: New file.
58370
58371 2005-05-29  Derek Price  <derek@ximbiot.com>
58372             Paul Eggert  <eggert@cs.ucla.edu>
58373
58374         * lib/glob_.h, lib/glob.c: New files.
58375
58376 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
58377
58378         * modules/fts (Files): Remove m4/inttypes-pri.m4.
58379         * modules/fts-lgpl (Depends-on): Remove gettext.
58380
58381 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
58382
58383         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
58384         and don't require gt_INTTYPES_PRI.
58385
58386 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
58387
58388         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
58389
58390         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
58391         the configuration hassle isn't worth it.
58392         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
58393         (LONGEST_MODIFIER, PRIuMAX): Remove.
58394
58395 2005-05-27  Bruno Haible  <bruno@clisp.org>
58396
58397         * lib/getlogin_r.h: Remove second include of <stddef.h>.
58398
58399 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
58400
58401         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
58402         _POSIX_PTHREAD_SEMANTICS for Solaris.
58403
58404 2005-05-25  Derek Price  <derek@ximbiot.com>
58405
58406         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
58407
58408 2005-05-25  Derek Price  <derek@ximbiot.com>
58409             Paul Eggert  <eggert@cs.ucla.edu>
58410
58411         * modules/getlogin_r, m4/getlogin_r.m4: New files.
58412         * lib/getlogin_r.c, getlogin_r.h: New files.
58413
58414 2005-05-25  Bruno Haible  <bruno@clisp.org>
58415             Derek Price  <derek@ximbiot.com>
58416
58417         * lib/getlogin_r.h: Simplify API documentation.
58418
58419 2005-05-23  Derek Price  <derek@ximbiot.com>
58420
58421         * modules/minmax (Files): Add m4/minmax.m4.
58422         (configure.ac): Add gl_MINMAX.
58423
58424 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
58425
58426         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
58427         so that unistd-safer.h (GPL'ed code) need not be included.
58428
58429 2005-05-22  Bruno Haible  <bruno@clisp.org>
58430
58431         * m4/minmax.m4: New file.
58432         Based on a patch by Derek Price <derek@ximbiot.com>.
58433
58434 2005-05-22  Bruno Haible  <bruno@clisp.org>
58435
58436         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
58437         (INT64_MIN): Fix definition.
58438         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
58439
58440         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
58441         NEED_SIGNED_INT_TYPES.
58442
58443         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
58444         HAVE_SYSTEM_INTTYPES.
58445
58446 2005-05-22  Bruno Haible  <bruno@clisp.org>
58447
58448         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
58449         Also include <sys/param.h> if it defines MIN, MAX.
58450         Based on a patch by Derek Price <derek@ximbiot.com>.
58451
58452 2005-05-21  Jim Meyering  <jim@meyering.net>
58453
58454         * modules/fts (Files): Add m4/inttypes-pri.m4.
58455         (Depends-on): Add lstat and remove gettext.  Alphabetize.
58456
58457 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
58458
58459         New fts module.
58460         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
58461         (setup_dir, free_dir): New functions.
58462         (enter_dir, leave_dir): Define trivial
58463         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
58464         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
58465         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
58466         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
58467         Move to fts-cycle.c.
58468         (fts_open): Use setup_dir.
58469         (fts_close): Use free_dir.
58470         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
58471         This adds a label and some gotos, but the alternatives were messier.
58472         Check for memory allocation failure when entering a dir.
58473         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
58474         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
58475         (FTS): New member fts_cycle, that is a union that contains the
58476         old active_dir_ht and cycle_state.  All uses changed to mention
58477         fts_cycle.ht and fts_cycle.state.
58478         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
58479         fts.c, with the following changes:
58480         (setup_dir, free_dir): New functions.
58481         (enter_dir): Now returns bool.  Return true if successful, false
58482         if memory exhausted.  All callers changed.
58483         Do not bother partly cleaning up on
58484         memory allocation failure; that is free_dir's job.
58485         However, free ad if hash_insert fails, to avoid memory leak.
58486         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
58487         fts->fts_options to see which union member to use.
58488
58489 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
58490
58491         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
58492         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
58493
58494 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
58495
58496         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
58497
58498 2005-05-20  Jim Meyering  <jim@meyering.net>
58499
58500         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
58501         Now a macro, to pacify GCC.
58502
58503 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
58504
58505         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
58506         of -1.
58507
58508 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
58509
58510         * lib/chown.c (rpl_chown): Return -1 on failure.
58511
58512 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
58513
58514         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
58515         Don't check for stddef.h.
58516         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
58517         don't use its results.
58518         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
58519         since we include them unconditionally.  Don't require
58520         AM_STDBOOL_H, since stdbool is a prerequisite.
58521         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
58522         since we assume C89 or better.
58523         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
58524         as we don't use their results.
58525         Don't check for fchdir, memmove, memset, strrchr, as we use
58526         them unconditionally.
58527         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
58528         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
58529
58530 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
58531
58532         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
58533         Include <stddef.h> unconditionally, since we assume C89 now.
58534         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
58535         * lib/fts.c: Include fts_.h first, to check interface.
58536         Do not include intprops.h; no longer needed.
58537         Include cycle-check.h and hash.h, since fts_.h no longer does.
58538         Remove unnecessary casts of closedir to void.
58539         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
58540         decide whether to decrement nlinks.
58541         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
58542         (FTS): Use struct hash_table * instead of Hash_table, so that
58543         we no longer need to include hash.h here.
58544
58545 2005-05-18  Jim Meyering  <jim@meyering.net>
58546
58547         * modules/dirfd (License): Change to LGPL.  Most of the code
58548         is already in the public domain.
58549
58550 2005-05-18  Jim Meyering  <jim@meyering.net>
58551
58552         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
58553         Reported by Yoann Vandoorselaere.
58554
58555 2005-05-17  Jim Meyering  <jim@meyering.net>
58556
58557         * m4/fts.m4: New file, from coreutils.
58558
58559 2005-05-17  Jim Meyering  <jim@meyering.net>
58560
58561         * lib/fts.c, lib/fts_.h: New files, from coreutils.
58562
58563 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
58564
58565         Sync from coreutils.
58566         * m4/unlinkdir.m4: New file.
58567
58568 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
58569
58570         Sync from coreutils.
58571         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
58572         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
58573         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
58574         White space changes only.
58575         * lib/makepath.c (make_path): Port to hosts where leading "//" is
58576         special.
58577         * lib/yesno.c: Include getline.h, not ctype.h.
58578         (yesno): Don't remove leading white space; POSIX doesn't allow it.
58579         Use getline to remove arbitrary restriction on response length.
58580
58581 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
58582
58583         * config/srclist-update: Spell out "Street" in FSF postal
58584         mail address; this is the style the FSF seems to prefer.
58585
58586         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
58587         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
58588         this updates FSF postal mail address.
58589
58590         Sync from coreutils.
58591         * modules/unlinkdir: New file.
58592         * modules/yesno (Depends-on): Add getline.
58593         * MODULES.html.sh (File system functions): Add unlinkdir.
58594
58595 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
58596
58597         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
58598         lib/strsep.h:
58599         Change the initial comment to refer to GPL, not LGPL.
58600         gnulib-tool will change it to LGPL as needed.
58601
58602         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
58603         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
58604         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
58605         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
58606         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
58607         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
58608         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
58609         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
58610         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
58611         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
58612         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
58613         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
58614         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
58615         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
58616         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
58617         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
58618         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
58619         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
58620         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
58621         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
58622         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
58623         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
58624         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
58625         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
58626         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
58627         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
58628         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
58629         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
58630         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
58631         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
58632         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
58633         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
58634         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
58635         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
58636         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
58637         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
58638         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
58639         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
58640         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
58641         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
58642         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
58643         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
58644         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
58645         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
58646         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
58647         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
58648         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
58649         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
58650         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
58651         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
58652         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
58653         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
58654         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
58655         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
58656         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
58657         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
58658         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
58659         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
58660         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
58661         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
58662         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
58663         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
58664         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
58665         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
58666         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
58667         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
58668         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
58669         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
58670         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
58671         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
58672         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
58673         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
58674         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
58675         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
58676         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
58677         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
58678         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
58679         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
58680         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
58681         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
58682         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
58683         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
58684         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
58685         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
58686         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
58687         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
58688         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
58689         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
58690         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
58691         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
58692         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
58693         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
58694         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
58695         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
58696         lib/yesno.c, lib/yesno.h:
58697         Update FSF postal mail address.
58698
58699 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
58700
58701         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
58702         tests/test-memmem.c, tests/test-stpncpy.c:
58703         Update FSF postal mail address.
58704
58705 2005-05-13  Bruno Haible  <bruno@clisp.org>
58706
58707         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
58708         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
58709         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
58710         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
58711         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
58712         Add support for 64-bit integers in the MSVC compiler.
58713
58714 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
58715
58716         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
58717
58718 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
58719
58720         * gnulib-tool (func_import): Sort and uniquify recommended includes.
58721
58722 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
58723
58724         * doc/getdate.texi (General date syntax): Don't say that date
58725         date --iso-8601=ns generates acceptable dates; it doesn't yet.
58726         Problem reported by Nic Ferrier.
58727
58728 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
58729
58730         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
58731         specified in ai_socktype. Fix invalid ai_protocol
58732         check. ai_protocol is usually set to 0 or depending on
58733         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
58734         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
58735         ai_socktype / ai_protocol in the returned addrinfo structure.
58736
58737 2005-05-10  Simon Josefsson  <jas@extundo.com>
58738
58739         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
58740         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
58741
58742 2005-05-10  Karl Berry  <karl@gnu.org>
58743
58744         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
58745         (from http://www.gnu.org/licenses).
58746         * doc/COPYING.LIB: also rename to COPYING.LESSER.
58747         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
58748         fdl.texi suffices.
58749
58750 2005-05-10  Karl Berry  <karl@gnu.org>
58751
58752         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
58753         (COPYING.DOC): remove.
58754
58755         * config/srclist-update: new FSF address.
58756
58757 2005-05-10  Derek Price  <derek@ximbiot.com>
58758
58759         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
58760         possible.
58761
58762 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
58763             Bruno Haible  <bruno@clisp.org>
58764
58765         * modules/inet_ntop: New file.
58766         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
58767         inet_ntop.
58768
58769 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
58770             Bruno Haible  <bruno@clisp.org>
58771
58772         * m4/inet_ntop.m4: New file.
58773
58774 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
58775             Bruno Haible  <bruno@clisp.org>
58776
58777         * lib/inet_ntop.h: New file.
58778         * lib/inet_ntop.c: New file, from glibc with modifications.
58779
58780 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
58781
58782         * modules/time_r (License): Change to LGPL.
58783         * modules/extensions (License): Change to LGPL.  Actually,
58784         the license is more permissive than that, but currently gnulib-tool
58785         doesn't know how to handle more-permissive licenses.
58786
58787         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
58788         Problem reported by Dave Love.
58789
58790 2005-05-08  Jim Meyering  <jim@meyering.net>
58791
58792         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
58793         blank.
58794
58795 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
58796
58797         * modules/argmatch (Depends-on): Add stdbool.
58798         * modules/backupfile (Depends-on): Likewise.
58799         * modules/chdir-long (Depends-on): Likewise.
58800         * modules/closeout (Depends-on): Likewise.
58801         * modules/cycle-check (Depends-on): Likewise.
58802         * modules/dirname (Depends-on): Likewise.
58803         * modules/fnmatch (Depends-on): Likewise.
58804         * modules/fsusage (Depends-on): Likewise.
58805         * modules/fwriteerror (Depends-on): Likewise.
58806         * modules/getcwd (Depends-on): Likewise.
58807         * modules/getloadavg (Depends-on): Likewise.
58808         * modules/hard-locale (Depends-on): Likewise.
58809         * modules/makepath (Depends-on): Likewise.
58810         * modules/mountlist (Depends-on): Likewise.
58811         * modules/nanosleep (Depends-on): Likewise.
58812         * modules/posixtm (Depends-on): Likewise.
58813         * modules/quotearg (Depends-on): Likewise.
58814         * modules/readtokens (Depends-on): Likewise.
58815         * modules/readtokens0 (Depends-on): Likewise.
58816         * modules/readutmp (Depends-on): Likewise.
58817         * modules/save-cwd (Depends-on): Likewise.
58818         * modules/strftime (Depends-on): Likewise.
58819         * modules/userspec (Depends-on): Likewise.
58820         * modules/utimecmp (Depends-on): Likewise.
58821         * modules/xgetcwd (Depends-on): Likewise.
58822         * modules/xnanosleep (Depends-on): Likewise.
58823         * modules/xstrtod (Depends-on): Likewise.
58824         * modules/yesno (Depends-on): Likewise.
58825
58826 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
58827
58828         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
58829         needless checks.
58830
58831 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
58832
58833         Merge from coreutils.  Among other things,
58834         add bulletproofing for cases where stdin, stdout, or stderr are closed.
58835         * lib/fd-safer.c: New file.
58836         * lib/fcntl-safer.h, open-safer.c: Remove.
58837         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
58838         * lib/dup-safer.c: Include unistd-safer.h first.
58839         Don't include errno.h.
58840         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
58841         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
58842         * lib/file-type.c: Rely on file-type.h change.
58843         * lib/getloadavg.c: Include unistd-safer.h.
58844         (getloadavg): Use safer open.
58845         * lib/getusershell.c: Include "stdio-safer.h".
58846         (getusershell): Use safer fopen.
58847         * lib/long-options.c (long_options): Use NULL rather than 0.
58848         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
58849         'free'.
58850         * lib/modechange.c: Likewise.
58851         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
58852         (MODE_DONE): New constant.
58853         (struct mode_change): Remove 'next' member.
58854         (make_node_op_equals): New function; like the old one of the
58855         same name, except it allocates an array.
58856         (mode_compile, mode_create_from_ref): Use it.
58857         (mode_compile): Allocate result as an array, not a linked list.
58858         Parse octal string ourself, so that we catch mistakes like "+0".
58859         (mode_adjust): Arg is an array, not a linked list.
58860         * lib/modechange.c: Include stat-macros.h, xalloc.h.
58861         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
58862         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
58863         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
58864         Remove.  This is now stat-macros.h's job.
58865         (talloc): Remove.  All callers replaced by xalloc, so that
58866         our invokers don't have to worry about reporting memory failures.
58867         (make_node_op_equals): Remove.
58868         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
58869         New constants.
58870         (struct mode_change): Moved here from modechange.h.
58871         (mode_append_entry): Remove.
58872         (mode_compile): Remove MASKED_OPS arg, since it encouraged
58873         apps to have incorrect behavior.  Use simpler algorithm for head
58874         and tail.  Don't futz with umask; that's now the job of mode_adjust.
58875         Detect more invalid usages rather than having somewhat-random behavior.
58876         Don't insert an "a=" action, as that leads to incorrect behavior.
58877         (mode_compile, mode_create_from_ref): Return NULL on error instead
58878         of an enum, since now there's only one way to have an error.  All
58879         callers changed.
58880         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
58881         at the correct time.  Simplify calculation of "+u" and its ilk.
58882         Don't mishandle "+X".
58883         (mode_free): Remove "register" and localize decls.
58884         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
58885         (struct mode_change): Move to modechange.c; callers don't
58886         need to see this stuff.
58887         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
58888         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
58889         (mode_change, mode_adjust): Reflect the new signatures noted above.
58890         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
58891         that might redefine system include files.
58892         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
58893         (my_usleep): Use NULL rather than (void *) 0.
58894         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
58895         Use siginterrupt to specify that system calls should be interrupted.
58896         (rpl_nanosleep): Move initialization of suspended closer to call of
58897         my_usleep.
58898         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
58899         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
58900         (desirable_utmp_entry): New function.
58901         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
58902         using x2nrealloc, to simplify logic.
58903         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
58904         size calculation.  Do not assume utmp file is a regular file.
58905         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
58906         (READ_UTMP_CHECK_PIDS): New constant.
58907         * lib/save-cwd.c: Include unistd-safer.h.
58908         (save_cwd): Use fd_safer.
58909         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
58910         [!_LIBC] Include "stat-macros.h" instead.
58911         * lib/unistd-safer.h (fd_safer): New decl.
58912
58913 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
58914
58915         * modules/getloadavg (Depends-on): Add unistd-safer.
58916         * modules/getusershell (Depends-on): Add stdio-safer.
58917         * modules/lstat (Depends-on): Remove xalloc.
58918         * modules/mkstemp (Depends-on): Add stat-macros.
58919         * modules/modechange (Depends-on): Remove xstrtol.
58920         Add stat-macros, xalloc.
58921         * modules/save-cwd (Depends-on): Add unistd-safer.
58922         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
58923         * modules/unistd-safer (Files): Add lib/fd-safer.c
58924         (Makefile.am): Remove lib_SOURCES.
58925
58926         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
58927         Remove fcntl-safer; unistd-safer supersedes it.
58928
58929 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
58930
58931         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
58932         AC_HEADER_STAT.
58933         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
58934         (gl_PREREQ_CHOWN): Remove.
58935         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
58936         it.  Don't require AC_HEADER_STAT.
58937         (gl_PREREQ_LSTAT): Remove.
58938         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
58939         Don't require AC_HEADER_STAT.
58940         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
58941         (gl_PREREQ_RMDIR): Remove.
58942         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
58943         mention stat-macros.h or AC_HEADER_STAT, since we'll make
58944         the stat-macros module a prerequisite.
58945         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
58946         * m4/filemode.m4 (gl_FILEMODE): Likewise.
58947         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
58948         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
58949         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
58950         variable names.
58951         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
58952         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
58953         variable prefixes.
58954         * m4/fcntl-safer.m4: Remove.
58955         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
58956         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
58957         Invoke gl_PREREQ_FD_SAFER.
58958         (gl_PREREQ_FD_SAFER): New macro.
58959         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
58960         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
58961         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
58962         Remove duplicate call to AC_LIBOBJ(readutmp).
58963         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
58964
58965         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
58966         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
58967
58968 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
58969
58970         * MODULES.html.sh (Misc): Add byteswap.
58971
58972 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
58973
58974         * modules/getcwd (Depends-on): Add extensions.
58975         * modules/openat (Depends-on): Likewise.
58976
58977 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
58978
58979         * modules/byteswap: New file.
58980
58981 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
58982
58983         * m4/byteswap.m4: New file.
58984
58985 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
58986
58987         * lib/byteswap_.h: New file.
58988
58989 2005-04-25  Karl Berry  <karl@gnu.org>
58990
58991         * m4/gettext.m4: Update from GNU gettext 0.14.4.
58992
58993 2005-04-25  Albert Chin  <china@thewrittenword.com>
58994
58995         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
58996         Toolkit C bug.
58997
58998 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
58999
59000         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
59001         (func_ln_if_changed) Remove forcibly for no error message
59002         in case file does not exist.
59003
59004 2005-04-19  Simon Josefsson  <jas@extundo.com>
59005
59006         * gnulib-tool (Options): Make --symlink mean --symbolic.
59007
59008 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
59009
59010         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
59011
59012 2005-04-16  Simon Josefsson  <jas@extundo.com>
59013
59014         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
59015
59016 2005-04-15  Simon Josefsson  <jas@extundo.com>
59017
59018         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
59019
59020 2005-04-15  Simon Josefsson  <jas@extundo.com>
59021
59022         * gnulib-tool: Rename --symlink to --symbolic.
59023
59024 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
59025
59026         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
59027         symbolic links to files instead of copying/moving.  Add --aux-dir,
59028         specifying directory relative --dir where auxiliary build tools
59029         are placed.
59030
59031 2005-04-14  Bruno Haible  <bruno@clisp.org>
59032
59033         * modules/allocsa (License): Change to LGPL.
59034         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
59035
59036 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
59037
59038         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
59039         that "UTC +1 second" continues to work.  Problem reported
59040         by Dmitry V. Levin.
59041         (relunit_snumber): New rule.
59042         (relunit): Use it.
59043
59044 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
59045
59046         * lib/getdate.y (universal_time_zone_table): New constant.
59047         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
59048         universal_time_zone_table.
59049         (lookup_zone): Prefer universal_time_zone_table to
59050         local_time_zone_table, so that "GMT" time stamps are allowed in
59051         London during the summer.  Problem reported by Ian Abbott.
59052
59053 2005-04-12  Jim Meyering  <jim@meyering.net>
59054
59055         * lib/human.c (humblock): Set *options even when returning due to
59056         xstrtoumax conversion failure.  Thanks to a used-uninitialized
59057         warning from gcc-4.
59058
59059 2005-04-09  Jim Meyering  <jim@meyering.net>
59060
59061         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
59062         -Wuninitialized: initialize tm0.tm_year.
59063
59064 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
59065
59066         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
59067         count, since there's no maximum.  All uses changed.
59068         Add member dsts_seen.
59069         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
59070         not being INT_MAX.
59071         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
59072         Use pc_rels_seen to decide whther a date is absolute.
59073
59074         * lib/getdate.y (number): Don't overwrite year.
59075         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
59076         check.
59077
59078 2005-04-02  Simon Josefsson  <jas@extundo.com>
59079
59080         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
59081         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
59082
59083 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
59084
59085         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
59086         where no absolute path name can be longer than PATH_MAX.
59087
59088 2005-03-27  Jim Meyering  <jim@meyering.net>
59089
59090         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
59091
59092 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
59093
59094         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
59095         "one's complement" -> "ones' complement" in comment, as per Knuth.
59096         "value of type" -> "type or expression" in comment.
59097         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
59098
59099 2005-03-26  Jim Meyering  <jim@meyering.net>
59100
59101         Comment nits.
59102         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
59103         Correct typos: s/or/of/.
59104
59105 2005-03-26  Jim Meyering  <jim@meyering.net>
59106
59107         * modules/check-include-files: Move to ../ and rename to...
59108         * check-module: ...this.
59109
59110 2005-03-25  Jim Meyering  <jim@meyering.net>
59111
59112         * modules/xvasprintf (Files): Add xalloc.h.
59113
59114 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
59115
59116         * modules/gettext (Files): config/config.rpath ->
59117         build-aux/config.rpath
59118         * modules/iconv (Files): Likewise.
59119         Problem reported by Oskar Liljeblad.
59120
59121 2005-03-23  Jim Meyering  <jim@meyering.net>
59122
59123         * modules/check-include-files: New script to check for
59124         missing dependencies, multiple includes, etc.
59125
59126         * modules/c-strtold (Depends-on): Add xalloc.
59127         * modules/c-strtod (Depends-on): Add xalloc.
59128         * modules/hash (Depends-on): Add xalloc.
59129         (Files): Remove lib/xalloc.h.
59130
59131         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
59132         * modules/userspec (Files): Add lib/inttostr.h.
59133
59134 2005-03-23  Jim Meyering  <jim@meyering.net>
59135
59136         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
59137
59138 2005-03-22  Jim Meyering  <jim@meyering.net>
59139
59140         * modules/stat-macros: New module.
59141         * modules/canonicalize, modules/euidaccess, modules/file-type,
59142         * modules/filemode, modules/lchown, modules/makepath,
59143         * modules/rmdir, modules/stat: Depend on new stat-macros module
59144         rather than listing lib/stat-macros.h manually.
59145         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
59146
59147 2005-03-22  Jim Meyering  <jim@meyering.net>
59148
59149         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
59150
59151 2005-03-22  Bruno Haible  <bruno@clisp.org>
59152
59153         * config/srclist.txt: Replace target directory 'config' with
59154         'build-aux'.
59155         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
59156         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
59157         ../build-aux/.
59158
59159 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
59160
59161         * modules/chdir-long (Depends-on): Add mempcpy.
59162
59163         * modules/acl, modules/backupfile, modules/c-strtod,
59164         modules/c-strtold, modules/canon-host, modules/canonicalize,
59165         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
59166         modules/exclude, modules/exitfail, modules/file-type,
59167         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
59168         modules/getdate, modules/getline, modules/getpagesize,
59169         modules/getpass, modules/getugroups, modules/group-member,
59170         modules/hard-locale, modules/hash, modules/human, modules/idcache,
59171         modules/inttostr, modules/long-options, modules/makepath,
59172         modules/md5, modules/memcasecmp, modules/memcoll,
59173         modules/modechange, modules/mountlist, modules/path-concat,
59174         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
59175         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
59176         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
59177         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
59178         modules/strftime, modules/strndup, modules/strverscmp,
59179         modules/timespec, modules/unlocked-io, modules/userspec,
59180         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
59181         modules/yesno:
59182         Remove lib_SOURCES line from Makefile.am section, as this is now
59183         done automatically by the corresponding Autoconf macro.
59184
59185 2005-03-21  Jim Meyering  <jim@meyering.net>
59186
59187         Changes imported from coreutils.
59188
59189         * lib/cycle-check.c: Don't include xalloc.h.
59190
59191         * lib/path-concat.c: Don't include assert.h.
59192         (path_concat): Remove assertion that would have triggered
59193         for ABASE starting with more than one slash.
59194         Reported by Andreas Schwab.
59195
59196         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
59197         properly when ABASE is an absolute file name.
59198         Correct the description of this function.
59199         Include <assert.h>.
59200         Add an assertion and a test driver.
59201         This fixes a bug introduced on 2004-07-02.
59202         Andreas Schwab reported the resulting failure of cp --parents:
59203         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
59204
59205 2005-03-21  Jim Meyering  <jim@meyering.net>
59206
59207         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
59208         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
59209
59210 2005-03-21  Jim Meyering  <jim@meyering.net>
59211         and  Paul Eggert  <eggert@cs.ucla.edu>
59212
59213         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
59214         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
59215         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
59216         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
59217         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
59218         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
59219         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
59220         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
59221         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
59222         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
59223         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
59224         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
59225         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
59226         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
59227         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
59228         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
59229         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
59230         for these modules.
59231
59232 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
59233
59234         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
59235         (which shouldn't happen), generate nothing instead of returning 0
59236         immediately, so that nstrftime (NULL, ...) doesn't return 0.
59237
59238 2005-03-16  Bruno Haible  <bruno@clisp.org>
59239
59240         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
59241         HAVE_LONGLONG_64BIT.
59242
59243 2005-03-16  Bruno Haible  <bruno@clisp.org>
59244
59245         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
59246         HAVE_LONGLONG_64BIT.
59247
59248 2005-03-16  Bruno Haible  <bruno@clisp.org>
59249
59250         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
59251         HAVE_LONGLONG_64BIT.
59252
59253 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
59254
59255         * lib/strftime.c (my_strftime): Prepend space to format so that we can
59256         reliably distinguish strftime failure from empty output on POSIX
59257         hosts.
59258
59259 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
59260
59261         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
59262         (iconv_string): Don't guess a size-zero buffer, as that might cause
59263         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
59264         result would be 'too large', where 'too large' is (heuristically)
59265         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
59266         overflow concerns.  This will prevent some unwanted malloc failures
59267         when the inputs are very large.
59268
59269 2005-03-15  Karl Berry  <karl@gnu.org>
59270
59271         * config/srclist.txt (config.rpath): from gettext.
59272         * config/config.rpath: update.
59273
59274 2005-03-15  Bruno Haible  <bruno@clisp.org>
59275
59276         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
59277         to 'negate'.
59278
59279         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
59280         variable.
59281
59282         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
59283         results.
59284
59285 2005-03-14  Simon Josefsson  <jas@extundo.com>
59286
59287         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
59288         <fx@gnu.org>.
59289
59290 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
59291
59292         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
59293         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
59294         intprops.h.
59295         * lib/strtol.c: Likewise.
59296
59297 2005-03-14  Jim Meyering  <jim@meyering.net>
59298
59299         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
59300         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
59301         to be nonzero so that we (and caller) can detect the difference
59302         between a valid zero-length expansion and an error return, even
59303         when the underlying strftime fails before writing anything into
59304         that location.
59305
59306 2005-03-14  Bruno Haible  <bruno@clisp.org>
59307
59308         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
59309         Update from GNU gettext 0.14.3.
59310
59311 2005-03-10  Jim Meyering  <jim@meyering.net>
59312
59313         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
59314
59315 2005-03-10  Jim Meyering  <jim@meyering.net>
59316
59317         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
59318         so that this module works on systems without fchdir.
59319
59320 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
59321
59322         Factor int-properties macros into a single file, except for
59323         glibc-related files.
59324         * lib/intprops.h: New file.
59325         * lib/getloadavg.c: Include it instead of limits.h.
59326         (INT_STRLEN_BOUND): Remove.
59327         * lib/human.c: Include intprops.h.
59328         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
59329         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
59330         302/1000.
59331         * lib/inttostr.h: Include intprops.h instead of limits.h.
59332         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
59333         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
59334         for consistency with intprops.h.
59335         (time_t_is_integer, twos_complement_arithmetic): Use them.
59336         * lib/sig2str.h: Include <signal.h>, intprops.h.
59337         (INT_STRLEN_BOUND): Remove.
59338         * lib/strftime.c (TYPE_SIGNED): Remove.
59339         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
59340         * lib/strtol.c: Adjust comments to match intprops.h.
59341         * lib/userspec.c: Include intprops.h.
59342         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
59343         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
59344         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
59345         instead of rolling our own expressions.
59346         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
59347
59348         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
59349         instead of int.
59350         (my_strftime): Do not mishandle years close to INT_MAX, by doing
59351         the right thing even if adding 1900 would overflow.  Similarly
59352         for tm_mon + 1 and tm_yday + 1.
59353         Make %Y always equivalent to %C%y, and similarly for %G and %g.
59354         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
59355         (DO_SIGNED_NUMBER): New macro.
59356         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
59357
59358 2005-03-07  Bruno Haible  <bruno@clisp.org>
59359
59360         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
59361
59362 2005-03-07  Bruno Haible  <bruno@clisp.org>
59363
59364         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
59365
59366 2005-03-04  Derek R. Price  <derek@ximbiot.com>
59367
59368         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
59369         (func_import): Only replace files via --import when they have actually
59370         changed.
59371
59372 2005-03-03  Derek R. Price  <derek@ximbiot.com>
59373
59374         * m4/mmap-anon.m4: New file.
59375         * m4/pagealign_alloc.m4: New file.
59376
59377 2005-03-03  Derek R. Price  <derek@ximbiot.com>
59378             Bruno Haible  <bruno@clisp.org>
59379
59380         * modules/pagealign_alloc: New file.
59381         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
59382
59383 2005-03-03  Derek R. Price  <derek@ximbiot.com>
59384             Bruno Haible  <bruno@clisp.org>
59385
59386         * lib/pagealign_alloc.h: New file.
59387         * lib/pagealign_alloc.c: New file.
59388
59389 2005-03-03  Bruno Haible  <bruno@clisp.org>
59390
59391         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
59392         Use an all-permissive copyright notice, recommended by RMS.
59393
59394 2005-03-02  Bruno Haible  <bruno@clisp.org>
59395
59396         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
59397         of AIX, the replacement has to be done only after <string.h> is
59398         included, therefore not in config.h. stpncpy.h does the replacement,
59399         and stpncpy.c uses it.
59400
59401 2005-03-02  Bruno Haible  <bruno@clisp.org>
59402
59403         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
59404         stpncpy.c uses it.
59405
59406 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
59407
59408         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
59409         The workaround isn't strictly needed for POSIX conformance, and
59410         it's too much of a pain to configure and maintain.  We'll ask
59411         people to fix their kernels instead.
59412         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
59413         (NANOSLEEP_BUG_WORKAROUND): Remove.
59414         (xnanosleep): Remove the workaround.
59415
59416 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
59417
59418         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
59419         Reported by Derek Price.
59420         (Include): Add "timespec.h".
59421
59422         * modules/xnanosleep (Depends-on): Remove gethrxtime.
59423
59424 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
59425
59426         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
59427         to detect nanosleep bug.
59428
59429 2005-03-01  Bruno Haible  <bruno@clisp.org>
59430
59431         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
59432
59433 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
59434
59435         * modules/gethrxtime: New file.
59436         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
59437         (Depends-on): Add gethrxtime.
59438         (configure.ac): Add gl_XNANOSLEEP.
59439         (Makefile.am): Remove lib_SOURCES line.
59440
59441 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
59442
59443         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
59444         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
59445
59446 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
59447
59448         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
59449         * lib/timespec.h (gettime): Return void, since it always
59450         succeeds now.  All uses changed.
59451         * lib/gettime.c (gettime) Likewise.
59452         [HAVE_NANOTIME]: Prefer nanotime.
59453         Assume gettimeofday succeeds, as POSIX requires.
59454         Assime time () succeeds, since other code already does.
59455         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
59456         (timespec_subtract): Remove.
59457         (NANOSLEEP_BUG_WORKAROUND): New constant.
59458         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
59459         things considerably.  Use it only on GNU/Linux hosts, since the
59460         workaround shouldn't be needed elsewhere.
59461
59462 2005-02-24  Bruno Haible  <bruno@clisp.org>
59463
59464         * modules/gettext (Files): Add m4/glibc2.m4.
59465
59466 2005-02-24  Bruno Haible  <bruno@clisp.org>
59467
59468         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
59469         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
59470         * m4/progtest.m4:
59471         Update from GNU gettext 0.14.2.
59472         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
59473
59474 2005-02-24  Bruno Haible  <bruno@clisp.org>
59475
59476         * lib/localcharset.c: Update from GNU gettext 0.14.2.
59477         * lib/config.charset: Update from GNU gettext 0.14.2.
59478
59479 2005-02-24  Bruno Haible  <bruno@clisp.org>
59480
59481         * lib/gettext.h: Update from GNU gettext 0.14.2.
59482
59483 2005-02-23  Simon Josefsson  <jas@extundo.com>
59484
59485         * m4/iconvme.m4: New file.
59486
59487 2005-02-23  Jim Meyering  <jim@meyering.net>
59488
59489         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
59490         change.
59491         Thanks to Bruno Haible for catching it.
59492
59493 2005-02-22  Simon Josefsson  <jas@extundo.com>
59494
59495         * modules/iconvme: New file.
59496
59497         * MODULES.html.sh: Add iconvme.
59498
59499 2005-02-22  Simon Josefsson  <jas@extundo.com>
59500
59501         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
59502
59503 2005-02-22  Simon Josefsson  <jas@extundo.com>
59504
59505         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
59506
59507 2005-02-22  Jim Meyering  <jim@meyering.net>
59508
59509         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
59510         s/ifndef/ifdef/.
59511
59512 2005-02-20  Neil Conway  <neilc@samurai.com>
59513
59514         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
59515         returned by OSX/Darwin if the specified buffer is not large
59516         enough for the hostname.
59517
59518 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
59519
59520         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
59521         pass it to _help, otherwise the latter coredumps trying to
59522         dereference state.root_argp.
59523
59524 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
59525
59526         * modules/chdir-long (Depends-on): Add memrchr.
59527         * modules/memrchr (Files): Add lib/memrchr.h.
59528         (Include): "memrchr.h".
59529
59530 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
59531
59532         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
59533
59534 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
59535
59536         * lib/memrchr.h: New file.
59537         * lib/chdir-long.c: Include it.
59538         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
59539         Don't bother including stddef.h.
59540
59541 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
59542
59543         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
59544         inclusion.
59545         Include <sys/types.h>, for dev_t.
59546         (ME_DUMMY, ME_REMOTE): Move from here....
59547         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
59548         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
59549         Dmitry V. Levin.
59550         Include mountlist.h first, to test the interface.
59551
59552 2005-01-29  Bruno Haible  <bruno@clisp.org>
59553
59554         * lib/progname.c (program_name): Initialize.
59555         Needed when linking statically on MacOS X.
59556
59557 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
59558
59559         Sync from coreutils.
59560         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
59561         (Depends-on): Add c-strtod.
59562         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
59563
59564 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
59565
59566         Sync from coreutils.
59567         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
59568
59569         Remove files that are specific to coreutils.
59570         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
59571
59572 2005-01-28  Bruno Haible  <bruno@clisp.org>
59573
59574         * modules/javacomp: New file.
59575         * MODULES.html.sh (Java): Add javacomp.
59576
59577 2005-01-28  Bruno Haible  <bruno@clisp.org>
59578
59579         * m4/javacomp.m4: New file, from GNU gettext.
59580
59581 2005-01-28  Bruno Haible  <bruno@clisp.org>
59582
59583         * lib/javacomp.sh.in: New file, from GNU gettext.
59584         * lib/javacomp.h: New file, from GNU gettext.
59585         * lib/javacomp.c: New file, from GNU gettext.
59586
59587 2005-01-26  Simon Josefsson  <jas@extundo.com>
59588
59589         * lib/gai_strerror.c: Use GPL in header.
59590
59591 2005-01-26  Bruno Haible  <bruno@clisp.org>
59592
59593         * modules/javaexec: New file.
59594         * MODULES.html.sh (Java): Add javaexec.
59595
59596 2005-01-26  Bruno Haible  <bruno@clisp.org>
59597
59598         * m4/javaexec.m4: New file, from GNU gettext.
59599
59600 2005-01-26  Bruno Haible  <bruno@clisp.org>
59601
59602         * lib/javaexec.sh.in: New file, from GNU gettext.
59603         * lib/javaexec.h: New file, from GNU gettext.
59604         * lib/javaexec.c: New file, from GNU gettext.
59605
59606 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
59607
59608         * modules/lchown (Depends-on): Remove lchown.h
59609
59610 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
59611
59612         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
59613         must be defined if the header file was not found, in order
59614         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
59615
59616 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
59617
59618         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
59619         initializers for struct pentry_state.
59620         (__argp_error): Check return value of __asprintf
59621         (__argp_failure): Translate error message
59622
59623         * lib/argp-parse.c: Removed braces around the expansion of N_()
59624
59625 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
59626
59627         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
59628         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
59629         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
59630         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
59631         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
59632         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
59633         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
59634         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
59635         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
59636         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
59637         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
59638         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
59639         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
59640         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
59641         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
59642         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
59643         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
59644         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
59645         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
59646         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
59647         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
59648         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
59649         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
59650         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
59651         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
59652         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
59653         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
59654         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
59655         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
59656         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
59657         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
59658         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
59659         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
59660         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
59661         xstrtol.m4, xstrtoumax.m4, yesno.m4:
59662         Use an all-permissive copyright notice, recommended by RMS.
59663
59664 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
59665
59666         * modules/chdir-long (Depends-on): Remove mempcpy.
59667
59668 2005-01-21  Jim Meyering  <jim@meyering.net>
59669
59670         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
59671         same value as for Solaris 9.
59672
59673         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
59674         component length.  This included changing the parameter to be
59675         of type `char *' rather than `char const *'.
59676         * lib/chdir-long.h (chdir_long): Update prototype.
59677
59678         * lib/openat.c (fdopendir, fstatat): New functions.
59679         * lib/openat.h: Include headers required for use of DIR and struct
59680         stat.
59681         [AT_SYMLINK_NOFOLLOW]: Define.
59682         (fdopendir, fstatat): Add prototypes.
59683
59684 2005-01-21  Bruno Haible  <bruno@clisp.org>
59685
59686         * modules/classpath: New file.
59687         * MODULES.html.sh (Java): Add classpath.
59688
59689 2005-01-21  Bruno Haible  <bruno@clisp.org>
59690
59691         * lib/classpath.h: New file, from GNU gettext.
59692         * lib/classpath.c: New file, from GNU gettext.
59693
59694 2005-01-20  Simon Josefsson  <jas@extundo.com>
59695
59696         * modules/version-etc-fsf: New file.
59697
59698 2005-01-20  Simon Josefsson  <jas@extundo.com>
59699
59700         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
59701         * lib/version-etc.c: Remove version_etc_copyright.
59702         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
59703         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
59704
59705 2005-01-20  Simon Josefsson  <jas@extundo.com>
59706
59707         * lib/base64.h (isbase64): Add.
59708
59709         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
59710         using a unsigned prototype, don't inline.
59711         (base64_decode): Use it.
59712
59713 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
59714
59715         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
59716         it.
59717
59718 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
59719
59720         * lib/save-cwd.c (save_cwd): Remove code to support the case
59721         where fchdir is missing or flaky.
59722
59723 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
59724
59725         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
59726
59727 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
59728
59729         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
59730         AC_LIBSOURCES now does this.
59731         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
59732         with new ullong_max module.
59733
59734 2005-01-19  Bruno Haible  <bruno@clisp.org>
59735
59736         * modules/sh-quote: New file.
59737         * MODULES.html.sh (Executing programs): Add sh-quote.
59738
59739 2005-01-19  Bruno Haible  <bruno@clisp.org>
59740
59741         * lib/sh-quote.h: New file, from GNU gettext.
59742         * lib/sh-quote.c: New file, from GNU gettext.
59743
59744 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
59745
59746         Merge from coreutils.
59747         * m4/ullong_max.m4: New file.
59748         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
59749         (gl_MACROS): Assume localeconv exists.
59750
59751 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
59752
59753         Merge changes from coreutils, as described below in several
59754         changelogs dated today.
59755
59756         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
59757         (O_DIRECTORY): Remove; not needed here, since "." must be
59758         a directory.  All uses removed.
59759         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
59760         universal on Suns, and we also need to test for IRIX.
59761         Revamp code to use 'if' rather than '#if'.
59762         Avoid unnecessary comparison of cwd->desc to 0.
59763
59764         * lib/utimens.c (futimens): Robustify the previous patch, by checking
59765         for known valid error numbers rather than observed invalid ones.
59766
59767 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
59768
59769         * modules/ullong_max: New file.
59770
59771         * modules/chdir-long, modules/openat: New files.
59772         * modules/save-cwd (Depends-on): Depend on chdir-long.
59773         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
59774
59775 2005-01-18  Jim Meyering  <jim@meyering.net>
59776
59777         Merge from coreutils.
59778         * m4/chdir-long.m4, m4/openat.m4: New files.
59779         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
59780         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
59781         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
59782         is sane and DOES follow symlinks.  Besides, testing 20 different
59783         systems found no broken chown implementations.
59784         Prompted by a change in rsync's copy of this macro.
59785         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
59786
59787         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
59788
59789         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
59790         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
59791         NULL-means-set-to-current-time semantics.
59792         Remove temporary file immediately, rather than waiting
59793         for configure's at-exit trap code to do it.
59794
59795 2005-01-18  Jim Meyering  <jim@meyering.net>
59796
59797         * lib/version-etc.c (version_etc_copyright): Update copyright date.
59798
59799         * lib/utimens.c (futimens): Account for the fact that futimes
59800         can also fail with errno == ENOSYS or errno == ENOENT.
59801         Patch from Dmitry V. Levin.
59802
59803         Change the name of the robust chdir function from chdir to chdir_long.
59804         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
59805         (restore_cwd): Use chdir_long, not chdir.
59806         * lib/chdir-long.c: Renamed from chdir.c.
59807         * lib/chdir-long.h: Renamed from chdir.h.
59808         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
59809         Hurd.
59810
59811 2005-01-18  Bruno Haible  <bruno@clisp.org>
59812
59813         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
59814         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
59815         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
59816         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
59817         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
59818         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
59819         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
59820         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
59821         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
59822         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
59823         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
59824         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
59825         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
59826         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
59827         Use an all-permissive copyright notice, recommended by RMS.
59828
59829 2005-01-18  Bob Proulx  <bob@proulx.com>
59830
59831         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
59832         simplify offsetof() macro construct to avoid compile failure with
59833         native HP-UX 11.0 ANSI C compiler.
59834
59835 2005-01-17  Bruno Haible  <bruno@clisp.org>
59836
59837         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
59838         redundant because stpncpy.m4 takes care of it.
59839
59840 2005-01-17  Bruno Haible  <bruno@clisp.org>
59841
59842         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
59843
59844 2005-01-17  Bruno Haible  <bruno@clisp.org>
59845
59846         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
59847         used.
59848
59849 2005-01-17  Bruno Haible  <bruno@clisp.org>
59850
59851         * lib/fwriteerror.h (fwriteerror): Change specification to include
59852         fclose.
59853         * lib/fwriteerror.c: Include <stdbool.h>.
59854         (fwriteerror): At the end, close the file stream. Record whether
59855         stdout was already closed.
59856
59857 2005-01-17  Bruno Haible  <bruno@clisp.org>
59858
59859         * lib/execute.c (environ): Declare if needed.
59860         * lib/pipe.c (environ): Likewise.
59861         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
59862
59863 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
59864
59865         * modules/argp: Depend on vsnprintf
59866
59867 2005-01-10  Jim Meyering  <jim@meyering.net>
59868
59869         * modules/closeout (Depends-on): Add atexit.
59870
59871 2005-01-06  Bruno Haible  <bruno@clisp.org>
59872
59873         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
59874
59875 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
59876
59877         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
59878         definitions to be after all include files, to avoid collisions.
59879         Problem reported by Bob Proulx.
59880
59881 2005-01-04  Jim Meyering  <jim@meyering.net>
59882
59883         Changes imported from coreutils.
59884         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
59885         as the mkstemp template, use a temporary directory and an
59886         8.3-friendly template to avoid trouble on systems like DJGPP.
59887         Reported by Juan M. Guerrero via Stepan Kasal.
59888         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
59889         close. Remove the temporary directory right away, rather than waiting
59890         for configure's at-exit trap code to do it.
59891         Suggestion from Stepan Kasal.
59892
59893 2005-01-01  Simon Josefsson  <jas@extundo.com>
59894
59895         * gnulib-tool: Print #include directives when --import'ing.
59896
59897 2004-12-28  Simon Josefsson  <jas@extundo.com>
59898
59899         * tests/test-base64.c: Include required header files.  Remove
59900         unused variables.
59901
59902 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
59903
59904         * modules/error (Depends-on): Remove gettext.
59905
59906 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
59907
59908         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
59909         not needed.  This removes a dependency on the gettext module.
59910         [defined _LIBC]: Do not include <libintl.h>; not needed.
59911
59912 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
59913
59914         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
59915         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
59916
59917 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
59918
59919         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
59920         HAVE_DECL_STRTOLD.
59921
59922 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
59923
59924         * modules/getdate (Depends-on): Remove alloca-opt.
59925
59926 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
59927
59928         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
59929
59930 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
59931
59932         * lib/argp-parse.c: Include <stddef.h>.
59933         (alignof, alignto): New macros.
59934         (parser_init): Don't assume that void * is aligned sufficiently
59935         for struct option.
59936
59937         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
59938         need to extend the stack.
59939         (YYINITDEPTH): New macro, so that the initial stack isn't overly
59940         large.
59941
59942 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
59943
59944         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
59945
59946 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
59947
59948         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
59949         (2004-10-24) change.  Apparently this was a false alarm.
59950
59951         * modules/getdate: Depend on alloca-opt, not alloca.
59952
59953 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
59954
59955         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
59956         Remove now-obsolete comment about AIX.
59957         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
59958         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
59959         (YYMAXDEPTH): New macro.
59960
59961 2004-12-18  Simon Josefsson  <jas@extundo.com>
59962
59963         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
59964
59965 2004-12-18  Bruno Haible  <bruno@clisp.org>
59966
59967         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
59968
59969 2004-12-18  Bruno Haible  <bruno@clisp.org>
59970
59971         * lib/fatal-signal.c (fatal_signals): Make non-const.
59972         (init_fatal_signals): New function.
59973         (uninstall_handlers, install_handlers): Ignore signals that were set to
59974         SIG_IGN.
59975         (at_fatal_signal): Call init_fatal_signals.
59976         (init_fatal_signal_set): Likewise. Ignore signals that were set to
59977         SIG_IGN.
59978         Reported by Paul Eggert.
59979
59980 2004-12-18  Bruno Haible  <bruno@clisp.org>
59981
59982         * doc/alloca.texi: New file.
59983         * doc/alloca-opt.texi: New file.
59984
59985 2004-12-17  Jim Meyering  <jim@meyering.net>
59986
59987         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
59988         Otherwise, install-sh could exit with improper exit status when
59989         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
59990
59991 2004-12-16  Simon Josefsson  <jas@extundo.com>
59992
59993         * tests/test-base64.c: Add license.
59994
59995 2004-12-15  Stepan Kasal  <address@hidden>
59996
59997         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
59998
59999 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
60000
60001         * modules/getcwd (Files): Add m4/d-ino.m4.
60002         Suggested by Mark D. Baushke.
60003
60004 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
60005
60006         * lib/getdate.y (textint): New member "negative".
60007         (time_zone_hhmm): New function.
60008         Expect 14 shift-reduce conflicts, not 13.
60009         (o_colon_minutes): New rule.
60010         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
60011         (yylex): Set the "negative" member of signed numbers.
60012
60013 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
60014
60015         * doc/getdate.texi (Time of day items, Time zone items):
60016         Describe new formats +00:00, UTC+00:00.
60017
60018 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
60019
60020         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
60021         spurious "-l"s.  Problem reported by Stepan Kasal.
60022
60023 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
60024
60025         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
60026         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
60027
60028 2004-12-04  Simon Josefsson  <jas@extundo.com>
60029
60030         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
60031         Vandoorselaere <yoann@prelude-ids.org>.
60032
60033 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
60034
60035         Changes imported from coreutils.
60036         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
60037         exist.
60038         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
60039
60040 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
60041
60042         Changes imported from coreutils.
60043         * lib/hard-locale.c: Assume <locale.h> exists.
60044         Include "strdup.h".
60045         (GLIBC_VERSION): New macro.
60046         (hard_locale): Assume setlocale exists.
60047         Rewrite to avoid #ifdef.
60048         Use strdup rather than malloc + strcpy.
60049         * lib/human.c: Assume <locale.h> exists.
60050         (human_readable): Assume localeconv exists.
60051
60052 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
60053
60054         * modules/hard-locale (Depends-on): Add strdup.
60055
60056 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
60057
60058         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
60059         convert T2, not T.  (Imported from libc.)
60060
60061 2004-11-30  Simon Josefsson  <jas@extundo.com>
60062
60063         * modules/restrict (License): Change to LGPL.
60064
60065 2004-11-30  Simon Josefsson  <jas@extundo.com>
60066
60067         * m4/restrict.m4: Add copyright and copying conditions.
60068
60069 2004-11-30  Simon Josefsson  <jas@extundo.com>
60070
60071         * m4/base64.m4: New file.
60072
60073 2004-11-30  Simon Josefsson  <jas@extundo.com>
60074
60075         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
60076         base64.
60077
60078         * tests/test-base64.c: New file.
60079
60080         * modules/base64: New file.
60081
60082 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
60083
60084         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
60085         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
60086
60087         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
60088
60089 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
60090
60091         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
60092         (__getcwd.c): Don't restore errno; glibc doesn't.
60093         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
60094         first, falling back to our code only if its results look suspicious.
60095         Ensure that the resulting buffer is only as large as necessary.
60096
60097         * lib/readutmp.c: Include readutmp.h first.
60098         Include <errno.h>, since readutmp.h no longer does that.
60099         * lib/readutmp.h: Don't include <errno.h>,
60100         <sys/param.h>, <time.h>; not needed to establish interface.
60101         (errno): Remove decl.
60102         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
60103         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
60104         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
60105
60106 2004-11-28  Simon Josefsson  <jas@extundo.com>
60107
60108         * lib/base64.h, base64.c: New file.
60109
60110 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
60111
60112         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
60113
60114 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
60115
60116         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
60117         (Depends-on): Remove pathmax, same.  Add mempcpy.
60118         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
60119         (Makefile.am): Append getcwd.h to lib_SOURCES.
60120         (Include): Add getcwd.h.
60121         (Maintainer): Change from Jim Meyering to "all, glibc",
60122         since getdate now uses intended-for-glibc code.
60123         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
60124         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
60125
60126 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
60127
60128         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
60129         HP's ANSI C compiler.
60130         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
60131         Declaring int functions causes warnings on some modern systems and
60132         shouldn't be needed to compile on ancient ones.
60133         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
60134         defined.
60135
60136         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
60137         with the following changes.
60138         (__set_errno): Parenthesize properly.
60139         Include <stdbool.h>.
60140         (MIN, MAX, MATCHING_INO): New macros.
60141         (__getcwd): Define with prototype, not K&R form.
60142         Use heuristics to allocate default buffer on stack if possible.
60143         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
60144         behavior, and to avoid the PATH_MAX limit when computing
60145         ../../../../...
60146         Use MATCHING_INO to compare inode number to file.
60147         Check for arithmetic overflow in size calculations.
60148         Fix bug in reallocation of dot array that caused getcwd to fail
60149         on directories nested deeper than 75.
60150         Be more careful about saving errno on error.
60151         Do not use realloc; use only free+malloc, as this is a bit
60152         more flexible and avoids a needless copy operation.
60153         Do not inspect st_dev and st_ino for symbolic links; POSIX
60154         doesn't specify the latter.
60155         Check for closedir errors.
60156         Avoid needless casts.
60157         Use "#ifdef weak_alias" around weak_alias, to be like other
60158         glibc code.
60159         The following changes to getcwd.c have effect only when used in
60160         gnulib; they have no effect inside glibc proper.
60161         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
60162         as alloca isn't used.
60163         (alloca, __alloca): Likewise.
60164         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
60165         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
60166         unconditionally, as gnulib assumes C89 or better.
60167         Do not include <sys/param.h>.
60168         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
60169         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
60170         better.
60171         (NULL) [!defined NULL]: Remove; we assume C89 or better.
60172         Include <dirent.h> in a way that is compatible with modern Autoconf.
60173         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
60174         New macros, if not already defined.
60175         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
60176         Use "_LIBC", not "defined _LIBC", for consistency.
60177         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
60178         a mempcpy module.
60179         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
60180         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
60181         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
60182         credit only to Jim Meyering and adjust the copyright dates.
60183         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
60184         <stdlib.h>, <unistd.h>, "pathmax.h".
60185         Instead, include "xgetcwd.h" (first) and "getcwd.h".
60186         (INITIAL_BUFFER_SIZE): Remove.
60187         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
60188
60189 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
60190
60191         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
60192         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
60193         Use the _ONCE methods, for efficiency.
60194         Check for fcntl.h.  In test program, include <errno.h>
60195         and <fcntl.h> if available.  Remove old K&R cruft from
60196         test program.  Check for common errors in GNU/Linux,
60197         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
60198         don't do AC_LIBOBJ, as that's getcwd.m4's job.
60199         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
60200         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
60201         name accordingly.
60202         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
60203         accommodate new getcwd.c.
60204         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
60205         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
60206         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
60207         that's all we need now.
60208
60209 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
60210
60211         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
60212         argp-parse.c depends on getopt internals, that means we should
60213         always use our getopt, to be on the safe side.
60214         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
60215         order not to spoil the result of an eventual previous invocation
60216         of gl_GETOPT_SUBSTITUTE.
60217
60218 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
60219
60220         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
60221         redefinition warnings. To avoid them, include the defines
60222         in `#if !defined __need_getopt ... #endif'. The only place
60223         where __getopt_argv_const is used is in definitions
60224         of getopt_long and getopt_long_only below, which are as well
60225         protected by `#ifndef __need_getopt'.
60226         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
60227         __need_getopt after including <stdio.h> and <unistd.h> These
60228         headers might have defined it.
60229
60230 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
60231
60232         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
60233
60234 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
60235
60236         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
60237         (futimens): New function, which uses futimes if available.
60238         (futimens, utimens): Support timespec==NULL, with same semantics
60239         as utime and utimens.
60240         * lib/utimens.h (futimens): New decl.
60241
60242 2004-11-23  Jim Meyering  <jim@meyering.net>
60243
60244         * lib/getopt_.h: Remove trailing blanks.
60245
60246 2004-11-23  Jim Meyering  <jim@meyering.net>
60247
60248         * lib/__fpending.c: Add comment.
60249
60250 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
60251
60252         * modules/canonicalize (Depends-on): Add xreadlink.
60253         Problem reported by James Youngman.
60254
60255 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
60256
60257         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
60258         New macros.
60259         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
60260         optopt): Use them instead of invoking ## directly; otherwise, the
60261         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
60262
60263 2004-11-19  Bruno Haible  <bruno@clisp.org>
60264
60265         * lib/strtok_r.c: Move comments from here...
60266         * lib/strtok_r.h: ... to here.
60267
60268 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
60269
60270         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
60271         implementations that mishandle size_t overflow.
60272
60273 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
60274
60275         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
60276         might fail.  Problem reported by Yoann Vandoorselaere.
60277         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
60278         implementations that mishandle size_t overflow.
60279
60280 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
60281
60282         * modules/canon-host (Depends-on): Add strdup.
60283
60284 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
60285
60286         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
60287
60288 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
60289
60290         * lib/canon-host.c: Include "strdup.h".
60291         (canon_host): Use getaddrinfo if available, so that IPv6 works.
60292         Use strdup instead of malloc/strcpy to duplicate strings.
60293
60294         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
60295         (human_space_before_unit): New constant.
60296         * lib/human.c (human_readable): Support it.
60297
60298         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
60299         (xgetcwd): Set errno correctly when failing.
60300         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
60301         the failure is actually due to a PATH_MAX problem.
60302
60303         Further getopt changes to make it more likely that glibc will
60304         buy the changes back.
60305         * lib/getopt.c (POSIXLY_CORRECT): New constant.
60306         (getopt): Use it, so to preserve glibc semantic
60307         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
60308         when compiling for libc.
60309         * lib/getopt_.h (__getopt_argv_const): Bring it back.
60310         (getopt_long, getopt_long_only): Use it.
60311
60312         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
60313         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
60314         (getopt): Argv is now char * const *, as per standard.
60315         (_getopt_internal_r, _getopt_internal): Argv is now char **,
60316         not char *__getopt_argv_const *.
60317         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
60318         _getopt_long_only_r): Likewise.
60319         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
60320         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
60321         _getopt_long_r, _getopt_long_only_r): Likewise.
60322         * lib/getopt_.h (__getopt_argv_const): Remove.
60323         (getopt): Argv is now char * const *, as per standard.
60324
60325         * lib/getdate.y (tORDINAL): New token.
60326         (day, relunit): Allow it for relative times.
60327         (relative_time_table): Use tORDINAL for ordinals.
60328
60329 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
60330
60331         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
60332         Document that "second" isn't allowed as an ordinal number.
60333
60334 2004-11-16  Jim Meyering  <jim@meyering.net>
60335
60336         * modules/closeout (Depends-on): Add fpending.
60337
60338 2004-11-15  Jim Meyering  <jim@meyering.net>
60339
60340         * lib/closeout.c: Include "__fpending.h" once again.
60341         Include <stdbool.h>.
60342         (close_stdout): Don't fail just because stdout was closed initially,
60343         since some programs don't write to stdout in the normal course of
60344         operation (other than --version and --help), and we don't want this
60345         function to make e.g. `touch file >&-' fail.
60346         But do fail if it was closed and someone has tried to write to it.
60347         E.g., `printf foo >&-' must fail.
60348
60349 2004-11-13  Jim Meyering  <jim@meyering.net>
60350
60351         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
60352
60353 2004-11-12  Simon Josefsson  <jas@extundo.com>
60354
60355         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
60356         small doc fix is still pending.
60357
60358 2004-11-11  Simon Josefsson  <jas@extundo.com>
60359
60360         * modules/strtok_r: New file.
60361
60362         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
60363         strtok_r.
60364
60365 2004-11-11  Simon Josefsson  <jas@extundo.com>
60366
60367         * m4/strtok_r.m4: New file.
60368
60369         * m4/getopt.m4: Replace opterr.
60370
60371 2004-11-11  Simon Josefsson  <jas@extundo.com>
60372
60373         * lib/strtok_r.h, strtok_r.c: New file.
60374
60375 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
60376
60377         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
60378         of replacing opterr, getopt, etc.  This should handle the
60379         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
60380
60381 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
60382
60383         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
60384         we can stop lying to compilers about the constness of argv when we
60385         are compiled outside glibc.
60386         (getopt, getopt_long, getopt_long_only): Use it.
60387         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
60388         _getopt_internal, getopt): Likewise.
60389         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
60390         _getopt_long_only_r): Likewise.
60391         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
60392         _getopt_long_r, _getopt_long_only_r): Likewise.
60393
60394         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
60395         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
60396         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
60397         the other external symbols.
60398         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
60399         declaration, since the above renaming now works around collisions.
60400
60401 2004-11-11  Jim Meyering  <jim@meyering.net>
60402
60403         * lib/linebreak.c: Remove trailing blanks.
60404         * lib/alloca_.h: Likewise.
60405         * lib/acosl.c: Likewise.
60406         * lib/euidaccess.c: Likewise.
60407         * lib/allocsa.h: Likewise.
60408
60409 2004-11-10  Simon Josefsson  <jas@extundo.com>
60410
60411         * m4/getaddrinfo.m4: New file.
60412
60413 2004-11-10  Simon Josefsson  <jas@extundo.com>
60414
60415         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
60416
60417 2004-11-10  Simon Josefsson  <jas@extundo.com>
60418
60419         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
60420         getaddrinfo.
60421
60422         * modules/getaddrinfo: New file.
60423
60424 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
60425
60426         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
60427
60428 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
60429
60430         * lib/mktime.c (SHR): New macro, which is a portable
60431         substitute for >> that should work even on Crays.
60432         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
60433         Problem reported by Mark D. Baushke in
60434         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
60435         * lib/getdate.y (SHR): Likewise.
60436         (tm_diff): Use it.
60437         * lib/strftime.c (SHR): Likewise.
60438         (tm_diff): Use it.
60439         * lib/quotearg.c (struct quoting_options): Use unsigned int for
60440         quote_these_too, so that right shifts are well defined.  All uses
60441         changed.
60442
60443 2004-11-10  Jim Meyering  <jim@meyering.net>
60444
60445         Ensure that no close failure goes unreported.
60446         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
60447         return early when it seems there's nothing to flush.
60448         Don't include __fpending.h.
60449
60450 2004-11-10  Jim Meyering  <jim@meyering.net>
60451
60452         * modules/closeout (Depends-on): Remove fpending.
60453
60454 2004-11-10  Jim Meyering  <jim@meyering.net>
60455
60456         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
60457
60458 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
60459
60460         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
60461         gl_FUNC_STRFTIME.
60462         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
60463         and AC_REQUIRE when possible, to avoid duplicate checks.
60464         Check for <wchar.h>.
60465
60466 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
60467
60468         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
60469
60470 2004-11-09  Bruno Haible  <bruno@clisp.org>
60471
60472         * m4/sockpfaf.m4: New file.
60473
60474 2004-11-05  Bruno Haible  <bruno@clisp.org>
60475
60476         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
60477         Reported by Mark D. Baushke <mdb@cvshome.org>.
60478
60479 2004-11-04  Bruno Haible  <bruno@clisp.org>
60480
60481         2004-09-11  Bruno Haible  <bruno@clisp.org>
60482                 * allocsa.valgrind: New file.
60483         2004-02-06  Bruno Haible  <bruno@clisp.org>
60484                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
60485                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
60486                 Reported by Christopher Seip <chris.seip@hp.com>.
60487
60488 2004-11-04  Bruno Haible  <bruno@clisp.org>
60489
60490         * modules/allocsa (Files): Add lib/allocsa.valgrind.
60491         (Makefile.am): Distribute it.
60492
60493 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
60494
60495         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
60496         with errno == ERANGE if the buffer is too small.
60497         Problem reported by Mark D. Baushke.
60498
60499 2004-11-03  Albert Chin  <china@thewrittenword.com>
60500             Paul Eggert  <eggert@cs.ucla.edu>
60501
60502         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
60503         equivalent, substitute $ac_type for equivalent type rather than
60504         blindly using uint32_t *always* which won't work if uint32_t is not
60505         available.  Define _UINT32_T to work around typedef of uint32_t if
60506         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
60507         2.5.1.
60508
60509 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
60510
60511         * m4/jm-macros.m4: Sync from coreutils.
60512         (gl_MACROS): Check for mbrlen, for pathchk.
60513         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
60514
60515 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
60516
60517         * lib/xreadlink.c (MAXSIZE): New macro.
60518         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
60519         size does not exceed MAXSIZE.  Avoid cast.
60520         As suggested by Mark D. Baushke in
60521         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
60522         if readlink fails with buffer size just under MAXSIZE, try again
60523         with MAXSIZE.
60524
60525 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
60526
60527         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
60528
60529 2004-11-02  Derek R. Price  <derek@ximbiot.com>
60530         and  Paul Eggert  <eggert@cs.ucla.edu>
60531
60532         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
60533         (get_date): Overparenthesize to avoid GCC warning.
60534
60535 2004-11-02  Bruno Haible  <bruno@clisp.org>
60536
60537         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
60538         returns void.
60539
60540 2004-11-02  Bruno Haible  <bruno@clisp.org>
60541
60542         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
60543         function returns void.
60544
60545 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
60546
60547         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
60548         fflush_unlocked, flockfile, funlockfile, funlockfile,
60549         fputs_unlocked, putc_unlocked.
60550
60551 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
60552
60553         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
60554         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
60555         already declared.
60556
60557 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
60558
60559         * modules/getdate (Files): Add doc/getdate.texi.
60560         (Depends-on): Add setenv, xalloc.
60561
60562 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
60563
60564         * lib/getdate.y: Add support for TZ="foo" within a date string.
60565         Fix some bugs near time_t boundaries.  Reject dates with
60566         out-of-range components, e.g., "Sept 31".
60567         Include <stdlib.h>, "setenv.h", "xalloc.h".
60568         (ISDIGIT_LOCALE): Remove; unused.
60569         Note that the TZ and time functions used here are not reentrant.
60570         (mktime_ok, get_tz): New functions.
60571         (TZBUFSIZE): New constant.
60572         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
60573         This requires that we sometimes generate our own TZ="XXX..." setting.
60574
60575 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
60576
60577         * doc/getdate.texi: New file, from coreutils with modifications for
60578         the new TZ parsing.
60579
60580 2004-10-27  Derek R. Price  <derek@ximbiot.com>
60581
60582         * lib/mktime.c (not_equal_tm): Remove redundant check.
60583
60584 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
60585
60586         * modules/regex (lib_SOURCES): Add regex.c.
60587         Reported by James Youngman in
60588         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
60589
60590 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
60591
60592         * lib/getdate.y: Use Bison 1.875 features, and some minor
60593         code cleanups.  This change does not affect semantics.
60594         Don't include <stdlib.h>; no longer needed.
60595         Don't include unlocked-io.h; only the "#if TEST" code uses
60596         stdio, and performance isn't crucial there.
60597         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
60598         Bison 1.875 features as described below.
60599         All uses of "PC." replaced by "pc->".
60600         (YYSTYPE): Add a forward declaration.
60601         (yylex, yyerror): Use full prototypes in forward decls.
60602         Use "%pure-parser" rather than obsolescent "%pure_parser".
60603         Use %parse-param and %lex-param instead of obsolescent
60604         YYPARSE_PARAM and YYLEX_PARAM.
60605         (meridian_table, month_and_day_table, time_units_table,
60606         relative_time_table, time_zone_table, military_table,
60607         lookup_zone, lookup_word, get_date):
60608         Use NULL instead of 0 where appropriate.
60609         (to_hour): Avoid abort (), to avoid a dependency on
60610         stdlib.h.
60611         (yyerror, yylex): Now accepts parser_control * arg.
60612         (main) [TEST]: Use '\0' rather than 0 for char.
60613
60614 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
60615
60616         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
60617
60618 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
60619
60620         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
60621         It's now the caller's responsibility to handle the case where
60622         !HAVE_GETPAGESIZE && !defined getpagesize.
60623
60624         * lib/mktime.c (leapyear): Arg is long int, not int.
60625
60626 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
60627
60628         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
60629
60630 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
60631
60632         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
60633         missing.  Problem reported by James Youngman.
60634
60635 2004-10-16  Simon Josefsson  <jas@extundo.com>
60636
60637         * gnulib-tool: Fix comments.  Fix parse problem.
60638         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
60639
60640 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
60641
60642         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
60643         implementation of getopt_long.  Problem reported by Alexander Taler in:
60644         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
60645
60646 2004-10-15  Bruno Haible  <bruno@clisp.org>
60647
60648         * gnulib-tool: Untabify. Initialize supplied_libname.
60649         (func_usage): More homogenous output.
60650         (func_modules_transitive_closure, func_modules_to_filelist,
60651         func_emit_lib_Makefile_am): New functions.
60652         (func_import): New function, extracted from big case statement. Use
60653         func_get_license, func_modules_transitive_closure,
60654         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
60655         opt_lgpl. Don't use test -a, as it's not portable.
60656         (func_create_testdir): Use func_modules_transitive_closure,
60657         func_modules_to_filelist, func_emit_lib_Makefile_am.
60658
60659 2004-10-15  Bruno Haible  <bruno@clisp.org>
60660
60661         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
60662
60663 2004-10-15  Bruno Haible  <bruno@clisp.org>
60664
60665         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
60666         the portions belonging to each module.
60667         Suggested by Derek Robert Price <derek@ximbiot.com>.
60668
60669 2004-10-12  Simon Josefsson  <jas@extundo.com>
60670
60671         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
60672         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
60673         to real functions.
60674
60675 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
60676
60677         * modules/vsnprintf: New file.
60678
60679 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
60680
60681         * m4/vsnprintf.m4: New file.
60682
60683 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
60684
60685         * lib/vsnprintf.h: New file.
60686         * lib/vsnprintf.c: New file.
60687
60688 2004-10-11  Bruno Haible  <bruno@clisp.org>
60689
60690         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
60691         vsnprintf.
60692
60693 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
60694
60695         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
60696
60697 2004-10-07  Bruno Haible  <bruno@clisp.org>
60698
60699         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
60700         fits into the provided buffer.
60701
60702 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
60703
60704         * lib/diacrit.c, diacrit.h: Add GPL notice.
60705
60706         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
60707         notice.
60708         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
60709         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
60710         This avoids a potential constant-folding bug.
60711
60712 2004-10-05  Bruno Haible  <bruno@clisp.org>
60713
60714         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
60715         for the declaration of strsep.
60716
60717 2004-10-05  Bruno Haible  <bruno@clisp.org>
60718
60719         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
60720
60721 2004-10-04  Simon Josefsson  <jas@extundo.com>
60722
60723         * modules/memmem: New file.
60724         * tests/test-memmem.c: New file.
60725         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
60726
60727 2004-10-04  Simon Josefsson  <jas@extundo.com>
60728
60729         * m4/memmem.m4: New file.
60730
60731 2004-10-04  Simon Josefsson  <jas@extundo.com>
60732
60733         * lib/memmem.h: New file.
60734         * lib/memmem.c: New file, taken from glibc.
60735
60736 2004-10-04  Simon Josefsson  <jas@extundo.com>
60737
60738         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
60739         '#ifdef USE_UNLOCKED_IO'.
60740
60741 2004-10-04  Simon Josefsson  <jas@extundo.com>
60742
60743         * config/srclist.txt: Add memmem from glibc.
60744
60745 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
60746
60747         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
60748
60749         * modules/argmatch, modules/argp, modules/closeout, modules/error,
60750         modules/exclude, modules/getdate, modules/getline,
60751         modules/getndelim2, modules/getpass, modules/getpass-gnu,
60752         modules/getusershell, modules/linebuffer, modules/md5,
60753         modules/mountlist, modules/posixtm, modules/readtokens,
60754         modules/readutmp, modules/regex, modules/sha1,
60755         modules/version-etc, modules/yesno:
60756         Remove dependency on unlocked-io.
60757
60758 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
60759
60760         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
60761
60762         * m4/unlocked-io.m4: Add copyright notice.
60763         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
60764
60765 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
60766
60767         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
60768         * lib/xmalloc.c (xmemdup): Likewise.
60769         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
60770         XFREE): Remove these long-obsolescent macros.
60771         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
60772         * lib/xstrdup.c: Remove.
60773
60774         * lib/regex.c (re_comp): Cast gettext return value to char *,
60775         Problem reported by Martin Neitzel via Mark D. Baushke.
60776
60777 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
60778
60779         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
60780         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
60781         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
60782         regex.c, sha1.c, version-etc.c, yesno.c:
60783         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
60784         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
60785         the includer's responsibility.
60786
60787         Sync from coreutils.
60788
60789         * lib/modechange.c (mode_compile): Don't decrement a pointer that
60790         points to the start of a string, as the C Standard says the
60791         resulting behavior is undefined.
60792
60793         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
60794         simple -> simple_backups, numbered_existing ->
60795         numbered_existing_backups, numbered -> numbered_backups
60796         to avoid shadowing problems.  All uses changed.
60797         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
60798         * lib/backupfile.c (check_extension, numbered_backup):
60799         Rename locals to avoid shadowing 'basename'.
60800         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
60801         once.
60802
60803         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
60804         * lib/.cvsignore: Add getopt.h.
60805
60806 2004-10-04  Bruno Haible  <bruno@clisp.org>
60807
60808         * modules/README: New file.
60809         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
60810         not a module.
60811
60812 2004-10-02  Jim Meyering  <jim@meyering.net>
60813
60814         * lib/dirfd.h, getpagesize.h: Add copyright notice.
60815
60816 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
60817
60818         * modules/strsep: New file.
60819
60820 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
60821
60822         * m4/strsep.m4: New file.
60823
60824 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
60825
60826         * lib/strsep.h: New file.
60827         * lib/strsep.c: New file.
60828
60829 2004-10-01  Simon Josefsson  <jas@extundo.com>
60830
60831         * lib/snprintf.c (snprintf): Handle size==0.
60832
60833 2004-10-01  Simon Josefsson  <jas@extundo.com>
60834             Bruno Haible  <bruno@clisp.org>
60835
60836         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
60837         (snprintf): Declare 'args'.
60838
60839 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
60840
60841         * lib/snprintf.c: Remove comments as to why each header is needed.
60842
60843 2004-10-01  Bruno Haible  <bruno@clisp.org>
60844
60845         * MODULES.html.sh: Add strsep.
60846
60847 2004-09-30  Simon Josefsson  <jas@extundo.com>
60848
60849         * modules/snprintf: New file.
60850
60851 2004-09-30  Simon Josefsson  <jas@extundo.com>
60852
60853         * m4/snprintf.m4: New file.
60854
60855 2004-09-30  Simon Josefsson  <jas@extundo.com>
60856
60857         * lib/snprintf.h, lib/snprintf.c: New files.
60858
60859 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
60860
60861         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
60862         (hol_entry_help): Never translate an empty string.
60863         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
60864         * lib/argp.h (OPTION_NO_TRANS): New option.
60865
60866 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
60867
60868         * modules/argp (Maintainer): Replace Simon Josefsson
60869         by Sergey Poznyakoff.
60870
60871 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
60872
60873         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
60874         changes merged back into glibc.
60875
60876 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
60877
60878         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
60879
60880 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
60881
60882         * lib/xvasprintf.c: Include xalloc.h.
60883         (xvasprintf): Use xalloc_die, not xmalloc_die.
60884
60885 2004-09-29  Bruno Haible  <bruno@clisp.org>
60886
60887         * modules/alloca-opt: New file, derived from modules/alloca.
60888         * modules/allocsa: Depend on alloca-opt instead of alloca.
60889         * modules/setenv: Likewise.
60890         * modules/vasnprintf: Likewise.
60891         * MODULES.html.sh: Add alloca-opt.
60892
60893 2004-09-28  Simon Josefsson  <jas@extundo.com>
60894
60895         * gnulib-tool: New parameter --lgpl, to asseert that modules are
60896         LGPL, and to replace license template from GPL to LGPL.
60897
60898 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
60899
60900         * modules/dummy: Change license to LGPL.
60901
60902 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
60903
60904         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
60905
60906 2004-09-24  Simon Josefsson  <jas@extundo.com>
60907
60908         * modules/minmax (License): Change from GPL to LGPL.
60909
60910 2004-09-23  Simon Josefsson  <jas@extundo.com>
60911
60912         * gnulib-tool (--import): Typo.
60913
60914 2004-09-23  Simon Josefsson  <jas@extundo.com>
60915
60916         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
60917
60918 2004-09-22  Bruno Haible  <bruno@clisp.org>
60919
60920         * modules/*: Add 'License' field.
60921         * gnulib-tool: Accept --extract-license option.
60922         (func_get_license): New function.
60923
60924 2004-09-21  Bruno Haible  <bruno@clisp.org>
60925
60926         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
60927         Reported by Simon Josefsson.
60928
60929 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
60930
60931         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
60932         gl_AC_TYPE_LONG_LONG.
60933
60934 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
60935
60936         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
60937
60938 2004-09-18  Simon Josefsson  <jas@extundo.com>
60939         and  Paul Eggert  <eggert@cs.ucla.edu>
60940
60941         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
60942         calls with autoreconf.  Define GL_LIB.
60943
60944 2004-09-14  Karl Berry  <karl@gnu.org>
60945
60946         * config/srclist.txt: unsync setenv.c, sigh.
60947
60948 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
60949
60950         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
60951         Problem reported by Bruno Haible in:
60952         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
60953
60954 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
60955
60956         * config/srclist.txt: Comment out argp-pvh.c.
60957
60958 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
60959
60960         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
60961         in case some system header has #define'd it.  Problem reported by
60962         Soeren D. Schulze in
60963         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
60964
60965 2004-09-09  Karl Berry  <karl@gnu.org>
60966
60967         * regex.[ch]: delete from the root.  These were supposed to be
60968                 synced with emacs cvs, but this has not happened for about
60969                 a year, and anyway nothing else uses emacs regex.[ch].
60970                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
60971                 lib/regex[.ch] is untouched.
60972
60973 2004-09-09  Bruno Haible  <bruno@clisp.org>
60974
60975         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
60976
60977 2004-09-09  Bruno Haible  <bruno@clisp.org>
60978
60979         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
60980         modifications.
60981         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
60982
60983 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
60984
60985         * modules/xvasprintf: New file.
60986         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
60987
60988 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
60989
60990         * lib/xvasprintf.h: New file.
60991         * lib/xvasprintf.c: New file.
60992         * lib/xasprintf.c: New file.
60993
60994 2004-09-08  Bruno Haible  <bruno@clisp.org>
60995
60996         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
60997
60998 2004-09-08  Bruno Haible  <bruno@clisp.org>
60999
61000         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
61001         length is > INT_MAX.
61002         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
61003         more.
61004
61005 2004-09-08  Bruno Haible  <bruno@clisp.org>
61006
61007         * lib/stdint_.h: New file, taken from GNU clisp.
61008
61009 2004-09-08  Bruno Haible  <bruno@clisp.org>
61010             Oskar Liljeblad  <oskar@osk.mine.nu>
61011
61012         * modules/stdint: New file.
61013         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
61014
61015 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
61016
61017         Import from coreutils.
61018         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
61019         strings on unbounded length.  alloca's performance benefits aren't
61020         that important here.
61021         (V_STRDUP): Remove.
61022         (parse_with_separator): New function, with most of the internals
61023         of the old parse_user_spec.  Allow user to omit both user and group,
61024         for compatibility with FreeBSD.
61025         Clone only the user name, not the entire spec.
61026         Do not set *uid, *gid unless entirely successful.
61027         Avoid memory leak in some failing cases.
61028         Fix regression for USER.GROUP reported by Dmitry V. Levin in
61029         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
61030         (parse_user_spec): Rewrite to use parse_with_separator.
61031
61032 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
61033
61034         * modules/userspec: Don't depend on alloca.
61035
61036 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
61037
61038         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
61039
61040 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
61041
61042         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
61043         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
61044         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
61045
61046 2004-08-16  Simon Josefsson  <jas@extundo.com>
61047
61048         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
61049         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
61050         Add --dry-run for --import.
61051         Let user provided command line parameters override configure.ac
61052         settings.
61053
61054 2004-08-12  Simon Josefsson  <jas@extundo.com>
61055
61056         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
61057         as discussed with Paul Eggert in threads rooted at
61058         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
61059         and
61060         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
61061         Before, the test was empty, and relied on ELIDE_CODE in source
61062         code.)
61063         (gl_PREREQ_GETOPT): New macro.
61064         (gl_GETOPT): Use them.
61065
61066 2004-08-12  Simon Josefsson  <jas@extundo.com>
61067
61068         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
61069         * lib/getopt_.h: Renamed from getopt.h.
61070
61071 2004-08-12  Simon Josefsson  <jas@extundo.com>
61072
61073         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
61074         Change default library name from libfoo to libgnu.
61075         Now, if you have a configure.ac that says:
61076                 gl_SOURCE_BASE(gl)
61077                 gl_M4_BASE(gl/m4)
61078                 gl_MODULES(error getopt etcetera)
61079                 gl_INIT
61080         you can import all you need by running:
61081                 ../gnulib/gnulib-tool --import
61082
61083         * modules/getopt (Files): Rename getopt.h to getopt_.h.
61084         (Makefile.am): Rewrite, use logic from argz.
61085         (Include): Use <getopt.h> instead of "getopt.h".
61086
61087 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
61088
61089         * modules/argp (Files): Add m4/unlocked-io.m4.
61090         (Depends-on): Add extensions.
61091
61092 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
61093
61094         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
61095         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
61096         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
61097         Check for program_invocation_name, program_invocation_short_name,
61098         flockfile, funlockfile, features.h, _getopt_long_only_r.
61099
61100 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
61101
61102         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
61103         its complicated substitute.
61104         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
61105         and program_invocation_name.
61106         (__argp_basename) [!_LIBC]: Remove; the only use was
61107         replaced by its body.
61108         (__argp_short_program_name): Change condition from
61109         !defined __argp_short_program_name to
61110         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
61111         to match argp-namefrob.h.
61112         (__argp_failure): Don't assume strerror_r returns char *.
61113         * lib/argp-parse.c (N_): Define unconditionally.
61114         (argp_default_options): Fill out initializers with 0 to avoid
61115         gcc warnings.
61116
61117 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
61118
61119         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
61120         getopt1.c.
61121
61122 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
61123
61124         Merge from coreutils.
61125
61126         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
61127
61128         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
61129         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
61130
61131 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
61132
61133         Merge from coreutils.
61134
61135         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
61136         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
61137         for Reliant Unix 5.43.
61138
61139         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
61140         (union fooround): Use uintmax_t, not long int.
61141         The rest is a merge from libc:
61142         [defined _LIBC]: Include <shlib-compat.h>.
61143         (_obstack) [defined _LIBC]: Remove after 2.3.4.
61144
61145         * lib/settime.c (settime): Recode to avoid warning with
61146         Sun Forte C 6U2.
61147
61148         * lib/strverscmp.c: Convert to UTF-8.
61149
61150 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
61151
61152         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
61153         m4/uintmax_t.m4.
61154
61155 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
61156
61157         * modules/xalloc-die: New file.
61158         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
61159
61160         * modules/md5 (Files): Add m4/uint32_t.m4.
61161         * modules/sha1: Renamed from modules/sha.
61162         (Files):
61163         Rename lib/sha.h to lib/sha1.h.
61164         Rename lib/sha.c to lib/sha1.c.
61165         Rename m4/sha.m4 to m4/sha1.m4.
61166         (lib_SOURCES): Likewise.
61167         (configure.ac): Rename gl_SHA to gl_SHA1.
61168         (Include): sha.h -> sha1.h.
61169
61170 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
61171
61172         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
61173         * m4/sha1.m4: Renamed from sha.m4.
61174         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
61175
61176 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
61177
61178         * lib/obstack.h (obstack_empty_p):
61179         Don't assume that chunk->contents is suitably aligned.
61180         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
61181         Likewise. Problem reported by Benno in
61182         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
61183
61184         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
61185         readable.  This could be improved further but it'd take some work.
61186
61187 2004-08-08  Simon Josefsson  <jas@extundo.com>
61188
61189         * modules/xgethostname (Depends-on): Remove exit and error (not
61190         used).
61191
61192         * modules/getpass-gnu: Add getpass.h.
61193         (Depends-on): Add stdbool.
61194         * modules/getpass: Add getpass.h.
61195
61196 2004-08-08  Simon Josefsson  <jas@extundo.com>
61197
61198         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
61199         Check getpass declaration.
61200
61201 2004-08-08  Simon Josefsson  <jas@extundo.com>
61202
61203         * lib/xgethostname.c: Don't include error.h (not used).
61204
61205         * lib/getpass.h: Add.
61206         * lib/getpass.c: Include getpass.h first.
61207
61208 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
61209
61210         * lib/xalloc-die.c: New file.
61211         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
61212         All uses removed.
61213         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
61214         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
61215         xalloc-die.c.
61216         (_, N_, xalloc_die): Move to xalloc-die.c.
61217         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
61218         so that we needn't mess with xalloc_msg_memory_exhausted.
61219
61220         * lib/sha1.h: Renamed from sha.h.
61221         (SHA1_H): Renamed from _SHA_H.
61222         (sha1_ctx): Renamed from sha_ctx.
61223         (sha1_init_ctx): Renamed from sha_init_ctx.
61224         (sha1_process_block): Renamed from sha_process_block.
61225         (sha1_process_bytes): Renamed from sha_process_bytes.
61226         (sha1_finish_ctx): Renamed from sha_finish_ctx.
61227         (sha1_read_ctx): Renamed from sha_read_ctx.
61228         (sha1_stream): Renamed from sha_stream.
61229         (sha1_buffer): Renamed from sha_buffer.
61230         * lib/sha1.c: Likewise; renamed from sha.c.
61231         Do not include <sys/types.h>.
61232         Include <stddef.h> rather than <stdlib.h>.
61233
61234 2004-08-08  Bruno Haible  <bruno@clisp.org>
61235
61236         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
61237         FILESYSTEM_PREFIX_LEN.
61238         * lib/progreloc.c: Likewise.
61239         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
61240
61241 2004-08-06  Simon Josefsson  <jas@extundo.com>
61242
61243         * modules/progname (Depends-on): Don't depend on stdbool.
61244
61245 2004-08-06  Simon Josefsson  <jas@extundo.com>
61246
61247         * modules/getsubopt: New file.
61248         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
61249         getsubopt.
61250
61251 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
61252
61253         More merge from coreutils.
61254
61255         * m4/utimens.m4, m4/utimecmp.m4: New files.
61256         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
61257         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
61258         prereq.m4, sha.m4: Import changes from coreutils.
61259
61260 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
61261
61262         More merge from coreutils.
61263         * modules/raise, modules/readtokens0, modules/utimens:
61264         * modules/utimecmp, module/xnanosleep: New files.
61265         * modules/strftime: Add lib/strftime.h.
61266         Change include from <time.h> to "strftime.h".
61267         * modules/yesno: Add lib/yesno.h.
61268         * modules/backupfile: Remove lib/addext.c.
61269         * modules/euidaccess: Add stat-macros.h.
61270         * modules/canonicalize, modules/euidaccess,
61271         modules/filemode, modules/lchown, modules/makepath,
61272         modules/rmdir, modules/stat: Likewise.
61273
61274 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
61275
61276         Merge from tar.
61277         * lib/argp-help.c (make_hol, hol_append): Don't assume that
61278         SIZE_MAX is a valid preprocessor constant.
61279         (__argp_basename): Change from "#ifndef _LIBC"
61280         to "#ifndef __argp_short_program_name", so that
61281         we don't compile these functions for tar.
61282
61283         More merges from coreutils.
61284         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
61285         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
61286         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
61287         * lib/addext.c: Remove; no longer needed.
61288         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
61289         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
61290         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
61291         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
61292         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
61293         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
61294         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
61295         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
61296         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
61297         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
61298         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
61299         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
61300         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
61301         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
61302         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
61303         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
61304         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
61305         Import changes from coreutils.
61306
61307 2004-08-05  Simon Josefsson  <jas@extundo.com>
61308
61309         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
61310
61311 2004-08-05  Simon Josefsson  <jas@extundo.com>
61312
61313         * m4/getsubopt.m4: New file.
61314
61315 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
61316
61317         Merge from coreutils.
61318
61319         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
61320         * m4/getcwd-path-max.m4: New files.
61321
61322         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
61323         FILESYSTEM_PREFIX_LEN ->
61324         FILE_SYSTEM_PREFIX_LEN.
61325         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
61326         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
61327         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
61328         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
61329
61330         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
61331         prerequisite modules now handle the DOS stuff.
61332         Don't check for unistd.h.
61333
61334 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
61335
61336         Merge from coreutils.
61337
61338         * lib/.gdb-history: Remove; this doesn't belong here.
61339
61340         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
61341         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
61342         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
61343         * lib/getcwd.c: New files.
61344
61345         * lib/dirname.h: Include <stdbool.h>.
61346         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
61347         for consistency with POSIX terminology.  All uses changed.
61348         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
61349         (strip_trailing_slashes): Use bool for booleans.
61350         * lib/stripslash.c (strip_trailing_slashes): Likewise.
61351
61352         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
61353         sometimes returns a positive errno value even when it succeeds.
61354         (print_errno_message) [!LIBC]: Fall back on strerror if
61355         __strerror_r fails.
61356
61357         * lib/path-concat.c (mempcpy): Don't define if a system header defines
61358         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
61359         (longest_relative_suffix): New function.
61360         (path_concat): Use it.  Assume first argument is not NULL.
61361         Port to DOS.  Omit redundant separators.
61362         Report an error instead of returning NULL.
61363         Use mempcpy instead of memcpy.
61364         (xpath_concat): Remove: not declared or used.
61365
61366         * lib/same.h: Include <stdbool.h>
61367         (same_name): Return bool, not int.
61368         * lib/same.c (same_name): Likewise.
61369         (errno): Don't declare; we assume C89 or better now.
61370
61371         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
61372         if not already defined.
61373
61374         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
61375         * lib/dup-safer.c (errno): Likewise.
61376
61377 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
61378
61379         Merge from coreutils.
61380         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
61381         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
61382         * modules/path-concat: Don't depend on strdup.
61383
61384 2004-08-03  Simon Josefsson  <jas@extundo.com>
61385
61386         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
61387         * lib/progname.h: Don't include stdbool.h.
61388
61389 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
61390
61391         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
61392         * MODULES.html.sh (func_all_modules): Remove fatal.
61393
61394 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
61395
61396         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
61397
61398 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
61399
61400         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
61401         working.
61402
61403 2004-08-02  Simon Josefsson  <jas@extundo.com>
61404
61405         * lib/getsubopt.h: New file, with comments from Bruno Haible.
61406         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
61407         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
61408
61409 2004-08-01  Simon Josefsson  <jas@extundo.com>
61410
61411         * lib/xgetdomainname.c: Include stdlib.h, for free().
61412
61413 2004-07-19  Bruno Haible  <bruno@clisp.org>
61414
61415         * MODULES.html.sh (func_all_modules): Add dummy.
61416
61417 2004-07-16  Simon Josefsson  <jas@extundo.com>
61418
61419         * modules/dummy: New file.
61420
61421 2004-07-16  Simon Josefsson  <jas@extundo.com>
61422
61423         * lib/dummy.c: New file.
61424
61425 2004-07-16  Bruno Haible  <bruno@clisp.org>
61426
61427         * lib/backupfile.h: Add extern "C" for C++.
61428         * lib/closeout.h: Likewise.
61429         * lib/copy-file.h: Likewise.
61430         * lib/findprog.h: Likewise.
61431         * lib/full-write.h: Likewise.
61432         * lib/pathname.h: Likewise.
61433         * lib/progname.h: Likewise.
61434         * lib/stpcpy.h: Likewise.
61435         * lib/stpncpy.h: Likewise.
61436         * lib/strcase.h: Likewise.
61437         * lib/strstr.h: Likewise.
61438         * lib/xalloc.h: Likewise.
61439
61440         * lib/mbswidth.h: Add extern "C" for C++.
61441         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
61442
61443 2004-07-13  Robert Millan  <robertmh@gnu.org>
61444
61445         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
61446
61447 2004-07-09  Simon Josefsson  <jas@extundo.com>
61448
61449         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
61450         failed without this.)
61451
61452 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
61453
61454         * modules/chown (Files): Add lib/fchown-stub.c, since
61455         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
61456
61457 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
61458
61459         * lib/fchown-stub.c: New file.
61460
61461 2004-06-24  Jim Meyering  <jim@meyering.net>
61462
61463         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
61464
61465 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
61466
61467         * modules/argz: Omit "#include".
61468
61469         * MODULES.html.sh (func_all_modules): Add calloc, to match
61470         2004-06-01 addition of calloc module.
61471
61472 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
61473
61474         * m4/argz.m4: New file, which is autoupdated from libtool.
61475
61476 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
61477
61478         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
61479         libtool.
61480
61481 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
61482
61483         * config/srclist-update: Don't insist on "USA." before the
61484         close-comment, as libtool omits the period and puts the */ on a
61485         separate line.
61486         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
61487         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
61488
61489 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
61490
61491         * modules/argz: New file.
61492         * MODULES.html.sh (func_all_modules): Add argz.
61493
61494 2004-06-12  Jim Meyering  <jim@meyering.net>
61495         and  Paul Eggert  <eggert@cs.ucla.edu>
61496
61497         * modules/hash (Files): Add lib/xalloc.h.
61498         * modules/pipe (Depends-on): Add wait-process.
61499         * modules/stat (Depends-on): Add xalloc.
61500         * modules/userspec (Files): Add lib/userspec.h.
61501         * modules/xstrto
61502
61503         Upgrade from gettext-0.13.
61504         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
61505         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
61506         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
61507
61508 2004-06-10  Jim Meyering  <jim@meyering.net>
61509
61510         * lib/calloc.c: New file.
61511
61512 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
61513
61514         * lib/getdate.y (yylex): Allow space between sign and number.
61515         Problem reported by Dan Jacobson.
61516
61517 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
61518
61519         Merge from coreutils CVS.
61520
61521         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
61522         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
61523         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
61524         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
61525         xstrtol.m4: Fix copyright date and/or serial number.
61526
61527         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
61528         See if we need an fchown replacement.
61529         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
61530         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
61531         and use the replacement function if we detect either defect.
61532
61533         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
61534         gl_UTIMECMP.
61535
61536 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
61537         and  Jim Meyering  <jim@meyering.net>
61538
61539         Merge from coreutils CVS.
61540
61541         * lib/stat-macros.h: New file, with contents from file-type.h
61542         and coreutils' system.h.
61543         * lib/file-type.c: Include "stat-macros.h".
61544         * lib/file-type.h (file_type): Move all macro definitions to new file,
61545         stat-macros.h.
61546
61547         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
61548         Wrap old code with this conditional.
61549         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
61550         function that does not dereference symlinks.
61551         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
61552
61553         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
61554         dependency problems.
61555         (xreadlink): Accept new arg SIZE, for efficiency.
61556         All decls and uses changed.
61557         * lib/xreadlink.h: Include <stddef.h>, for size_t.
61558
61559         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
61560         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
61561
61562         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
61563         sysexits.h.
61564
61565 2004-06-01  Jim Meyering  <jim@meyering.net>
61566
61567         * m4/calloc.m4: New file.
61568
61569 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
61570
61571         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
61572         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
61573         Also, fix a typo in a diagnostic.
61574
61575 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
61576
61577         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
61578         or AC_FUNC_REALLOC.
61579
61580 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
61581
61582         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
61583         macros to be defined.
61584         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
61585         the allocator returns NULL because the requested size is zero.
61586
61587 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
61588
61589         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
61590         var.  Add comment explaining why libc still defines it.  This
61591         merges the following patch from glibc:
61592         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
61593
61594 2004-05-20  Andreas Schwab  <schwab@suse.de>
61595
61596         * m4/free.m4: Replace free if it not known to work, not the other
61597         way round.
61598
61599 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
61600
61601         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
61602         present in glibc since revision 1.1 of this file.
61603         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
61604         obstack_alignment_mask, obstack_alloc, obstack_base,
61605         obstack_blank, obstack_blank_fast, obstack_chunk_size,
61606         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
61607         obstack_grow0, obstack_init, obstack_int_grow,
61608         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
61609         obstack_next_free, obstack_object_size, obstack_ptr_grow,
61610         obstack_ptr_grow_fast, obstack_room): Remove declarations of
61611         nonexistent functions.
61612
61613 2004-05-18  Karl Berry  <karl@gnu.org>
61614
61615         * config/srclist.txt: break link for vasnprintf.c.
61616
61617 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
61618
61619         Port obstack to the AS/400, where pointers are 16 bytes wide and
61620         you cannot cast an integer to a valid pointer.  This patch is
61621         currently waiting to be integrated into glibc; see
61622         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
61623
61624         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
61625         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
61626         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
61627         (struct obstack): temp member is now a union of a pointer and
61628         an integer, instead of an integer.  All integer uses changed.
61629         This does not affect the physical layout of struct obstack,
61630         except on hosts (like the AS/400) where the size or alignment of
61631         void * is greater than that of ptrdiff_t.
61632         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
61633         __STDC__)]: Store temporary in pointer member of union, not
61634         integer member.
61635         * lib/obstack.c: Include <stddef.h>, for offsetof.
61636         (struct fooalign): Remove; it doesn't need a name.
61637         (union fooround): Change double to long double, and add void *.
61638         (DEFAULT_ALIGNMENT): Use offsetof to compute.
61639         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
61640         not a macro.  Hence the values are always int; so remove all
61641         casts-to-int in uses.
61642
61643 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
61644
61645         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
61646         we can get this patch merged into glibc.
61647
61648 2004-05-17  Derek R. Price  <derek@ximbiot.com>
61649             Paul Eggert  <eggert@cs.ucla.edu>
61650
61651         * m4/argp: Depend on alloca.
61652
61653 2004-05-17  Derek R. Price  <derek@ximbiot.com>
61654             Paul Eggert  <eggert@cs.ucla.edu>
61655
61656         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
61657         freecoding.
61658
61659 2004-05-17  Bruno Haible  <bruno@clisp.org>
61660
61661         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
61662         precision that consists of a '.' followed by an empty digit string.
61663         Patch by Tor Lillqvist <tml@iki.fi>.
61664
61665 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
61666
61667         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
61668         for backward compatibility with older code.  We need our own
61669         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
61670         it under some other name, and our alloca.h will define it.
61671
61672 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
61673             Derek Price  <derek@ximbiot.com>
61674
61675         * lib/alloca.c: Include <alloca.h>, to get our interface.
61676         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
61677         include <alloca.h> first.  Use C89 prototype for alloca; this
61678         requires including <stddef.h> for size_t.  Use extern "C" if C++.
61679         Use #elif for simplicity, since we can assume C89 now.
61680         Don't try to source the system alloca.h since it will not be found
61681         and to prevent recursively including its replacement.
61682         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
61683         * lib/regex.c: Likewise.
61684
61685 2004-05-16  Derek Price  <derek@ximbiot.com>
61686             Paul Eggert  <eggert@cs.ucla.edu>
61687
61688         getline cleanup.  This changes the getndelim2 API: both order of
61689         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
61690         no delimiter).
61691
61692         * lib/getline.c: Don't include stddef.h or stdio.h, since our
61693         interface does that.
61694         (getline): Always use getdelim, so that we don't have two
61695         copies of this code.
61696         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
61697         if available.
61698         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
61699         (GETNDELIM2_MAXIMUM): New macro.
61700         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
61701         instead of the old practice of delim2==0.  All callers changed.
61702         Return -1 on overflow, instead of returning junk.
61703         Do not set *linesize unless allocation succeeds.
61704         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
61705         that we include sys/types.h.
61706         * lib/getnline.h: Likewise.
61707         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
61708         (getndelim2): Reorder arguments.
61709         * lib/getnline.c (getnline, getndelim):
61710         Don't discard the NMAX argument.
61711         (getnline): Invoke getndelim, to avoid code duplication.
61712         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
61713         of (size_t) -1 by callers of the getnline family.
61714
61715 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
61716
61717         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
61718         Check for gettimeofday.
61719         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
61720         Check for settimeofday, stime.
61721
61722 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
61723
61724         * lib/nanosleep.c (suspended): Change its type from int to
61725         sig_atomic_t volatile.
61726         (first_call): Make it private to rpl_nanosleep, and have it
61727         be zero initially as that's a bit faster.
61728         (my_usleep): Round up fractional times instead of truncating them,
61729         as this is the usual meaning for 'sleep'.
61730
61731         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
61732         doesn't work.
61733         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
61734         (ENOSYS): Define if not defined.
61735         (settime): Fall back on stime if it exists and settimeofday fails.
61736         But don't bother with fallbacks if a method fails with errno == EPERM.
61737
61738 2004-05-11  Jim Meyering  <jim@meyering.net>
61739
61740         Prior to this change, the save_cwd caller required read access to the
61741         current directory on most systems (ones with the fchdir function).
61742
61743         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
61744         fails, try write-only, and finally, resort to using xgetcwd.
61745
61746 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
61747
61748         * lib/obstack.c, obstack.h: Import changes from libc.
61749
61750 2004-04-28  Bruno Haible  <bruno@clisp.org>
61751
61752         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
61753         also implicitly appends .exe to executables.
61754         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
61755         accepts Windows pathnames.
61756         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
61757         Treat Cygwin like Windows, since it now accepts Windows pathnames.
61758         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
61759         Treat Cygwin like Windows, since it now accepts Windows pathnames.
61760         Reported by Derek Robert Price <derek@ximbiot.com>.
61761
61762 2004-04-21  Karl Berry  <karl@gnu.org>
61763
61764         * config/srclist.txt (localcharset.c): break sync.
61765
61766 2004-04-20  Paul Eggert  <eggert@twinsun.com>
61767
61768         * m4/host-os.m4: Add a copyright notice.
61769
61770 2004-04-20  Jim Meyering  <jim@meyering.net>
61771
61772         Change UTILS_ to gl_ in AC_DEFINE'd names.
61773         Change utils_- and jm_-prefixed variables, too.
61774         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
61775         UTILS_FUNC_MKDIR_TRAILING_SLASH.
61776         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
61777
61778         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
61779         Don't emit trailing blanks.
61780         Also rename jm_-prefixed variables to have gl_ prefix.
61781
61782         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
61783         Also rename jm_-prefixed variables to have gl_ prefix.
61784
61785         * m4/jm-macros.m4: Reflect the renamings.
61786         * m4/prereq.m4: Likewise.
61787
61788 2004-04-20  Jim Meyering  <jim@meyering.net>
61789
61790         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
61791         memory.
61792
61793 2004-04-20  Jim Meyering  <jim@meyering.net>
61794             Bruno Haible  <bruno@clisp.org>
61795
61796         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
61797         memory when realloc fails.
61798
61799 2004-04-19  Jim Meyering  <jim@meyering.net>
61800
61801         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
61802         now that readutmp.c may call `free (0)'.
61803
61804 2004-04-19  Bruno Haible  <bruno@clisp.org>
61805
61806         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
61807         * m4/inttypes_h.m4: Likewise.
61808         * m4/stdint_h.m4: Likewise.
61809         * m4/intmax_t.m4: Likewise.
61810         * m4/uintmax_t.m4: Likewise.
61811
61812 2004-04-18  Jim Meyering  <jim@meyering.net>
61813
61814         * m4/prereq.m4: Don't forbid jm_ prefix.
61815
61816         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
61817         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
61818         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
61819         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
61820         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
61821         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
61822         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
61823         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
61824         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
61825         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
61826         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
61827         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
61828         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
61829         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
61830         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
61831         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
61832         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
61833         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
61834         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
61835
61836 2004-04-18  Jim Meyering  <jim@meyering.net>
61837
61838         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
61839         failure, don't leak memory and do call END_UTMP_ENT.
61840
61841 2004-04-16  Jim Meyering  <jim@meyering.net>
61842
61843         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
61844         coreutils' stat program.
61845         (gl_PREREQ): Don't require jm_PREREQ_STAT.
61846
61847 2004-04-11  Paul Eggert  <eggert@twinsun.com>
61848
61849         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
61850         C89.
61851         (CHAR_BIT): Remove, since we assume C89.
61852         Include <stdint.h> if available, as per current Autoconf CVS advice.
61853
61854 2004-03-31  Jim Meyering  <jim@meyering.net>
61855
61856         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
61857         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
61858         * m4/xalloc.m4: Likewise.
61859
61860 2004-03-30  Paul Eggert  <eggert@twinsun.com>
61861
61862         Merge from coreutils.
61863
61864         * m4/inttostr.m4: New file.
61865         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
61866         Require AM_STDBOOL_H and gl_TIMESPEC instead.
61867         Require gl_CLOCK_TIME.
61868         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
61869
61870 2004-03-30  Paul Eggert  <eggert@twinsun.com>
61871
61872         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
61873         not bool, to be more consistent with Unix conventions.
61874         Suggested by Bruno Haible.
61875
61876         Merge from coreutils.
61877
61878         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
61879         * lib/umaxtostr.c: New files.
61880
61881         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
61882         the usual <time.h> dance.
61883         (get_date): Change signature to support fractional time stamps.
61884         All callers changed.
61885         * lib/getdate.y: Include "getdate.h" first, as we can now
61886         assume C89 and don't need to worry about 'const'.
61887         Similarly, include "unlocked-io.h" near start, not in middle.
61888         Include <limits.h>.
61889         (textint.value): Use long int rather than int.
61890         (textint.digits): Use size_t rather than int.
61891         (BILLION, LOG10_BILLION): New constants.
61892         (parser_control): New member rel_ns.  Members day_ordinal,
61893         time_zone, month, day, hour, minutes, rel_year, rel_month,
61894         rel_day, rel_hour, rel_minutes, rel_seconds
61895         are now long int, not int.  Member seconds is now struct timespec,
61896         not int.  New member timespec_seen.  Members dates_seen, days_seen,
61897         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
61898         not int.
61899         (%union.intval): Now long int, not int.
61900         New member timespec.
61901         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
61902         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
61903         (spec): Now is a timespec or an item list.
61904         (timespec, items): New nonterminals.
61905         (time, rel, relunit, number, get_date):
61906         Add support for fractional seconds.
61907         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
61908         (gmtime, localtime, mktime): Remove decls; not needed with C89.
61909         (to_hour): First arg is now long int, not int.
61910         (to_year): Returns long int, not int.
61911         Don't treat year -70 like 70.
61912         (tm_diff): Returns long int, not int.
61913         (lookup_word): Use bool instead of int when appropriate.
61914         (yylex): Use size_t for count, not int.
61915         Detect overflow when parsing large integer constants.
61916         Add support for fractions.
61917         (get_date): Make pointers 'const' if possible.
61918         Use more-portable code to detect integer overflow.
61919         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
61920         Don't use ctime; it's not reliable if the year has >4 digits.
61921
61922         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
61923         This is for compatibility with BSD.
61924
61925         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
61926         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
61927         From coreutils' system.h.
61928
61929         * lib/userspec.c: Don't include "posixver.h".
61930         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
61931         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
61932         compatible extension.  Simplify code by removing a boolean int
61933         that was always nonzero if a string was nonnull.
61934
61935 2004-03-30  Jim Meyering  <jim@meyering.net>
61936
61937         Merge from coreutils.
61938
61939         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
61940         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
61941         on some systems one must include <grp.h> before it.
61942         Reported by Christian Krackowizer.
61943
61944 2004-03-30  Jim Meyering  <jim@meyering.net>
61945
61946         Merge from coreutils.
61947
61948         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
61949
61950         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
61951         an empty input stream.
61952
61953         * lib/readtokens.c: Include <stdbool.h>.
61954         (readtoken): Use `size_t' rather than int/long.
61955         All callers adjusted.
61956         Use `bool' rather than `int' where appropriate.
61957         Use memset rather than an explicit loop.
61958         Use x2nrealloc rather than xrealloc.
61959         Allow the use of `\0' as a delimiter.
61960         (readtokens): Likewise.
61961         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
61962
61963 2004-03-30  Jim Meyering  <jim@meyering.net>
61964
61965         * m4/realloc.m4: Remove file, since now it does no more than
61966         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
61967         the `configure.ac' section of module/realloc.
61968         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
61969
61970 2004-03-30  Bruno Haible  <bruno@clisp.org>
61971
61972         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
61973         nonnull.
61974
61975 2004-03-29  Paul Eggert  <eggert@twinsun.com>
61976
61977         Merge changes to getloadavg.c from coreutils and Emacs.
61978
61979         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
61980         Define to an expression, not to the empty string.
61981         Include cloexec.h and xalloc.h.
61982         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
61983         Use set_cloexec_flag rather than rolling our own.
61984         * lib/cloexec.c, lib/cloexec.h: New files.
61985
61986 2004-03-29  Paul Eggert  <eggert@twinsun.com>
61987
61988         * m4/cloexec.m4: New file.
61989
61990 2004-03-18  Paul Eggert  <eggert@twinsun.com>
61991
61992         * lib/getopt.h: Sync with libc CVS.
61993
61994 2004-03-18  Paul Eggert  <eggert@twinsun.com>
61995             Bruno Haible  <bruno@clisp.org>
61996
61997         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
61998         mbswidth.
61999
62000 2004-03-18  Paul Eggert  <eggert@twinsun.com>
62001             Bruno Haible  <bruno@clisp.org>
62002
62003         * lib/mbswidth.h: Include <wchar.h> only if
62004         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
62005         <wchar.h>.
62006         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
62007
62008 2004-03-09  Paul Eggert  <eggert@twinsun.com>
62009
62010         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
62011         Sync with libc CVS.
62012         * lib/getopt_int.h: New file, also synced from libc.
62013
62014 2004-03-09  Paul Eggert  <eggert@twinsun.com>
62015
62016         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
62017         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
62018         Bring back getopt.c, getopt.h, getopt1.c.
62019
62020 2004-03-07  Paul Eggert  <eggert@twinsun.com>
62021
62022         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
62023         All uses changed.  Check for sa_sigaction member; this fixes
62024         a bug first reported by Jason Andrade in
62025         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
62026
62027 2004-03-07  Paul Eggert  <eggert@twinsun.com>
62028
62029         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
62030         '#if' expressions.  Unlike the code it replaces, it does not
62031         depend on (defined _SC_PAGESIZE).  However, it does depend on
62032         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
62033         first reported by Jason Andrade in
62034         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
62035
62036 2004-02-25  Simon Josefsson  <jas@extundo.com>
62037
62038         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
62039
62040 2004-02-25  Simon Josefsson  <jas@extundo.com>
62041
62042         * lib/strdup.h: New file.
62043         * lib/strdup.c: Include it.
62044         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
62045         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
62046
62047 2004-02-23  Karl Berry  <karl@gnu.org>
62048
62049         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
62050         (from fencepost.gnu.org:/gd/gnuorg).
62051
62052 2004-02-23  Karl Berry  <karl@gnu.org>
62053
62054         * config/srclistvars.sh (GNUORG) [karl]: redefine.
62055         * config/srclist.txt: add maintain/standards documents.
62056
62057 2004-02-18  Bruno Haible  <bruno@clisp.org>
62058
62059         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
62060         Reported by Derek Robert Price <derek@ximbiot.com>.
62061
62062 2004-02-16  Karl Berry  <karl@gnu.org>
62063
62064         * config/mkinstalldirs, install-sh: update from automake.
62065
62066 2004-02-06  Karl Berry  <karl@gnu.org>
62067
62068         * m4/po.m4: update from gettext 0.14.1.
62069
62070 2004-02-06  Karl Berry  <karl@gnu.org>
62071
62072         * lib/config.charset: update from gettext 0.14.1.
62073
62074 2004-02-05  Paul Eggert  <eggert@twinsun.com>
62075
62076         Add comments and code, prompted by suggestions from Bruno Haible
62077         for sh-quote.
62078         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
62079         describing the enum quoting_style values.
62080         * lib/quotearg.c (quotearg_alloc): New function.
62081         (quotearg_buffer_restyled): Treat lone { and } as special.
62082         Treat = as special.  Work around bug with older shells
62083         that "see" a '\' that is really the 2nd byte of a multibyte char.
62084         Quote empty string with shell_quoting_style.
62085
62086 2004-02-03  Bruno Haible  <bruno@clisp.org>
62087
62088         * m4/pipe.m4: New file, from GNU gettext.
62089
62090 2004-02-03  Bruno Haible  <bruno@clisp.org>
62091
62092         * lib/pipe.h: New file, from GNU gettext.
62093         * lib/pipe.c: New file, from GNU gettext.
62094
62095 2004-01-27  Bruno Haible  <bruno@clisp.org>
62096
62097         * m4/execute.m4: New file, from GNU gettext.
62098
62099 2004-01-27  Bruno Haible  <bruno@clisp.org>
62100
62101         * lib/execute.h: New file, from GNU gettext.
62102         * lib/execute.c: New file, from GNU gettext.
62103         * lib/w32spawn.h: New file, from GNU gettext.
62104
62105 2004-01-24  Paul Eggert  <eggert@twinsun.com>
62106
62107         Merge from diffutils.
62108
62109         * lib/file-type.c (file_type): Add typed memory objects.
62110         * lib/file-type.h (S_TYPEISTMO): New macro.
62111
62112         * lib/c-stack.h (c_stack_action): Remove argv argument.
62113         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
62114         (die): Don't calculate message unless segv_action returns.
62115         (get_stack_location, min_address_from_argv, max_address_from_argv,
62116         volatile stack_base, volatile_stack_size): Remove.
62117         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
62118         that every segmentation violation is a stack overflow.  (Ouch!)
62119         See Debian bug 136249 (still outstanding) for more info about why
62120         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
62121
62122 2004-01-24  Paul Eggert  <eggert@twinsun.com>
62123
62124         Exit-status fix from coreutils.
62125
62126         Use exit_failure consistently in place of EXIT_FAILURE,
62127         so that program exit statuses are consistent on failure.
62128
62129         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
62130         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
62131         * lib/argmatch.h: Comment fix to match the above.
62132         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
62133         Now a macro referring to exit_failure, instead of a separate
62134         variable.  Include "exitfail.h" to get it.
62135         * lib/xstrtol.h: Include "exitfail.h".
62136         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
62137
62138         * lib/long-options.c (parse_long_options): Use prototype
62139         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
62140         for clarity.
62141
62142 2004-01-21  Jim Meyering  <jim@meyering.net>
62143
62144         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
62145         so as not to conflict with a different-sized __mktime_internal
62146         function in GNU libc.
62147         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
62148         Problem building statically-linked `ls' reported by Michael Brunnbauer.
62149
62150 2004-01-20  Karl Berry  <karl@gnu.org>
62151
62152         * config/config.guess: update from config.
62153
62154         * config/srclistvars.sh: GNUWWWLICENSES for karl.
62155
62156 2004-01-20  Bruno Haible  <bruno@clisp.org>
62157
62158         Safer stack allocation.
62159         * lib/setenv.c: Include allocsa.h.
62160         (alloca): Remove fallback definition.
62161         (freea): Remove macro.
62162         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
62163         instead of freea.
62164
62165 2004-01-20  Bruno Haible  <bruno@clisp.org>
62166
62167         * m4/eealloc.m4: New file, from GNU gettext.
62168
62169 2004-01-20  Bruno Haible  <bruno@clisp.org>
62170
62171         * m4/allocsa.m4: New file, from GNU gettext.
62172
62173 2004-01-20  Bruno Haible  <bruno@clisp.org>
62174
62175         * lib/xallocsa.h: New file, from GNU gettext.
62176         * lib/xallocsa.c: New file, from GNU gettext.
62177
62178 2004-01-20  Bruno Haible  <bruno@clisp.org>
62179
62180         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
62181
62182 2004-01-20  Bruno Haible  <bruno@clisp.org>
62183
62184         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
62185         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
62186         specially.
62187
62188 2004-01-20  Bruno Haible  <bruno@clisp.org>
62189
62190         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
62191         patch.
62192
62193 2004-01-20  Bruno Haible  <bruno@clisp.org>
62194
62195         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
62196
62197 2004-01-20  Bruno Haible  <bruno@clisp.org>
62198
62199         * lib/eealloc.h: New file.
62200
62201 2004-01-20  Bruno Haible  <bruno@clisp.org>
62202
62203         * lib/binary-io.h: Avoid warnings on Cygwin.
62204
62205 2004-01-20  Bruno Haible  <bruno@clisp.org>
62206
62207         * lib/allocsa.h: New file, from GNU gettext.
62208         * lib/allocsa.c: New file, from GNU gettext.
62209
62210 2004-01-18  Karl Berry  <karl@gnu.org>
62211
62212         * doc/gpl.texi, doc/lgpl.texi: new files.
62213
62214 2004-01-18  Karl Berry  <karl@gnu.org>
62215
62216         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
62217         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
62218
62219 2004-01-15  Paul Eggert  <eggert@twinsun.com>
62220
62221         Merge from coreutils.
62222
62223         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
62224         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
62225         (gl_DEFAULT_POSIX2_VERSION): Move
62226         the documentation from 'configure' into 'config.hin',
62227         so that 'configure --help' isn't burdened by it and
62228         we don't have to worry about its formatting there.
62229         Reword the documentation so that it's more succinct
62230         and can be run together into a single paragraph.
62231         * m4/same.m4 (gl_SAME): Check for pathconf.
62232
62233 2004-01-15  Paul Eggert  <eggert@twinsun.com>
62234
62235         Merge from coreutils.
62236
62237         * lib/posixver.c: Include posixver.h.
62238
62239         * lib/same.c: Include <stdbool.h>, <limits.h>.
62240         (_POSIX_NAME_MAX): Define if not defined.
62241         (MIN): New macro.
62242         (same_name): If file names are silently truncated, report
62243         that the file names are the same if they are the same after
62244         the silent truncation.
62245
62246         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
62247         conversion function.
62248         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
62249         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
62250         longer needed.
62251
62252 2004-01-15  Jim Meyering  <jim@meyering.net>
62253
62254         Merge from coreutils.
62255
62256         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
62257         if no library is required.
62258         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
62259         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
62260         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
62261         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
62262         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
62263         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
62264         value, $ac_cv_search_crypt, if it's "none required".
62265         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
62266         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
62267         not gl_FUNC_GETLOADAVG.
62268         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
62269         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
62270
62271 2004-01-15  Jim Meyering  <jim@meyering.net>
62272
62273         Merge from coreutils.
62274
62275         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
62276         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
62277         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
62278
62279         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
62280         optional configure-time default.
62281
62282         * lib/version-etc.c (version_etc_copyright): Update copyright date.
62283
62284         * lib/xreadlink.c (xreadlink): Correct outdated comment.
62285
62286 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
62287
62288         Merge from coreutils.
62289
62290         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
62291         value, $ac_cv_search_nanosleep, if it's "none required".
62292
62293 2004-01-14  Paul Eggert  <eggert@twinsun.com>
62294
62295         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
62296         with like-named macro in fnmatch.c.
62297         (EXT): Use an internal constant instead.
62298
62299         Merge fnmatch patches from glibc.
62300         * lib/fnmatch.c (mbsinit): Remove define.
62301         Add libc_hidden_ver (__fnmatch, fnmatch).
62302         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
62303         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
62304
62305 2004-01-14  Karl Berry  <karl@gnu.org>
62306
62307         * config/install-sh: update from automake.
62308
62309 2004-01-13  Karl Berry  <karl@gnu.org>
62310
62311         * config/install-sh: update from automake.
62312
62313 2004-01-09  Karl Berry  <karl@gnu.org>
62314
62315         * config/install-sh: update from automake.
62316
62317 2004-01-05  Karl Berry  <karl@gnu.org>
62318
62319         * config/config.{sub,guess}: update from config.
62320
62321 2003-12-31  Karl Berry  <karl@gnu.org>
62322
62323         * config/depcomp: update from automake.
62324
62325 2003-12-14  Karl Berry  <karl@gnu.org>
62326
62327         * lib/config.charset: update from gettext-runtime.
62328
62329 2003-12-03  Paul Eggert  <eggert@twinsun.com>
62330
62331         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
62332         Bug reported by Alfred M. Szmidt.
62333
62334 2003-12-03  Bruno Haible  <bruno@clisp.org>
62335
62336         * m4/gettext.m4: Upgrade from gettext-0.13.
62337         * m4/po.m4: Upgrade from gettext-0.13.
62338         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
62339         * m4/intmax.m4: New file, from gettext-0.13.
62340         * m4/printf-posix.m4: New file, from gettext-0.13.
62341
62342 2003-11-29  Karl Berry  <karl@gnu.org>
62343
62344         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
62345
62346 2003-11-25  Paul Eggert  <eggert@twinsun.com>
62347             Bruno Haible  <bruno@clisp.org>
62348
62349         * lib/printf-parse.h: Don't include sys/types.h.
62350         (ARG_NONE): New macro.
62351         (char_directive): Change type of *arg_index fields to size_t.
62352         * lib/printf-parse.c: Don't include sys/types.h.
62353         (SSIZE_MAX): Remove macro.
62354         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
62355         Remove unnecessary overflow check.
62356         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
62357         fields.
62358
62359 2003-11-25  Bruno Haible  <bruno@clisp.org>
62360
62361         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
62362
62363 2003-11-25  Bruno Haible  <bruno@clisp.org>
62364
62365         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
62366         gt_TYPE_SSIZE_T.
62367
62368 2003-11-24  Paul Eggert  <eggert@twinsun.com>
62369
62370         * modules/alloca: Remove dependency on xalloc.
62371
62372 2003-11-24  Paul Eggert  <eggert@twinsun.com>
62373
62374         * lib/alloca.c: Remove dependency on xalloc module.
62375         (xalloc_die): Remove.
62376         (memory_full) [!defined emacs]: New macro.
62377         [!defined emacs]: Don't include xalloc.h.
62378         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
62379         address arithmetic overflows.  Change datatypes a bit to avoid
62380         unnecessary casts.
62381
62382 2003-11-22  Jim Meyering  <jim@meyering.net>
62383
62384         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
62385         s/size/size_t/.
62386
62387 2003-11-21  Karl Berry  <karl@gnu.org>
62388
62389         * config/config.{sub,guess}: update from config.
62390
62391 2003-11-18  Karl Berry  <karl@gnu.org>
62392
62393         * config/config.{sub,guess}: update from config.
62394
62395         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
62396
62397 2003-11-17  Paul Eggert  <eggert@twinsun.com>
62398
62399         * README: Mention that S+T cannot overflow if S is the size of
62400         an existing object and T is sufficiently small.
62401
62402 2003-11-17  Jim Meyering  <jim@meyering.net>
62403
62404         On systems without utime and without a utimes function capable of
62405         dealing with a NULL struct utimbuf* argument, this utime replacement
62406         could -- in unusual circumstances -- leak a file descriptor.
62407         * lib/utime.c: Include <unistd.h> and <errno.h>.
62408         (utime_null): Be sure to close `fd' and to preserve errno.
62409         Reported by Geoff Collyer via Arnold Robbins.
62410
62411 2003-11-17  Bruno Haible  <bruno@clisp.org>
62412
62413         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
62414         (Depends-on): Add xsize.
62415
62416 2003-11-17  Bruno Haible  <bruno@clisp.org>
62417
62418         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
62419
62420 2003-11-17  Bruno Haible  <bruno@clisp.org>
62421
62422         * lib/vasnprintf.c (alloca): Remove fallback definition.
62423         (freea): Remove definition.
62424         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
62425         Reported by Paul Eggert.
62426
62427 2003-11-16  Paul Eggert  <eggert@twinsun.com>
62428             Bruno Haible  <bruno@clisp.org>
62429
62430         Protect against address arithmetic overflow.
62431         * lib/printf-args.h: Include stddef.h.
62432         (arguments): Change type of field 'count' to size_t.
62433         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
62434         'unsigned int' where appropriate.
62435         * lib/printf-parse.h: Include sys/types.h.
62436         (char_directive): Change type of *arg_index fields to ssize_t.
62437         (char_directives): Change type of fields 'count', max_*_length to
62438         size_t.
62439         * lib/printf-parse.c: Include sys/types.h and xsize.h.
62440         (SSIZE_MAX): Define fallback value.
62441         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
62442         instead of 'int' where appropriate. Check a_allocated, d_allocated
62443         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
62444         * lib/vasnprintf.c: Include xsize.h.
62445         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
62446         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
62447         overflow. Avoid wraparound when converting a width or precision from
62448         decimal to binary.
62449
62450 2003-11-16  Bruno Haible  <bruno@clisp.org>
62451
62452         Update from GNU gettext.
62453         * lib/printf-parse.c: Generalize to it can be compiled for wide
62454         strings.
62455         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
62456         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
62457         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
62458         SNPRINTF): New macros.
62459         Don't include <alloca.h> if the file is used inside libintl.
62460         (local_wcslen): New function, for Solaris 2.5.1.
62461         (VASNPRINTF): Use it instead of wcslen.
62462
62463 2003-11-16  Bruno Haible  <bruno@clisp.org>
62464
62465         * lib/xsize.h (xmax): New function.
62466         (xsum, xsum3, xsum4): Declare as "pure" functions.
62467
62468 2003-11-12  Paul Eggert  <eggert@twinsun.com>
62469
62470         * modules/xalloc (Files): Undo latest change, since xalloc.h
62471         no longer needs SIZE_MAX or PTRDIFF_MAX.
62472
62473 2003-11-12  Paul Eggert  <eggert@twinsun.com>
62474
62475         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
62476         gl_PTRDIFF_MAX.
62477
62478 2003-11-12  Paul Eggert  <eggert@twinsun.com>
62479
62480         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
62481         "return", to pacify some unknown compiler.  Problem reported
62482         by Joerg Schilling.
62483
62484 2003-11-12  Paul Eggert  <eggert@twinsun.com>
62485
62486         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
62487         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
62488         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
62489         heuristic is just as accurate as far as we know, and it removes a
62490         dependency on size_max.m4 and ptrdiff_max.m4.
62491
62492 2003-11-11  Bruno Haible  <bruno@clisp.org>
62493
62494         * modules/xsize (Files): Add m4/size_max.m4.
62495         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
62496
62497 2003-11-11  Bruno Haible  <bruno@clisp.org>
62498
62499         * m4/size_max.m4: New file.
62500         * m4/ptrdiff_max.m4: New file.
62501         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
62502         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
62503         (gl_XALLOC): Invoke it.
62504
62505 2003-11-11  Bruno Haible  <bruno@clisp.org>
62506
62507         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
62508         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
62509         defined.
62510
62511 2003-11-10  Paul Eggert  <eggert@twinsun.com>
62512
62513         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
62514         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
62515         rejected some allocations of exactly SIZE_MAX - 2 bytes.
62516         From Bruno Haible.
62517         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
62518         not (size_t) -1, since it's defined here.
62519
62520 2003-11-09  Karl Berry  <karl@gnu.org>
62521
62522         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
62523
62524 2003-11-06  Paul Eggert  <eggert@twinsun.com>
62525
62526         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
62527         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
62528         Reject sizes of exactly SIZE_MAX bytes.
62529         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
62530         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
62531
62532 2003-11-05  Bruno Haible  <bruno@clisp.org>
62533
62534         * lib/xsize.h: Include limits.h, to avoid a possible collision with
62535         SIZE_MAX defined in <limits.h> on Solaris.
62536
62537 2003-11-04  Jim Meyering  <jim@meyering.net>
62538
62539         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
62540         variable names, rather than @VAR@.
62541         * modules/poll: Likewise.
62542
62543 2003-11-04  Bruno Haible  <bruno@clisp.org>
62544
62545         * modules/xsize: New file.
62546         * modules/linebreak: Depend on xsize.
62547         * MODULES.html.sh (func_all_modules): Add xsize.
62548
62549 2003-11-04  Bruno Haible  <bruno@clisp.org>
62550
62551         * m4/xsize.m4: New file.
62552
62553 2003-11-04  Bruno Haible  <bruno@clisp.org>
62554
62555         * lib/xsize.h: New file.
62556         * lib/linebreak.c: Include xsize.h.
62557         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
62558         argument for overflow.
62559         Suggested by Paul Eggert.
62560
62561 2003-11-03  Karl Berry  <karl@gnu.org>
62562
62563         * config/config.{guess,sub}: update from config.
62564
62565 2003-11-03  Jim Meyering  <jim@meyering.net>
62566
62567         * modules/userspec (lib_SOURCES): Add userspec.h.
62568         (Include): Add "userspec.h".
62569         Improve description.
62570
62571 2003-11-03  Jim Meyering  <jim@meyering.net>
62572
62573         * lib/userspec.c: Include "userspec.h".
62574         * lib/userspec.h: New file.
62575
62576 2003-11-03  Bruno Haible  <bruno@clisp.org>
62577
62578         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
62579
62580 2003-11-03  Bruno Haible  <bruno@clisp.org>
62581
62582         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
62583         available, to avoid (extremely rare) race condition.
62584         Suggested by Paul Eggert.
62585
62586 2003-11-02  Karl Berry  <karl@gnu.org>
62587
62588         * config/srclist.txt (vasprintf.c): sync broken, sigh.
62589
62590 2003-10-31  Paul Eggert  <eggert@twinsun.com>
62591
62592         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
62593         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
62594         (read_filesystem_list): Set and use me_type_malloced.
62595         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
62596         whatever the type happens to be), for brevity and consistency.
62597         Check for size calculation overflow on Alphas running OSF/1.
62598
62599 2003-10-31  Jim Meyering  <jim@meyering.net>
62600
62601         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
62602
62603         * lib/linebuffer.c: Include <string.h> for declaration of memset.
62604
62605 2003-10-30  Paul Eggert  <eggert@twinsun.com>
62606             Bruno Haible  <bruno@clisp.org>
62607
62608         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
62609         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
62610
62611 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
62612
62613         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
62614         netbsd*-gnu*.  Suggested by Robert Millan.
62615
62616 2003-10-29  Paul Eggert  <eggert@twinsun.com>
62617
62618         * modules/group-member: Depend on stdbool.
62619
62620 2003-10-29  Paul Eggert  <eggert@twinsun.com>
62621
62622         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
62623
62624 2003-10-29  Paul Eggert  <eggert@twinsun.com>
62625
62626         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
62627         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
62628         after the 'gnu' in these cases.  This fixes some bugs in the
62629         previous change, and is based on suggestions by Robert Millan.
62630
62631 2003-10-29  Paul Eggert  <eggert@twinsun.com>
62632
62633         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
62634         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
62635         no longer needed.
62636         * lib/quotearg.c (quotearg_n_options): Use it.
62637         * lib/group-member.c: Include <stdbool.h>.
62638         (free_group_info): Arg is now const *; don't free arg.
62639         (get_group_info): Now returns bool and accepts struct group_info *,
62640         rather than returning a malloc'ed struct group_info *.
62641         All uses changed.  Check for overflow in internal size calculation.
62642
62643         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
62644         rather than xmalloc/xrealloc.
62645         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
62646         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
62647         conformance bug: the old code used a pointer after freeing the
62648         storage that it addressed.
62649         * lib/hash.c (hash_initialize): Simplify the code by using
62650         xalloc_oversized rather than doing it by hand.
62651         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
62652         the buffer preserved.  Use free and xmalloc instead.
62653         * lib/quotearg.c (quotearg_n_options): Likewise.
62654         Use a simpler test for size overflow.  Don't use xalloc_oversized
62655         because unsigned int might be wider than size_t (!); this suggests
62656         that we should switch from unsigned int to size_t for slot numbers.
62657
62658 2003-10-28  Paul Eggert  <eggert@twinsun.com>
62659
62660         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
62661         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
62662         NetBSD kernels.  Requested by Richard Stallman.
62663
62664 2003-10-27  Paul Eggert  <eggert@twinsun.com>
62665
62666         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
62667         to allocate the returned structure.  Do not allocate a subarray,
62668         as x2nrealloc will do that.
62669         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
62670         instead of xnrealloc.
62671         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
62672
62673 2003-10-27  Bruno Haible  <bruno@clisp.org>
62674
62675         * lib/stdbool_.h: Better support for BeOS.
62676
62677 2003-10-26  Paul Eggert  <eggert@twinsun.com>
62678
62679         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
62680         now uses inline.
62681
62682 2003-10-26  Paul Eggert  <eggert@twinsun.com>
62683
62684         * lib/xalloc.h (xalloc_oversized): New static inline function, for
62685         callers that want to do their own size-overflow checking.  Include
62686         <stdbool.h>, since xalloc_oversized returns bool.
62687         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
62688         to use xalloc_oversized.
62689
62690         Add two functions x2realloc, x2nrealloc, for programs that grow
62691         arrays dynamically by doubling their sizes.
62692         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
62693         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
62694         New functions.
62695
62696         Port to C99 semantics for 'inline' of external functions.
62697         Bug reported by Bruno Haible.
62698         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
62699         with the old contents of xnmalloc.
62700         (xnmalloc, xmalloc): Use it.
62701         (xnrealloc_inline): New static inline function,
62702         with the old contents of xnrealloc.
62703         (xnrealloc, xrealloc): Use it.
62704
62705         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
62706         that.
62707
62708 2003-10-26  Karl Berry  <karl@gnu.org>
62709
62710         * config/srclist.txt (COPYING.DOC): no longer available from
62711         /gd/gnuorg; don't know where the ultimate source is.
62712
62713 2003-10-25  Paul Eggert  <eggert@twinsun.com>
62714
62715         Fix several address-calculation bugs in the hash modules,
62716         plus some minor code cleanup.
62717
62718         * lib/hash.h: Include <stdbool.h>, for bool.
62719         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
62720         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
62721         hash_get_n_entries, hash_get_max_bucket_length,
62722         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
62723         hash_rehash): Use size_t rather than unsigned.
62724         * lib/hash.c (struct hash_table, hash_get_n_buckets,
62725         hash_get_n_buckets_used, hash_get_n_entries,
62726         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
62727         hash_get_entries, hash_do_for_each, hash_string, is_prime,
62728         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
62729         Likewise.
62730         (SIZE_MAX): Define if not defined.
62731         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
62732         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
62733         hash_print):
62734         Use const * when possible.
62735         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
62736         (check_tuning): Fix bug: if tuning parameters were very close to
62737         0 or 1, rounding errors could have caused subscript violations.
62738         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
62739         (hash_initialize): Add 'fail:' label
62740         to free table and return NULL, and use it to simplify code.
62741         Use calloc rather than clearing the storage ourself.
62742         (hash_initialize, hash_rehash): Check for arithmetic overflow in
62743         buffer size calculations.
62744         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
62745         Include <stddef.h>, for size_t.
62746         * lib/hash-pjw.c (hash_pjw): Likewise.
62747         Switch to method described by Bruno Haible.
62748         Include <limits.h>, for CHAR_BIT.
62749         (SIZE_BITS): New macro.
62750
62751 2003-10-23  Paul Eggert  <eggert@twinsun.com>
62752
62753         * m4/getline.m4 (AM_FUNC_GETLINE):
62754         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
62755         hosts.  Problem reported by Derek Robert Price in
62756         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
62757         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
62758         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
62759
62760 2003-10-21  Paul Eggert  <eggert@twinsun.com>
62761
62762         * lib/getndelim2.c (getndelim2): When size calculation overflows,
62763         ceiling the allocation at NMAX bytes rather than silently
62764         discarding input bytes before NMAX is reached.  This makes
62765         a difference only if NMAX exceeds SIZE_MAX / 2.
62766
62767         * lib/obstack.c: Merge from glibc.
62768         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
62769         Add libc_hidden_def (_obstack_newchunk).
62770         (_obstack_free) [! defined _LIBC]: Remove.
62771         [defined _LIBC]: Make a strong alias from obstack_free, rather than
62772         a clone of the function body.
62773         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
62774         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
62775
62776         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
62777         glibc.
62778         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
62779         arg to memcpy.
62780
62781         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
62782         (obstack_ptr_grow_fast, obstack_int_grow_fast):
62783         Don't use lvalue casts, as GCC plans to remove support for them
62784         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
62785         was also present in the non-GCC version, indicating that this
62786         code had always been buggy and had never been widely used.
62787         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
62788         Use the fast variant of each macro, rather than copying the
62789         definiens of the fast variant; that way, we'll be more likely to
62790         catch future bugs in the fast variants.
62791
62792 2003-10-20  Bruno Haible  <bruno@clisp.org>
62793
62794         * modules/wait-process: New file.
62795         * MODULES.html.sh (func_all_modules): Add wait-process.
62796
62797 2003-10-20  Bruno Haible  <bruno@clisp.org>
62798
62799         * m4/wait-process.m4: New file.
62800
62801 2003-10-20  Bruno Haible  <bruno@clisp.org>
62802
62803         * lib/wait-process.h: New file, from GNU gettext.
62804         * lib/wait-process.c: New file, from GNU gettext.
62805
62806 2003-10-19  Jim Meyering  <jim@meyering.net>
62807
62808         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
62809         HPUX 10.20.
62810
62811 2003-10-18  Karl Berry  <karl@gnu.org>
62812
62813         * config/config.guess: update from config.
62814
62815 2003-10-16  Paul Eggert  <eggert@twinsun.com>
62816
62817         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
62818         (getgroups): First arg is int, not size_t.
62819         Don't let 'free' mangle errno.
62820
62821 2003-10-16  Paul Eggert  <eggert@twinsun.com>
62822
62823         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
62824
62825 2003-10-16  Karl Berry  <karl@gnu.org>
62826
62827         * config/config.{guess,sub}: update from config.
62828
62829 2003-10-16  Jim Meyering  <jim@meyering.net>
62830
62831         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
62832         memcpy.
62833
62834 2003-10-15  Paul Eggert  <eggert@twinsun.com>
62835
62836         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
62837         (SIZE_MAX): Remove.
62838         (new_exclude, add_exclude_file): Initial size no longer needs to
62839         be a power of 2.
62840         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
62841         our own address arithmetic overflow checking.
62842
62843         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
62844         (fnmatch): Do not alloca more than 2000 wide characters;
62845         instead, use malloc for large buffers.
62846         Check for address arithmetic overflow, and return -1
62847         with errno set to ENOMEM in that case.
62848         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
62849         (NEW_PATTERN): Do not alloca more than 8000 bytes;
62850         instead, return -1.  Check for address arithmetic overflow.
62851
62852 2003-10-14  Paul Eggert  <eggert@twinsun.com>
62853
62854         Handle invalid suffixes and overflow independently, so that
62855         callers can treat them independently as needed.  Fix some bugs in
62856         suffix handling, e.g., "100k@" was not diagnosed as an invalid
62857         suffix for a human-readable blocksize.  The major caller-visible
62858         change is the addition of a new
62859         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
62860         that both overflow and suffix chars were found.
62861
62862         * lib/human.c (humblock): Don't check separately for invalid suffix
62863         char; that is xstrtoumax's job (now that its bug is fixed).
62864         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
62865         INTMAX_MAX]: New macros.
62866         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
62867         TYPE_MAXIMUM): New macros.
62868         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
62869         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
62870         if overflow occurs, as it's what __strtol does and it's more useful
62871         in practice.
62872         (__xstrtol): If __strtol reports some error other than ERANGE,
62873         reflect it to the caller as LONGINT_INVALID.  If it reports
62874         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
62875         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
62876         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
62877         value.
62878         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
62879         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
62880         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
62881         [defined UINTMAX_MAX]: New macros.
62882
62883 2003-10-14  Bruno Haible  <bruno@clisp.org>
62884
62885         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
62886
62887 2003-10-14  Bruno Haible  <bruno@clisp.org>
62888
62889         * m4/sig_atomic_t: New file, from GNU gettext.
62890         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
62891
62892 2003-10-14  Bruno Haible  <bruno@clisp.org>
62893
62894         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
62895         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
62896         Also use volatile where needed.
62897
62898 2003-10-12  Paul Eggert  <eggert@twinsun.com>
62899
62900         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
62901         Change maintainer from Bruno Haible to 'all'.
62902
62903 2003-10-12  Paul Eggert  <eggert@twinsun.com>
62904
62905         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
62906
62907 2003-10-12  Paul Eggert  <eggert@twinsun.com>
62908
62909         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
62910         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
62911         and define in terms of the other primitives.
62912         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
62913         (SIZE_MAX): Define if not already defined.
62914         (array_size_overflow): New function.
62915         (xalloc_die): Abort instead of exiting if 'error' returns.
62916         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
62917         (xmalloc, xrealloc): Use them.
62918         (xcalloc): Check for address arithmetic overflow.
62919         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
62920         a bit faster than strcpy.
62921
62922 2003-10-10  Simon Josefsson  <jas@extundo.com>
62923
62924         * modules/argp (Depends-on): Add restrict and strcase.
62925
62926 2003-10-10  Simon Josefsson  <jas@extundo.com>
62927
62928         * m4/argp.m4: Add AC_C_INLINE.
62929
62930 2003-10-08  Paul Eggert  <eggert@twinsun.com>
62931
62932         Merge getpass from libc, plus a few fixes.
62933
62934         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
62935         Include <stdbool.h>.
62936         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
62937         __fsetlocking to empty.
62938         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
62939         do include <bits/libc-lock.h>.
62940         Do not include <fcntl.h>; not needed.
62941         [_LIBC]: Include <wchar.h>.
62942         (NOTCANCEL_MODE): New macro.
62943         (flockfile, funlockfile) [_LIBC]: New macros.
62944         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
62945         [!_LIBC]: New macros.
62946         (call_fclose): New function.
62947         (getpass): Use it.  Save tty stream separately; this simplifies the
62948         code and makes it more reliable if stdin happens to equal stdout.
62949         Invoke __fsetlocking on tty.
62950         Handle thread cancellation if needed.
62951         Namespace cleanup (use __tcgetattr, __getline).
62952         Use bool for Booleans.
62953         [USE_IN_LIBIO]: Handle wide streams.
62954         [!_LIBC]: Unconditionally do the fseek, since we don't know what
62955         stream might go where.
62956
62957         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
62958         doesn't have to include <stdio.h> before us.
62959         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
62960         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
62961         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
62962         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
62963         if not declared, so that we can use getpass.c code from libc without
62964         rewriting it.
62965         (flockfile, ftrylockfile, funlockfile): New macros.
62966
62967 2003-10-08  Paul Eggert  <eggert@twinsun.com>
62968
62969         * modules/getpass: Depend on stdbool.
62970
62971 2003-10-08  Paul Eggert  <eggert@twinsun.com>
62972
62973         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
62974
62975 2003-10-07  Karl Berry  <karl@gnu.org>
62976
62977         * config/config.{guess,sub}: update from config.
62978
62979 2003-10-06  Jim Meyering  <jim@meyering.net>
62980             Bruno Haible  <bruno@clisp.org>
62981
62982         This lets translators provide better translations for the
62983         "Written by ..." part of --version output.
62984         * lib/version-etc.h: Include stdarg.h.
62985         (version_etc_copyright): Declare as readonly.
62986         (version_etc): Make this function variadic with a NULL-terminated list
62987         of author name strings.
62988         (version_etc_va): New declaration.
62989         * lib/version-etc.c: Include stdarg.h, stdlib.h.
62990         (version_etc_copyright): Declare as readonly.
62991         (version_etc_va): New function. Provide a different translatable string
62992         for each possible number of authors < 10. Abbreviate when there are 10
62993         authors or more.
62994         (version_etc): Make this function variadic. Call version_etc_va.
62995         Suggestion from Gary V. Vaughan.
62996
62997         * lib/long-options.h (parse_long_options): Change prototype: the
62998         authors string is moved to the end and becomes variadic.
62999         * lib/long-options.c: Include stdarg.h.
63000         (parse_long_options): Make this function variadic, too.
63001         Call version_etc_va, not version_etc.
63002
63003 2003-10-06  Bruno Haible  <bruno@clisp.org>
63004
63005         * modules/version-etc-2: Remove file.
63006         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
63007
63008 2003-10-06  Bruno Haible  <bruno@clisp.org>
63009
63010         * modules/fatal-signal: New file.
63011         * MODULES.html.sh (func_all_modules): Add fatal-signal.
63012
63013 2003-10-06  Bruno Haible  <bruno@clisp.org>
63014
63015         * m4/fatal-signal.m4: New file.
63016         * m4/signalblocking.m4: New file, from GNU gettext.
63017
63018 2003-10-06  Bruno Haible  <bruno@clisp.org>
63019
63020         * lib/version-etc-2.h: Remove file.
63021         * lib/version-etc-2.c: Remove file.
63022
63023 2003-10-06  Bruno Haible  <bruno@clisp.org>
63024
63025         * lib/fatal-signal.h: New file, from GNU gettext.
63026         * lib/fatal-signal.c: New file, from GNU gettext.
63027
63028 2003-10-05  Paul Eggert  <eggert@twinsun.com>
63029
63030         * README: Rework advice for preventing empty .o files.
63031         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
63032         not <sys/types.h>.
63033
63034 2003-10-04  Karl Berry  <karl@gnu.org>
63035
63036         * lib/argp*: update from libc.
63037
63038 2003-10-04  Karl Berry  <karl@gnu.org>
63039
63040         * config/config.{guess,sub}: update from config.
63041
63042 2003-10-02  Bruno Haible  <bruno@clisp.org>
63043
63044         * modules/lchown (Include): Add lchown.h.
63045         * modules/time_r (Include): Use "..." syntax.
63046         * modules/xgetdomainname (Include): Add xgetdomainname.h.
63047
63048 2003-10-01  Simon Josefsson  <jas@extundo.com>
63049
63050         * MODULES.html.sh (func_all_modules): Move gethostname from section
63051         'based on' to section 'lacking' POSIX:2001.
63052
63053 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
63054
63055         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
63056         to output mode on the same stream.
63057
63058 2003-09-29  Paul Eggert  <eggert@twinsun.com>
63059
63060         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
63061         Fix arg typo in previous patch.
63062
63063 2003-09-28  Jim Meyering  <jim@meyering.net>
63064
63065         * lib/error.c: Correct cpp indentation.
63066
63067 2003-09-27  Paul Eggert  <eggert@twinsun.com>
63068
63069         * modules/free: New file.
63070
63071 2003-09-27  Paul Eggert  <eggert@twinsun.com>
63072
63073         * m4/free.m4: New file.
63074
63075 2003-09-27  Paul Eggert  <eggert@twinsun.com>
63076
63077         * lib/minmax.h (MIN, MAX)
63078         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
63079         Omit the special code that used __typeof__, since we worry that
63080         it could be more trouble than it's worth.  See:
63081         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
63082         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
63083
63084         * lib/free.c: New file.
63085
63086 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
63087
63088         Trivial fixes to Makefile.am parts of module listings.
63089         * modules/strstr: Append strstr.h to lib_SOURCES.
63090         * modules/strcase: Likewise, for strcase.h.
63091
63092 2003-09-27  Karl Berry  <karl@gnu.org>
63093
63094         * config/mkinstalldirs: update from automake.
63095
63096 2003-09-26  Paul Eggert  <eggert@twinsun.com>
63097
63098         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
63099         (error_tail): Do not loop, reallocating temporary buffer, since
63100         the output cannot contain more wide characters than the input
63101         contains bytes, the size must be big enough already.  This avoids
63102         one potential size overflow calculation.  Check for size overflow
63103         when calculating temporary buffer size.  Free temporary buffer
63104         when done, if it was allocated with malloc; this plugs a memory
63105         leak.  Remove casts from void * to pointers, that are no longer
63106         needed now that we're assuming C89 or better.
63107
63108         Merge error changes from glibc.
63109
63110         * lib/error.c, error.h: Update copyright notice header to match glibc.
63111         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
63112         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
63113         Disable cancellation while printing error.
63114         * lib/error.h: Prepend __ to parameter names.
63115
63116 2003-09-26  Jim Meyering  <jim@meyering.net>
63117
63118         * lib/error.c (error_tail): Move some declarations
63119         into inner scope where the local variables are used.
63120
63121 2003-09-26  Bruno Haible  <bruno@clisp.org>
63122
63123         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
63124         stpncpy().
63125         Don't define stpncpy through config.h; it's now done through stpncpy.h.
63126
63127 2003-09-26  Bruno Haible  <bruno@clisp.org>
63128
63129         * lib/stpncpy.h (gnu_stpncpy): New declaration.
63130         (stpncpy): Define as alias for gnu_stpncpy.
63131         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
63132
63133 2003-09-25  Simon Josefsson  <jas@extundo.com>
63134
63135         * lib/xgetdomainname.h: New file.
63136         * lib/xgetdomainname.c: New file.
63137
63138 2003-09-25  Simon Josefsson  <jas@extundo.com>
63139             Bruno Haible  <bruno@clisp.org>
63140
63141         * modules/getdomainname: New file.
63142         * modules/xgetdomainname: New file.
63143         * MODULES.html.sh (func_all_modules): Add getdomainname,
63144         xgetdomainname.
63145
63146 2003-09-25  Simon Josefsson  <jas@extundo.com>
63147             Bruno Haible  <bruno@clisp.org>
63148
63149         * m4/getdomainname.m4: New file.
63150
63151 2003-09-25  Simon Josefsson  <jas@extundo.com>
63152             Bruno Haible  <bruno@clisp.org>
63153
63154         * lib/getdomainname.h: New file.
63155         * lib/getdomainname.c: New file.
63156
63157 2003-09-25  Karl Berry  <karl@gnu.org>
63158
63159         * lib/argp-fmtstream.c, argp-help.c: update from libc.
63160
63161 2003-09-25  Karl Berry  <karl@gnu.org>
63162
63163         * config/install-sh: update from automake.
63164
63165 2003-09-25  Bruno Haible  <bruno@clisp.org>
63166
63167         * modules/version-etc-2: New file, from modules/version-etc with
63168         modifications.
63169         * MODULES.html.sh (func_all_modules): Add version-etc-2.
63170
63171 2003-09-25  Bruno Haible  <bruno@clisp.org>
63172
63173         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
63174         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
63175
63176 2003-09-24  Simon Josefsson  <jas@extundo.com>
63177
63178         * modules/xgethostname: Add xgethostname.h.
63179
63180 2003-09-24  Paul Eggert  <eggert@twinsun.com>
63181
63182         * lib/linebuffer.c (freebuffer): Don't free the argument, just
63183         the buffer associated with the argument.  Bug reported by
63184         Simon Josefsson.
63185
63186 2003-09-24  Paul Eggert  <eggert@twinsun.com>
63187
63188         * README: Document assumptions that 'int' is at least 32 bits
63189         wide, that integer arithmetic is 2's complement without overflow,
63190         that there are no holes in integer values, that adding sizes of
63191         two nonoverlapping objects can't overflow, and that all-bits-zero
63192         yields scalar zero.  Fix spelling and capitalization typos.
63193
63194 2003-09-19  Karl Berry  <karl@gnu.org>
63195
63196         * lib/argp.h: update from libc.
63197
63198 2003-09-17  Paul Eggert  <eggert@twinsun.com>
63199
63200         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
63201         to avoid spurious warnings like "AC_RUN_IFELSE was called before
63202         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
63203
63204 2003-09-17  Paul Eggert  <eggert@twinsun.com>
63205
63206         * gnulib-tool: Use "test -h", not "test -L", for portability
63207         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
63208         (tags_regexp): Remove, since \| doesn't conform to POSIX.
63209         (sed_extract_prog): Issue s commands one-by-one, rather than
63210         using \| in one s command.
63211
63212 2003-09-16  Paul Eggert  <eggert@twinsun.com>
63213
63214         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
63215         input error, instead of returning NULL the next time we are called
63216         (and therefore losing track of errno).
63217
63218 2003-09-16  Bruno Haible  <bruno@clisp.org>
63219
63220         * gnulib-tool (func_create_testdir): Warn about duplicated
63221         dependencies.
63222
63223 2003-09-15  Paul Eggert  <eggert@twinsun.com>
63224
63225         * modules/argmatch, modules/fatal, modules/obstack,
63226         modules/xalloc, modules/xgethostname: Sort dependencies by
63227         importance, not alphabetically.
63228
63229 2003-09-15  Paul Eggert  <eggert@twinsun.com>
63230
63231         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
63232         fails, so that the caller gets the proper errno.
63233
63234         * lib/readutmp.c (read_utmp): Likewise.
63235         Check for fstat error.  Close stream and free storage
63236         when failing.
63237
63238 2003-09-14  Karl Berry  <karl@gnu.org>
63239
63240         * config/srclist.txt (strdup.c): disable for c89 changes.
63241
63242 2003-09-14  Jim Meyering  <jim@meyering.net>
63243
63244         * lib/getloadavg.c: Correct cpp indentation.
63245         * lib/strdup.c: Likewise.
63246         * lib/vasnprintf.c: Likewise.
63247
63248 2003-09-14  Bruno Haible  <bruno@clisp.org>
63249
63250         * modules/fwriteerror: New file.
63251         * MODULES.html.sh (func_all_modules): Add fwriteerror.
63252
63253 2003-09-14  Bruno Haible  <bruno@clisp.org>
63254
63255         * lib/fwriteerror.h: New file.
63256         * lib/fwriteerror.c: New file.
63257
63258 2003-09-12  Paul Eggert  <eggert@twinsun.com>
63259
63260         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
63261         modules/xgethostname, modules/xalloc: Depend on exit.
63262
63263 2003-09-12  Paul Eggert  <eggert@twinsun.com>
63264
63265         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
63266
63267         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
63268         and AC_MINIX, too, so that their extensions are available.
63269
63270         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
63271         This macro has been superseded by gl_BACKUPFILE.
63272
63273         More patches to assume C89 or better.
63274
63275         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
63276
63277         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
63278         unconditionally.
63279         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
63280         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
63281         Include <string.h>, <stdlib.h> unconditionally.
63282         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
63283         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
63284         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
63285         headers or for string.h.
63286         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
63287         or strtoul.
63288
63289         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
63290         headers.
63291         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
63292         * m4/userspec.m4 (gl_USERSPEC): Likewise.
63293         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
63294         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
63295         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
63296         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
63297         memcpy, memset.
63298         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
63299         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
63300         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
63301         strtol.
63302         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
63303         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
63304         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
63305         strtoul.
63306
63307 2003-09-12  Paul Eggert  <eggert@twinsun.com>
63308
63309         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
63310         * lib/obstack.c [!defined _LIBC]: Likewise.
63311         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
63312         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
63313         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
63314
63315         More changes to assume C89 or better.
63316
63317         * lib/error.c (error_tail): Assume vprintf.
63318
63319         * lib/argmatch.c (getenv): Remove decl.
63320         * lib/progreloc.c (get_full_program_name): Define via prototype.
63321         * lib/setenv.c (clearenv): Likewise.
63322         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
63323         needed.
63324         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
63325         (malloc, memcpy): Remove decls.
63326         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
63327         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
63328         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
63329         (memcpy): Remove macro.
63330         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
63331         (__P): Remove.  All uses removed.
63332         (PTR): Remove.  All uses changed to void *.
63333         (CHAR_BIT, NULL): Remove.
63334         (spaces, zeros, memset_space, memset_zero)
63335         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
63336         Remove.
63337         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
63338         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
63339         Define with prototype.
63340         Remove now-unnecessary prototype decl.
63341         (extra_args_spec): Assume ANSI C.  All uses changed.
63342         (extra_args_spec_iso): Remove.
63343         (my_strftime, emacs_strftimeu): Define via prototype.
63344         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
63345         unconditionally.
63346         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
63347         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
63348         (strtoul, strtol): Remove decls.
63349         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
63350         LONG_MAX): Remove.
63351         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
63352         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
63353         (LOCALE_PARAM_PROTO): New macro.
63354         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
63355         (INTERNAL (strtol), strtol): Define with a prototype.
63356         (PARAMS): Remove.  All uses removed.
63357         * lib/tempname.c: Include <string.h> unconditionally.
63358         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
63359         * lib/xgethostname.c (main): Define with a prototype.
63360         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
63361         Include <stdlib.h> unconditionally.
63362         (calloc, malloc, realloc, free): Remove decls.
63363         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
63364         Include <stdlib.h> unconditionally.  Sort include file names.
63365         (strtod): Remove.
63366         (xstrtod): Define with a prototype.
63367         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
63368         (strtol, strtoul): Remove decls.
63369
63370 2003-09-11  Paul Eggert  <eggert@twinsun.com>
63371
63372         More patches to assume C89 or better.
63373         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
63374         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
63375         string.h, memchr, STDC_HEADERS.
63376
63377 2003-09-11  Paul Eggert  <eggert@twinsun.com>
63378
63379         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
63380         Include <stdlib.h>, <string.h> unconditionally.
63381         Remove now-unnecessary cast to char *.
63382         * lib/strnlen.c: Include <string.h> unconditionally.
63383         * lib/yesno.c (yesno): Define with a prototype.
63384
63385 2003-09-11  Bruno Haible  <bruno@clisp.org>
63386
63387         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
63388
63389 2003-09-10  Jim Meyering  <jim@meyering.net>
63390
63391         * lib/error.c: Correct indentation of cpp directives.
63392
63393 2003-09-10  Bruno Haible  <bruno@clisp.org>
63394
63395         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
63396         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
63397         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
63398         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
63399         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
63400         <stdlib.h> and <string.h> checks.
63401         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
63402         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
63403
63404 2003-09-10  Bruno Haible  <bruno@clisp.org>
63405
63406         * lib/strcspn.c: Include <string.h> unconditionally.
63407         * lib/strpbrk.c: Include <string.h> unconditionally.
63408         * lib/strstr.c: Include <string.h> unconditionally.
63409         * lib/unicodeio.c: Include <string.h> unconditionally.
63410         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
63411         * lib/unsetenv.c: Likewise.
63412         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
63413         * lib/yesno.c: Include <stdlib.h> unconditionally.
63414         (rpmatch): Add prototype.
63415
63416 2003-09-09  Paul Eggert  <eggert@twinsun.com>
63417
63418         More patches to assume C89 or better.
63419         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
63420         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
63421         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
63422         or for string.h.
63423         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
63424         stdlib.h.
63425         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
63426         C headers.
63427         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
63428         string.h.
63429         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
63430         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
63431         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
63432         or for string.h.
63433         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
63434         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
63435         C headers.
63436         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
63437         memcpy.
63438         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
63439         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
63440         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
63441         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
63442         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
63443         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
63444         string.h, free.
63445         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
63446         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
63447         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
63448         C headers, or for string.h.
63449         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
63450         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
63451         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
63452         headers, memory.h, stdlib.h, string.h, strings.h.
63453         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
63454         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
63455         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
63456         strchr.
63457         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
63458         headers, memory.h, string.h.
63459         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
63460         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
63461         free.
63462         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
63463         headers.
63464         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
63465         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
63466         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
63467         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
63468         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
63469
63470 2003-09-09  Paul Eggert  <eggert@twinsun.com>
63471
63472         More K&R removal.
63473
63474         * lib/acosl.c (main): Use a prototype.
63475         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
63476         tanl.c: Likewise.
63477
63478         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
63479
63480         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
63481         (getopt, etopt_long, getopt_long_only, _getopt_internal)
63482         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
63483         with a prototype.
63484         * lib/getopt.c (const): Remove macro.
63485         Include <string.h> unconditionally.
63486         (my_index): Remove; all uses changed to strchr.
63487         (strlen): Remove decl.
63488         (exchange): Remove forward decl; no longer needed.
63489         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
63490         Define with prototype.
63491         * lib/getopt1.c (const): Remove macro.
63492         (getopt_long, getopt_long_only, main): Define with prototype.
63493
63494         * lib/getugroups.c: Include <string.h> unconditionally.
63495
63496         * lib/getusershell.c: Include <stdlib.h> unconditionally.
63497         (getusershell, setusershell, endusershell, readname, main):
63498         Define with prototypes.
63499
63500         * lib/group-member.c: Include group-member.h first.
63501         Include <stdlib.h> unconditionally.
63502
63503         * lib/hard-locale.c: Include hard-locale.h first.
63504         Include <stdlib.h>, <string.h> unconditionally.
63505
63506         * lib/hash.c (free, malloc): Remove decls.
63507         Include <stdlib.h> unconditionally.
63508
63509         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
63510         (getenv): Do not declare.
63511
63512         * lib/idcache.c: Include <string.h> unconditionally.
63513
63514         * lib/long-options.c: Include long-options.h first, to test interface.
63515         Include <stdlib.h> unconditionally.
63516
63517         * lib/makepath.c: Include makepath.h first, to test interface.
63518         Include <stdlib.h> and <string.h> unconditionally.
63519
63520         * lib/linebuffer.c: Include <stdlib.h>.
63521         (free): Remove decl.
63522
63523         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
63524         stddef.h. rpl_malloc returns void *, not char *.
63525         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
63526         prototype.
63527
63528         * lib/md5.h: Include <limits.h> unconditionally.
63529         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
63530         (__P): Remove; all uses removed.
63531         * lib/md5.c: Include "md5.h" first.
63532         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
63533         md5_buffer, md5_process_bytes, md5_process_block):
63534         Define with prototypes.
63535         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
63536         * lib/sha.c: Include "sha.h" first.
63537         Include <stdlib.h>, <string.h> unconditionally.
63538
63539         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
63540         * lib/memcmp.c (__ptr_t): Likewise.
63541         * lib/memrchr.c (__ptr_t): Likewise.
63542         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
63543         Include <string.h> unconditionally.
63544         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
63545         * lib/memchr.c: Include <stdlib.h> unconditionally.
63546         * lib/memchr.c (LONG_MAX): Remove.
63547         * lib/memrchr.c (LONG_MAX): Likewise.
63548         * lib/memchr.c (__memchr): Define via a prototype.
63549         * lib/memrchr.c (__memrchr): Likewise.
63550         * lib/memcmp.c (__P): Remove, and remove all uses.
63551         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
63552         Remove forward decls; no longer needed.
63553         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
63554         Use types required by C89 in prototype.
63555
63556         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
63557         * lib/savedir.c: Likewise.
63558         * lib/mkdir.c (free): Remove decl.
63559         * lib/rmdir.c (rmdir): Define with a prototype.
63560         * lib/savedir.c: Include savedir.h first, to test interface.
63561
63562         * lib/mktime.c (STDC_HEADERS): Remove.
63563         Include <stdlib.h>, <string.h> unconditionally.
63564
63565         * lib/modechange.c: Include <stdlib.h> unconditionally.
63566         (malloc): Remove decl.
63567
63568         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
63569         (free): Remove decl.
63570
63571         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
63572         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
63573         (This type really should be intptr_t, but that's a C99ism.)
63574         (_obstack_memcpy): Remove: all uses changed to memcpy.
63575         Include <string.h> unconditionally.
63576         (struct obstack): Assume __STDC__ for types of members
63577         chunkfun, freefun, extra_arg.
63578         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
63579         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
63580         obstack_begin, obstack_specify_allocation,
63581         obstack_specify_allocation_with_arg, obstack_chunkfun,
63582         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
63583         Remove unprototyped decls and the macros that use them.
63584         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
63585         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
63586         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
63587         (defined __STDC__ && __STDC__)]:
63588         Remove nonprototyped code.
63589         Include <stdlib.h> unconditionally.
63590         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
63591         _obstack_allocated_p, _obstack_free, obstack_free,
63592         _obstack_memory_used, print_and_abort):
63593         Define using prototypes.
63594         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
63595         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
63596         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
63597         obstack_next_free, obstack_object_size, obstack_room) [0]:
63598         Remove unused, unprototyped code.
63599
63600         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
63601
63602         * lib/physmem.c (physmem_total, physmem_available, main): Define
63603         with prototypes.
63604
63605         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
63606         (main): Define with a prototype.
63607
63608         * lib/posixver.c (getenv): Remove decl.
63609
63610         * lib/putenv.c (malloc): Returns void *, not char *.
63611         Include <string.h> unconditionally.
63612         (strchr, memcpy, NULL): Do not define.
63613
63614         * lib/readtokens.c: Include readtokens.h first, to test interface.
63615         Include <stdlib.h>, <string.h> unconditionally.
63616         (init_tokenbuffer): Define with a prototype.
63617
63618         * lib/regex.c (PARAMS): Remove.  All uses removed.
63619         All uses of _RE_ARGS removed, too.
63620         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
63621         unconditionally.
63622         (bzero): Assume memset exists.
63623         (memcmp, memcpy, NULL): Remove.
63624         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
63625         char, or assignments to local vars of type signed char.
63626         (init_syntax_once, PREFIX(extract_number_and_incr),
63627         PREFIX(print_partial_compiled_pattern),
63628         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
63629         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
63630         PREFIX(regex_grow_registers), PREFIX(regex_compile),
63631         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
63632         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
63633         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
63634         wcs_compile_range, byte_compile_range, truncate_wchar,
63635         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
63636         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
63637         count_mbs_length, wcs_re_match_2_internal,
63638         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
63639         PREFIX(alt_match_null_string_p),
63640         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
63641         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
63642         regfree, PREFIX(extract_number)): Define with prototype.  Remove
63643         now-unnecessary declaration, if any.
63644         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
63645         regcomp, regexec):
63646         Remove now-unnecessary casts among pointer types.
63647         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
63648
63649         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
63650         (free): Remove decl.
63651
63652         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
63653
63654         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
63655         (free): Remove decl.
63656
63657         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
63658         * lib/xgetcwd.c: Likewise.
63659
63660         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
63661         (free): Remove decl.
63662
63663         * lib/strchrnul.c (strchrnul): Define with a prototype.
63664         Fix bug: c_in was not converted to char before searching.
63665
63666         The following changes are not K&R related:
63667
63668         * lib/group-member.h: Include <sys/types.h>, so that this file is
63669         self-contained.
63670         * lib/makepath.h: Likewise.
63671
63672         * lib/getusershell.c (readname, default_index, line_size, readname):
63673         Use size_t, not int, for sizes.
63674         (readname): If the size overflows, report an error instead of
63675         looping forever.
63676
63677 2003-09-09  Paul Eggert  <eggert@twinsun.com>
63678
63679         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
63680         libc.
63681
63682 2003-09-09  Paul Eggert  <eggert@twinsun.com>
63683
63684         * README: New section: portability guidelines.
63685
63686 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
63687
63688         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
63689         C89 spec.
63690
63691 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
63692
63693         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
63694
63695 2003-09-08  Paul Eggert  <eggert@twinsun.com>
63696
63697         Assume C89 or better; remove K&R cruft.
63698         A few of these changes were first proposed by Derek Robert Price
63699         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
63700
63701         * lib/addext.c: Include <string.h> unconditionally.
63702         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
63703         Don't declare getenv or malloc.
63704
63705         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
63706         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
63707         (NULL): Remove.
63708         (find_stack_direction, alloca): Use prototypes.
63709
63710         * lib/atexit.c (atexit): Define using a prototype.
63711
63712         * lib/basename.c, dirname.c, stripslash.c:
63713         Include <string.h> unconditionally.
63714
63715         * lib/bcopy.c: Include <stddef.h>.
63716         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
63717
63718         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
63719
63720         * lib/error.h (error, error_at_line, error_print_progname)
63721         [! (defined (__STDC__) && __STDC__)]: Remove decls.
63722         * lib/error.c: Include error.h first, to check interface.
63723         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
63724         (VA_START): Remove; all uses changeed to va_start.
63725         (exit, strerror): Remove decls.
63726         (error_print_progname): Prototype uncondionally.
63727         Don't include <errno.h>; no longer needed.
63728         (private_strerror): Remove.
63729         (error_tail): Always define.
63730         (error, error_at_line): Assume C89 or better; always use prototypes.
63731         * lib/fatal.c: Include "fatal.h" first, to test interface.
63732         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
63733         (VA_START): Remove; all uses changed to va_start.
63734         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
63735         this case.
63736         (exit): Remove decl.
63737         (fatal): Prototype unconditionally.  Assume va_start works.
63738         Abort at end, to pacify gcc.
63739
63740         * lib/euidaccess.c (main): Define with a prototype.
63741
63742         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
63743
63744         * lib/exitfail.c: Include <stdlib.h> unconditionally.
63745
63746         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
63747         prototypes.
63748         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
63749         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
63750         (getenv): Remove decl.
63751         (fnmatch): Define using a prototype.
63752         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
63753         (FCT): Define using a prototype.
63754
63755         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
63756
63757         * lib/gethostname.c: Include <stddef.h>.
63758         (gethostname): Define with prototype.  Length is size_t, not int.
63759
63760 2003-09-08  Paul Eggert  <eggert@twinsun.com>
63761
63762         Assume C89 or better; remove K&R cruft.
63763         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
63764         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
63765         string.h, getenv, malloc.
63766         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
63767         headers.
63768         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
63769         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
63770         do not check for strerror.
63771         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
63772         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
63773         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
63774         do not check for doprnt or vprintf.
63775         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
63776         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
63777
63778 2003-09-08  Paul Eggert  <eggert@twinsun.com>
63779
63780         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
63781         getversion.c should have been removed then, but was accidentally
63782         preserved.
63783
63784         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
63785         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
63786
63787 2003-09-08  Karl Berry  <karl@gnu.org>
63788
63789         * config/config.sub, config.guess, srclistvars.sh: update from savannah
63790                 config, forget about prep.
63791
63792         * config/depcomp, missing: update from automake.
63793
63794 2003-09-07  Paul Eggert  <eggert@twinsun.com>
63795
63796         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
63797         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
63798
63799 2003-09-07  Paul Eggert  <eggert@twinsun.com>
63800
63801         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
63802         copy_tm_result.  Bug reported by Simon Josefsson in
63803         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
63804
63805 2003-09-06  Paul Eggert  <eggert@twinsun.com>
63806
63807         * m4/time_r.m4: New file.
63808         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
63809         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
63810         is. Check for timegm declaration.
63811         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
63812         Do not check for gmtime_r.
63813         Replace mktime if __mktime_internal does not exist and if mktime
63814         hasn't been replaced already.
63815
63816 2003-09-06  Paul Eggert  <eggert@twinsun.com>
63817
63818         * lib/time_r.c, lib/time_r.h: New files.
63819
63820         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
63821         __localtime_r.
63822         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
63823         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
63824
63825         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
63826         __gmtime_r.
63827         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
63828         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
63829         Include <time_r.h>.
63830
63831         * lib/timegm.c: Switch to glibc implementation, with the following
63832         changes:
63833         [defined HAVE_CONFIG_H]: Include <config.h>.
63834         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
63835         (__mktime_internal) [!defined _LIBC]: New decl.
63836         (__gmtime_r) [!defined _LIBC]: New macro and function.
63837         (timegm): Use a prototype, since gnulib assumes C89.
63838         Do not bother declaring tmp to be const, as it's not really usefu.
63839         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
63840         (timegm): Declare only if HAVE_DECL_TIMEGM.
63841
63842 2003-09-06  Paul Eggert  <eggert@twinsun.com>
63843
63844         * MODULES.html.sh (func_all_modules): Add time_r.
63845         * modules/time_r: New file.
63846         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
63847         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
63848
63849 2003-09-03  Paul Eggert  <eggert@twinsun.com>
63850
63851         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
63852         Bug reported by Lute Kamstra in
63853         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
63854
63855         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
63856         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
63857         course with correspondingly smaller numbers for tomorrow and
63858         yesterday.  From Tadayoshi Funaba.  Originally installed into
63859         sh-utils on 1999-08-07, but the patch got lost (I guess during the
63860         coreutils merge?).
63861
63862 2003-08-31  Simon Josefsson  <jas@extundo.com>
63863
63864         * modules/timegm: New file.
63865         * MODULES.html.sh (func_all_modules): Add timegm.
63866
63867 2003-08-31  Simon Josefsson  <jas@extundo.com>
63868
63869         * m4/timegm.m4: New file.
63870
63871 2003-08-31  Simon Josefsson  <jas@extundo.com>
63872
63873         * lib/timegm.h: New file.
63874         * lib/timegm.c: New file.  Based on
63875         wget-1.8.2/src/http.c:mktime_from_utc.
63876
63877 2003-08-31  Karl Berry  <karl@gnu.org>
63878
63879         * lib/argp.h: update from libc.
63880
63881 2003-08-28  Bruno Haible  <bruno@clisp.org>
63882
63883         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
63884         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
63885         followed by '#define fnmatch fnmatch_posix' gives an error.
63886
63887 2003-08-28  Bruno Haible  <bruno@clisp.org>
63888
63889         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
63890         warning on QNX, which defines O_BINARY to 000000.
63891
63892 2003-08-27  Jim Meyering  <jim@meyering.net>
63893
63894         * m4/mkstemp.m4: Require that the system mkstemp be able to create
63895         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
63896         would fail after 32.  Reported by Danny Levinson.  Details here:
63897         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
63898
63899 2003-08-24  Bruno Haible  <bruno@clisp.org>
63900
63901         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
63902         MSVC7 <stdio.h> is included later.
63903
63904 2003-08-22  Simon Josefsson  <jas@extundo.com>
63905
63906         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
63907
63908 2003-08-20  Karl Berry  <karl@gnu.org>
63909
63910         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
63911
63912 2003-08-20  Bruno Haible  <bruno@clisp.org>
63913
63914         * modules/progname: New file.
63915         * MODULES.html.sh (func_all_modules): Add progname.
63916
63917 2003-08-20  Bruno Haible  <bruno@clisp.org>
63918
63919         * lib/progname.h: New file, from GNU gettext.
63920         * lib/progname.c: New file, from GNU gettext.
63921         * lib/progreloc.c: New file, from GNU gettext.
63922
63923 2003-08-19  Jim Meyering  <jim@meyering.net>
63924
63925         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
63926         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
63927
63928 2003-08-19  Bruno Haible  <bruno@clisp.org>
63929
63930         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
63931         more.
63932
63933 2003-08-19  Bruno Haible  <bruno@clisp.org>
63934
63935         * lib/xstrdup.c: Assume <string.h> exists.
63936
63937 2003-08-18  Paul Eggert  <eggert@twinsun.com>
63938
63939         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
63940         in makefile rules.
63941
63942 2003-08-18  Jim Meyering  <jim@meyering.net>
63943
63944         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
63945         * m4/lib-ld.m4: Likewise.
63946
63947 2003-08-18  Jim Meyering  <jim@meyering.net>
63948
63949         * lib/setenv.h: Indent nested cpp directive.
63950         * lib/vasnprintf.c: Remove trailing blanks.
63951
63952 2003-08-17  Simon Josefsson  <jas@extundo.com>
63953
63954         * modules/xstrndup: New file.
63955         * MODULES.html.sh (func_all_modules): Add xstrndup.
63956
63957 2003-08-17  Simon Josefsson  <jas@extundo.com>
63958
63959         * modules/argp: Fix autoconf macro name. Add more dependencies.
63960
63961 2003-08-17  Simon Josefsson  <jas@extundo.com>
63962
63963         * m4/xstrndup.m4: New file.
63964
63965 2003-08-17  Simon Josefsson  <jas@extundo.com>
63966
63967         * m4/argp.m4: New file.
63968
63969 2003-08-17  Simon Josefsson  <jas@extundo.com>
63970             Bruno Haible  <bruno@clisp.org>
63971
63972         * lib/xstrndup.h: New file.
63973         * lib/xstrndup.c: New file.
63974
63975 2003-08-17  Bruno Haible  <bruno@clisp.org>
63976
63977         * modules/strndup (Files, Include): Add lib/strndup.h.
63978
63979 2003-08-17  Bruno Haible  <bruno@clisp.org>
63980
63981         * modules/euidaccess (Files): Add lib/euidaccess.h.
63982
63983 2003-08-17  Bruno Haible  <bruno@clisp.org>
63984
63985         * lib/strndup.h: New file.
63986
63987 2003-08-17  Bruno Haible  <bruno@clisp.org>
63988
63989         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
63990         like AC_GNU_SOURCE.
63991         * modules/extensions (configure.ac): Comment out the invocation of
63992         gl_USE_SYSTEM_EXTENSIONS.
63993
63994 2003-08-16  Paul Eggert  <eggert@twinsun.com>
63995
63996         Merges from coreutils, etc.
63997         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
63998         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
63999         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
64000         fixing a typo.
64001         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
64002         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
64003
64004 2003-08-16  Paul Eggert  <eggert@twinsun.com>
64005
64006         Document merge from coreutils.
64007         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
64008         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
64009         * modules/utime: Add m4/utimes-null.m4.
64010
64011 2003-08-16  Paul Eggert  <eggert@twinsun.com>
64012
64013         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
64014         space, undoing this 2003-08-12 change:
64015         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
64016
64017 2003-08-16  Paul Eggert  <eggert@twinsun.com>
64018
64019         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
64020         strtoul.c from libc, undoing this 2003-08-12 change:
64021         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
64022
64023 2003-08-16  Jim Meyering  <jim@meyering.net>
64024
64025         Merges from coreutils.
64026         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
64027         prefix.  Adjust cache variables similarly.  Create 500 rather than
64028         just 300 files, to exercise bug on Darwin6.5, too.
64029         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
64030         $missing_dir.
64031         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
64032         AM_SYS_POSIX_TERMIOS.
64033         Reported by mkc@mathdogs.com.
64034         Also change use of $am_cv_sys_posix_termios
64035         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
64036         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
64037         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
64038         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
64039         in /proc/mounts until it finds one with matching device number.  This
64040         is unnecessary when the FILE argument *is* a mount point.  No stat call
64041         is necessary in that case.  So, disable the statvfs-testing code on
64042         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
64043         as RedHat bug# 84846.
64044         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
64045         to 1MB, so as not to render systems with no stack size limit (e.g.,
64046         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
64047         Include <unistd.h>.  On some systems,
64048         it is required for the definition of _SC_PAGESIZE.
64049
64050 2003-08-16  Jim Meyering  <jim@meyering.net>
64051
64052         Merge from coreutils.
64053         * lib/xstrtoimax.c: #else #if -> #elif.
64054         * lib/xstrtoumax.c: Likewise.
64055
64056 2003-08-16  Jim Meyering  <jim@meyering.net>
64057
64058         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
64059         * m4/utimes.m4: Removed.
64060         * m4/utimes-null.m4: Renamed from utimes.m4.
64061
64062         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
64063         to 1MB, so as not to render systems with no stack size limit (e.g.,
64064         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
64065         Include <unistd.h>.  On some systems,
64066         it is required for the definition of _SC_PAGESIZE.
64067
64068 2003-08-16  Jim Meyering  <jim@meyering.net>
64069         and Paul Eggert  <eggert@cs.ucla.edu>
64070
64071         Merges from coreutils, etc.
64072
64073         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
64074         using the latest version from cvs.  This avoids problems with #line
64075         directives using a vendor (Sun) compiler.
64076         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
64077         Don't set GETGROUPS_LIB here; now it's
64078         done via getgroups.m4's wrapper function.
64079         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
64080         rather than just in sh-util/configure.in, so that the
64081         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
64082         same.
64083         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
64084         AC_FUNC_GETLOADAVG where to find getloadavg.c.
64085         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
64086         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
64087         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
64088         Remove code that is now done by the newly-required macros.
64089         Append $(EXEEXT) to DF_PROG.
64090         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
64091         Do not invoke or require the following here,
64092         since prereq.m4 or some gnulib .m4 now does this for us:
64093         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
64094         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
64095         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
64096         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
64097         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
64098         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
64099         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
64100         AC_FUNC_OBSTACK.
64101         Do not replace the following functions, as this is now the job
64102         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
64103         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
64104         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
64105         atexit getpass, strdup, getpagesize.
64106         Replace 'raise'.
64107         Do not check for the following functions, as this is now the job
64108         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
64109         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
64110         setregid.
64111         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
64112         Check for sys/sysctl.h.
64113         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
64114         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
64115         of checking for ssize_t ourselves.
64116
64117         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
64118         Require every macro that gnulib/modules/* suggests for us.
64119         (jm_PREREQ_ADDEXT): New macro.
64120         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
64121         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
64122
64123         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
64124         (gl_PHYSMEM): Use it.
64125         Also check for `table' function.
64126         Check for new headers and functions.
64127         Add check for sys/sysmp.h.
64128         With suggestions from Kaveh Ghazi.
64129         Ignore headers that are present but cannot be compiled.  This
64130         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
64131         C 5.4.
64132
64133 2003-08-15  Paul Eggert  <eggert@twinsun.com>
64134
64135         Document merge from coreutils.
64136         * modules/userspec: Depend on posixver.
64137         * modules/strftime: Depend on tzset.
64138
64139 2003-08-15  Paul Eggert  <eggert@twinsun.com>
64140
64141         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
64142         rather than tab, after '#' in shell-script copyright notices.
64143         Suggested by Bruno Haible.
64144
64145 2003-08-15  Paul Eggert  <eggert@twinsun.com>
64146
64147         * config/srclist-update: Use three spaces, rather than tab, after '#'
64148         in shell-script copyright notices.  Suggested by Bruno Haible.
64149         Remove unnecessary parenthesization in regular expression.
64150
64151 2003-08-15  Jim Meyering  <jim@meyering.net>
64152
64153         Merge from coreutils.
64154         * lib/xgethostname.c: Include <stdlib.h>.
64155         (xghostname): Don't exit for anything other than memory-related
64156         failure; just return NULL.
64157         * lib/userspec.c: Include "posixver.h".
64158         (parse_user_spec): Accept `.' as a separator only
64159         in pre-POSIX-200112 mode.
64160         * lib/strtoimax.c: Use #elif rather than #else #if.
64161         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
64162         Remove function, now that we can rely on a working tzset function.
64163         [!_LIBC]: Ensure that the required autoconf test has been run.
64164         [!defined _NL_CURRENT && HAVE_STRFTIME]:
64165         Use underlying_strftime for %r.
64166         * lib/sha.c: Merge in some clean-up and optimization changes from
64167         glibc.
64168         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
64169         Ensure that it is a multiple of 64.
64170         Rearrange loop exit tests so as to avoid performing an
64171         additional fread after encountering an error or EOF.
64172         * lib/realloc.c: Update copyright date.
64173
64174 2003-08-15  Jim Meyering  <jim@meyering.net>
64175         and Paul Eggert  <eggert@twinsun.com>
64176
64177         Merge from coreutils.
64178         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
64179         member but strut utmpx does not.  Needed for AIX 4.3.3.
64180         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
64181
64182 2003-08-15  Jim Meyering  <jim@meyering.net>
64183         and Paul Eggert  <eggert@cs.ucla.edu>
64184
64185         Merges from coreutils, etc.
64186         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
64187         Require gl_FUNC_TZSET_CLOBBER.
64188         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
64189         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
64190         members.
64191
64192 2003-08-14  Paul Eggert  <eggert@twinsun.com>
64193
64194         Help the merge from coreutils.
64195         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
64196         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
64197         * m4/tzset.m4: Use it too.
64198
64199 2003-08-14  Paul Eggert  <eggert@twinsun.com>
64200
64201         * modules/tzset: New file.
64202
64203 2003-08-14  Jim Meyering  <jim@meyering.net>
64204
64205         Merges from coreutils.
64206         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
64207         variable names, rather than @FNMATCH_H@.
64208         * modules/alloca: Likewise for $(ALLOCA_H).
64209
64210         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
64211         the three copies of the literal target, `fnmatch.h'.
64212         * modules/alloca (alloca.h): Likewise.
64213
64214 2003-08-14  Jim Meyering  <jim@meyering.net>
64215
64216         Merge from coreutils.
64217         * m4/tzset.m4: New file.
64218         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
64219         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
64220         otherwise, AIX 5.1 systems would end up using the latter.
64221         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
64222         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
64223         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
64224         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
64225
64226 2003-08-14  Jim Meyering  <jim@meyering.net>
64227
64228         Merge from coreutils.
64229         * lib/obstack.h: Whitespace changes.
64230         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
64231         and xcalloc return values.
64232         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
64233         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
64234         hang on OSF/1 5.1 for DIR on both local and remote file systems.
64235         Reported by (and fix confirmed by) Nelson H. F. Beebe.
64236         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
64237         error from mntctl.
64238         Use mntctl's return value to drive the entry-processing loop, since
64239         we can't rely on the value of the vmt_length member in the last
64240         entry.  On some systems doing so could result in exhausting
64241         virtual memory.  Based in part on a patch from Mike Jetzer.
64242
64243 2003-08-14  Jim Meyering  <jim@meyering.net>
64244         and Paul Eggert  <eggert@twinsun.com>
64245
64246         Merges from coreutils, plus other fixes.
64247         * lib/physmem.c: Merge in portability changes from gcc/libiberty
64248         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
64249         for credits and details.  Thanks to Kaveh Ghazi for helping
64250         to keep these files in sync.
64251         (ARRAY_SIZE): Define it.
64252         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
64253         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
64254         (memcasecmp): Don't assume size_t fits in unsigned int.
64255         Remove casts and duplicate code.
64256         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
64257         (memcpy): Remove definition.
64258         Merge in some clean-up and optimization changes from glibc.
64259         [BLOCKSIZE]: Move definition to top of file.
64260         Ensure that it is a multiple of 64.
64261         Rearrange loop exit tests so as to avoid performing an
64262         additional fread after encountering an error or EOF.
64263         * lib/md5.h (md5_uintptr): Define.
64264         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
64265         return to the initial working directory.  Preserve errno
64266         for caller.
64267         * lib/idcache.c: Include "xalloc.h".
64268         (xmalloc, xrealloc): Remove decls.
64269         (getuser): Remove casts no longer required in C89.
64270         * lib/human.c: Include stdio.h, for sprintf.
64271         * lib/group-member.c: Include "xalloc.h".
64272         (xmalloc, xrealloc): Remove decls.
64273         (get_group_info): Remove casts no longer required in C89.
64274         * lib/getusershell.c (readname): Remove casts no longer required in
64275         C89.
64276         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
64277         * lib/getline.c: Whitespace fix, from coreutils.
64278
64279 2003-08-13  Paul Eggert  <eggert@twinsun.com>
64280
64281         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
64282         Check for isascii.
64283
64284         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
64285         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
64286         Undo previous (whitespace-only) change.
64287
64288 2003-08-13  Paul Eggert  <eggert@twinsun.com>
64289
64290         * lib/exclude.c: Include <ctype.h>
64291         (IN_CTYPE_DOMAIN): New macro.
64292         (is_space): New fn.
64293         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
64294         and empty lines.
64295
64296         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
64297         Undo previous (whitespace-only) change.
64298
64299 2003-08-13  Paul Eggert  <eggert@twinsun.com>
64300
64301         * config/srclist-update: Change update back to the old behavior,
64302         leaving whitespace alone.  Use one 'sed' command rather than a
64303         pipeline.
64304         (fixlicense): Now a variable, not a function.
64305         (remove_trailing_blanks): Remove.
64306         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
64307         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
64308         Undo previous (whitespace-only) change.
64309
64310 2003-08-12  Paul Eggert  <eggert@twinsun.com>
64311
64312         Merge from coreutils.
64313         * modules/euidaccess: Add lib_SOURCES, include for new
64314         file euidaccess.h
64315
64316 2003-08-12  Paul Eggert  <eggert@twinsun.com>
64317
64318         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
64319         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
64320         Normalize leading white space and remove trailing white space.
64321
64322         Merge from coreutils
64323         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
64324
64325         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
64326         0.12.1.  These files are now being upgraded automatically by
64327         ../config/srclist-update.
64328
64329 2003-08-12  Paul Eggert  <eggert@twinsun.com>
64330
64331         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
64332         Normalize leading white space and remove trailing white space.
64333         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
64334         notice, as per ../config/srclist-update.
64335
64336         Merge from coreutils.
64337         * lib/euidaccess.h: New file.
64338         * lib/euidaccess.c: Include it.
64339         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
64340         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
64341         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
64342
64343 2003-08-12  Paul Eggert  <eggert@twinsun.com>
64344
64345         * config/srclist-update: Add copyright notice.
64346         (remove_id_lines, remove_trailing_blanks): New constants.
64347         (fixfile): Use them to normalize spacing a bit in copied files.
64348         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
64349         Normalize leading white space and remove trailing white space.
64350
64351         * config/texinfo.tex: Sync with texinfo.
64352
64353         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
64354         strtoul.c from libc, to merge coreutils whitespace changes.
64355
64356         * config/srclist.txt: Get the following m4 files from gettext:
64357         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
64358         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
64359         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
64360         wint_t.m4.
64361
64362 2003-08-12  Karl Berry  <karl@gnu.org>
64363
64364         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
64365         been made.
64366
64367 2003-08-11  Paul Eggert  <eggert@twinsun.com>
64368
64369         * modules/gnu-source, m4/gnu-source.m4:
64370         Remove; we're assuming Autoconf 2.54 or later now.
64371         Suggested by Bruno Haible.
64372         * MODULES.html.sh (func_all_modules): Remove gnu-source.
64373
64374 2003-08-11  Bruno Haible  <bruno@clisp.org>
64375
64376         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
64377
64378 2003-08-11  Bruno Haible  <bruno@clisp.org>
64379
64380         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
64381         (vasnprintf): Use it instead of wcslen.
64382
64383 2003-08-11  Bruno Haible  <bruno@clisp.org>
64384
64385         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
64386         value to ensure that _Bool promotes to int. Use #define for _Bool when
64387         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
64388
64389 2003-08-10  Karl Berry  <karl@gnu.org>
64390
64391         * lib/regex.h: update from libc (whitespace fix).
64392
64393 2003-08-09  Paul Eggert  <eggert@twinsun.com>
64394
64395         Merge some files from coreutils.  These changes were
64396         originally made by Jim Meyering.
64397         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
64398         many older Unixes require this.
64399         * lib/alloca.c (alloca): Remove cast to argument of free;
64400         no longer needed in C89.
64401         * lib/alloca_.h, regex.h: Fix white space to match
64402         what GNU indent does.
64403
64404 2003-08-09  Paul Eggert  <eggert@twinsun.com>
64405
64406         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
64407         apparently Emacs's Unicode mode got confused before my 2003-08-05
64408         checkin.
64409
64410 2003-08-08  Paul Eggert  <eggert@twinsun.com>
64411
64412         * m4/extensions.m4: New file.
64413         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
64414         Require gl_USE_SYSTEM_EXTENSIONS.
64415         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
64416         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
64417
64418 2003-08-08  Paul Eggert  <eggert@twinsun.com>
64419
64420         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
64421         * modules/extensions, modules/gnu-source: New files.
64422         * modules/timespec, modules/unlocked-io: Depend on extensions.
64423
64424 2003-08-07  Paul Eggert  <eggert@twinsun.com>
64425
64426         * modules/restrict: New file.
64427         * MODULES.html.sh (func_all_modules): Add restrict.
64428         * modules/regex: Depend on restrict.
64429
64430 2003-08-07  Paul Eggert  <eggert@twinsun.com>
64431
64432         * m4/restrict.m4: New file.
64433         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
64434
64435 2003-08-07  Bruno Haible  <bruno@clisp.org>
64436
64437         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
64438         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
64439
64440 2003-08-07  Bruno Haible  <bruno@clisp.org>
64441
64442         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
64443         makes the module 'getndelim2' compatible with the module 'getline'.
64444
64445 2003-08-05  Paul Eggert  <eggert@twinsun.com>
64446
64447         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
64448         byte with "\201" to avoid glitches when editing that source file
64449         with multi-gnome-terminal.
64450
64451 2003-08-05  Paul Eggert  <eggert@twinsun.com>
64452
64453         * lib/bumpalloc.h: Remove.
64454
64455 2003-08-05  Paul Eggert  <eggert@twinsun.com>
64456
64457         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
64458         * modules/bumpalloc: Remove.
64459
64460 2003-08-04  Paul Eggert  <eggert@twinsun.com>
64461
64462         * lib/getloadavg.c: Change copyright notice and spacing to conform to
64463         GNU coding style.
64464
64465         Merge from coreutils.
64466         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
64467         1. From glibc.
64468         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
64469         from Karl Berry, implemented by Jim Meyering.
64470         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
64471         from Dmitry V. Levin.
64472         Remove anachronistic cast of xrealloc.
64473         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
64474         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
64475         type. Otherwise, it wouldn't compile with at least /bin/cc on
64476         ymp-cray-unicos9.0.2.X.
64477         Combine two mostly-identical uses of alloca into one.
64478         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
64479
64480 2003-08-04  Dave Love  <d.love@dl.ac.uk>
64481
64482         [From Emacs.]
64483
64484         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
64485         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
64486         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
64487         obsolete NLIST_NAME_UNION.
64488         [__GNU__]: Undef BSD and FSCALE.
64489         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
64490
64491 2003-08-03  Paul Eggert  <eggert@twinsun.com>
64492
64493         * lib/stdbool_.h (_Bool): Make it signed char, instead of
64494         an enum type, so that it's guaranteed to promote to int.  See:
64495         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
64496
64497 2003-08-03  Karl Berry  <karl@gnu.org>
64498
64499         * config/depcomp: update from automake.
64500
64501 2003-07-31  Paul Eggert  <eggert@twinsun.com>
64502
64503         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
64504         (strerror): Don't assume that a printable int fits in 14 bytes.
64505
64506 2003-07-31  Bruno Haible  <bruno@clisp.org>
64507
64508         * modules/getpass-gnu: New file.
64509         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
64510
64511 2003-07-31  Bruno Haible  <bruno@clisp.org>
64512
64513         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
64514
64515 2003-07-24  Karl Berry  <karl@gnu.org>
64516
64517         * config/missing: update from automake.
64518
64519 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
64520             Bruno Haible  <bruno@clisp.org>
64521
64522         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
64523         * lib/getline.c (getline, getdelim): Likewise.
64524         Remove _GNU_SOURCE define; now it's defined in config.h through
64525         m4/getline.m4.
64526
64527 2003-07-23  Karl Berry  <karl@gnu.org>
64528
64529         * config/config.sub: update from prep.
64530
64531 2003-07-22  Paul Eggert  <eggert@twinsun.com>
64532
64533         * modules/xalloc (Depends-on): Add exitfail.
64534         * modules/xmemcoll: Likewise.
64535
64536 2003-07-22  Paul Eggert  <eggert@twinsun.com>
64537
64538         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
64539         over-parenthesization in macros.
64540
64541         Sync with coreutils.
64542
64543         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
64544         required by C99.
64545
64546         Use `exit_failure' for xalloc and xmemcoll instead of their own
64547         private exit-failure variables.
64548         * lib/xalloc.h (xalloc_exit_failure): Remove.
64549         * lib/xmalloc.c: Likewise.  Include exitfail.h.
64550         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
64551         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
64552         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
64553         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
64554
64555 2003-07-20  Jim Meyering  <jim@meyering.net>
64556
64557         * modules/closeout (Depends-on): Add exitfail.
64558         Suggestion from Bruno Haible.
64559
64560 2003-07-19  Karl Berry  <karl@gnu.org>
64561
64562         * config/config.sub: update from prep.
64563
64564 2003-07-18  Paul Eggert  <eggert@twinsun.com>
64565
64566         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
64567         Remove.
64568         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
64569         to test that it can stand by itself.  Include "exitfail.h".
64570         Clients should set exit_failure instead.
64571         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
64572
64573 2003-07-18  Bruno Haible  <bruno@clisp.org>
64574
64575         * modules/getndelim2: New file.
64576         * modules/getline: Share files with module getndelim2.
64577         * modules/getnline: Depend on getndelim2 instead of sharing files with
64578         it. Add getnline.c to lib_SOURCES.
64579         * MODULES.html.sh (func_all_modules): Add getndelim2.
64580
64581 2003-07-18  Bruno Haible  <bruno@clisp.org>
64582
64583         * m4/getndelim2.m4: New file.
64584         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
64585         invoke gl_PREREQ_GETNDELIM2.
64586         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
64587         gl_PREREQ_GETNDELIM2.
64588         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
64589         gl_GETNDELIM2.
64590
64591 2003-07-18  Bruno Haible  <bruno@clisp.org>
64592
64593         * lib/getndelim2.h: New file.
64594         * lib/getndelim2.c: Make into a module of its own. Include config.h,
64595         getndelim2.h.
64596         (getndelim2): Make non-static. Change return type to ssize_t.
64597         * lib/getline.h: Change argument names.
64598         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
64599         * lib/getnline.c: Include getndelim2.h.
64600
64601 2003-07-18  Andreas Schwab  <schwab@suse.de>
64602
64603         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
64604
64605 2003-07-17  Karl Berry  <karl@gnu.org>
64606
64607         * config/config.sub: update from prep.
64608
64609 2003-07-17  Bruno Haible  <bruno@clisp.org>
64610
64611         * modules/getnline: New file.
64612         * modules/getline: Add lib/getndelim2.c to source file list.
64613         * MODULES.html.sh (func_all_modules): Add getnline.
64614
64615 2003-07-17  Bruno Haible  <bruno@clisp.org>
64616
64617         * m4/getnline.m4: New file.
64618
64619 2003-07-17  Bruno Haible  <bruno@clisp.org>
64620
64621         * m4/Makefile.am.in: Remove file.
64622         * m4/Makefile.am: Remove file.
64623         * m4/Makefile.in: Remove file.
64624
64625 2003-07-17  Bruno Haible  <bruno@clisp.org>
64626
64627         * lib/getnline.h: New file.
64628         * lib/getnline.c: New file.
64629         * lib/getndelim2.c: New file, extracted from getline.c.
64630         (getndelim2): Renamed from getdelim2, with added nmax argument.
64631         * lib/getline.c: Include getndelim2.c.
64632         (getdelim2): Moved out to getndelim2.c.
64633         (getline, getdelim): Update.
64634
64635 2003-07-17  Bruno Haible  <bruno@clisp.org>
64636
64637         * lib/Makefile.am: Remove file.
64638         * lib/Makefile.in: Remove file.
64639
64640 2003-07-17  Bruno Haible  <bruno@clisp.org>
64641
64642         * configure.in: Remove file.
64643         * Makefile.in: Remove file.
64644
64645 2003-07-17  Bruno Haible  <bruno@clisp.org>
64646
64647         * MODULES.html.sh: Put the </BODY> right before </HTML>.
64648
64649 2003-07-16  Karl Berry  <karl@gnu.org>
64650
64651         * config/srclist-update: was running fixlicense twice, which caused
64652                 texinfo.tex to be nullified for some reason.  Simplify,
64653                 $gplsrc is no longer needed as far as I can see?
64654
64655 2003-07-16  Jim Meyering  <jim@meyering.net>
64656
64657         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
64658
64659 2003-07-15  Paul Eggert  <eggert@twinsun.com>
64660
64661         * config/srclist.txt: Get the following files from gettext-runtime/intl
64662         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
64663         ref-del.sin.  From Bruno Haible.
64664         * config/srclist-update (fixfile): Change grep pattern again, since the
64665         previous fix didn't work (there was another trailing $).  Use
64666         '[$]' to escape the $s.
64667
64668 2003-07-15  Karl Berry  <karl@gnu.org>
64669
64670         * lib/vasnprintf.c: update from gettext.
64671
64672 2003-07-15  Karl Berry  <karl@gnu.org>
64673
64674         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
64675         gets expanded when surrounded by '$'.
64676
64677 2003-07-15  Jim Meyering  <jim@meyering.net>
64678
64679         * modules/save-cwd: Don't depend on error.  From Derek Price.
64680
64681 2003-07-15  Jim Meyering  <jim@meyering.net>
64682
64683         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
64684
64685 2003-07-14  Simon Josefsson  <jas@extundo.com>
64686
64687         * modules/mempcpy: New file.
64688         * MODULES.html.sh (func_all_modules): Add mempcpy.
64689
64690 2003-07-14  Simon Josefsson  <jas@extundo.com>
64691
64692         * m4/mempcpy.m4: New file.
64693
64694 2003-07-14  Simon Josefsson  <jas@extundo.com>
64695
64696         * lib/mempcpy.h: New file.
64697         * lib/mempcpy.c: New file.
64698
64699 2003-07-14  Paul Eggert  <eggert@twinsun.com>
64700
64701         * modules/getdate, modules/posixtm: Depend on mktime.
64702
64703 2003-07-14  Paul Eggert  <eggert@twinsun.com>
64704
64705         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
64706         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
64707         unicodeio.c, unicodeio.h, unlocked-io.h:
64708         Switch from LGPL to GPL.
64709
64710 2003-07-14  Paul Eggert  <eggert@twinsun.com>
64711
64712         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
64713         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
64714         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
64715         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
64716         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
64717         updated automatically by ../config/srclist-update.  This changes
64718         their license from LPGL to GPL.
64719
64720 2003-07-14  Paul Eggert  <eggert@twinsun.com>
64721
64722         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
64723         assumed to refer to the root of the most recent stable gettext version.
64724         * config/srclistvars.sh: Add defaults for eggert.
64725         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
64726         Match "This program" as well as "The program".  This is needed
64727         for gettext.
64728
64729 2003-07-14  Jim Meyering  <jim@meyering.net>
64730
64731         Don't emit diagnostics.  Let callers do that.
64732         * lib/save-cwd.c: Don't include "error.h".
64733         (save_cwd): Don't call error.  Ensure that errno is valid
64734         when returning nonzero.
64735
64736         * lib/save-cwd.h (restore_cwd): Update prototype.
64737         * lib/save-cwd.c (restore_cwd): Remove two parameters.
64738         Simplify.  Don't call error upon failure.  Let callers do that.
64739         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
64740         when auditing is enabled.  But don't bother updating the #if.
64741
64742 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
64743
64744         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
64745         it breaks C++ compilation.
64746         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
64747
64748 2003-07-10  Simon Josefsson  <jas@extundo.com>
64749
64750         * modules/strchrnul (Makefile.am): Add strchrnul.h.
64751
64752 2003-07-10  Jim Meyering  <jim@meyering.net>
64753
64754         * m4/clock_time.m4: Remove trailing blank.
64755         * m4/intmax_t.m4: Likewise.
64756
64757 2003-07-10  Jim Meyering  <jim@meyering.net>
64758
64759         * lib/vasnprintf.c: Remove trailing blanks.
64760         Make cpp indentation consistent.
64761
64762 2003-07-09  Paul Eggert  <eggert@twinsun.com>
64763
64764         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
64765         posixver.c, strftime.c, strnlen.c, strverscmp.c:
64766         Switch from LGPL to GPL.
64767
64768 2003-07-09  Paul Eggert  <eggert@twinsun.com>
64769
64770         * config/srclist.txt: Sort sublists.  Add
64771         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
64772         that differ from gnulib for one reason or another; we'd like this list
64773         to be smaller but for now let's document what we have.
64774
64775 2003-07-08  Paul Eggert  <eggert@twinsun.com>
64776
64777         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
64778         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
64779         and sweeter "eval x=$x".
64780         * config/srclist.txt: Get lib/argp* from glibc.
64781
64782 2003-07-07  Paul Eggert  <eggert@twinsun.com>
64783
64784         * lib/mktime.c: Fix some boundary cases and remove need for floating
64785         point.
64786
64787         Issue a compile-time diagnostic if time_t is floating point, or if
64788         two's complement arithmetic is not in effect, or if arithmetic
64789         right shift does not propagate the sign.  These assumptions were
64790         all in the original code but they weren't checked.
64791
64792         (TIME_T_MIDPOINT, verify): New macros.
64793         (__isleap): Remove; it has integer overflow problems.
64794         (leapyear): New function, without those problems.
64795         (ydhms_tm_diff): Remove; splitting into two parts.
64796         (ydhms_diff): New function, containing the arithmetic part of
64797         the old ydhms_tm_diff function.  Issue a compile-time
64798         diagnostic if we are not using C99 integer division.
64799         Avoid casts when possible.
64800         (guess_time_tm): New function, containing the checking part of
64801         the old ydhms_tm_diff function.  Return the new value, rather than
64802         the difference between it and the old.  Accept a new argument T
64803         so that *T specifies the old value.  Check for overflow in the result.
64804
64805         (__mktime_internal): Use a time_t offset, not a long int offset.
64806         This undoes the 2003-06-04 change, which is no longer needed now
64807         that we have better overflow checking.
64808         (localtime_offset): Likewise.
64809
64810         (__mktime_internal): Avoid harmful overflow on hosts where time_t
64811         and long are 64-bit but int is only 32-bit.
64812         (ydhms_diff): Use long int to store year1 and yday1.
64813         Issue a compile-time diagnostic if long int is not wide enough.
64814
64815         (__mktime_internal): Use long int to store adjusted year and yday.
64816         Use plain C rather than preprocessor commands, if that doesn't
64817         affect efficiency.
64818         Check for overflow (and try to repair) after each probe
64819         rather than checking only at the very end.  This avoids some bugs
64820         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
64821         does not equal GMT offset at maximum time).
64822         Use integer to check for overflow rather than floating point; this
64823         is more portable to non-IEEE hosts, and is a tad faster.
64824         When we detect that we are oscillating between two values,
64825         don't check whether tm_isdst has the requested value, since
64826         we already know the answer.  When tm_isdst has the wrong value,
64827         use a different heuristic to find the right one, based on the
64828         extreme values actually observed in practice in tz2003a,
64829         rather than the (overly optimistic) "previous 3 calendar quarters".
64830
64831         (not_equal_tm, print_tm, check_result): Use "const T" rather than
64832         "T const" to accommodate glibc style.
64833         (check_result): Use less-confusing report format.  "long" -> "long int.
64834         (main): Likewise.
64835         Don't loop if the iteration overflows time_t.
64836         Allow a negative step in the iteration.
64837
64838 2003-07-06  Karl Berry  <karl@gnu.org>
64839
64840         * config/depcomp: update from automake.
64841         * config/config.sub: update from prep.
64842
64843 2003-07-03  Karl Berry  <karl@gnu.org>
64844
64845         * config/config.guess: update from prep.
64846
64847 2003-07-01  Paul Eggert  <eggert@twinsun.com>
64848
64849         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
64850         xreadlink.c now includes it unconditionally.
64851
64852 2003-07-01  Paul Eggert  <eggert@twinsun.com>
64853
64854         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
64855         having it depend on HAVE_SYS_TYPES_H.
64856
64857 2003-07-01  Bruno Haible  <bruno@clisp.org>
64858
64859         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
64860         <sys/types.h> should be sufficient.
64861         Reported by Paul Eggert.
64862
64863 2003-06-26  Karl Berry  <karl@gnu.org>
64864
64865         * config/depcomp: update from automake.
64866
64867 2003-06-26  Bruno Haible  <bruno@clisp.org>
64868
64869         * modules/human: Depend on module stdbool.
64870
64871 2003-06-25  Bruno Haible  <bruno@clisp.org>
64872
64873         * modules/readlink: New file.
64874         * modules/xreadlink: Depend on it.
64875         * MODULES.html.sh (func_all_modules): Add readlink.
64876
64877 2003-06-25  Bruno Haible  <bruno@clisp.org>
64878
64879         * m4/readlink.m4: New file.
64880
64881 2003-06-25  Bruno Haible  <bruno@clisp.org>
64882
64883         * lib/readlink.c: New file.
64884
64885 2003-06-22  Karl Berry  <karl@gnu.org>
64886
64887         * config/srclist.txt: update mkinstalldirs from automake.
64888         * config/mkinstalldirs: update.
64889
64890 2003-06-22  Bruno Haible  <bruno@clisp.org>
64891
64892         Portability to mingw32.
64893         * m4/ssize_t.m4: New file, from GNU gettext.
64894         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
64895         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
64896
64897 2003-06-22  Bruno Haible  <bruno@clisp.org>
64898
64899         * modules/safe-read: Add m4/ssize_t.m4.
64900         * modules/xreadlink: Add m4/ssize_t.m4.
64901
64902 2003-06-20  Bruno Haible  <bruno@clisp.org>
64903
64904         Assume C89, so PARAMS isn't needed.
64905         * lib/unicodeio.h (PARAMS): Remove.
64906         * lib/unicodeio.c: Don't use PARAMS.
64907
64908 2003-06-18  Karl Berry  <karl@gnu.org>
64909
64910         * config/config.{guess,sub}: update from prep.
64911
64912 2003-06-18  Jim Meyering  <jim@meyering.net>
64913
64914         Merge changes from coreutils.
64915         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
64916         Remove explicit declarations of xmalloc and realloc.
64917         Include xalloc.h.
64918         (read_utmp): Remove anachronistic cast of xmalloc.
64919
64920 2003-06-17  Paul Eggert  <eggert@twinsun.com>
64921
64922         Assume C89, so PARAMS isn't needed.
64923         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
64924         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
64925         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
64926         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
64927         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
64928         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
64929         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
64930         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
64931         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
64932         lib/xstrtod.h, lib/xstrtol.h: Likewise.
64933         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
64934         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
64935         no longer needed. Anyway, config.h should always be included before any
64936         other file.
64937
64938 2003-06-11  Simon Josefsson  <jas@extundo.com>
64939
64940         * modules/sysexits: New file.
64941         * MODULES.html.sh (func_all_modules): Add sysexits.
64942
64943 2003-06-11  Simon Josefsson  <jas@extundo.com>
64944
64945         * lib/sysexit_.h: New file.
64946
64947 2003-06-11  Derek Price  <derek@ximbiot.com>
64948
64949         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
64950         necessary.
64951
64952 2003-06-11  Bruno Haible  <bruno@clisp.org>
64953
64954         * m4/sysexits.m4: New file.
64955
64956 2003-06-10  Simon Josefsson  <jas@extundo.com>
64957
64958         * lib/argp.h: New file, from glibc.
64959         * lib/argp-ba.c: New file, from glibc.
64960         * lib/argp-eexst.c: New file, from glibc.
64961         * lib/argp-fmtstream.c: New file, from glibc.
64962         * lib/argp-fmtstream.h: New file, from glibc.
64963         * lib/argp-fs-xinl.c: New file, from glibc.
64964         * lib/argp-help.c: New file, from glibc.
64965         * lib/argp-namefrob.h: New file, from glibc.
64966         * lib/argp-parse.c: New file, from glibc.
64967         * lib/argp-pv.c: New file, from glibc.
64968         * lib/argp-pvh.c: New file, from glibc.
64969         * lib/argp-xinl.c: New file, from glibc.
64970
64971 2003-06-10  Simon Josefsson  <jas@extundo.com>
64972
64973         * modules/strchrnul: New file.
64974
64975 2003-06-10  Simon Josefsson  <jas@extundo.com>
64976
64977         * modules/argp: New file.
64978
64979 2003-06-10  Simon Josefsson  <jas@extundo.com>
64980
64981         * m4/strchrnul.m4: New file.
64982
64983 2003-06-10  Simon Josefsson  <jas@extundo.com>
64984
64985         * lib/strchrnul.h: New file.
64986         * lib/strchrnul.c: New file.
64987
64988 2003-06-10  Bruno Haible  <bruno@clisp.org>
64989
64990         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
64991
64992 2003-06-07  Karl Berry  <karl@gnu.org>
64993
64994         * config/config.{guess,sub}: update from prep.
64995
64996 2003-06-07  Jim Meyering  <jim@meyering.net>
64997
64998         * modules/strtod: Use $(...) notation, not @...@ for
64999         AC_REPLACE'd variables.
65000         * modules/localcharset: Likewise.
65001
65002 2003-06-07  Jim Meyering  <jim@meyering.net>
65003
65004         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
65005         in place of my name in the copyright comment.
65006         Remove definition and uses of __P.
65007
65008         From coreutils.
65009         * lib/stat.c: Don't declare xmalloc explicitly.
65010         Instead, include "xalloc.h".
65011         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
65012         xrealloc, and xcalloc return values.
65013         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
65014         Improve comment.
65015         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
65016
65017 2003-06-07  Bruno Haible  <bruno@clisp.org>
65018
65019         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
65020         avoid AC_CONFIG_LINKS.
65021         * modules/fnmatch (Makefile.am): Use explicit creation rule for
65022         fnmatch.h, to avoid AC_CONFIG_LINKS.
65023         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
65024
65025 2003-06-07  Bruno Haible  <bruno@clisp.org>
65026
65027         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
65028         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
65029         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
65030         directory.
65031         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
65032         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
65033         directory.
65034
65035 2003-06-06  Jim Meyering  <jim@meyering.net>
65036
65037         Merge from coreutils.
65038         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
65039         Consolidate declarations and initializations of *_base* locals.
65040
65041         Merge from coreutils.
65042         This avoids a core dump on systems without GNU putenv,
65043         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
65044         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
65045         (unsetenv): New static function, from GNU libc.
65046         (rpl_putenv): Use it.
65047
65048         * lib/modechange.c: Remove trailing blanks.
65049
65050         Merge from coreutils.
65051         * lib/fsusage.c: Remove declaration of statfs.
65052         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
65053
65054         * lib/posixtm.c: Include <stdbool.h> unconditionally.
65055
65056 2003-06-06  Jim Meyering  <jim@meyering.net>
65057
65058         * lib/stdbool_.h: Renamed from stdbool.h.in.
65059
65060 2003-06-06  Jim Meyering  <jim@meyering.net>
65061             Bruno Haible  <bruno@clisp.org>
65062
65063         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
65064         Adjust Makefile.am snippet not to redirect directly to target.
65065         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
65066
65067 2003-06-05  Paul Eggert  <eggert@twinsun.com>
65068
65069         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
65070         mismatch, look in future quarters as well as past.  This fixes a
65071         bug when processing fall-backwards gaps immediately after a long
65072         period of daylight-saving time.
65073
65074         * lib/mktime.c: Assume freestanding C89 or better.
65075         (HAVE_LIMITS_H): Remove.  Assume it's 1.
65076         (__P): Remove; not used.
65077         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
65078         (mktime, not_equal_tm, print_tm, check_result,
65079         main): Use prototypes.  Use const * where appropriate.
65080         (main): Fix typo in testing code that uncovered by above changes.
65081         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
65082
65083 2003-06-04  Paul Eggert  <eggert@twinsun.com>
65084
65085         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
65086         locale.h, localeconv.  This merges changes from coreutils.
65087
65088         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
65089         It can be removed after the next Autoconf is released.
65090         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
65091         needed.
65092
65093 2003-06-04  Paul Eggert  <eggert@twinsun.com>
65094
65095         * lib/mktime.c: Fix Debian bug 177940
65096         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
65097         (localtime_offset): Now long int, not time_t, because we want it
65098         to be guaranteed to be signed.  All uses changed.
65099         (__mktime_internal): If overflow would occur when adding offset,
65100         don't add it.
65101
65102         Merge 'human' changes from coreutils.  Rewrite to support
65103         locale-specific notations like thousands separators.
65104         * lib/human.c: Simplify authorship notice.
65105         Include human.h immediately after config.h.
65106         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
65107         <limits.h>: Do not include, since human.h does.
65108         (SIZE_MAX, UINTMAX_MAX): New macros.
65109         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
65110         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
65111         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
65112         (power_letter): Renamed from suffixes.
65113         (generate_suffix_backwards): Remove.
65114         (adjust_value): Now takes int style (because of human.h changes)
65115         and long double value (for greater precision on some platforms).
65116         (group_number): New function.
65117         (human_readable): Use it.  Use integer options, not enum.
65118         Put the options before the sizes in the arg list.
65119         Support all the new options.
65120         The old human_readable function has been removed;
65121         use inttostr.h instead.
65122         (human_readable, default_block_size, humblock):
65123         Use uintmax_t, not int, for block sizes.
65124         (human_readable_inexact, block_size_types): Remove.
65125         (block_size_opts): New constant.
65126         (human_options): Renamed from human_block_size, with new signature
65127         that allows block sizes up to UINTMAX_MAX.  All callers changed.
65128         * lib/human.h: Add copyright and authorship notice.
65129         Include <limits.h> and <stdbool.h> unconditionally.
65130         (PARAMS): Remove.  All uses removed.
65131         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
65132         (enum human_inexact_style): Remove tag; now a nameless enum.
65133         (human_floor, human_ceiling, human_round_to_even): Now have
65134         values 2, 0, 1 rather than -1, 1, 0.
65135         (human_group_digits, human_suppress_point_zero, human_autoscale,
65136         human_base_1024, human_SI, human_B): New constants.
65137         (human_readable_inexact, human_block_size): Remove.
65138         (human_readable): Size args are now uintmax_t, not int.
65139         (human_options): New decl.
65140
65141         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
65142         unnecessary now that we assume C89 or better.  This change
65143         imported from coreutils.
65144
65145         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
65146         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
65147         in the 2003-05-30 sync from glibc.
65148
65149         .h files should stand alone, but we shouldn't include <sys/types.h>
65150         if we can get away with just <stddef.h>.
65151
65152         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
65153         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
65154         rather than <sys/types.h>, as we merely need size_t.
65155         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
65156         to get size_t.
65157         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
65158         Include <stdio.h>, to get FILE.
65159         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
65160         memcasecmp.h has included <stddef.h> and all we need is size_t.
65161         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
65162         our interface, instead of including <sys/types.h>
65163
65164 2003-06-04  Paul Eggert  <eggert@twinsun.com>
65165
65166         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
65167         now, as glibc mktime is buggy on non-glibc systems.
65168
65169 2003-06-03  Karl Berry  <karl@gnu.org>
65170
65171         * config/config.sub: update from prep.
65172
65173 2003-06-02  Paul Eggert  <eggert@twinsun.com>
65174
65175         [from coreutils]
65176         Fix some minor time-related bugs with POSIX time arguments.
65177         Some valid time stamps were being rejected (notably -1, and
65178         time stamps before 1900 on 64-bit hosts).  And some invalid
65179         time stamps were being accepted, e.g. September 31.
65180
65181         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
65182         that we can return (time_t) -1 successfully.
65183         * lib/posixtm.c: Likewise.
65184         [HAVE_STDBOOL_H]: Include <stdbool.h>.
65185         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
65186         (t): Remove static var.
65187         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
65188         of static var.  All uses changed.
65189         (year): Do not reject years before 1900; they can occur with
65190         64-bit time_t.
65191         (posix_time_parse): Do not check for out-of-range components;
65192         that is now the caller's responsibility, since our checks were
65193         only approximations.
65194         (posixtime): Use mktime to check for out-of-range components,
65195         since it knows them exactly.
65196         If mktime returns (time_t) -1, check whether an error actually occurred
65197         by invoking localtime on -1.
65198         (main) [TEST_POSIXTIME]: Check for input data errors, and report
65199         posixtime failures better.
65200         Improve the test data (in comments only).
65201
65202 2003-06-02  Karl Berry  <karl@gnu.org>
65203
65204         * config/mkinstalldirs (version): new variable.
65205         (--version): new option.
65206         (usage): improve message.
65207
65208 2003-05-30  Karl Berry  <karl@gnu.org>
65209
65210         * lib/mktime.c: update from libc.
65211
65212 2003-05-30  Bruno Haible  <bruno@clisp.org>
65213
65214         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
65215         * config/config.rpath: Upgrade to gettext-0.12.1.
65216
65217 2003-05-30  Bruno Haible  <bruno@clisp.org>
65218
65219         * m4/gettext.m4: Upgrade to gettext-0.12.1.
65220         * m4/nls.m4: New file, from gettext-0.12.1.
65221         * m4/po.m4: New file, from gettext-0.12.1.
65222         * m4/progtest.m4: Upgrade to gettext-0.12.1.
65223
65224 2003-05-30  Bruno Haible  <bruno@clisp.org>
65225
65226         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
65227         * lib/localcharset.h: Likewise.
65228         * lib/localcharset.c: Likewise.
65229
65230 2003-05-29  Karl Berry  <karl@gnu.org>
65231
65232         * config/config.rpath: update from gettext.
65233
65234 2003-05-28  Paul Eggert  <eggert@twinsun.com>
65235
65236         Assume the headers required for C89 freestanding compilers.
65237         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
65238         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
65239         * m4/human.m4 (gl_HUMAN): Likewise.
65240         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
65241         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
65242         * m4/userspec.m4 (gl_USERSPEC): Likewise.
65243         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
65244         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
65245         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
65246
65247 2003-05-28  Paul Eggert  <eggert@twinsun.com>
65248
65249         Assume the headers required for C89 freestanding compilers.
65250         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
65251         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
65252         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
65253         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
65254         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
65255         define, since <limits.h> is guaranteed to do that.
65256         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
65257         * lib/exclude.c: Include <stdbool.h> unconditionally.
65258         * lib/tempname.c: Include <stddef.h> unconditionally.
65259         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
65260         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
65261         <stddef.h> does that.
65262         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
65263         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
65264         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
65265         needed.
65266         * lib/xstrtol.c: Likewise.
65267         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
65268         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
65269
65270         * lib/addext.c (addext): Use assignment rather than cast, to avoid
65271         warnings on some platforms.
65272
65273         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
65274         arbitrarily.
65275
65276 2003-05-26  Jim Meyering  <jim@meyering.net>
65277
65278         Merge in a change from coreutils:
65279         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
65280         that is guaranteed to be `no'.  Use `no_such_member' to indicate
65281         that condition, rather than `-1' which is slightly misleading.
65282         Change the name of the cache variable to have the gl_ prefix.
65283         Prompted by a patch from Richard Dawe for DJGPP.
65284
65285 2003-05-24  Karl Berry  <karl@gnu.org>
65286
65287         * config/config.guess: update from prep.
65288
65289 2003-05-22  Karl Berry  <karl@gnu.org>
65290
65291         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
65292
65293 2003-05-20  Karl Berry  <karl@gnu.org>
65294
65295         * config/config.guess: update from prep.
65296
65297 2003-05-18  Karl Berry  <karl@gnu.org>
65298
65299         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
65300         might actually be set by the user.
65301
65302         * config/depcomp, install-sh, mdate-sh: update from automake.
65303
65304 2003-05-17  Bruno Haible  <bruno@clisp.org>
65305
65306         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
65307         invalid expansion for AC_EGREP_CPP.
65308         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
65309         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
65310         Suggested by Akim Demaille <akim@epita.fr> in
65311         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
65312
65313 2003-05-12  Jim Meyering  <jim@meyering.net>
65314
65315         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
65316         the space-padded-by-default conversion specifiers, %e, %k, %l.
65317
65318 2003-05-12  Bruno Haible  <bruno@clisp.org>
65319
65320         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
65321         the string is longer than 4 KB.
65322
65323 2003-05-11  Karl Berry  <karl@gnu.org>
65324
65325         * config/config.{guess,sub}: update from prep.
65326
65327 2003-05-09  Bruno Haible  <bruno@clisp.org>
65328
65329         * modules/error: Add m4/strerror_r.m4 to file list.
65330
65331 2003-05-03  Bruno Haible  <bruno@clisp.org>
65332
65333         Upgrade to Unicode-4.0.
65334         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
65335         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
65336         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
65337         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
65338         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
65339         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
65340         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
65341         Change width of U+E0100..U+E01EF from 1 to 0.
65342
65343 2003-04-25  Jim Meyering  <jim@meyering.net>
65344
65345         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
65346         of type size_t, not int.
65347
65348 2003-04-25  Bruno Haible  <bruno@clisp.org>
65349
65350         * lib/copy-file.c: Include <stddef.h>, for size_t.
65351
65352 2003-04-21  Paul Eggert  <eggert@twinsun.com>
65353
65354         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
65355         code which expansion is under static control.  Patch imported from
65356         Akim Demaille's patch to Bison; see
65357         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
65358
65359 2003-04-14  Bruno Haible  <bruno@clisp.org>
65360
65361         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
65362
65363 2003-04-11  Jim Meyering  <jim@meyering.net>
65364
65365         Merge changes from Coreutils.
65366
65367         2003-03-22  Jim Meyering  <jim@meyering.net>
65368
65369         * lib/strftime.c (widen): Cast alloca return value to proper type.
65370
65371         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
65372
65373         From GNU libc.
65374         * lib/strftime.c (my_strftime): Handle very large width
65375         specifications for numeric values correctly.  Improve checks for
65376         overflow.
65377
65378         2003-01-19  Jim Meyering  <jim@meyering.net>
65379
65380         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
65381         definitions.
65382         (nl_get_alt_digit) [! defined my_strftime]: Define.
65383         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
65384         _nl_get_alt_digit and _nl_get_walt_digit.
65385
65386         * lib/strftime.c (my_strftime): Merge in locale-related changes from
65387         libc. These changes have no effect outside of _LIBC.
65388
65389 2003-04-10  Bruno Haible  <bruno@clisp.org>
65390
65391         * modules/findprog: New file.
65392         * MODULES.html.sh (func_all_modules): Add it.
65393
65394 2003-04-10  Bruno Haible  <bruno@clisp.org>
65395
65396         * m4/findprog.m4: New file.
65397         * m4/eaccess.m4: New file.
65398
65399 2003-04-10  Bruno Haible  <bruno@clisp.org>
65400
65401         * lib/findprog.h: New file, from GNU gettext.
65402         * lib/findprog.c: New file, from GNU gettext.
65403
65404 2003-04-05  Jim Meyering  <jim@meyering.net>
65405
65406         Merge changes from Coreutils.
65407
65408         * lib/exclude.h (PARAMS): Remove definition and uses.
65409         * lib/exclude.c: Remove uses of `PARAMS'.
65410
65411         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
65412         Add test-cases for DOS filenames. Declare program_name.
65413         (main): Set up program_name.  Patch by Rich Dawe.
65414
65415         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
65416         error from mntctl.
65417         Use mntctl's return value to drive the entry-processing loop, since
65418         we can't rely on the value of the vmt_length member in the last
65419         entry.  On some systems doing so could result in exhausting
65420         virtual memory.  Based in part on a patch from Mike Jetzer.
65421
65422 2003-04-04  Bruno Haible  <bruno@clisp.org>
65423
65424         * modules/linebreak: New file.
65425         * MODULES.html.sh (func_all_modules): Add it.
65426
65427 2003-04-04  Bruno Haible  <bruno@clisp.org>
65428
65429         * m4/linebreak.m4: New file.
65430
65431 2003-04-04  Bruno Haible  <bruno@clisp.org>
65432
65433         * lib/linebreak.h: New file, from GNU gettext.
65434         * lib/linebreak.c: New file, from GNU gettext with slight
65435         modifications.
65436         * lib/lbrkprop.h: New file, from GNU gettext.
65437
65438 2003-04-03  Bruno Haible  <bruno@clisp.org>
65439
65440         * modules/utf8-ucs4: New file.
65441         * modules/utf16-ucs4: New file.
65442         * modules/ucs4-utf8: New file.
65443         * modules/ucs4-utf16: New file.
65444         * MODULES.html.sh (func_all_modules): Add them.
65445
65446 2003-04-03  Bruno Haible  <bruno@clisp.org>
65447
65448         * m4/utf-ucs4.m4: New file.
65449         * m4/ucs4-utf.m4: New file.
65450
65451 2003-04-03  Bruno Haible  <bruno@clisp.org>
65452
65453         * lib/utf8-ucs4.h: New file, from GNU gettext.
65454         * lib/utf16-ucs4.h: New file, from GNU gettext.
65455         * lib/ucs4-utf8.h: New file, from GNU gettext.
65456         * lib/ucs4-utf16.h: New file, from GNU gettext.
65457
65458 2003-04-02  Bruno Haible  <bruno@clisp.org>
65459
65460         * modules/binary-io: New file.
65461         * MODULES.html.sh (func_all_modules): Add it.
65462
65463 2003-04-02  Bruno Haible  <bruno@clisp.org>
65464
65465         * lib/binary-io.h: New file, from GNU gettext.
65466
65467 2003-04-01  Bruno Haible  <bruno@clisp.org>
65468
65469         * modules/pathname: New file.
65470         * MODULES.html.sh (func_all_modules): Add it.
65471
65472 2003-04-01  Bruno Haible  <bruno@clisp.org>
65473
65474         * lib/pathname.h: New file, from GNU gettext.
65475         * lib/concatpath.c: New file, from GNU gettext.
65476
65477 2003-03-30  Bruno Haible  <bruno@clisp.org>
65478
65479         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
65480
65481 2003-03-30  Bruno Haible  <bruno@clisp.org>
65482
65483         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
65484         function chown() doesn't exist.
65485
65486 2003-03-28  Bruno Haible  <bruno@clisp.org>
65487
65488         * modules/copy-file: New file.
65489         * MODULES.html.sh (func_all_modules): Add it.
65490
65491 2003-03-28  Bruno Haible  <bruno@clisp.org>
65492
65493         * m4/copy-file.m4: New file.
65494
65495 2003-03-28  Bruno Haible  <bruno@clisp.org>
65496
65497         * lib/copy-file.h: New file, from GNU gettext.
65498         * lib/copy-file.c: New file, from GNU gettext.
65499
65500 2003-03-18  Jim Meyering  <jim@meyering.net>
65501
65502         * lib/quote.c (quote_n): Fix typo in comment.
65503
65504 2003-03-18  Bruno Haible  <bruno@clisp.org>
65505
65506         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
65507         checking.
65508         * m4/onceonly_2_57.m4: Likewise.
65509
65510 2003-03-17  Bruno Haible  <bruno@clisp.org>
65511
65512         * m4/onceonly.m4: Require autoconf 2.54 or newer.
65513         (m4_quote): Remove macro.
65514         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
65515
65516 2003-03-14  Jim Meyering  <jim@meyering.net>
65517
65518         Merge changes from Coreutils.
65519         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
65520         to be const, in order to avoid warnings.
65521         (obstack_room): Likewise.
65522         (obstack_empty_p): Likewise.
65523
65524 2003-03-14  Bruno Haible  <bruno@clisp.org>
65525
65526         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
65527         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
65528
65529 2003-03-13  Paul Eggert  <eggert@twinsun.com>
65530
65531         Merge changes from Bison.
65532         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
65533         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
65534         when compiling Bison 1.875's `bitset bset = obstack_alloc
65535         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
65536         * lib/hash.c: Include <stdbool.h> unconditionally.
65537
65538 2003-03-13  Paul Eggert  <eggert@twinsun.com>
65539
65540         * m4/onceonly.m4 (m4_quote): New macro.
65541         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
65542         Quote AC_FOREACH variable-expansions properly.
65543
65544 2003-03-13  Paul Eggert  <eggert@twinsun.com>
65545
65546         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
65547
65548 2003-03-09  Paul Eggert  <eggert@twinsun.com>
65549
65550         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
65551         Reported by Bruce Becker; see:
65552         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
65553
65554 2003-03-03  Paul Eggert  <eggert@twinsun.com>
65555             Bruno Haible  <bruno@clisp.org>
65556
65557         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
65558         Reported by John Hughes, see
65559         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
65560
65561 2003-02-20  Bruno Haible  <bruno@clisp.org>
65562
65563         * MODULES.html.sh (func_all_modules): Add poll.
65564
65565 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
65566
65567         * modules/poll: New file.
65568
65569 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
65570
65571         * lib/poll_.h: New file.
65572         * lib/poll.c: New file.
65573
65574 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
65575
65576         * m4/poll.m4: New file.
65577
65578 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
65579
65580         * modules/mathl: New file.
65581
65582 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
65583
65584         * lib/mathl.h: New file.
65585         * lib/acosl.c: New file.
65586         * lib/asinl.c: New file.
65587         * lib/atanl.c: New file.
65588         * lib/ceill.c: New file.
65589         * lib/cosl.c: New file.
65590         * lib/expl.c: New file.
65591         * lib/floorl.c: New file.
65592         * lib/frexpl.c: New file.
65593         * lib/ldexpl.c: New file.
65594         * lib/logl.c: New file.
65595         * lib/sincosl.c: New file.
65596         * lib/sinl.c: New file.
65597         * lib/sqrtl.c: New file.
65598         * lib/tanl.c: New file.
65599         * lib/trigl.c: New file.
65600         * lib/trigl.h: New file.
65601
65602 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
65603
65604         * m4/mathl.m4: New file.
65605
65606 2003-02-18  Bruno Haible  <bruno@clisp.org>
65607
65608         * MODULES.html.sh (func_all_modules): Add mathl.
65609
65610 2003-02-17  Bruno Haible  <bruno@clisp.org>
65611
65612         * modules/mkdtemp: New module.
65613         * MODULES.html.sh (func_all_modules): Add it.
65614
65615 2003-02-17  Bruno Haible  <bruno@clisp.org>
65616
65617         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
65618
65619 2003-02-17  Bruno Haible  <bruno@clisp.org>
65620
65621         * lib/mkdtemp.h: New file, from GNU gettext.
65622         * lib/mkdtemp.c: New file, from GNU gettext.
65623
65624 2003-02-02  Jim Meyering  <jim@meyering.net>
65625
65626         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
65627         e.g. glibc-2.2.93.
65628
65629 2003-01-31  Bruno Haible  <bruno@clisp.org>
65630
65631         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
65632         'rpl_rename'.
65633         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
65634         'rpl_strnlen'.
65635         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
65636         'rpl_strtod'.
65637         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
65638         'rpl_utime'.
65639
65640 2003-01-31  Bruno Haible  <bruno@clisp.org>
65641
65642         * lib/rename.c: #undef rename before defining rpl_rename.
65643         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
65644
65645 2003-01-30  Bruno Haible  <bruno@clisp.org>
65646
65647         * modules/vasnprintf, modules/vasprintf: New modules.
65648         * MODULES.html.sh (func_all_modules): Add them.
65649
65650 2003-01-30  Bruno Haible  <bruno@clisp.org>
65651
65652         * m4/signed.m4: New file, from GNU gettext.
65653         * m4/longdouble.m4: New file, from GNU gettext.
65654         * m4/wchar_t.m4: New file, from GNU gettext.
65655         * m4/wint_t.m4: New file, from GNU gettext.
65656         * m4/vasnprintf.m4: New file.
65657         * m4/vasprintf.m4: New file.
65658
65659 2003-01-30  Bruno Haible  <bruno@clisp.org>
65660
65661         * lib/printf-args.h: New file, from GNU gettext.
65662         * lib/printf-args.c: New file, from GNU gettext.
65663         * lib/printf-parse.h: New file, from GNU gettext.
65664         * lib/printf-parse.c: New file, from GNU gettext.
65665         * lib/vasnprintf.h: New file, from GNU gettext.
65666         * lib/vasnprintf.c: New file, from GNU gettext.
65667         * lib/asnprintf.c: New file, from GNU gettext.
65668         * lib/vasprintf.h: New file, from GNU gettext with modifications.
65669         * lib/vasprintf.c: New file, from GNU gettext.
65670         * lib/asprintf.c: New file, from GNU gettext.
65671
65672 2003-01-29  Bruno Haible  <bruno@clisp.org>
65673
65674         * modules/stpncpy: New module.
65675         * MODULES.html.sh (func_all_modules): Add it.
65676
65677 2003-01-29  Bruno Haible  <bruno@clisp.org>
65678
65679         * m4/stpncpy.m4: New file.
65680
65681 2003-01-29  Bruno Haible  <bruno@clisp.org>
65682
65683         * lib/stpncpy.h: New file, from GNU gettext with modifications.
65684         * lib/stpncpy.c: New file, from GNU gettext with modifications.
65685
65686 2003-01-28  Bruno Haible  <bruno@clisp.org>
65687
65688         * modules/c-ctype: New module.
65689         * MODULES.html.sh (func_all_modules): Add it.
65690
65691 2003-01-28  Bruno Haible  <bruno@clisp.org>
65692
65693         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
65694         Paul Eggert.
65695         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
65696         Paul Eggert.
65697
65698 2003-01-27  Bruno Haible  <bruno@clisp.org>
65699
65700         * modules/xsetenv: New module.
65701         * MODULES.html.sh (func_all_modules): Add it.
65702
65703 2003-01-27  Bruno Haible  <bruno@clisp.org>
65704
65705         * lib/xsetenv.h: New file, from GNU gettext.
65706         * lib/xsetenv.c: New file, from GNU gettext.
65707
65708 2003-01-23  Jim Meyering  <jim@meyering.net>
65709
65710         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
65711         from working on systems without dirfd (at least Irix and OSF1/Tru64).
65712
65713 2003-01-23  Bruno Haible  <bruno@clisp.org>
65714
65715         * modules/minmax: New module.
65716         * MODULES.html.sh (func_all_modules): Add it.
65717
65718 2003-01-23  Bruno Haible  <bruno@clisp.org>
65719
65720         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
65721         Eggert.
65722
65723 2003-01-22  Bruno Haible  <bruno@clisp.org>
65724
65725         * modules/exit: New module.
65726         * MODULES.html.sh (func_all_modules): Add it.
65727
65728 2003-01-22  Bruno Haible  <bruno@clisp.org>
65729
65730         * lib/exit.h: New file, from GNU gettext.
65731
65732 2003-01-19  Bruno Haible  <bruno@clisp.org>
65733
65734         * gnulib-tool: Recognize option --extract-maintainer.
65735         (func_get_maintainer): New function.
65736         * modules/*: Add Maintainer entry.
65737
65738 2003-01-16  Jim Meyering  <jim@meyering.net>
65739
65740         * m4/regex.m4: The `regex' struct is both input and output.
65741         Initialize it before each use.  Patch by Tim Waugh.
65742
65743 2003-01-16  Bruno Haible  <bruno@clisp.org>
65744
65745         * MODULES.html.sh: Add a table of contents. Add the module name as
65746         leftmost column. Add hyperlinks.
65747
65748 2003-01-15  Bruno Haible  <bruno@clisp.org>
65749
65750         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
65751
65752 2003-01-15  Bruno Haible  <bruno@clisp.org>
65753
65754         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
65755         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
65756         suffix.
65757
65758 2003-01-15  Bruno Haible  <bruno@clisp.org>
65759
65760         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
65761
65762 2003-01-15  Bruno Haible  <bruno@clisp.org>
65763
65764         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
65765         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
65766
65767 2003-01-14  Jim Meyering  <jim@meyering.net>
65768
65769         * lib/same.c (same_name): Tweak a comment.
65770
65771 2003-01-14  Bruno Haible  <bruno@clisp.org>
65772
65773         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
65774         when a string comparison is sufficient.
65775
65776 2003-01-14  Bruno Haible  <bruno@clisp.org>
65777
65778         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
65779         'unsigned int'.
65780
65781 2003-01-14  Bruno Haible  <bruno@clisp.org>
65782
65783         * lib/hash-pjw.c: Add comment about low quality of this function.
65784
65785 2003-01-13  Bruno Haible  <bruno@clisp.org>
65786
65787         * modules/stpcpy: Distribute lib/stpcpy.h.
65788         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
65789
65790 2003-01-13  Bruno Haible  <bruno@clisp.org>
65791
65792         * modules/*: Add a description.
65793         * modules/strpbrk: Fix Makefile.am snippet.
65794         * modules/strtoimax: Fix dependencies.
65795         * modules/strtoumax: Likewise.
65796
65797 2003-01-13  Bruno Haible  <bruno@clisp.org>
65798
65799         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
65800         * modules/alloca (Makefile.am): All object files depend on alloca.h.
65801         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
65802
65803 2003-01-13  Bruno Haible  <bruno@clisp.org>
65804
65805         * gnulib-tool (func_create_testdir): Store config/* files in the main
65806         directory.
65807         * config.rpath: Move to ...
65808         * config/config.rpath: ... here.
65809         * modules/gettext: Contains config/config.rpath, not config.rpath.
65810         * modules/iconv: Likewise.
65811
65812 2003-01-12  Paul Eggert  <eggert@twinsun.com>
65813
65814         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
65815         to avoid collisions with libcurses and libreadline.
65816
65817         * m4/getstr.m4: Remove.
65818         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
65819
65820 2003-01-12  Paul Eggert  <eggert@twinsun.com>
65821
65822         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
65823         to avoid collisions with libcurses and libreadline.
65824
65825         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
65826         * lib/getstr.h, getstr.c: Remove.
65827         * lib/getline.c: Include "getline.h", to check interface.
65828         Move body of old getstr.c here: this defines MIN_CHUNK and
65829         declares getdelim2, which is renamed from getstr.
65830         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
65831
65832         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
65833         All uses changed.
65834         * lib/linebuffer.h: Likewise.
65835         (readline): Remove backward-compatibility macro.
65836
65837 2003-01-12  Paul Eggert  <eggert@twinsun.com>
65838
65839         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
65840         to avoid collisions with libcurses and libreadline.
65841         * getstr: Remove.
65842         * MODULES.html.sh: Remove getstr.
65843         * modules/getline: Depend on unlocked-io, not getstr.
65844
65845 2003-01-12  Jim Meyering  <jim@meyering.net>
65846
65847         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
65848
65849 2003-01-10  Bruno Haible  <bruno@clisp.org>
65850
65851         * modules/alloca: Change Makefile.am requirements. Simplify Include
65852         requirements. Add lib/alloca_.h to file list.
65853
65854 2003-01-10  Bruno Haible  <bruno@clisp.org>
65855
65856         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
65857
65858 2003-01-10  Bruno Haible  <bruno@clisp.org>
65859
65860         * lib/alloca_.h: New file.
65861         * lib/getdate.y: Unconditionally include alloca.h.
65862         * lib/makepath.c: Likewise.
65863         * lib/setenv.c: Likewise.
65864         * lib/userspec.c: Likewise.
65865
65866 2003-01-09  Karl Berry  <karl@gnu.org>
65867
65868         * MODULES.html.sh: include `dirname $0` in PATH, to find
65869         gnulib-tool.
65870
65871 2003-01-09  Bruno Haible  <bruno@clisp.org>
65872
65873         * modules/stdbool: Change configure.ac, Makefile.am requirements.
65874         Simplify Include requirements. Add lib/stdbool.h.in to file list.
65875
65876 2003-01-09  Bruno Haible  <bruno@clisp.org>
65877
65878         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
65879
65880 2003-01-09  Bruno Haible  <bruno@clisp.org>
65881
65882         * lib/stdbool.h.in: New file.
65883
65884 2003-01-09  Bruno Haible  <bruno@clisp.org>
65885
65886         * gnulib-tool (func_all_modules): Ignore files ending in ~.
65887         * MODULES.html.sh: Likewise.
65888
65889 2003-01-08  Jim Meyering  <jim@meyering.net>
65890
65891         * lib/full-write.c: Undefine and define-away `const' after inclusion
65892         of errno.h, not before.  Suggestion from Bruno Haible.
65893
65894 2003-01-08  Bruno Haible  <bruno@clisp.org>
65895
65896         * modules/full-read: Depend on full-write.
65897
65898 2003-01-08  Bruno Haible  <bruno@clisp.org>
65899
65900         * lib/safe-read.c: Include specification header first, to ensure its
65901         selfcontainedness.
65902         * lib/full-write.c: Likewise.
65903
65904 2003-01-07  Jim Meyering  <jim@meyering.net>
65905
65906         * lib/full-write.c: Rework so that it may serve to define full_read,
65907         too.
65908         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
65909
65910 2003-01-07  Bruno Haible  <bruno@clisp.org>
65911
65912         * lib/strtoimax.c: Include <stdint.h> as an alternative to
65913         <inttypes.h>.
65914         * lib/xstrtol.h: Likewise.
65915         * lib/xstrtoimax.c: Likewise.
65916         * lib/xstrtoumax.c: Likewise.
65917         * lib/human.h: Likewise.
65918
65919         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
65920         on systems that have <inttypes.h> but not <stdint.h>.
65921
65922 2003-01-07  Bruno Haible  <bruno@clisp.org>
65923
65924         * MODULES.html.sh: Add copyright notice.
65925         (missed_files): Omit CVS directory entries.
65926         (func_module): Make it work with sed-3.02.
65927         * MODULES.txt: Remove file.
65928
65929 2003-01-06  Jim Meyering  <jim@meyering.net>
65930
65931         * lib/version-etc.c: Update year in translatable copyright string.
65932
65933 2003-01-03  Karl Berry  <karl@gnu.org>
65934
65935         * config/config.{guess,sub}: update from prep.
65936
65937 2003-01-02  Karl Berry  <karl@gnu.org>
65938
65939         * doc/COPYING.DOC: belatedly updated to 1.2.
65940
65941 2003-01-01  Karl Berry  <karl@gnu.org>
65942
65943         * gnulib-tool (func_verify_module): report module name $module in
65944         error message, not $1.
65945         * gnulib-tool (create-testdir): don't complain if destdir couldn't
65946         be created, only if it doesn't exist.
65947         * gnulib-tool (last_checkin_date): don't expand the $Date here.
65948
65949 2002-12-31  Paul Eggert  <eggert@twinsun.com>
65950
65951         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
65952
65953 2002-12-31  Paul Eggert  <eggert@twinsun.com>
65954
65955         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
65956         memcmp if strcoll doesn't work.
65957
65958 2002-12-31  Bruno Haible  <bruno@clisp.org>
65959
65960         * lib/utime.c (utime_null): No need to call ftruncate if the file was
65961         nonempty.
65962
65963 2002-12-31  Bruno Haible  <bruno@clisp.org>
65964
65965         * lib/memcoll.c (STRCOLL): New macro.
65966         (memcoll): Use it.
65967
65968 2002-12-31  Bruno Haible  <bruno@clisp.org>
65969
65970         * lib/localcharset.h: New file.
65971         * lib/localcharset.c: Include it.
65972         * lib/unicodeio.c: Likewise.
65973
65974 2002-12-31  Bruno Haible  <bruno@clisp.org>
65975
65976         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
65977         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
65978
65979 2002-12-31  Bruno Haible  <bruno@clisp.org>
65980
65981         * lib/getline.h: Include <stddef.h>, for size_t.
65982
65983         * lib/unicodeio.h: Include <stddef.h>, for size_t.
65984         * lib/unicodeio.c: Don't include <stddef.h>.
65985
65986 2002-12-31  Bruno Haible  <bruno@clisp.org>
65987
65988         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
65989         HAVE_TM_ZONE.
65990
65991 2002-12-24  Karl Berry  <karl@gnu.org>
65992
65993         * config/config.guess: update from prep.
65994
65995 2002-12-24  Bruno Haible  <bruno@clisp.org>
65996
65997         General infrasructure.
65998         * m4/README: Rewritten.
65999         * m4/onceonly.m4: New file.
66000         * m4/onceonly_2_57.m4: New file.
66001
66002         Module atexit.
66003         * m4/atexit.m4: New file.
66004
66005         Module strtod.
66006         * m4/strtod.m4: New file.
66007
66008         Module strtol.
66009         * m4/strtol.m4: New file.
66010
66011         Module strtoul.
66012         * m4/strtoul.m4: New file.
66013
66014         Module memchr.
66015         * m4/memchr.m4: New file.
66016
66017         Module memcmp.
66018         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
66019         (jm_FUNC_MEMCMP): Invoke it.
66020
66021         Module memcpy.
66022         * m4/memcpy.m4: New file.
66023
66024         Module memmove.
66025         * m4/memmove.m4: New file.
66026
66027         Module memset.
66028         * m4/memset.m4: New file.
66029
66030         Module strcspn.
66031         * m4/strcspn.m4: New file.
66032
66033         Module strpbrk.
66034         * m4/strpbrk.m4: New file.
66035
66036         Module strstr.
66037         * m4/strstr.m4: New file.
66038
66039         Module strerror.
66040         * m4/strerror.m4: New file.
66041
66042         Module mktime.
66043         * m4/mktime.m4: Renamed from jm-mktime.m4.
66044         (gl_PREREQ_MKTIME): New macro.
66045         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
66046
66047         Module malloc.
66048         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
66049         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
66050         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
66051
66052         Module realloc.
66053         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
66054         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
66055         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
66056
66057         Module strftime.
66058         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
66059         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
66060         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
66061         gl_TM_GMTOFF.
66062         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
66063
66064         Module xalloc.
66065         * m4/xalloc.m4: New file.
66066
66067         Module alloca.
66068         * m4/alloca.m4: New file.
66069
66070         Module putenv.
66071         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
66072         (jm_FUNC_PUTENV): Invoke it.
66073
66074         Module setenv.
66075         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
66076         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
66077         when invoked twice.
66078         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
66079         gt_FUNC_SETENV.
66080
66081         Module memrchr.
66082         * m4/memrchr.m4: New file.
66083
66084         Module stpcpy.
66085         * m4/stpcpy.m4: New file.
66086
66087         Module strcase.
66088         * m4/strcase.m4: New file.
66089
66090         Module strdup.
66091         * m4/strdup.m4: New file.
66092
66093         Module strnlen.
66094         * m4/strnlen.m4: New file.
66095
66096         Module strndup.
66097         * m4/strndup.m4: New file.
66098
66099         Module xstrtod.
66100         * m4/xstrtod.m4: New file.
66101
66102         Module xstrtol.
66103         * m4/xstrtol.m4: New file.
66104
66105         Module getdate.
66106         * m4/getdate.m4: New file.
66107
66108         Module unlocked-io.
66109         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
66110         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
66111         * m4/jm-glibc-io.m4n: Remove file.
66112
66113         Module long-options.
66114         * m4/long-options.m4: New file.
66115
66116         Module md5.
66117         * m4/md5.m4: New file.
66118
66119         Module sha.
66120         * m4/sha.m4: New file.
66121
66122         Module getstr.
66123         * m4/getstr.m4: New file.
66124
66125         Module getline.
66126         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
66127         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
66128         <sys/types.h>, for size_t. Use the function name gnu_getline, not
66129         simply getline. Infoke gl_PREREQ_GETLINE.
66130
66131         Module obstack.
66132         * m4/obstack.m4: New file.
66133
66134         Module hash.
66135         * m4/hash.m4: New file.
66136
66137         Module readtokens.
66138         * m4/readtokens.m4: New file.
66139
66140         Module strverscmp.
66141         * m4/strverscmp.m4: New file.
66142
66143         Module stdbool.
66144         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
66145         OSF/1.
66146
66147         Module strtoll.
66148         * m4/strtoll.m4: New file.
66149
66150         Module strtoull.
66151         * m4/strtoull.m4: New file.
66152
66153         Module strtoimax.
66154         * m4/strtoimax.m4: New file.
66155
66156         Module strtoumax.
66157         * m4/strtoumax.m4: New file.
66158
66159         Module xstrtoimax.
66160         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
66161         jm_AC_PREREQ_XSTRTOIMAX.
66162         Moved the strtol prerequisites to strtol.m4.
66163         Moved the strtoll prerequisites to strtoll.m4.
66164         Moved the strtoimax prerequisites to strtoimax.m4.
66165
66166         Module xstrtoumax.
66167         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
66168         jm_AC_PREREQ_XSTRTOUMAX.
66169         Moved the strtoul prerequisites to strtoul.m4.
66170         Moved the strtoull prerequisites to strtoull.m4.
66171         Moved the strtoumax prerequisites to strtoumax.m4.
66172
66173         Module chown.
66174         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
66175         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
66176
66177         Module dup2.
66178         * m4/dup2.m4: New file.
66179
66180         Module ftruncate.
66181         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
66182         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
66183
66184         Module getgroups.
66185         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
66186         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
66187
66188         Module gettimeofday.
66189         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
66190         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
66191         gl_PREREQ_GETTIMEOFDAY.
66192
66193         Module mkdir.
66194         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
66195         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
66196
66197         Module mkstemp.
66198         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
66199         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
66200         jm_AC_TYPE_UINTMAX_T.
66201         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
66202
66203         Module stat.
66204         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
66205         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
66206
66207         Module lstat.
66208         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
66209         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
66210
66211         Module timespec.
66212         * m4/timespec.m4 (gl_TIMESPEC): New macro.
66213         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
66214         * m4/st_mtim.m4: Indentation.
66215
66216         Module nanosleep.
66217         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
66218         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
66219         gl_PREREQ_NANOSLEEP.
66220
66221         Module regex.
66222         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
66223         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
66224         (gl_REGEX): New macro.
66225
66226         Module rename.
66227         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
66228         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
66229
66230         Module rmdir.
66231         * m4/rmdir.m4: New file.
66232
66233         Module utime.
66234         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
66235         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
66236         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
66237
66238         Module dirname.
66239         * m4/dirname.m4: New file.
66240
66241         Module getopt.
66242         * m4/getopt.m4: New file.
66243
66244         Module unistd-safer.
66245         * m4/unistd-safer.m4: New file.
66246
66247         Module fnmatch.
66248         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
66249         declaration.
66250         (gl_PREREQ_FNMATCH_EXTRA): New macro.
66251         (gl_FUNC_FNMATCH_POSIX): New macro.
66252         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
66253         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
66254         simply fnmatch.
66255
66256         Module exclude.
66257         * m4/exclude.m4: New file.
66258
66259         Module human.
66260         * m4/human.m4: New file.
66261
66262         Module acl.
66263         * m4/acl.m4: Nop.
66264
66265         Module backupfile.
66266         * m4/backupfile.m4: New file.
66267         * m4/d-ino.m4: Indentation.
66268
66269         Module fsusage.
66270         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
66271         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
66272         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
66273
66274         Module dirfd.
66275         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
66276         requirements.
66277
66278         Module euidaccess.
66279         * m4/euidaccess.m4: New file.
66280
66281         Module file-type.
66282         * m4/file-type.m4: New file.
66283
66284         Module fileblocks.
66285         * m4/fileblocks.m4: New file.
66286
66287         Module filemode.
66288         * m4/filemode.m4: New file.
66289
66290         Module isdir.
66291         * m4/isdir.m4: New file.
66292
66293         Module lchown.
66294         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
66295         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
66296
66297         Module makepath.
66298         * m4/makepath.m4: New file.
66299
66300         Module modechange.
66301         * m4/modechange.m4: New file.
66302
66303         Module mountlist.
66304         * m4/mountlist.m4: New file.
66305         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
66306         Indentation.
66307
66308         Module path-concat.
66309         * m4/path-concat.m4: New file.
66310
66311         Module pathmax.
66312         * m4/pathmax.m4: New file.
66313
66314         Module same.
66315         * m4/same.m4: New file.
66316
66317         Module save-cwd.
66318         * m4/save-cwd.m4: New file.
66319
66320         Module savedir.
66321         * m4/savedir.m4: New file.
66322
66323         Module xgetcwd.
66324         * m4/xgetcwd.m4: New file.
66325         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
66326
66327         Module xreadlink.
66328         * m4/xreadlink.m4: New file.
66329
66330         Module safe-read.
66331         * m4/safe-read.m4: New file.
66332
66333         Module safe-write.
66334         * m4/safe-write.m4: New file.
66335
66336         Module closeout.
66337         * m4/closeout.m4: New file.
66338
66339         Module stdio-safer.
66340         * m4/stdio-safer.m4: New file.
66341
66342         Module getpass.
66343         * m4/getpass.m4: New file.
66344
66345         Module getugroups.
66346         * m4/getugroups.m4: New file.
66347
66348         Module group-member.
66349         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
66350         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
66351
66352         Module idcache.
66353         * m4/idcache.m4: New file.
66354
66355         Module userspec.
66356         * m4/userspec.m4: New file.
66357
66358         Module gettime.
66359         * m4/clock_time.m4: New file.
66360         * m4/gettime.m4: New file.
66361
66362         Module settime.
66363         * m4/settime.m4: New file.
66364
66365         Module posixtm.
66366         * m4/posixtm.m4: New file.
66367
66368         Module gethostname.
66369         * m4/gethostname.m4: New file.
66370
66371         Module canon-host.
66372         * m4/canon-host.m4: New file.
66373
66374         Module gettext.
66375         * m4/codeset.m4: New file, from gettext-0.11.5.
66376         * m4/gettext.m4: New file, from gettext-0.11.5.
66377         * m4/glibc21.m4: New file, from gettext-0.11.5.
66378         * m4/iconv.m4: New file, from gettext-0.11.5.
66379         * m4/intdiv0.m4: New file, from gettext-0.11.5.
66380         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
66381         * m4/inttypes.m4: New file, from gettext-0.11.5.
66382         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
66383         * m4/isc-posix.m4: New file, from gettext-0.11.5.
66384         * m4/lcmessage.m4: New file, from gettext-0.11.5.
66385         * m4/lib-ld.m4: New file, from gettext-0.11.5.
66386         * m4/lib-link.m4: New file, from gettext-0.11.5.
66387         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
66388         * m4/progtest.m4: New file, from gettext-0.11.5.
66389         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
66390         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
66391         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
66392
66393         Module localcharset.
66394         * m4/localcharset.m4: New file.
66395
66396         Module hard-locale.
66397         * m4/hard-locale.m4: New file.
66398
66399         Module mbswidth.
66400         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
66401         onceonly macros.
66402         * m4/mbrtowc.m4: Add comment.
66403
66404         Module memcasecmp.
66405         * m4/memcasecmp.m4: New file.
66406
66407         Module memcoll.
66408         * m4/memcoll.m4: New file.
66409
66410         Module unicodeio.
66411         * m4/unicodeio.m4: New file.
66412
66413         Module rpmatch.
66414         * m4/rpmatch.m4: New file.
66415
66416         Module yesno.
66417         * m4/yesno.m4: New file.
66418
66419         Module exitfail.
66420         * m4/exitfail.m4: New file.
66421
66422         Module c-stack.
66423         * m4/c-stack.m4 (gl_C_STACK): New macro.
66424         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
66425
66426         Module error.
66427         * m4/error.m4 (gl_ERROR): New macro.
66428         (jm_PREREQ_ERROR): Use onceonly macros.
66429
66430         Module fatal.
66431         * m4/fatal.m4: New file.
66432
66433         Module getloadavg.
66434         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
66435         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
66436
66437         Module getpagesize.
66438         * m4/getpagesize.m4: New file.
66439
66440         Module getusershell.
66441         * m4/getusershell.m4: New file.
66442
66443         Module physmem.
66444         * m4/physmem.m4: New file.
66445
66446         Module posixver.
66447         * m4/posixver.m4: New file.
66448
66449         Module quotearg.
66450         * m4/quotearg.m4: New file.
66451
66452         Module quote.
66453         * m4/quote.m4: New file.
66454
66455         Module readutmp.
66456         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
66457
66458         Module sig2str.
66459         * m4/sig2str.m4: New file.
66460
66461         Other.
66462         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
66463         ulonglong.m4.
66464         * m4/intmax_t.m4: New file.
66465         * m4/d-type.m4: Indentation.
66466         * m4/jm-macros.m4: Update.
66467         * m4/prereq.m4 (jm_PREREQ): Update.
66468         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
66469         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
66470         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
66471         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
66472         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
66473         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
66474         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
66475         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
66476         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
66477         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
66478         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
66479         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
66480         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
66481         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
66482         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
66483         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
66484         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
66485         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
66486         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
66487
66488 2002-12-24  Bruno Haible  <bruno@clisp.org>
66489
66490         * MODULES.txt: Update according to m4/ changes.
66491
66492         Module gettext.
66493         * config.rpath: New file, from gettext-0.11.5.
66494
66495         * modules/*: New module descriptions.
66496         * gnulib-tool: New file.
66497         * MODULES.html.sh: New file.
66498
66499 2002-12-21  Karl Berry  <karl@gnu.org>
66500
66501         * doc/fdl.texi: update to version 1.2.
66502
66503 2002-12-19  Karl Berry  <karl@gnu.org>
66504
66505         * config/config.guess: update from prep.
66506
66507 2002-12-18  Bruno Haible  <bruno@clisp.org>
66508
66509         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
66510         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
66511
66512 2002-12-17  Bruno Haible  <bruno@clisp.org>
66513
66514         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
66515         stdlib.h, string.h.
66516
66517 2002-12-17  Bruno Haible  <bruno@clisp.org>
66518
66519         * lib/canon-host.c (strdup): Remove unused declaration.
66520
66521         * lib/fsusage.c: Include full_read.h.
66522         (get_fs_usage): Use full_read instead of safe_read.
66523
66524         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
66525
66526 2002-12-12  Karl Berry  <karl@gnu.org>
66527
66528         * config/config.guess: update from prep.
66529
66530 2002-12-11  Bruno Haible  <bruno@clisp.org>
66531
66532         * m4/setenv.m4: New file, from gettext-0.11.5.
66533
66534 2002-12-11  Bruno Haible  <bruno@clisp.org>
66535
66536         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
66537         not unsetenv().
66538         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
66539         modifications:
66540
66541         2002-12-11  Bruno Haible  <bruno@clisp.org>
66542
66543                 * setenv.c (alloca): Fall back to malloc.
66544                 (freea): New macro.
66545                 (setenv): Use freea() to free memory allocated with alloca().
66546
66547         2002-11-13  Bruno Haible  <bruno@clisp.org>
66548
66549                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
66550                 function declarations.
66551                 * unsetenv.c (unsetenv): Likewise.
66552
66553         2002-03-04  Bruno Haible  <bruno@clisp.org>
66554
66555                 Portability to AIX 4.3.3.
66556                 * unsetenv.c: New file, extracted from setenv.c.
66557                 * setenv.c: Move the unsetenv() function to unsetenv.c.
66558
66559         2001-12-20  Bruno Haible  <bruno@clisp.org>
66560
66561                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
66562                 use malloc instead. For SunOS 4.
66563
66564         2001-12-11  Bruno Haible  <bruno@clisp.org>
66565
66566                 * setenv.c: Declare alloca.
66567                 (compar_fn_t): New typedef.
66568                 (KNOWN_VALUE, STORE_VALUE): Use it.
66569
66570         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
66571         setenv.h.
66572
66573 2002-12-10  Paul Eggert  <eggert@twinsun.com>
66574
66575         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
66576         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
66577         Choose values that are less likely to collide with system fnmatch
66578         options.
66579         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
66580         defined (e.g., a pure POSIX system).
66581         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
66582         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
66583
66584 2002-12-06  Paul Eggert  <eggert@twinsun.com>
66585
66586         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
66587         a pain in practice to deal with generated m4 files.  This change
66588         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
66589
66590         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
66591         and jm-glibc-io.m4, as they are no longer a special case.
66592         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
66593         kludge and the auto-generation stuff.  Check only whether the
66594         functions are declared, not whether they exist, since older hosts
66595         that don't declare the functions can't use the optimization anyway.
66596
66597 2002-12-06  Jim Meyering  <jim@meyering.net>
66598
66599         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
66600
66601         Merge in changes from libc's misc/error.c, in preparation
66602         for the merge of gnulib's changes back into libc.
66603
66604         * lib/error.c (_): Define only if not already defined.
66605         Move definition to follow all #include directives.
66606         Include unlocked-io.h only if !_LIBC.
66607         [_LIBC]: Include <libio/libioP.h>.
66608         [USE_IN_LIBIO]: Include <libio/iolibio.h>
66609         (fflush): Tweak definition to use INTUSE.
66610         (putc): Define.
66611
66612 2002-12-05  Paul Eggert  <eggert@twinsun.com>
66613
66614         * lib/alloca.c [defined emacs]: Include "lisp.h".
66615         (xalloc_die) [defined emacs]: New macro.
66616         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
66617         [! defined emacs]: Include <xalloc.h>.
66618         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
66619         (pointer): Typedef to POINTER_TYPE *.
66620         (malloc): Remove decl; we now always use xmalloc.
66621         (alloca): Use old-style definition, since Emacs needs this.
66622         Check for arithmetic overflow when computing combined size.
66623
66624 2002-12-04  Paul Eggert  <eggert@twinsun.com>
66625
66626         Do not generate unlocked-io.h automatically, since it's easier to
66627         maintain it by hand.
66628
66629         * lib/unlocked-io.h: New file, from GNU diffutils,
66630         but with proper copyright notice and attribution.
66631         * lib/gen-uio: Remove.
66632         * lib/Makefile.am: Add copyright notice.
66633         (libfetish_a_SOURCES): Add unlocked-io.h.
66634         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
66635         (DISTCLEANFILES, io_functions): Remove macros.
66636         (EXTRA_DIST): Remove gen_uio.
66637         (unlocked-io.h): Remove rule.
66638
66639 2002-12-04  Jim Meyering  <jim@meyering.net>
66640
66641         Reflect the fact that stat.c and lstat.c are no longer generated.
66642         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
66643         (DISTCLEANFILES): Likewise.
66644         (EXTRA_DIST): Likewise.
66645         (all_local): Don't depend on stat.c or lstat.c.
66646         (stat.c, lstat.c): Remove rules.
66647         (EXTRA_DIST): Remove xstat.in.
66648
66649         * lib/xstat.in: Remove file.  Contents moved into stat.c.
66650         * lib/stat.c: New file.  Contents mostly from xstat.in.
66651         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
66652         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
66653
66654         * lib/safe-read.c: Rework so that it may serve to define safe_write,
66655         too.
66656         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
66657
66658 2002-12-03  Jim Meyering  <jim@meyering.net>
66659
66660         * lib/safe-read.c, safe-write.c: Change variable names and comments,
66661         but not semantics, to minimize the differences between these two files.
66662         (safe_read): Change comment to mention SAFE_READ_ERROR.
66663
66664         * lib/safe-read.c (IS_EINTR): Define.
66665         (safe_read): Use IS_EINTR in place of in-function cpp directives.
66666
66667 2002-12-02  Jim Meyering  <jim@meyering.net>
66668
66669         * lib/safe-read.c (EINTR): Define.
66670         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
66671         (INT_MAX): Provide fallback.
66672         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
66673
66674         * lib/safe-read.h (SAFE_READ_ERROR): Define.
66675
66676 2002-12-02  Bruno Haible  <bruno@clisp.org>
66677
66678         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
66679         Define, taken from safe-read.c.
66680         (INT_MAX): Provide fallback.
66681         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
66682         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
66683
66684         * lib/safe-read.c (EINTR): Remove definition.
66685         (safe_read): Don't use EINTR if it is absent.
66686
66687 2002-12-01  Jim Meyering  <jim@meyering.net>
66688
66689         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
66690         zero.
66691         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
66692
66693 2002-11-27  Paul Eggert  <eggert@twinsun.com>
66694
66695         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
66696         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
66697         with `if (! (value < limit)) abort ();', for readability.
66698
66699 2002-11-26  Karl Berry  <karl@gnu.org>
66700
66701         * lib/strdup.c: copy from libc again, with jim's ok.
66702         * lib/.cppi-disable: re-add strdup.c
66703
66704 2002-11-25  Karl Berry  <karl@gnu.org>
66705
66706         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
66707         instead of "strtol.c".
66708
66709 2002-11-25  Karl Berry  <karl@gnu.org>
66710
66711         * config/install-sh: update from automake for variable quoting, $0 in
66712         error msgs, etc.
66713
66714         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
66715         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
66716         entry.
66717
66718 2002-11-25  Jim Meyering  <jim@meyering.net>
66719
66720         * lib/mktime.c: Sync from libc, now that it has the latest fix.
66721
66722 2002-11-24  Karl Berry  <karl@gnu.org>
66723
66724         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
66725         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
66726
66727 2002-11-24  Jim Meyering  <jim@meyering.net>
66728
66729         Update from coreutils:
66730
66731         * lib/mktime.c: Merge in changes from libc.
66732
66733         Avoid a link-time failure on some Linux systems.
66734         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
66735         (otherwise).
66736         (__mon_yday): Declare with the STATIC attribute.
66737         (__mktime_internal): Likewise.
66738         Based on a report from Greg Schafer.
66739
66740 2002-11-23  Jim Meyering  <jim@meyering.net>
66741
66742         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
66743         Use `unsigned', not `int', as type of index.
66744
66745         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
66746
66747         * lib/fsusage.c: Remove unneeded parentheses around operands of
66748         `defined'.
66749
66750 2002-11-22  Paul Eggert  <eggert@twinsun.com>
66751
66752         * lib/quotearg.h: Allow multiple inclusion by surrounding with
66753         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
66754         so that we can be included first.
66755         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
66756         * lib/quotearg.c: Include quotearg.h immediately after config.h.
66757         No need to include stddef.h or sys/types.h any more.
66758         Surround local include files with "", not "<>".
66759         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
66760         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
66761         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
66762         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
66763         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
66764         (ISPRINT): Remove; no longer needed now that we assume C89.
66765
66766         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
66767         Preserve errno.
66768
66769         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
66770         quotearg_char): Use SIZE_MAX rather than
66771         (size_t) -1 when we are talking about "infinity".
66772
66773         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
66774
66775 2002-11-22  Paul Eggert  <eggert@twinsun.com>
66776
66777         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
66778         hint that one should use `if (! x) abort ();' rather than `assert
66779         (x);', and anyway it's one less thing to worry about configuring.
66780         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
66781         hash_rehash, hash_insert): Use abort rather than assert.
66782
66783 2002-11-22  Bruno Haible  <bruno@clisp.org>
66784
66785         * lib/safe-read.h: Assume C89. Add comments.
66786         (safe_read): Change return type to size_t.
66787         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
66788         byte counts > SSIZE_MAX correctly.
66789         * lib/safe-write.h: New file.
66790         * lib/safe-write.c: New file.
66791         * lib/full-read.h: New file.
66792         * lib/full-read.c: New file.
66793         * lib/full-write.h: Assume C89. Add comments.
66794         * lib/full-write.c: Include safe-write.h.
66795         (full_write): Rewritten to use safe_write.
66796         Suggested by Jim Meyering and Paul Eggert.
66797
66798 2002-11-21  Jim Meyering  <jim@meyering.net>
66799
66800         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
66801
66802         Merge in changes from the coreutils.
66803
66804         2002-09-25  Paul Eggert  <eggert@twinsun.com>
66805         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
66806         <stdint.h>.
66807         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
66808         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
66809         int.  Work more efficiently if X is the same width as uintmax_t.
66810         Do not compare X to -1, to avoid bogus compiler warning.
66811         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
66812         Don't assume that f_frsize and f_bsize are the same type.
66813
66814         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
66815         warning on FreeBSD.
66816
66817         * lib/makepath.c (make_path): Restore umask *before* creating the final
66818         component.
66819         (make_path): Minor reformatting.
66820
66821         * lib/xmalloc.c: Adjust to work with new autoconf macros,
66822         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
66823         HAVE_MALLOC/HAVE_REALLOC.
66824
66825         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
66826         dummy ones.  At least on GNU/Linux systems, `auto' means something
66827         else.
66828         From Michael Stone.
66829
66830 2002-11-21  Bruno Haible  <bruno@clisp.org>
66831
66832         Remove case insensitive option matching.
66833         * lib/argmatch.h (argcasematch): Remove declaration.
66834         (ARGCASEMATCH): Remove macro.
66835         (__xargmatch_internal): Remove case_sensitive argument.
66836         (XARGMATCH): Update.
66837         (XARGCASEMATCH): Remove macro.
66838         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
66839         case_sensitive argument.
66840         (argcasematch): Remove function.
66841         (__xargmatch_internal): Remove case_sensitive argument.
66842         (main): Use XARGMATCH instead of XARGCASEMATCH.
66843
66844         * lib/xmalloc.c: Change compile-time error message. Add comment about
66845         required autoconf version.
66846
66847 2002-11-20  Paul Eggert  <eggert@twinsun.com>
66848
66849         Merge argmatch cleanups from Bison.  Assume C89.
66850
66851         * lib/argmatch.c: Include config.h here, not in argmatch.h.
66852         Include stdlib.h, for EXIT_FAILURE.
66853         Always include <string.h>, since we assume C89.
66854         (EXIT_FAILURE): Remove pre-C89 bug workaround.
66855         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
66856         Include <stddef.h> instead, since it's all we need for size_t.
66857         (PARAMS): Remove.  All uses removed.
66858         (ARRAY_CARDINALITY): Do not bother to #undef.
66859         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
66860         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
66861         Remove unnecessary parentheses.
66862         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
66863         Insert necessary parentheses.
66864         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
66865         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
66866
66867 2002-11-19  Bruno Haible  <bruno@clisp.org>
66868
66869         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
66870         * lib/mbswidth.h: Include <stddef.h>, for size_t.
66871
66872         * lib/mbswidth.h (PARAMS): Remove macro.
66873         (mbswidth, mbsnwidth): Use ANSI C function declarations.
66874         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
66875
66876         * lib/gcd.h (PARAMS): Remove macro.
66877         (gcd): Use ANSI C function declarations.
66878         * lib/gcd.c (gcd): Likewise.
66879
66880 2002-11-15  Bruno Haible  <bruno@clisp.org>
66881
66882         * lib/strcspn.c: Include <stddef.h>.
66883         (strcspn): Use ANSI C function declaration. Change return type to
66884         size_t. Use NULL.
66885         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
66886         (strpbrk): Use NULL.
66887         * lib/strpbrk.h (PARAMS): Remove macro.
66888         (strpbrk): Use ANSI C function declaration.
66889         * lib/strstr.c: Don't include <sys/types.h>.
66890         * lib/strstr.h (PARAMS): Remove macro.
66891         (strstr): Use ANSI C function declarations.
66892
66893 2002-11-14  Karl Berry  <karl@gnu.org>
66894
66895         * config/mkinstalldirs: `do' on separate line, instead of
66896         `for var; do'.
66897
66898 2002-11-06  Bruno Haible  <bruno@clisp.org>
66899
66900         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
66901         * lib/gcd.c (gcd): Likewise.
66902
66903 2002-11-05  Bruno Haible  <bruno@clisp.org>
66904
66905         * lib/gcd.h: New file, from gettext-0.11.5.
66906         * lib/gcd.c: New file, from gettext-0.11.5.
66907
66908 2002-11-05  Bruno Haible  <bruno@clisp.org>
66909
66910         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
66911         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
66912         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
66913         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
66914
66915         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
66916         <libintl.h>.
66917         * lib/makepath.c: Include gettext.h instead of <locale.h> and
66918         <libintl.h>.
66919
66920         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
66921         * lib/human.c: Include gettext.h instead of <libintl.h>.
66922         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
66923         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
66924         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
66925         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
66926         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
66927         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
66928         (textdomain): Remove definition.
66929         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
66930
66931         * lib/long-options.c: Remove include of <libintl.h> and definition of
66932         _.
66933         * lib/same.c: Remove include of <libintl.h> and definition of _.
66934
66935 2002-11-04  Owen Taylor  <otaylor@redhat.com>
66936
66937         * lib/config.charset: A few additions for Solaris.
66938
66939 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
66940
66941         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
66942         * lib/localcharset.c (locale_charset): Declare as extern "C".
66943
66944 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
66945
66946         * lib/config.charset: msdos in uk_UA uses CP1125.
66947
66948 2002-11-04  Bruno Haible  <bruno@clisp.org>
66949
66950         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
66951         * lib/strcase.h: New file, from GNU gettext-0.11.5.
66952         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
66953         * lib/strstr.h: New file, from GNU gettext-0.11.5.
66954         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
66955
66956 2002-11-04  Bruno Haible  <bruno@clisp.org>
66957
66958         * lib/localcharset.c (locale_charset): Don't return an empty string.
66959
66960 2002-11-04  Bruno Haible  <bruno@clisp.org>
66961
66962         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
66963         aliases.
66964
66965 2002-11-04  Bruno Haible  <bruno@clisp.org>
66966
66967         * lib/config.charset: Update for newest glibc. Add canonical names
66968         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
66969
66970 2002-11-04  Bruno Haible  <bruno@clisp.org>
66971
66972         * lib/config.charset: Add support for NetBSD.
66973
66974 2002-11-04  Bruno Haible  <bruno@clisp.org>
66975
66976         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
66977
66978 2002-11-01  Bruno Haible  <bruno@clisp.org>
66979
66980         * configure.in: Add AC_CONFIG_AUX_DIR call.
66981         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
66982         test/Makefile.
66983         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
66984
66985 2002-09-28  Karl Berry  <karl@gnu.org>
66986
66987         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
66988         installed automake until the next release, since changes have been
66989         made.
66990
66991 2002-09-25  Karl Berry  <karl@gnu.org>
66992
66993         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
66994         * lib/getopt*: copy from libc/posix.
66995         * lib/gettext.h: copy from gettext.
66996         * lib/.cppi-disable: add strdup.c, gettext.h.
66997
66998 2002-09-25  Karl Berry  <karl@gnu.org>
66999
67000         * config/srclist.txt: enable gettext.h check.
67001         * config/config.{guess,sub}: update from prep.
67002         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
67003                 from automake 1.6.3.
67004         See srclist*.
67005
67006 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
67007
67008         * regex.c (PATFETCH): Remove the translating fetch.
67009         (PATFETCH_RAW): Rename to PATFETCH.
67010         (set_image_of_range): New fun.
67011         (SET_RANGE_TABLE_WORK_AREA): Use it.
67012         (regex_compile): Don't translate the pattern chars so eagerly.
67013         Only do it when inserting an `exactn' bytecode or when handling
67014         a char-range.
67015         (mutually_exclusive_p): Avoid empty statement.
67016
67017 2002-07-06  Jim Meyering  <meyering@lucent.com>
67018
67019         * m4/README: Don't mention Makefile.am.in.
67020         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
67021
67022 2002-07-01  Jim Meyering  <meyering@lucent.com>
67023
67024         * lib/c-stack.c: Include sys/time.h.
67025         From Volker Borchert.
67026
67027 2002-06-26  Paul Eggert  <eggert@twinsun.com>
67028
67029         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
67030
67031 2002-06-26  Paul Eggert  <eggert@twinsun.com>
67032
67033         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
67034         New macro.  Use it uniformly instead of
67035         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
67036         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
67037         reported by Vin Shelton.
67038
67039 2002-06-22  Paul Eggert  <eggert@twinsun.com>
67040
67041         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
67042         Do not assume SA_SIGINFO behavior.
67043         Bug reported by Jim Meyering on NetBSD 1.5.2.
67044
67045 2002-06-22  Jim Meyering  <meyering@lucent.com>
67046
67047         * m4/c-stack.m4: New file, from diffutils-2.8.2.
67048         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
67049
67050         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
67051         now that configure.ac uses AC_GNU_SOURCE.
67052         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
67053         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
67054
67055         Update to latest tools.  Suggestions from Paul Eggert.
67056         * m4/stdbool.m4: New file, from diffutils-2.8.2.
67057         * m4/gnu-source.m4: Update from diffutils-2.8.2.
67058         * m4/fnmatch.m4: Likewise.
67059         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
67060         to AC_HEADER_STDBOOL
67061
67062 2002-06-22  Jim Meyering  <meyering@lucent.com>
67063
67064         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
67065         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
67066
67067 2002-06-22  Jim Meyering  <meyering@lucent.com>
67068
67069         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
67070
67071         * lib/exitfail.c, exitfail.h: Likewise.
67072         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
67073
67074         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
67075         of fnmatch.h.
67076         (EXTRA_DIST): Add fnmatch_loop.c.
67077         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
67078
67079         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
67080         * lib/fnmatch.c: Update from diffutils-2.8.2.
67081         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
67082         * lib/fnmatch.h: Remove file.
67083
67084 2002-06-21  Jim Meyering  <meyering@lucent.com>
67085
67086         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
67087         * m4/mbrtowc.m4: Likewise.
67088
67089         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
67090         * m4/mbswidth.m4: Reflect name change:
67091         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
67092         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
67093
67094         * m4/lib-link.m4: Update from gettext-0.11.2.
67095         * m4/gettext.m4: Likewise.
67096
67097         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
67098         From Alfred M. Szmidt.
67099
67100 2002-06-18  Paul Eggert  <eggert@twinsun.com>
67101
67102         * lib/file-type.h: Report an error if neither S_ISREG nor
67103         S_IFREG is defined, instead of using a test specific to glibc
67104         2.2.  This should be safe, since POSIX requires S_ISREG and
67105         Unix Version 7 had S_IFREG.  We don't need to check for
67106         <sys/types.h> since we don't use any symbols that it defines.
67107
67108 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
67109
67110         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
67111         $@-t, so that each temporary file name is unique and valid in the first
67112         8 characters, for operation under DOS.
67113
67114 2002-06-15  Paul Eggert  <eggert@twinsun.com>
67115
67116         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
67117
67118 2002-06-15  Jim Meyering  <meyering@lucent.com>
67119
67120         Work even with DJGPP 2.03, which lacks support for symlinks.
67121         From Richard Dawe.
67122         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
67123         is defined.
67124         * lib/lchown.c (S_ISLNK): Likewise.
67125
67126 2002-06-15  Jim Meyering  <meyering@lucent.com>
67127
67128         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
67129         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
67130         have been included before this file.
67131
67132 2002-06-14  Jim Meyering  <meyering@lucent.com>
67133
67134         * lib/file-type.h: Use the version from diffutils-2.8.2.
67135         * lib/file-type.c: Likewise.
67136
67137 2002-06-07  Jim Meyering  <meyering@lucent.com>
67138
67139         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
67140         They're needed at least for NetBSD 1.5.2.
67141         ($statxfs_includes): Include those same headers.
67142         ($statxfs_includes): Include sys/vfs.h if available.
67143         ($statxfs_includes): Likewise for sys/statvfs.h.
67144         Check for the following members in both structs statfs and statvfs:
67145         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
67146
67147 2002-06-01  Jim Meyering  <meyering@lucent.com>
67148
67149         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
67150         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
67151
67152 2002-05-28  Jim Meyering  <meyering@lucent.com>
67153
67154         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
67155         Reported by Volker Borchert.
67156
67157 2002-05-27  Jim Meyering  <meyering@lucent.com>
67158
67159         Fix a problem seen only on nonconforming systems whereby ls.c's
67160         use of localtime, and then of gettimeofday would cause trouble:
67161         the localtime call used to initialize rpl_gettimeofday's save
67162         mechanism would clobber ls's current local time information so
67163         that in any long listing the first file would always be listed
67164         with date 1970-01-01.  Analysis by Volker Borchert.
67165
67166         * lib/gettimeofday.c (localtime): Undefine.
67167         (rpl_localtime): New function.
67168
67169 2002-05-27  Jim Meyering  <meyering@lucent.com>
67170
67171         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
67172         localtime.
67173
67174         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
67175         use the replacement function; it wouldn't resolve at link time.
67176         Reported by Volker Borchert.
67177
67178 2002-05-22  Jim Meyering  <meyering@lucent.com>
67179
67180         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
67181         file-type.h.
67182         * lib/file-type.h: New file.
67183         * lib/file-type.c (file_type): New file/function.  Extracted from
67184         diffutils.
67185
67186 2002-04-30  Jim Meyering  <meyering@lucent.com>
67187
67188         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
67189
67190 2002-04-29  Paul Eggert  <eggert@twinsun.com>
67191
67192         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
67193
67194 2002-04-29  Paul Eggert  <eggert@twinsun.com>
67195
67196         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
67197         Do not check for alloca.h (no longer used) or stdbool.h (was never
67198         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
67199
67200 2002-04-29  Paul Eggert  <eggert@twinsun.com>
67201
67202         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
67203
67204 2002-04-29  Jim Meyering  <meyering@lucent.com>
67205
67206         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
67207         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
67208         Use AC_FUNC_STRNLEN here instead.
67209
67210         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
67211         With autoconf-2.53a, it's part of AC_PROG_CC.
67212
67213 2002-04-28  Paul Eggert  <eggert@twinsun.com>
67214
67215         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
67216         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
67217
67218 2002-04-28  Paul Eggert  <eggert@twinsun.com>
67219
67220         * lib/sig2str.h, lib/sig2str.c: New files.
67221         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
67222
67223 2002-04-28  Paul Eggert  <eggert@twinsun.com>
67224
67225         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
67226         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
67227         of 127, since 64 is the largest conceivable number for ancient
67228         nonstandard hosts.
67229         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
67230
67231 2002-04-28  Jim Meyering  <meyering@lucent.com>
67232
67233         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
67234
67235 2002-04-24  Jim Meyering  <meyering@lucent.com>
67236
67237         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
67238         (jm_PREREQ): Use it.
67239
67240         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
67241         mach/mach.h fcntl.h.
67242         Check for this function: setlocale.
67243
67244 2002-04-24  Jim Meyering  <meyering@lucent.com>
67245
67246         * lib/gettext.h: New file, from Gettext.
67247         * lib/Makefile.am (INCLUDES): Remove -I../intl.
67248         (libfetish_a_SOURCES): Add gettext.h.
67249
67250 2002-04-16  Jim Meyering  <meyering@lucent.com>
67251
67252         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
67253         ut_pid, ut_id, ut_exit.
67254
67255 2002-04-16  Jim Meyering  <meyering@lucent.com>
67256
67257         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
67258         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
67259         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
67260
67261 2002-04-12  Jim Meyering  <meyering@lucent.com>
67262
67263         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
67264         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
67265         existence of the getmntinfo function.  Needed for Darwin 5.3.
67266
67267         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
67268         This is necessary at least on Darwin 5.3.
67269
67270         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
67271         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
67272         strnlen.o in the library, and that makes some versions of ranlib
67273         object.
67274
67275 2002-04-12  Jim Meyering  <meyering@lucent.com>
67276
67277         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
67278
67279 2002-04-09  Jim Meyering  <meyering@lucent.com>
67280
67281         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
67282         to be more precise.  Rather than saying we're checking whether the
67283         function `works', say what we're testing.
67284         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
67285         Reported by Bruno Haible.
67286
67287 2002-03-10  Jim Meyering  <meyering@lucent.com>
67288
67289         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
67290         Suggestion from Santiago Vila.
67291
67292 2002-03-08  Jim Meyering  <meyering@lucent.com>
67293
67294         * lib/rename.c: Mention that this wrapper is needed also on
67295         mips-dec-ultrix4.4 systems.
67296
67297 2002-03-02  Jim Meyering  <meyering@lucent.com>
67298
67299         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
67300         not HAVE_CLOCK_SETTIME.
67301
67302 2002-02-27  Paul Eggert  <eggert@twinsun.com>
67303
67304         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
67305         Check for clock_settime.
67306
67307 2002-02-27  Paul Eggert  <eggert@twinsun.com>
67308
67309         * lib/nanosleep.h: Rename to....
67310         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
67311
67312         * lib/gettime.c: New file.
67313         * lib/settime.c: New file.
67314         * lib/stime.c: Remove.
67315
67316         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
67317         timespec.h.  Remove nanosleep.h.
67318
67319 2002-02-25  Paul Eggert  <eggert@twinsun.com>
67320
67321         * m4/acl.m4: New file.
67322         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
67323         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
67324
67325 2002-02-25  Paul Eggert  <eggert@twinsun.com>
67326
67327         * lib/acl.c, lib/acl.h: New files.
67328         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
67329
67330 2002-02-24  Jim Meyering  <meyering@lucent.com>
67331
67332         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
67333         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
67334         cause trouble.  Reported by Nelson Beebe.
67335
67336 2002-02-23  Paul Eggert  <eggert@twinsun.com>
67337
67338         * lib/path-concat.c (xpath_concat): Reorder code to pacify
67339         compilers that don't know that xalloc_die never returns.
67340
67341 2002-02-20  Jim Meyering  <meyering@lucent.com>
67342
67343         * lib/getdate.c: Regenerate using bison-1.33.
67344
67345 2002-02-17  Jim Meyering  <meyering@lucent.com>
67346
67347         * config/config.guess (main): Don't use `head -1'; it's no longer
67348         portable. Use `sed 1q' instead.
67349
67350 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
67351
67352         * m4/codeset.m4: Upgrade to gettext-0.11.
67353         * m4/gettext.m4: Upgrade to gettext-0.11.
67354         * m4/glibc21.m4: Upgrade to gettext-0.11.
67355         * m4/iconv.m4: Upgrade to gettext-0.11.
67356         * m4/isc-posix.m4: Upgrade to gettext-0.11.
67357         * m4/lcmessage.m4: Upgrade to gettext-0.11.
67358         * m4/lib-ld.m4: New file, from gettext-0.11.
67359         * m4/lib-link.m4: New file, from gettext-0.11.
67360         * m4/lib-prefix.m4: New file, from gettext-0.11.
67361         * m4/progtest.m4: Upgrade to gettext-0.11.
67362
67363 2002-02-15  Paul Eggert  <eggert@twinsun.com>
67364
67365         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
67366         (jm_PREREQ): Use it.
67367
67368 2002-02-15  Paul Eggert  <eggert@twinsun.com>
67369
67370         * lib/posixver.c, lib/posixver.h: New files.
67371         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
67372
67373 2002-02-02  Paul Eggert  <eggert@twinsun.com>
67374             Bruno Haible  <bruno@clisp.org>
67375
67376         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
67377         (fwrite_success_callback): New declaration.
67378         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
67379         print_unicode_char. Call failure callback instead of error.
67380         (fwrite_success_callback): New function.
67381         (exit_failure_callback): New function.
67382         (fallback_failure_callback): New function.
67383         (print_unicode_char): Call unicode_to_mb.
67384
67385 2002-01-26  Jim Meyering  <meyering@lucent.com>
67386
67387         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
67388         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
67389
67390 2002-01-26  Jim Meyering  <meyering@lucent.com>
67391
67392         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
67393
67394 2002-01-22  Paul Eggert  <eggert@twinsun.com>
67395
67396         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
67397
67398 2002-01-22  Jim Meyering  <meyering@lucent.com>
67399
67400         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
67401         Otherwise, some versions of automake would omit the rule that makes
67402         Makefile from Makefile.in.
67403
67404 2002-01-21  Paul Eggert  <eggert@twinsun.com>
67405
67406         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
67407         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
67408         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
67409         (memcoll): Set errno to zero if there is no error.
67410
67411         * lib/quotearg.c (quotearg_buffer_restyled):
67412         Fix bug with quoting buffers containing NUL when backslashing escapes.
67413         This bug was exposed by the other changes in this patch.
67414         (quotearg_n_options): New arg ARGSIZE.
67415         All callers changed.
67416         (quoting_options_from_style): New function.
67417         (quotearg_n_style): Use it.
67418         (quotearg_n_style_mem): New function.
67419
67420         * lib/quotearg.h (quotearg_n_style_mem): New function.
67421
67422 2002-01-19  Jim Meyering  <meyering@lucent.com>
67423
67424         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
67425         Remove useless quotes: DF_PROG="df".
67426         * m4/strnlen.m4: New file.
67427
67428 2002-01-16  Paul Eggert  <eggert@twinsun.com>
67429
67430         * lib/backupfile.c (ISDIGIT): Comment fix.
67431         * lib/getdate.y (ISDIGIT): Likewise.
67432         * lib/posixtm.c (ISDIGIT, year): Likewise.
67433         * lib/strverscmp.c (ISDIGIT): Likewise.
67434         * lib/userspec.c (ISDIGIT): Likewise.
67435
67436 2002-01-16  Jim Meyering  <meyering@lucent.com>
67437
67438         * lib/getdate.y: Add three semicolons, each just before a closing
67439         brace. Bison (as of version 1.31) no longer papers over that mistake.
67440
67441 2002-01-05  Jim Meyering  <meyering@lucent.com>
67442
67443         * lib/version-etc.c (version_etc_copyright): Update copyright year.
67444
67445 2001-12-19  Paul Eggert  <eggert@twinsun.com>
67446
67447         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
67448         not silently exit merely because the output buffer happens to
67449         have nothing pending.
67450
67451 2001-12-18  Paul Eggert  <eggert@twinsun.com>
67452
67453         See the big note in ../ChangeLog.
67454         * lib/human.c (suffixes): Prefer K to k for 1024.
67455         (generate_suffix_backwards): New function.
67456         (human_readable_inexact): Use it.
67457         * lib/xstrtol.c (__xstrtol): If there is no number but there
67458         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
67459         Accept 'K' as well as 'k'.
67460
67461 2001-12-15  Jim Meyering  <meyering@lucent.com>
67462
67463         * lib/regex.h (__restrict_arr): Update from libc.
67464
67465         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
67466         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
67467         (STREQ): Define.
67468
67469 2001-12-14  Jim Meyering  <meyering@lucent.com>
67470
67471         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
67472         Suggestion from Bruno Haible.
67473
67474 2001-12-10  Jim Meyering  <meyering@lucent.com>
67475
67476         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
67477         xrealloc, Instead, include "xalloc.h".
67478         (initbuffer): Don't cast xmalloc return value to char*.
67479         (readline): Reword comment.
67480         Don't cast xrealloc return value to char*
67481         Return NULL, not 0.
67482
67483 2001-12-09  Jim Meyering  <meyering@lucent.com>
67484
67485         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
67486         about `signed and unsigned type in conditional expression'.
67487         * lib/posixtm.c (posix_time_parse): Likewise.
67488
67489         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
67490
67491         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
67492         to avoid a pedantic warning.
67493
67494         * lib/getstr.c: Don't include assert.h.
67495         (getstr): Remove warning-evoking assertions.
67496         Return -1 if offset parameter is out of bounds.
67497         Change the type of a local from int to size_t.
67498
67499         * lib/strftime.c (my_strftime_localtime_r): Include this function
67500         definition in the `#if ! HAVE_TM_GMTOFF' block.
67501
67502         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
67503         Include xalloc.h instead.
67504
67505 2001-12-02  Jim Meyering  <meyering@lucent.com>
67506
67507         * lib/tempname.c: Don't declare getenv, thus reverting the change of
67508         2001-11-18.  It's no longer necessary, now that stdlib.h is always
67509         included.
67510
67511         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
67512         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
67513
67514 2001-11-30  Akim Demaille  <akim@epita.fr>
67515
67516         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
67517         before being defined.
67518
67519 2001-11-27  Paul Eggert  <eggert@twinsun.com>
67520
67521         * lib/quotearg.h (quotearg_n, quotearg_n_style):
67522         First arg is int, not unsigned.
67523         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
67524         (SIZE_MAX, UINT_MAX): New macros.
67525         (quotearg_n_options): Abort if N is negative.
67526         Avoid overflow check on hosts where size_t is 64 bits and int
67527         is 32 bits, as overflow is impossible there.
67528         Fix off-by-one typo that caused unnecessary reallocation.
67529
67530 2001-11-27  Jim Meyering  <meyering@lucent.com>
67531
67532         * lib/tempname.c: Merge with version from libc.
67533         * lib/regex.c: Likewise.
67534
67535         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
67536         systems for which STDC_HEADERS is 0, it was not included, resulting in
67537         a warning about an integer-to-pointer conversion problem with getenv.
67538         Reported by Volker Borchert.
67539
67540 2001-11-26  Jim Meyering  <meyering@lucent.com>
67541
67542         * lib/gtod.h: Remove file.
67543         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
67544         * lib/gettimeofday.c: Don't include gtod.h.
67545         (GTOD_init): Remove function.
67546         (rpl_gettimeofday): Do its job here instead, rather than aborting.
67547         Suggestion from Volker Borchert.
67548
67549 2001-11-23  Jim Meyering  <meyering@lucent.com>
67550
67551         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
67552         it.
67553         * lib/hash.c (struct hash_table): Define it here instead.
67554
67555 2001-11-22  Jim Meyering  <meyering@lucent.com>
67556
67557         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
67558
67559 2001-11-20  Jim Meyering  <meyering@lucent.com>
67560
67561         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
67562         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
67563
67564 2001-11-19  Jim Meyering  <meyering@lucent.com>
67565
67566         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
67567         directory.  Use "conftestXXXXXX" as the template.
67568         Suggestion from Paul Eggert.
67569
67570         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
67571         immediately, so the test doesn't mistakenly hit the max-open-files
67572         limit.
67573
67574 2001-11-18  Paul Eggert  <eggert@twinsun.com>
67575
67576         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
67577         (TEMPORARIES): New macro.
67578         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
67579         removes an artificial limitation (e.g. HP-UX 10.20, where
67580         TMP_MAX is 17576).
67581
67582 2001-11-18  Jim Meyering  <meyering@lucent.com>
67583
67584         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
67585
67586 2001-11-18  Jim Meyering  <meyering@lucent.com>
67587
67588         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
67589         on SunOS 4.
67590
67591         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
67592         files will be created before anything else.
67593
67594 2001-11-17  Paul Eggert  <eggert@twinsun.com>
67595
67596         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
67597         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
67598
67599 2001-11-17  Jim Meyering  <meyering@lucent.com>
67600
67601         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
67602         Prompted by a report from Bob Proulx.
67603
67604         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
67605         Instead, require UTILS_FUNC_MKSTEMP.
67606
67607 2001-11-17  Jim Meyering  <meyering@lucent.com>
67608
67609         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
67610         Now, that's done as part of AC_FUNC_STRTOD.
67611
67612 2001-11-17  Jim Meyering  <meyering@lucent.com>
67613
67614         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
67615         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
67616         rather than group writable.  Patch by Juan F. Codagnone.
67617
67618         * lib/readtokens.c: Remove explicit declarations of xmalloc and
67619         xrealloc, Instead, include "xalloc.h".
67620
67621         * lib/mountlist.c: Include unlocked-io.h after all system headers.
67622         Remove explicit declarations of xmalloc, xrealloc,
67623         and xstrdup.  Instead, include "xalloc.h".
67624
67625         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
67626         unlocked-io.h.
67627         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
67628         Likewise.
67629         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
67630
67631         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
67632         Reported by Padraig Brady.
67633
67634         * lib/mkstemp.c: #undef mkstemp.
67635         Include config.h.
67636         (rpl_mkstemp): Rename from mkstemp.
67637         Protoize.
67638
67639 2001-11-16  Jim Meyering  <meyering@lucent.com>
67640
67641         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
67642         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
67643         determine the amount of total physical memory, use pstat_getstatic.
67644         HPUX-11 doesn't define _SC_PHYS_PAGES.
67645         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
67646         If sysconf couldn't be used to determine the amount of available
67647         physical memory, use both pstat_getstatic and pstat_getdynamic.
67648         Based on a patch from Bob Proulx.
67649
67650 2001-11-10  Jim Meyering  <meyering@lucent.com>
67651
67652         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
67653         (jm_PREREQ): Use it.
67654
67655 2001-11-09  Jim Meyering  <meyering@lucent.com>
67656
67657         * m4/jm-macros.m4: Require autoconf-2.52f.
67658         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
67659         Use these AC_-prefixed names, not the AM_-prefixed ones.
67660
67661         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
67662
67663 2001-11-05  Jim Meyering  <meyering@lucent.com>
67664
67665         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
67666
67667 2001-11-04  Jim Meyering  <meyering@lucent.com>
67668
67669         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
67670         $DEFS.
67671
67672 2001-11-03  Jim Meyering  <meyering@lucent.com>
67673
67674         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
67675         of AC_DEFUN.
67676
67677         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
67678         know the name of the variable in the macro definition.
67679
67680 2001-11-03  Jim Meyering  <meyering@lucent.com>
67681
67682         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
67683         in argmatch_to_argument call.
67684
67685         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
67686         argument.
67687
67688         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
67689         e.g., a fault due to an attempt to free a NULL pointer.
67690
67691 2001-11-01  Jim Meyering  <meyering@lucent.com>
67692
67693         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
67694         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
67695
67696 2001-11-01  Jim Meyering  <meyering@lucent.com>
67697
67698         * lib/dirfd.c, lib/dirfd.h: New files.
67699         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
67700
67701         * lib/hash.c (hash_print) [TESTING]: Clean up.
67702
67703 2001-10-22  Paul Eggert  <eggert@twinsun.com>
67704
67705         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
67706         to avoid a warning if -Wall.
67707
67708 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
67709
67710         * README: New file
67711         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
67712         (per RMS's instructions, this is now the canonical source)
67713         * lgpl/, gpl/: New directories.
67714
67715 2001-10-21  Paul Eggert  <eggert@twinsun.com>
67716
67717         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
67718
67719 2001-10-21  Jim Meyering  <meyering@lucent.com>
67720
67721         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
67722         this code would end up calling gettext even in packages built
67723         with --disable-nls.
67724         * lib/getopt.c (_): Likewise.
67725         * lib/regex.c (_): Likewise.
67726
67727 2001-10-20  Paul Eggert  <eggert@twinsun.com>
67728
67729         * m4/error.m4 (jm_PREREQ_ERROR):
67730         Do not invoke AC_CHECK_FUNCS with strerror_r, as
67731         AC_FUNC_STRERROR_R does that.
67732         Check for strerror declaration.
67733
67734         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
67735         are supposed to have them these days.
67736         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
67737         Merge changes from latest Autoconf CVS.
67738         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
67739         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
67740         POSIX decided to standardize on the int flavor of strerror_r.
67741
67742 2001-10-20  Paul Eggert  <eggert@twinsun.com>
67743
67744         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
67745         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
67746         Use strerror_r that is only a macro, even if it is not a function.
67747         (strerror): Check for HAVE_DECL_STRERROR before declaring.
67748         (private_strerror): Use prototypes, not old-style function definition.
67749         (print_errno_message): New function.
67750         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
67751         char*-flavored one.
67752         (error_tail, error, error_at_line): Use it.
67753
67754 2001-10-11  Jim Meyering  <meyering@lucent.com>
67755
67756         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
67757         and quote_n (1, ... to avoid clobbering a buffer.
67758
67759 2001-10-05  Jim Meyering  <meyering@lucent.com>
67760
67761         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
67762         hash-pjw.h.
67763         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
67764         * lib/hash-pjw.h: New file.
67765
67766 2001-09-30  Jim Meyering  <meyering@lucent.com>
67767
67768         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
67769         `struct fsstat' has the `f_fstypename' member.
67770         Use that to define FS_TYPE, which is now used to make
67771         the getfsstat link test tighter.
67772
67773 2001-09-30  Jim Meyering  <meyering@lucent.com>
67774
67775         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
67776         Include <sys/ucred.h>, for Apple Darwin.
67777         Include sys/mount.h and sys/fs_types.h only if available.
67778         (FS_TYPE): Define.
67779         (read_filesystem_list): Use FS_TYPE.
67780
67781 2001-09-29  Paul Eggert  <eggert@twinsun.com>
67782
67783         * lib/exclude.c (excluded_filename): 0 -> false, since it's
67784         a boolean context.
67785
67786 2001-09-29  Jim Meyering  <meyering@lucent.com>
67787
67788         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
67789         [one-argument getmntent function]): Include stdio.h before mntent.h.
67790         SunOS 4.1.x needs it for the declaration of `FILE'.
67791         Patch by Volker Borchert.
67792
67793         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
67794         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
67795         sys/fs_types.h, and make the link-test for getfsstat guard #include
67796         directives with appropriate #if HAVE_*_H tests so that we can
67797         detect getfsstat on Apple Darwin1.3.7 systems.
67798         Reported by Nelson Beebe.
67799         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
67800
67801 2001-09-28  Paul Eggert  <eggert@twinsun.com>
67802
67803         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
67804         #defines strtoimax.  Also treat the other strto* functions
67805         like strtoimax.
67806
67807         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
67808         Check for strtoul and strtoumax,
67809         as those declarations are made even in the signed case.
67810         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
67811         Likewise, for strtol and strtoimax.
67812
67813 2001-09-28  Paul Eggert  <eggert@twinsun.com>
67814
67815         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
67816         #defines strtoimax.  Also treat the other strto* functions
67817         like strtoimax.
67818
67819         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
67820         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
67821         (strtoimax, strtoumax): Do not declare if already defined as a macro.
67822
67823 2001-09-26  Jim Meyering  <meyering@lucent.com>
67824
67825         Most macros in unlocked-io.h had the wrong number of arguments.
67826         * lib/gen-uio: New script.
67827         (USE_UNLOCKED_IO): Define to 1 if not already defined.
67828         * lib/unlocked-io.hin: Remove file.
67829         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
67830         rather than trying to embed it here.
67831         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
67832         Reported by Padraig Brady.
67833
67834 2001-09-25  Volker Borchert  <bt@teknon.de>
67835
67836         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
67837         `result'.
67838
67839 2001-09-24  Jim Meyering  <meyering@lucent.com>
67840
67841         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
67842
67843 2001-09-23  Jim Meyering  <meyering@lucent.com>
67844
67845         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
67846         instead of the mere test for existence of mntent.h.  The latter
67847         would get a false-positive on AIX 3.4 systems.
67848         In the outer getmntent if-block, don't die if neither of the getmntent
67849         tests succeeds.  Instead, just fall through and continue with the
67850         remaining tests.
67851
67852 2001-09-23  Jim Meyering  <meyering@lucent.com>
67853
67854         * lib/mountlist.c: Remove useless parentheses in #if directives.
67855         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
67856         the deprecated MOUNTED symbol is no longer defined in mntent.h.
67857
67858 2001-09-22  Jim Meyering  <meyering@lucent.com>
67859
67860         * m4/gettext.m4: New file.  From gettext.
67861         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
67862         * m4/progtest.m4: Likewise
67863         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
67864         * m4/glibc21.m4: Likewise.
67865
67866         * m4/libintl.m4: Remove.  No longer used.
67867
67868 2001-09-22  Jim Meyering  <meyering@lucent.com>
67869
67870         * lib/localcharset.c: Update from latest gettext.
67871         * lib/config.charset: Likewise.
67872
67873 2001-09-20  Jim Meyering  <meyering@lucent.com>
67874
67875         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
67876         strtoimax.
67877         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
67878         strtoumax.
67879
67880 2001-09-20  Jim Meyering  <meyering@lucent.com>
67881
67882         * lib/xstrtol.c (strtoimax): Guard declaration with
67883         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
67884         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
67885         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
67886         (strtoumax): Likewise, for completeness (it wasn't necessary).
67887
67888 2001-09-17  Paul Eggert  <eggert@twinsun.com>
67889
67890         * lib/strtoimax.c (HAVE_LONG_LONG):
67891         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
67892         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
67893         to work around bug in IBM C compiler.
67894
67895 2001-09-17  Jim Meyering  <meyering@lucent.com>
67896
67897         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
67898         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
67899         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
67900         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
67901         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
67902         whenever the right hand side need not be expanded by the shell.
67903
67904 2001-09-16  Paul Eggert  <eggert@twinsun.com>
67905
67906         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
67907         library.  It's not correct, as some older glibcs are buggy.
67908         fnmatch wasn't fixed until glibc 2.2.
67909
67910         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
67911         special shell magic here.
67912
67913 2001-09-16  Jim Meyering  <meyering@lucent.com>
67914
67915         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
67916         * m4/jm-macros.m4: Require it.
67917
67918 2001-09-16  Jim Meyering  <meyering@lucent.com>
67919
67920         * lib/mkdir.c: New file.
67921
67922 2001-09-15  Jim Meyering  <meyering@lucent.com>
67923
67924         * m4/jm-macros.m4: Check for help2man.
67925
67926 2001-09-11  Jim Meyering  <meyering@lucent.com>
67927
67928         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
67929         The body, by Paul Eggert, was moved here from configure.in.
67930         * m4/jm-macros.m4: Require UTILS_HOST_OS.
67931
67932 2001-09-04  Paul Eggert  <eggert@twinsun.com>
67933
67934         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
67935         (jm_PREREQ): Use it.
67936
67937 2001-09-04  Paul Eggert  <eggert@twinsun.com>
67938
67939         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
67940         Use ssize_t, not int, to store result of readlink.
67941         Check for ssize_t overflow as well as size_t overflow,
67942         as POSIX says the result of readlink is implementation-defined
67943         when ssize_t overflows.
67944         Remove unnecessary cast to char*.
67945         Use free+malloc instead of realloc, as the storage doesn't need
67946         to be preserved and it's clearer and can be more efficient that way.
67947         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
67948         * lib/xreadlink.h (xreadlink): Update prototype.
67949
67950 2001-09-04  Paul Eggert  <eggert@twinsun.com>
67951
67952         * lib/xgetcwd.c: Revert some of the previous change; intead,
67953         fix the HAVE_GETCWD_NULL code to behave more like the
67954         !HAVE_GETCWD_NULL code used to.
67955
67956         Include "xalloc.h".
67957         (xgetcwd): Do not return NULL when memory is exhausted; instead,
67958         invoke xalloc_die.
67959
67960 2001-09-03  Paul Eggert  <eggert@twinsun.com>
67961
67962         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
67963         sys/param.h, as pathmax.h includes them.
67964
67965 2001-09-03  Paul Eggert  <eggert@twinsun.com>
67966
67967         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
67968         (jm_PREREQ_XGETCWD): New macro.
67969
67970         * m4/getcwd.m4: New file.
67971
67972 2001-09-03  Paul Eggert  <eggert@twinsun.com>
67973
67974         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
67975         like the HAVE_GETCWD_NULL code.
67976         Include pathmax.h if not HAVE_GETCWD.
67977         Do not include xalloc.h.
67978         (INITIAL_BUFFER_SIZE): New symbol.
67979         Do not use xmalloc / xrealloc, since the caller is responsible for
67980         handling errors.  Preserve errno around `free' during failure.
67981         Do not overrun buffer when using getwd.
67982
67983 2001-09-03  Paul Eggert  <eggert@twinsun.com>
67984
67985         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
67986         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
67987         getcwd (NULL, 0).
67988
67989 2001-09-03  Paul Eggert  <eggert@twinsun.com>
67990
67991         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
67992         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
67993         spotted by Jim Meyering.
67994
67995 2001-09-03  Jim Meyering  <meyering@lucent.com>
67996
67997         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
67998         failure.
67999
68000 2001-09-02  Jim Meyering  <meyering@lucent.com>
68001
68002         * lib/error.c: Update from GNU libc.
68003
68004 2001-09-01  Jim Meyering  <meyering@lucent.com>
68005
68006         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
68007         Used by df.
68008
68009 2001-09-01  Jim Meyering  <meyering@lucent.com>
68010
68011         * lib/xreadlink.c: New file.
68012         * lib/xreadlink.h: New file.
68013         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
68014         xreadlink.h.
68015
68016         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
68017         doesn't conflict with sparc Solaris 7's definition in
68018         /usr/include/sys/int_types.h.
68019
68020         * lib/exclude.c: Use `""', not `<>' to #include non-system header
68021         files.
68022         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
68023         and strncasecmp as r-values.  Unixware didn't have declarations.
68024
68025 2001-08-31  Paul Eggert  <eggert@twinsun.com>
68026
68027         * lib/xstrtol.h: Add copyright notice.
68028         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
68029         LONGINT_INVALID_SUFFIX_CHAR.
68030
68031 2001-08-31  Paul Eggert  <eggert@twinsun.com>
68032
68033         * lib/xstrtol.c (strtoimax): New decl.
68034
68035 2001-08-31  Paul Eggert  <eggert@twinsun.com>
68036
68037         * lib/xgetcwd.c: Don't include pathmax.h.
68038         Include stdlib.h and unistd.h if available.
68039         Include xalloc.h.
68040         (xmalloc, xstrdup, free): Remove decls.
68041         (xgetcwd): Don't assume sizes fit in unsigned.
68042         Check for overflow when computing sizes.
68043         Simplify reallocation code.
68044
68045 2001-08-31  Paul Eggert  <eggert@twinsun.com>
68046
68047         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
68048         a directory's st_size can have an arbitrary value, so the old
68049         usage could waste an arbitrary amount of memory.  All uses
68050         changed.
68051         * lib/savedir.h: Update prototype.
68052
68053 2001-08-31  Paul Eggert  <eggert@twinsun.com>
68054
68055         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
68056
68057         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
68058         old strtoimax.c.
68059
68060         Also, make the following further changes to make this file's
68061         configuration more similar to that of strtol.c:
68062         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
68063         (strtoumax, uintmax_t, strtoull, strtol): Remove.
68064         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
68065         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
68066         changed to signed values.
68067
68068         And make the following changes as well:
68069         Fix copyright notice, as 1999 was missing.
68070         (verify): New macro.
68071         (strtoimax): Check sizes at compile-time, not run-time.
68072         Prefer strtol to strtoll if both work.
68073         (main): Remove; it was not that useful and was a pain to maintain.
68074
68075         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
68076
68077 2001-08-31  Jim Meyering  <meyering@lucent.com>
68078
68079         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
68080         Use an initial, malloc'd, buffer of length 128 rather than
68081         a statically allocated one of length 1024.
68082
68083 2001-08-30  Paul Eggert  <eggert@twinsun.com>
68084
68085         Simplify code, partly by assuming autoconf 2.52 semantics.
68086
68087         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
68088
68089         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
68090         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
68091         All uses removed.
68092         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
68093         Move AC_REQUIRE to next-to-top level, to avoid confusion.
68094         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
68095         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
68096         jm_AC_HEADER_INTTYPES_H.
68097         * m4/jm-macros.m4 (jm_MACROS): Likewise.
68098
68099         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
68100
68101         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
68102         Quote first arg of AC_DEFUN.
68103         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
68104         since they are needed to parse the include file even if we need
68105         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
68106         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
68107         but with opposite signedness.
68108
68109 2001-08-30  Paul Eggert  <eggert@twinsun.com>
68110
68111         Merge 'exclude' changes from tar 1.13.22.
68112         This fixes one or two unlikely storage allocation overflow bugs,
68113         but doesn't change user-visible behavior otherwise.
68114
68115 2001-08-30  Paul Eggert  <eggert@twinsun.com>
68116
68117         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
68118         (jm_PREREQ_EXCLUDE): New macro.
68119
68120 2001-08-30  Paul Eggert  <eggert@twinsun.com>
68121
68122         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
68123         tm to be declared.
68124
68125 2001-08-30  Paul Eggert  <eggert@twinsun.com>
68126
68127         * lib/hash.c: Remove '2001' from copyright notice.
68128
68129 2001-08-30  Paul Eggert  <eggert@twinsun.com>
68130
68131         * lib/full-write.h: New file.
68132         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
68133         * lib/full-write.c: Correct credits, as cccp.c no longer
68134         exists and anyway it was so heavily changed from the old cccp
68135         code as to be unrecognizable.  Include full-write.h.
68136         (full_write) Return size_t, with short writes meaning failure.
68137         All callers changed.  This fixes a bug with large buffers
68138         on 64-bit hosts.
68139         * lib/utime.c: Include full-write.h.
68140
68141 2001-08-30  Paul Eggert  <eggert@twinsun.com>
68142
68143         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
68144         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
68145         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
68146         Include if available.
68147         (<xalloc.h>): Include
68148         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
68149         (verify): New macro.  Use it to verify that EXCLUDE macros do not
68150         collide with FNM macros.
68151         (struct patopts): New struct.
68152         (struct exclude): Use it, as exclude patterns now come with options.
68153         (new_exclude): Support above changes.
68154         (new_exclude, add_exclude_file):
68155         Initial size must now be a power of two to simplify overflow checking.
68156         (free_exclude, fnmatch_no_wildcards): New function.
68157         (excluded_filename): No longer requires options arg, as the options
68158         are determined by add_exclude.  Now returns bool, not int.
68159         (excluded_filename, add_exclude):
68160         Add support for the fancy new exclusion options.
68161         (add_exclude, add_exclude_file): Now takes int options arg.
68162         Check for arithmetic overflow when computing sizes.
68163         (add_exclude_file): xrealloc might modify errno, so don't
68164         realloc until after errno might be used.
68165
68166         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
68167         New macros.
68168         (free_exclude): New decl.
68169         (add_exclude, add_exclude_file): Now takes int options arg.
68170         (excluded_filename): No longer requires options arg, as the options
68171         are determined by add_exclude.  Now returns bool, not int.
68172
68173 2001-08-30  Paul Eggert  <eggert@twinsun.com>
68174
68175         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
68176
68177 2001-08-27  Jim Meyering  <meyering@lucent.com>
68178
68179         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
68180
68181         * lib/version-etc.c (N_): Remove definition.
68182         Revert most of last change.
68183         Instead, simply don't mark the `Copyright...' string for translation.
68184         Based on advice from Paul Eggert.
68185
68186         * lib/strtoxmax.c: Tweak comment.
68187
68188 2001-08-26  Jim Meyering  <meyering@lucent.com>
68189
68190         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
68191
68192         * m4/xstrtoimax.m4: New file.
68193         * m4/xstrtoumax.m4: Add comments explaining why we
68194         AC_REPLACE_FUNCS(strtol).
68195
68196 2001-08-26  Jim Meyering  <meyering@lucent.com>
68197
68198         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
68199         of copyright with `%s' so translators don't get an untranslated
68200         message in 2002.
68201         (COPYRIGHT_YEAR): Define.
68202         (version_etc): Use fprintf rather than fputs.
68203         Suggestion from Ulrich Drepper.
68204
68205         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
68206
68207         * lib/strtoll.c: New file, from GNU libc.
68208         * lib/xstrtoimax.c: New file.
68209
68210         * lib/xstrtol.h: Add xstrtoimax.
68211         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
68212         * lib/strtoimax.c: New file.  Likewise, but first define
68213         STRTOUXMAX_SIGNED.
68214
68215         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
68216         ...
68217         * lib/strtoxmax.c: ... then renamed to this.
68218
68219 2001-08-18  Paul Eggert  <eggert@twinsun.com>
68220
68221         * m4/inttypes.m4: Add AC_PREREQ(2.13).
68222         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
68223         (jm_AC_TYPE_INTMAX_T): New macro.
68224         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
68225
68226         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
68227
68228         * m4/longlong.m4: Renamed from ulonglong.m4.
68229         * m4/inttypes.m4: Renamed from inttypes_h.m4.
68230         * m4/uintmax_t.m4: Removed.
68231
68232 2001-08-13  Paul Eggert  <eggert@twinsun.com>
68233
68234         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
68235         Port to Solaris 8, where 'sed' requires a space after the 'r'
68236         command, and where sh dislikes "$/".  Clean up the spacing a bit.
68237         Redirect output to $tmp just once.
68238
68239 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
68240
68241         * lib/addext.c (<errno.h>): Include.
68242         (errno): Declare if not defined.
68243         (addext): Work correctly when pathconf returns -1 and leaves
68244         errno alone because there is no limit.  Also, work even if
68245         pathconf returns a value greater than SIZE_MAX.
68246
68247 2001-08-12  Jim Meyering  <meyering@lucent.com>
68248
68249         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
68250         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
68251         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
68252         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
68253         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
68254         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
68255         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
68256         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
68257         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
68258         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
68259         utime.m4, utimes.m4, xstrtoumax.m4:
68260         Quote the first argument in each use of AC_DEFUN.
68261
68262 2001-08-12  Jim Meyering  <meyering@lucent.com>
68263
68264         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
68265         Simply `return getcwd (NULL, 0);'.
68266         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
68267         Use 1300 as initial value for length, not PATH_MAX.
68268
68269         * lib/pathmax.h: Clean up cpp syntax.
68270
68271 2001-08-12  Jim Meyering  <meyering@lucent.com>
68272
68273         * lib/gettimeofday.c: New file.
68274         * lib/gtod.h: New file.
68275         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
68276
68277 2001-08-05  Jim Meyering  <meyering@lucent.com>
68278
68279         * m4/jm-macros.m4: Require autoconf-2.52.
68280
68281 2001-08-04  Jim Meyering  <meyering@lucent.com>
68282
68283         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
68284         stmt, to get in sync with glibc.
68285
68286 2001-08-03  Paul Eggert  <eggert@twinsun.com>
68287
68288         The following changes are from gettext 0.10.39 as maintained by
68289         Bruno Haible.
68290
68291         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
68292         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
68293         with inverted sense.  All uses changed.
68294
68295         * lib/mbswidth.c: Don't include <limits.h>.
68296         Include <stdlib.h> and <string.h> unconditionally.
68297         (iswcntrl, mbsinit, ISCNTRL): New macros.
68298         (mbsnwidth): Use K&R style function declarations.
68299         Don't bother checking for MB_LEN_MAX == 1, since the compiler
68300         can optimize it when MB_CUR_MAX == 1.
68301         The width of control characters is zero, not 1.
68302
68303 2001-08-03  Paul Eggert  <eggert@twinsun.com>
68304
68305         The following changes are from gettext 0.10.39 as maintained by
68306         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
68307
68308         * m4/codeset.m4: Upgrade to serial AM1.
68309         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
68310         all uses changed.  Quote first arg of AC_DEFUN.
68311         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
68312
68313         * m4/iconv.m4: Upgrade to serial AM2.
68314         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
68315         Add --with-libconv-prefix.
68316         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
68317         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
68318         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
68319         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
68320         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
68321
68322         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
68323         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
68324         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
68325         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
68326         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
68327         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
68328         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
68329         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
68330         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
68331
68332         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
68333         string.h any more.
68334
68335         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
68336         not the default value.
68337
68338         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
68339         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
68340         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
68341         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
68342         Also check for iswcntrl, used for wcwidth fallback.
68343         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
68344         to Autoconf 2.13.
68345
68346 2001-08-03  Jim Meyering  <meyering@lucent.com>
68347
68348         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
68349         as it was in the original.  Reported by Paul Eggert.
68350
68351 2001-07-16  Jim Meyering  <meyering@lucent.com>
68352
68353         * m4/gettimeofday.m4: New file.
68354         Prompted by a report from Bernhard Baehr.
68355
68356 2001-07-15  Jim Meyering  <meyering@lucent.com>
68357
68358         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
68359         stuff. Now it's in ../Makefile.cfg.
68360
68361 2001-07-15  Jim Meyering  <meyering@lucent.com>
68362
68363         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
68364         (BUILT_SOURCES): Add unlocked-io.h.
68365         (io_functions): Define.
68366         (unlocked-io.h): New rule.
68367         (DISTCLEANFILES): Add unlocked-io.h.
68368         (all-local): Depend on unlocked-io.h, to ensure it is created.
68369
68370         * lib/unlocked-io.hin: New file
68371
68372         * lib/regex.c: Update from glibc.
68373
68374 2001-07-05  Jim Meyering  <meyering@lucent.com>
68375
68376         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
68377         recommendation.
68378         (libfetish_a_SOURCES): Put all .h files here instead.
68379         Remove a thus-exposed (better checks in automake) duplicate and
68380         two unnecessary .h files.
68381
68382 2001-07-04  Jim Meyering  <meyering@lucent.com>
68383
68384         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
68385         that generates jm-glibc-io.m4 so that it doesn't trigger any make
68386         distcheck failure.
68387
68388 2001-07-02  Jim Meyering  <meyering@lucent.com>
68389
68390         The following changes were prompted by suggestions from Bruno Haible.
68391
68392         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
68393         is now generated.
68394         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
68395         definition of EXTRA_DIST.
68396         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
68397         ensure that the generated file is created/updated whenever the list
68398         of $(unlocked_functions) is changed.
68399         (jm-glibc-io.m4): New rule.
68400         (unlocked-io.h): New rule -- currently unused.
68401
68402 2001-06-24  Jim Meyering  <meyering@lucent.com>
68403
68404         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
68405         unmatched right bracket, rather than kludging it with an extra,
68406         falsely-matching quote in a comment.  Patch by Akim Demaille.
68407
68408 2001-06-11  Jim Meyering  <meyering@lucent.com>
68409
68410         * lib/regex.c: Update from GNU libc.
68411
68412 2001-05-27  Jim Meyering  <meyering@lucent.com>
68413
68414         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
68415         Check for ut_type in struct utmp.
68416
68417 2001-05-27  Jim Meyering  <meyering@lucent.com>
68418
68419         * lib/readutmp.h (UT_TYPE): Define.
68420
68421 2001-05-24  Jim Meyering  <meyering@lucent.com>
68422
68423         * lib/argmatch.c: Include "quote.h".
68424         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
68425         quote function.  Reported by Göran Uddeborg.
68426
68427 2001-05-22  Jim Meyering  <meyering@lucent.com>
68428
68429         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
68430         now that we use the package-supplied version unconditionally.
68431         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
68432
68433 2001-05-21  Jim Meyering  <meyering@lucent.com>
68434
68435         * m4/regex.m4: Change a couple backticks to single quotes to avoid
68436         shell syntax errors.
68437
68438 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
68439
68440         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
68441
68442 2001-05-20  Paul Eggert  <eggert@twinsun.com>
68443
68444         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
68445         Don't bother to check library strftime, since
68446         we'll be using our own my_strftime function anyway.
68447         Define my_strftime instead of strftime.
68448
68449 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
68450
68451         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
68452         which is not yet declared.
68453
68454 2001-05-15  Jim Meyering  <meyering@lucent.com>
68455
68456         * m4/regex.m4: Use proper quoting so brackets appear in the test
68457         program.
68458         Reported by, and with help from, Bruno Haible.
68459
68460 2001-05-13  Jim Meyering  <meyering@lucent.com>
68461
68462         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
68463         undefined.
68464
68465 2001-05-11  Paul Eggert  <eggert@twinsun.com>
68466
68467         dirname code cleanup.  base_name now behaves more compatibly
68468         with POSIX basename when given file names that have trailing
68469         slashes, and similarly for dir_name.  Add new primitives
68470         base_len and dir_len.  Put the directory-name-related decls
68471         into dirname.h.
68472
68473         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
68474         * lib/backupfile.c (base_name): Likewise.
68475         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
68476         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
68477         * lib/makepath.c (strip_trailing_slashes): Likewise.
68478         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
68479         ISSLASH): Likewise.
68480         * lib/rename.c (strip_trailing_slashes): Likewise.
68481         * lib/same.c (base_name): Likewise.
68482         * lib/stripslash.c (ISSLASH): Likewise.
68483
68484         * lib/addext.c: Include <dirname.h> after size_t is defined.
68485         * lib/backupfile.c: Likewise.
68486
68487         * lib/addext.c (addext): Use base_len to trim redundant
68488         trailing slashes instead of doing it ourselves.
68489         But do not trim the last slash if it is not redundant.
68490
68491         * lib/backupfile.c (find_backup_file_name,
68492         max_backup_version): Use base_len instead of rolling it ourselves.
68493         Handle the case of "" and (on DOS) "C:" correctly.
68494
68495         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
68496         needed. Include <string.h>, <dirname.h>.
68497         (base_name): Allow file names ending in slashes, other than names
68498         that are all slashes.  In this case, return the basename followed
68499         by the slashes.  This is more general, and can be used in places
68500         where the original base_name purposely had an assertion failure.
68501         (base_len): New function.
68502
68503         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
68504         Do not include <assert.h>; no longer needed.
68505         Include xalloc.h.
68506         (memrchr): Remove decl.
68507         (dir_name_r): Remove.
68508         (dir_len): Renamed from dirlen.  All callers changed.
68509         Rewrite in terms of base_name, for simplicity and consistency.
68510         (dir_name): Never return NULL.  All callers changed.
68511         Do not include <stdlib.h> in test program; no longer needed.
68512         return 0; is fine for test program.
68513
68514         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
68515         New macros.
68516         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
68517
68518         * lib/path-concat.c (path_concat): Use base_len to compute
68519         base length, not strlen; this means we cannot rely on memcpy
68520         to null-terminate.
68521
68522         * lib/same.c (STREQ): Remove.
68523         (same_name): Handle the case where the basename ends in trailing '/'.
68524
68525         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
68526         a slash was stripped.  Do not strip the last slash after a
68527         file system prefix.
68528
68529 2001-05-11  Paul Eggert  <eggert@twinsun.com>
68530
68531         * lib/Makefile.am (libfetish_a_SOURCES):
68532         Add strftime.c, since we now compile it on all hosts.
68533
68534         * lib/strftime.c (my_strftime):
68535         Define to nstrftime if emacs, but only if my_strftime is not defined.
68536         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
68537         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
68538         Add one more extra argument: a nanoseconds value.
68539         All uses changed.
68540         (ns): New macro.
68541         (my_strftime function): Add %N format.
68542         (emacs_strftimeu): Renamed from emacs_strftime,
68543         with extra ut argument.
68544
68545 2001-05-09  Paul Eggert  <eggert@twinsun.com>
68546
68547         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
68548
68549 2001-04-21  Jim Meyering  <meyering@lucent.com>
68550
68551         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
68552         doesn't interfere.
68553
68554 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
68555
68556         * m4/ftruncate.m4: Check for chsize.
68557         Link with ftruncate.o unconditionally if ftruncate is missing.
68558         This was required when cross-compiling to i586-mingw32msvc.
68559
68560 2001-04-08  Jim Meyering  <meyering@lucent.com>
68561
68562         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
68563         recomputed; that's necessary when the offset spans a DST transition.
68564         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
68565
68566 2001-04-02  Jim Meyering  <meyering@lucent.com>
68567
68568         * lib/regex.h, regex.c: Update from GNU libc.
68569
68570 2001-03-24  Jim Meyering  <meyering@lucent.com>
68571
68572         * m4/jm-macros.m4: Require autoconf-2.49d.
68573
68574 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
68575
68576         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
68577
68578 2001-03-19  Paul Eggert  <eggert@twinsun.com>
68579
68580         * lib/version-etc.c (version_etc_copyright): Update to 2001.
68581
68582 2001-03-17  Jim Meyering  <meyering@lucent.com>
68583
68584         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
68585         now that the version in autoconf is equivalent.
68586         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
68587
68588         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
68589         Suggestion from Akim Demaille.
68590
68591         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
68592         (jm_PREREQ_TEMPNAME): New function.
68593
68594 2001-03-16  Paul Eggert  <eggert@twinsun.com>
68595
68596         * lib/tempname.c (uint64_t): Define to uintmax_t if
68597         not defined, and if UINT64_MAX is not defined.
68598         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
68599         Reported by John David Anglin.
68600
68601 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
68602
68603         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
68604         resolve alias if codeset is empty.
68605         * lib/config.charset (BeOS): Use wildcard syntax.
68606
68607 2001-03-13  Jim Meyering  <meyering@lucent.com>
68608
68609         * lib/path-concat.c (path_concat)
68610         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
68611         concatenating e.g., `C:' and `foo'.
68612         From Bruno Haible.
68613
68614 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
68615
68616         * lib/localcharset.c (locale_charset): Don't use
68617         setlocale(LC_CTYPE,NULL). Don't return NULL.
68618         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
68619
68620 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
68621
68622         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
68623         support for DOS/DJGPP.
68624
68625 2001-03-01  Paul Eggert  <eggert@twinsun.com>
68626
68627         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
68628         lacks mkstemp.  Compile our own tempname.c if we compile our own
68629         mkstemp.c, as mkstemp relies on tempname.
68630
68631 2001-03-01  Jim Meyering  <meyering@lucent.com>
68632
68633         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
68634         AH_VERBATIM really does output its argument verbatim.
68635
68636 2001-02-28  Paul Eggert  <eggert@twinsun.com>
68637
68638         * lib/Makefile.am (libfetish_a_SOURCES):
68639         Add dup-safer.c, fopen-safer.c.
68640         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
68641
68642         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
68643         * lib/unistd-safer.h: New files.
68644
68645 2001-02-25  Paul Eggert  <eggert@twinsun.com>
68646
68647         The mkstemp replacement is taken from glibc 2.2.2, with some
68648         portability fixes for use outside glibc, as follows:
68649
68650         * lib/tempname.c (struct_stat64): New macro.
68651         (direxists, __gen_tempname): Use it.
68652         This avoids a portability problem with Solaris 8.
68653
68654         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
68655         (<stddef.h>, <stdint.h>, <string.h>):
68656         Include only if STDC_HEADERS || _LIBC.
68657         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
68658         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
68659         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
68660         (__set_errno): Define this macro if <errno.h> doesn't.
68661         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
68662         Define these macros if <stdio.h> doesn't.
68663         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
68664         Define these macros if <sys/stat.h>
68665         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
68666         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
68667         __xstat64): Define if not _LIBC.
68668         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
68669         (__gen_tempname): Invoke gettimeofday only if
68670         HAVE_GETTIMEOFDAY || _LIBC;
68671         otherwise, fall back on plain "time".
68672         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
68673
68674         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
68675
68676         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
68677
68678 2001-02-18  Paul Eggert  <eggert@twinsun.com>
68679
68680         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
68681
68682 2001-02-17  Paul Eggert  <eggert@twinsun.com>
68683
68684         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
68685         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
68686         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
68687         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
68688
68689 2001-02-17  Paul Eggert  <eggert@twinsun.com>
68690
68691         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
68692         Remove workaround macros for hosts that have mbrtowc but not
68693         mbstate_t, as we now insist on proper declarations for both
68694         before using mbrtowc.
68695
68696 2001-02-17  Jim Meyering  <meyering@lucent.com>
68697
68698         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
68699         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
68700         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
68701         UnixWare 7.1.1.
68702
68703         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
68704         rather than AC_CACHE_VAL.
68705
68706 2001-02-17  Jim Meyering  <meyering@lucent.com>
68707
68708         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
68709         around included file name.
68710
68711         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
68712
68713         * lib/strftime.c: Update from GNU libc (the only changes were to
68714         comments).
68715
68716 2001-02-17  Jim Meyering  <meyering@lucent.com>
68717
68718         * lib/regex.c: Update from libc.
68719
68720 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
68721
68722         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
68723         clash.
68724
68725 2001-02-16  Paul Eggert  <eggert@twinsun.com>
68726
68727         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
68728         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
68729         Reported by Mark Hounschell via Paul Eggert.
68730
68731 2001-02-07  Jim Meyering  <meyering@lucent.com>
68732
68733         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
68734
68735 2001-02-05  Jim Meyering  <meyering@lucent.com>
68736
68737         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
68738         it includes the patch required for `large file' support with at least
68739         HP-UX's 10.20 /bin/cc.
68740
68741 2001-02-03  Jim Meyering  <meyering@lucent.com>
68742
68743         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
68744         AS_IF, now that it works once again (mysteriously).
68745         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
68746
68747 2001-01-30  Jim Meyering  <meyering@lucent.com>
68748
68749         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
68750         * m4/chown.m4: Rename conftestchown to conftest.chown.
68751         * m4/rename.m4: s/conftestdir/conftest.d1/ and
68752         s/conftestdir2/conftest.d2/.
68753         * m4/utimes.m4: s/conftestdata/conftest.data/
68754         Inspired by Pavel Roskin's change in autoconf.
68755
68756 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
68757
68758         * lib/config.charset: Update for FreeBSD 4.2.
68759
68760 2001-01-27  Jim Meyering  <meyering@lucent.com>
68761
68762         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
68763         a use of AS_IF.
68764         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
68765
68766 2001-01-26  Jim Meyering  <meyering@lucent.com>
68767
68768         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
68769         quotearg.c includes it.
68770
68771 2001-01-26  Jim Meyering  <meyering@lucent.com>
68772
68773         * lib/quotearg.c: Include stddef.h.
68774         * lib/quote.c: Include stddef.h.
68775         Reported by Axel Kittenberger.
68776
68777         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
68778         line in double quotes so that it evokes a better diagnostic.
68779         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
68780         Reported by Axel Kittenberger.
68781
68782 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
68783
68784         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
68785         as if it was a `charset'.
68786
68787 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
68788
68789         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
68790         has const.
68791
68792 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
68793
68794         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
68795         to avoid a warning.  Add back 'const' to inptr.
68796
68797 2001-01-20  Jim Meyering  <meyering@lucent.com>
68798
68799         Be sure that headers are checked before used in code compiled
68800         for the type checks.
68801         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
68802         In place of that, invoke jm_CHECK_ALL_TYPES.
68803         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
68804         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
68805         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
68806         The check for ssize_t was mistakenly run before the test for unistd.h.
68807
68808         The configure-time check for stdbool.h was missing.
68809         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
68810         (jm_PREREQ_HASH): New function.
68811
68812 2001-01-17  Jim Meyering  <meyering@lucent.com>
68813
68814         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
68815         for autoconf-2.49c.
68816         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
68817
68818 2001-01-16  Jim Meyering  <meyering@lucent.com>
68819
68820         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
68821         From Bruno Haible.
68822
68823 2001-01-14  Jim Meyering  <meyering@lucent.com>
68824
68825         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
68826         foo and bar.  Create conftestdir/ in the script, not in the C code.
68827         Remove directories in the script, not in the C code.
68828         Remove conftestdir{,2} before trying to create the directory.
68829         Make the entire configure script fail if the mkdir fails.
68830
68831 2001-01-14  Jim Meyering  <meyering@lucent.com>
68832
68833         * lib/rename.c: New file.  From Volker Borchert.
68834         Include stdlib.h, string.h or strings.h, and xalloc.h.
68835         Use strip_trailing_slashes rather than open-coding it.
68836
68837 2001-01-03  Paul Eggert  <eggert@twinsun.com>
68838
68839         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
68840
68841 2001-01-03  Jim Meyering  <meyering@lucent.com>
68842
68843         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
68844         of local `inptr' to avoid warning with some system declarations of
68845         iconv.
68846
68847 2001-01-02  Volker Borchert  <bt@teknon.de>
68848
68849         * m4/rename.m4: New file.
68850         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
68851
68852 2001-01-01  Jim Meyering  <meyering@lucent.com>
68853
68854         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
68855         even on systems with utmpx.h.  It's necessary for the declaration of
68856         utmp's ut_user member.  Reported by Andreas Jaeger.
68857
68858         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
68859         available. They are required for the declarations of getgrgid and
68860         getpwuid resp.
68861         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
68862         Reported by Andreas Jaeger.
68863
68864 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
68865
68866         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
68867         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
68868         so `make install' also works in VPATH builds.
68869
68870 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
68871
68872         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
68873         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
68874         can be used in subdirectories.
68875
68876 2000-12-29  Paul Eggert  <eggert@twinsun.com>
68877
68878         * lib/modechange.c: Do not assume that mode_t uses the
68879         traditional octal encoding.  E.g. "chmod 1 FOO" should set
68880         the other-execute bit of FOO even if S_IXOTH != 1.
68881
68882         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
68883         WOTH, XOTH, ALLM): New macros.
68884         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
68885          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
68886         Use them.
68887         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
68888         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
68889         (mode_compile):
68890         No need to use uintmax_t; unsigned long is long enough.
68891         Don't bother to get suffix since we don't use it.
68892
68893 2000-12-26  Jim Meyering  <meyering@lucent.com>
68894
68895         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
68896         better with autoheader.
68897
68898 2000-12-24  Jim Meyering  <meyering@lucent.com>
68899
68900         * lib/hash.c (is_prime): Return explicit boolean values.
68901         (hash_get_first): Return NULL to appease Irix5.6's 89.
68902         Reported by Nelson Beebe.
68903
68904 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
68905
68906         * lib/localcharset.c (locale_charset): Add support for Win32.
68907
68908 2000-12-18  Paul Eggert  <eggert@twinsun.com>
68909
68910         * lib/physmem.h, lib/physmem.c: New files.
68911
68912         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
68913         (noinst_HEADERS): Add physmem.h.
68914
68915         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
68916         't' for compatibility with Solaris 8 sort.
68917
68918 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
68919
68920         * lib/config.charset: Add support for BeOS.
68921
68922 2000-12-17  Jim Meyering  <meyering@lucent.com>
68923
68924         * m4/dos.m4 (jm_AC_DOS): New file and macro.
68925         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
68926
68927 2000-12-16  Jim Meyering  <meyering@lucent.com>
68928
68929         This bug had a serious impact on chown: `chown N:M FILE' (for integer
68930         N and M) would have treated it like `chown N:N FILE'.
68931
68932         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
68933
68934 2000-12-16  Jim Meyering  <meyering@lucent.com>
68935
68936         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
68937         SHELLS_FILE to a file name that's useful on djgpp systems.
68938         Include stdlib.h.
68939         (ADDITIONAL_DEFAULT_SHELLS): Define.
68940         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
68941         Based mostly on a patch from Prashant TR.
68942
68943 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
68944
68945         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
68946         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
68947         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
68948
68949 2000-12-08  Andreas Schwab  <schwab@suse.de>
68950
68951         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
68952         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
68953
68954 2000-12-07  Jim Meyering  <meyering@lucent.com>
68955
68956         * lib/stripslash.c (ISSLASH): Define.
68957         (strip_trailing_slashes): Use ISSLASH rather than comparing against
68958         `/'.
68959         From Prashant TR.
68960
68961         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
68962         (dir_name_r): Declare this function as static.
68963         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
68964         manifest itself on a name containing a mix of slashes and
68965         backslashes.
68966         Make this function work with names starting with a DOS-style
68967         drive letter and colon prefix.
68968         (dir_name): Append `.' if necessary.
68969         Based mostly on patches from Prashant TR and Eli Zaretskii.
68970
68971         * lib/dirname.h (dir_name_r): Remove prototype.
68972
68973 2000-12-06  Paul Eggert  <eggert@twinsun.com>
68974
68975         * m4/off_t-format.m4: Remove this file.
68976         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
68977
68978 2000-12-06  Jim Meyering  <meyering@lucent.com>
68979
68980         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
68981         replacement strtoull, we may well need the replacement strtoul, too.
68982         Check for declarations of strtoul and strtoull.
68983         Check for strtol.  Mainly as a cue to cause automake to include
68984         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
68985         Check for limits.h -- strtol.c needs it.
68986
68987 2000-12-05  Jim Meyering  <meyering@lucent.com>
68988
68989         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
68990
68991 2000-12-04  Jim Meyering  <meyering@lucent.com>
68992
68993         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
68994         Also include memory.h, stdlib.h, unistd.h if appropriate.
68995         Reported by Andreas Jaeger (conflicting declaration of malloc).
68996
68997 2000-12-02  Jim Meyering  <meyering@lucent.com>
68998
68999         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
69000         * m4/jm-macros.m4 (jm_MACROS): require it.
69001
69002 2000-12-02  Jim Meyering  <meyering@lucent.com>
69003
69004         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
69005
69006 2000-12-01  Paul Eggert  <eggert@twinsun.com>
69007
69008         * lib/memrchr.c: Include <config.h> before any system include file.
69009
69010 2000-11-30  Jim Meyering  <meyering@lucent.com>
69011
69012         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
69013
69014 2000-11-30  Jim Meyering  <meyering@lucent.com>
69015
69016         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
69017
69018 2000-11-29  Paul Eggert  <eggert@twinsun.com>
69019
69020         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
69021
69022 2000-11-26  Jim Meyering  <meyering@lucent.com>
69023
69024         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
69025
69026 2000-11-22  Paul Eggert  <eggert@twinsun.com>
69027
69028         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
69029         size of (size_t) -1; it's not portable.
69030
69031 2000-11-17  Jim Meyering  <meyering@lucent.com>
69032
69033         * lib/strstr.c: Update from GNU libc.
69034
69035 2000-11-17  Akim Demaille  <akim@epita.fr>
69036
69037         * lib/obstack.h: Formatting changes.
69038         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
69039         prevent type checking.
69040         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
69041         cast the value to (void *): assigning a `foo *' to a `void *'
69042         variable is valid.
69043         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
69044
69045 2000-11-16  Jim Meyering  <meyering@lucent.com>
69046
69047         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
69048
69049 2000-11-11  Jim Meyering  <meyering@lucent.com>
69050
69051         * lib/error.c: Add a couple #includes, merging from GNU libc version.
69052
69053 2000-11-10  Jim Meyering  <meyering@lucent.com>
69054
69055         * lib/obstack.h: Update from GNU libc.
69056         * lib/obstack.c: Likewise.
69057
69058 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
69059
69060         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
69061
69062 2000-11-06  Paul Eggert  <eggert@twinsun.com>
69063
69064         * lib/getusershell.c (setusershell): Use rewind rather than
69065         fseek/fseeko, to avoid configuration hassles with fseeko.
69066         Don't bother opening SHELLS_FILE if shellstream is NULL;
69067         it's not necessary.
69068
69069 2000-11-05  Jim Meyering  <meyering@lucent.com>
69070
69071         * lib/makepath.h (make_dir): Declare.
69072         * lib/makepath.c (make_dir): Remove `static' attribute.
69073         Tweak a comment.
69074
69075 2000-11-04  Jim Meyering  <meyering@lucent.com>
69076
69077         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
69078
69079 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
69080
69081         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
69082         last one in a bucket, advance to the next bucket.
69083
69084 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
69085
69086         * lib/fnmatch.c: Do not comment out all the code if we are using
69087         the GNU C library, because in some cases we are replacing buggy
69088         code in the GNU C library itself.
69089
69090 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
69091
69092         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
69093         (regex_compile): Catch bogus \(\1\).
69094
69095 2000-10-30  Paul Eggert  <eggert@twinsun.com>
69096
69097         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
69098         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
69099         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
69100
69101 2000-10-30  Paul Eggert  <eggert@twinsun.com>
69102
69103         * lib/error.h, getline.h, modechange.h:
69104         Remove "2000" from Copyright line, as the file hasn't been
69105         changed this year other than in the copyright notice.
69106
69107         * lib/xalloc.h: Add "2000" to Copyright line, as this file
69108         was changed this year.
69109
69110 2000-10-29  Jim Meyering  <meyering@lucent.com>
69111
69112         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
69113         renaming.
69114         * m4/ls-mntd-fs.m4: Likewise
69115
69116 2000-10-29  Jim Meyering  <meyering@lucent.com>
69117
69118         * lib/xstat.in: Fix grammar in comment.
69119
69120 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
69121
69122         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
69123         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
69124         doesn't define __restrict_arr.
69125
69126 2000-10-28  Jim Meyering  <meyering@lucent.com>
69127
69128         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
69129         (jm_PREREQ_MEMCHR): New function.
69130
69131 2000-10-28  Jim Meyering  <meyering@lucent.com>
69132
69133         * lib/memchr.c: Update from libc.
69134         Adjust for portability:
69135         [HAVE_STDLIB_H]: Include stdlib.h.
69136         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
69137         Undef __memchr, too.
69138         [!weak_alias]: Define __memchr to memchr.
69139
69140         * lib/regex.c: Update from libc.
69141         * lib/regex.h: Likewise.
69142         * lib/getopt1.c: Likewise.
69143         * lib/memcmp.c: Likewise.
69144
69145         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
69146         Avoid using fseek, when possible -- it's broken by design.
69147         Patch by Ulrich Drepper.
69148
69149 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
69150
69151         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
69152         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
69153         Giving in to popular pressure to shut up the compiler with casts.
69154
69155 2000-10-26  Jim Meyering  <meyering@lucent.com>
69156
69157         * lib/strftime.c: Update from libc.
69158
69159 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
69160
69161         * regex.c: More `unsigned char' -> `re_char' changes.
69162         Also change several `int' into `re_wchar_t'.
69163         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
69164         (PUSH_FAILURE_POINTER): Don't cast any more.
69165         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
69166         We want GCC to complain, since this piece of code makes
69167         re_match non-reentrant, which *should* be fixed.
69168         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
69169         (EXTEND_BUFFER): Use RETALLOC.
69170         (SET_LIST_BIT): Don't cast.
69171         (re_wchar_t): New type.
69172         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
69173         that those two functions will always properly return.
69174         (IMMEDIATE_QUIT_CHECK): Cast to void.
69175         (analyse_first): Use recursion rather than an explicit stack.
69176         (re_compile_fastmap): Can't fail anymore.
69177         (re_search_2): Don't check re_compile_fastmap for failure.
69178         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
69179         Now also sets the new value (passed in a new argument).
69180         (re_match_2_internal): Use it.
69181         Also, use a new var `reg' of type size_t when looping through regs
69182         rather than reuse the inappropriate `mcnt'.
69183
69184 2000-10-25  Jim Meyering  <meyering@lucent.com>
69185
69186         * lib/obstack.c: Update from libc.
69187
69188 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
69189
69190         * regex.c (regex_compile): Change the way of handling a range from
69191         a char less than 256 to a char not less than 256.
69192
69193 2000-10-24  Andrew Innes  <andrewi@gnu.org>
69194
69195         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
69196         NT-Emacs only.
69197         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
69198         so that re_search functions only quit when callers expect them to.
69199
69200 2000-10-23  Jim Meyering  <meyering@lucent.com>
69201
69202         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
69203         wrong.  That set_locale call must not have any side effects.
69204         From Paul Eggert.
69205
69206 2000-10-22  Jim Meyering  <meyering@lucent.com>
69207
69208         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
69209         [CYCLIC]: Remove now-unused definition.
69210
69211         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
69212         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
69213         Suggestion from Ulrich Drepper.
69214
69215 2000-10-21  Jim Meyering  <meyering@lucent.com>
69216
69217         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
69218         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
69219         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
69220
69221 2000-10-21  Jim Meyering  <meyering@lucent.com>
69222
69223         * lib/dirname.c (memrchr): Declare if necessary.
69224         (dir_name): Remove the restriction that there be no
69225         trailing slashes.  Now, this code skips past them, effectively
69226         ignoring them.
69227         [TEST_DIRNAME] (main): New unit tests.
69228
69229         * lib/memrchr.c: New file from GNU libc.
69230         Undef __memrchr, too.
69231         [!weak_alias]: Define __memrchr to memrchr.
69232         Guard weak_alias use with `#ifdef weak_alias'.
69233
69234 2000-10-21  Jim Meyering  <meyering@lucent.com>
69235
69236         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
69237         (dir_name): Use dir_name_r.
69238         * lib/dirname.h (dir_name_r): Declare it.
69239
69240 2000-10-17  Jim Meyering  <meyering@lucent.com>
69241
69242         * lib/quote.h (PARAMS): Define and use.
69243         Reported by Akim Demaille.
69244
69245         * lib/getopt.c: Update from libc.
69246
69247 2000-10-16  Jim Meyering  <meyering@lucent.com>
69248
69249         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
69250         setlocale.
69251         From Jan Fedak.
69252
69253 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
69254
69255         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
69256
69257 2000-09-25  Jim Meyering  <meyering@lucent.com>
69258
69259         * lib/md5.h (rol): Define (from GnuPG).
69260
69261         * lib/sha.c: Give credit (GnuPG) where due.
69262         (M): Use rol rather than open-coding it.
69263         Add a FIXME comment.
69264
69265 2000-09-21  Jim Meyering  <meyering@lucent.com>
69266
69267         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
69268         Reported by Michael Stone.
69269
69270 2000-09-20  Jim Meyering  <meyering@lucent.com>
69271
69272         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
69273         (noinst_HEADERS): Add sha.h.
69274         Based on code from Scott G. Miller and from GnuPG.
69275
69276 2000-09-18  Jim Meyering  <meyering@lucent.com>
69277
69278         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
69279         LIBS. Otherwise, everyone ends up linking with -lelf for some
69280         configurations.
69281         Reported by Mike Stone.
69282
69283 2000-09-15  Jim Meyering  <meyering@lucent.com>
69284
69285         * lib/regex.c: Update from libc.
69286
69287 2000-09-10  Jim Meyering  <meyering@lucent.com>
69288
69289         * lib/getopt.c (_getopt_internal): Update from glibc.
69290
69291 2000-09-09  Jim Meyering  <meyering@lucent.com>
69292
69293         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
69294         think it should be used as a general replacement for isascii.
69295         * lib/fnmatch.c: Likewise.
69296         * lib/mbswidth.c: Likewise
69297         * lib/regex.c: Likewise.
69298
69299         Don't use atoi.
69300         * lib/userspec.c: Include sys/param.h and limits.h.
69301         Include xstrtol.h.
69302         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
69303         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
69304         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
69305         UID, GID.  Check range.
69306
69307 2000-09-06  Jim Meyering  <meyering@lucent.com>
69308
69309         * lib/getopt.c (_getopt_internal): Update from glibc.
69310
69311 2000-08-30  Jim Meyering  <meyering@lucent.com>
69312
69313         * lib/strftime.c: Merge in changes from GNU libc.
69314
69315 2000-08-26  Jim Meyering  <meyering@lucent.com>
69316
69317         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
69318         * m4/fpending.m4: New file.
69319
69320 2000-08-26  Jim Meyering  <meyering@lucent.com>
69321
69322         * lib/closeout.c: Include "__fpending.h".
69323         (close_stdout_status): Return right away if there's nothing to flush.
69324
69325         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
69326         * lib/__fpending.c: New file.
69327         * lib/__fpending.h: New file.
69328
69329 2000-08-20  Jim Meyering  <meyering@lucent.com>
69330
69331         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
69332         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
69333         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
69334
69335 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
69336
69337         Improve fileutils installation on systems where running
69338         programs (like install) can't be unlinked.
69339         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
69340         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
69341
69342 2000-08-07  Paul Eggert  <eggert@twinsun.com>
69343
69344         Standardize on "memory exhausted" instead of "Memory exhausted"
69345         or "virtual memory exhausted".
69346         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
69347         "virtual memory exhausted".
69348         * lib/same.c (same_name): Invoke xalloc_die instead of printing
69349         our own message.
69350         * lib/userspec.c (parse_user_spec): Likewise.
69351         * lib/bumpalloc.h: comment fix
69352         * lib/same.c, userspec.c: Include xalloc.h.
69353
69354         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
69355         not char *const and pointing to a constant array.
69356         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
69357         (xrealloc): Comment fix.
69358
69359         * lib/userspec.c (parse_user_spec):
69360         Don't translate a message until just before returning,
69361         to avoid unnecessary translation.
69362
69363 2000-08-07  Jim Meyering  <meyering@lucent.com>
69364
69365         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
69366         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
69367         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
69368         getgroups.c, gethostname.c, getopt.h, group-member.c,
69369         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
69370         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
69371         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
69372         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
69373         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
69374         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
69375         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
69376         yesno.c: Back out Copyright date changes for each file with no change
69377         this year.  This eases coordination with other programs using the same
69378         source code modules.  From Paul Eggert.
69379
69380 2000-08-06  Paul Eggert  <eggert@twinsun.com>
69381
69382         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
69383         not char, for compatibility with glibc 2.1.3 strftime.c.
69384
69385 2000-08-03  Greg McGary  <greg@mcgary.org>
69386
69387         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
69388         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
69389         (EXTEND_BUFFER): Use them.
69390
69391 2000-08-01  Jim Meyering  <meyering@lucent.com>
69392
69393         * lib/dirname.c (ISSLASH): Define.
69394         (BACKSLASH_IS_PATH_SEPARATOR): Define.
69395         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
69396         both `\' and `/' may be use as path separators.
69397         Based on a patch from Prashant TR.
69398
69399 2000-07-31  Paul Eggert  <eggert@twinsun.com>
69400
69401         * lib/quotearg.c (quotearg_n_options): Don't make the initial
69402         slot vector a constant, since it might get modified.
69403
69404 2000-07-31  Jim Meyering  <meyering@lucent.com>
69405
69406         * lib/xmalloc.c: Use `virtual memory exhausted', not
69407         `Memory exhausted'.
69408         * lib/obstack.c (print_and_abort): Likewise.
69409
69410 2000-07-30  Paul Eggert  <eggert@twinsun.com>
69411
69412         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
69413         buffer, so that the caller can always quote one small
69414         component of a "memory exhausted" message in slot 0.
69415         From a suggestion by Jim Meyering.
69416
69417 2000-07-30  Jim Meyering  <meyering@lucent.com>
69418
69419         * lib/makepath.c (make_path): Quote the other instance, too.
69420
69421         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
69422         (STATIC_BUF_SIZE): Define.
69423         (quotearg_n_options): Use only statically allocated storage when
69424         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
69425         than STATIC_BUF_SIZE.
69426
69427 2000-07-29  Jim Meyering  <meyering@lucent.com>
69428
69429         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
69430         * lib/dirname.c (dir_name): Likewise.
69431
69432         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
69433         `/'.
69434
69435         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
69436         (dir_name): Assert that there are no trailing slashes.
69437
69438 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
69439
69440         * lib/mbswidth.h (mbswidth): Add a flags argument.
69441         (mbswidth): New declaration.
69442         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
69443         * lib/mbswidth.c (mbswidth): Add a flags argument.
69444         (mbsnwidth): New function.
69445
69446 2000-07-24  Jim Meyering  <meyering@lucent.com>
69447
69448         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
69449
69450 2000-07-23  Paul Eggert  <eggert@twinsun.com>
69451
69452         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
69453
69454 2000-07-23  Paul Eggert  <eggert@twinsun.com>
69455
69456         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
69457         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
69458         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
69459         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
69460         invoke multibyte primitives.
69461
69462 2000-07-23  Paul Eggert  <eggert@twinsun.com>
69463
69464         * lib/quotearg.c:
69465         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
69466         so that mbstate_t is always defined.
69467
69468         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
69469         be 1 in at least one GCC installation, and this configuration
69470         error is likely to be common.  Ignoring MB_LEN_MAX hurts
69471         performance on hosts that have mbrtowc but have only unibyte
69472         locales, but I assume these hosts are rare.
69473
69474 2000-07-23  Paul Eggert  <eggert@twinsun.com>
69475
69476         * lib/mbswidth.c (_XOPEN_SOURCE):
69477         Don't define; this causes problems on Solaris 7.
69478         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
69479
69480 2000-07-23  Jim Meyering  <meyering@lucent.com>
69481
69482         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
69483         too: getgrgid, getpwuid, getuid.
69484
69485 2000-07-23  Jim Meyering  <meyering@lucent.com>
69486
69487         * lib/basename.c (base_name): Add an assertion.
69488
69489 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
69490
69491         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
69492         shadow its mbsinit function.
69493
69494 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
69495
69496         * lib/mbswidth.h: New file.
69497         * lib/mbswidth.c: New file.
69498         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
69499         (noinst_HEADERS): Add mbswidth.h.
69500
69501 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
69502
69503         * lib/config.charset: Add support for FreeBSD. Improve support for
69504         HP-UX and IRIX 6.
69505
69506 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
69507
69508         * m4/mbswidth.m4: New file.
69509         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
69510
69511 2000-07-15  Jim Meyering  <meyering@lucent.com>
69512
69513         * lib/makepath.c: Include quote.h.
69514         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
69515         corresponding argument in a `quote (...)' call.
69516         Give better diagnostics.
69517
69518         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
69519         (noinst_HEADERS): Add quote.h.
69520
69521         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
69522         from tar's src/misc.c.
69523         * lib/quote.h: New file.  Prototypes for same.
69524
69525 2000-07-14  Paul Eggert  <eggert@twinsun.com>
69526
69527         From a suggestion by Bruno Haible.
69528         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
69529         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
69530         to decide whether to define the BeOS workaround macro;
69531         this adjusts to the change to AC_MBSTATE_T.
69532
69533 2000-07-14  Jim Meyering  <meyering@lucent.com>
69534
69535         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
69536         jm_AC_TYPE_UINTMAX_T.
69537
69538 2000-07-13  Paul Eggert  <eggert@twinsun.com>
69539
69540         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
69541
69542         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
69543         quotearg_buffer_restyled): Add support for
69544         clocale_quoting_style.  Undo previous change to
69545         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
69546         and "{RIGHT QUOTATION MARK}" msgids.
69547
69548 2000-07-10  Paul Eggert  <eggert@twinsun.com>
69549
69550         From a suggestion by Bruno Haible.
69551         * m4/mbstate_t.m4 (AC_MBSTATE_T):
69552         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
69553         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
69554         and mbstate_t, to a single-part test that simply defines mbstate_t.
69555         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
69556         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
69557
69558 2000-07-10  Jim Meyering  <meyering@lucent.com>
69559
69560         * m4/strerror_r.m4: Mirror the correction made in autoconf.
69561
69562         * m4/gnu-source.m4: Output to confdefs.h directly.
69563         Suggestion from Akim Demaille.
69564
69565 2000-07-09  Paul Eggert  <eggert@twinsun.com>
69566
69567         The old behavior of quoting `like this' doesn't look good with
69568         newer, ISO-style fonts.  See:
69569         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
69570
69571         Instead, quote "like this" by default.  Let the translator
69572         tailor the locale-specific quoting behavior by providing
69573         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
69574
69575         * lib/quotearg.c (N_): New macro.
69576         (gettext_default): New function.
69577         (quotearg_buffer_restyled): Use
69578         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
69579         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
69580
69581 2000-07-09  Jim Meyering  <meyering@lucent.com>
69582
69583         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
69584         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
69585
69586         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
69587         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
69588
69589 2000-07-09  Jim Meyering  <meyering@lucent.com>
69590
69591         * lib/Most files: Update copyright dates to include 2000.
69592
69593 2000-07-08  Jim Meyering  <meyering@lucent.com>
69594
69595         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
69596         if not defined.
69597         (xgethostname): Remove now-unnecessary #ifdef.
69598         Move declaration of `err' into loop where it's used.
69599
69600 2000-07-05  Paul Eggert  <eggert@twinsun.com>
69601         and Bruno Haible  <haible@clisp.cons.org>
69602
69603         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
69604         only if the test for an object-type mbstate_t fails.  This
69605         prevents us from mistakenly reporting that mbstate_t is a
69606         system object type after we "#define mbstate_t int" to work
69607         around its lack.
69608
69609 2000-07-05  Paul Eggert  <eggert@twinsun.com>
69610         and Bruno Haible  <haible@clisp.cons.org>
69611
69612         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
69613
69614 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
69615
69616         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
69617         to strerror_r.
69618         Include <ctype.h> for use of isalpha.
69619
69620 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
69621
69622         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
69623         by allocating a larger buffer. Test the gethostname return value for
69624         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
69625         returns an error and ENAMETOOLONG isn't defined.
69626
69627 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
69628
69629         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
69630         dimension.
69631
69632 2000-07-04  Jim Meyering  <meyering@lucent.com>
69633
69634         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
69635         of the deprecated AC_CHECKING.
69636
69637 2000-07-04  Jim Meyering  <meyering@lucent.com>
69638
69639         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
69640         Reported by Bruno Haible.
69641
69642 2000-07-04  Jim Meyering  <meyering@lucent.com>
69643
69644         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
69645         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
69646         lacks mbrtowc.
69647
69648 2000-07-03  Paul Eggert  <eggert@twinsun.com>
69649
69650         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
69651         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
69652
69653 2000-07-03  Paul Eggert  <eggert@twinsun.com>
69654         and Bruno Haible  <haible@clisp.cons.org>
69655
69656         * lib/quotearg.c (mbrtowc):
69657         Assign to *pwc, and return 1 only if result is nonzero.
69658         (iswprint): Use ISPRINT when substituting our own mbrtowc.
69659
69660 2000-07-03  Jim Meyering  <meyering@lucent.com>
69661
69662         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
69663
69664 2000-07-03  Jim Meyering  <meyering@lucent.com>
69665
69666         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
69667         This is necessary to get a definition of e.g., UTMP_FILE on
69668         HP-UX 10.20.
69669         From Bob Proulx.
69670
69671 2000-07-02  Jim Meyering  <meyering@lucent.com>
69672
69673         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
69674
69675         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
69676         AC_LIBOBJ(function_name).
69677         * m4/chown.m4: Likewise.
69678         * m4/fnmatch.m4: Likewise.
69679         * m4/ftruncate.m4: Likewise.
69680         * m4/getgroups.m4: Likewise.
69681         * m4/getline.m4: Likewise.
69682         * m4/group-member.m4: Likewise.
69683         * m4/jm-macros.m4: Likewise.
69684         * m4/lstat.m4: Likewise.
69685         * m4/malloc.m4: Likewise.
69686         * m4/memcmp.m4: Likewise.
69687         * m4/nanosleep.m4: Likewise.
69688         * m4/putenv.m4: Likewise.
69689         * m4/realloc.m4: Likewise.
69690         * m4/regex.m4: Likewise.
69691         * m4/stat.m4: Likewise.
69692         * m4/strftime.m4: Likewise.
69693
69694 2000-07-02  Jim Meyering  <meyering@lucent.com>
69695
69696         * lib/quotearg.c (mbstate_t): Don't define here.
69697
69698 2000-07-02  Jim Meyering  <meyering@lucent.com>
69699
69700         * lib/nanosleep.c (SIGCONT): Define if not already defined.
69701
69702 2000-07-01  Jim Meyering  <meyering@lucent.com>
69703
69704         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
69705
69706 2000-07-01  Jim Meyering  <meyering@lucent.com>
69707
69708         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
69709         problem.
69710
69711 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
69712
69713         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
69714         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
69715
69716 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
69717
69718         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
69719         per change in ../m4/ls-mntd-fs.m4.
69720         (read_filesystem_list): Ignore symbolic links.
69721
69722 2000-06-29  Jim Meyering  <meyering@lucent.com>
69723
69724         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
69725         for declaration of strcmp.
69726
69727         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
69728
69729         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
69730         Avoid warning by casting result to `char *' to remove `const'.
69731
69732 2000-06-28  Jim Meyering  <meyering@lucent.com>
69733
69734         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
69735         included by quotearg.c, for which we perform this test.  From
69736         Bruno Haible.
69737
69738 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
69739
69740         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
69741         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
69742         <utmpx.h> exists, put readutmp.o into LIBOBJS.
69743
69744 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
69745
69746         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
69747
69748 2000-06-26  Paul Eggert  <eggert@twinsun.com>
69749
69750         savedir now sets errno on failure and invokes xmalloc to get memory.
69751         Fix a couple of other minor bugs while we're at it.
69752
69753         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
69754         (NAMLEN): Remove macro.
69755         (malloc, realloc): Remove decls.
69756         (stpcpy): Likewise.
69757         ("xalloc.h"): Include.
69758         (NAME_SIZE_DEFAULT): New macro.
69759         (savedir): Use xmalloc / xrealloc to allocate memory.
69760         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
69761         Skip "" directory entries.
69762         Use strlen to calculate directory entry length, since the old method
69763         is rarely used these days and isn't worth supporting.
69764         Don't use a pointer after freeing it.
69765         Check for integer overflow when calculating allocation size.
69766         Use memcpy to copy entries, instead of stpcpy.
69767         Set errno properly when returning NULL.
69768         Check for readdir error.
69769
69770 2000-06-26  Jim Meyering  <meyering@lucent.com>
69771
69772         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
69773
69774 2000-06-25  Jim Meyering  <meyering@lucent.com>
69775
69776         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
69777         Linux header bug when _XOPEN_SOURCE is defined to 500.
69778
69779 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
69780
69781         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
69782         deficiency.
69783
69784 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
69785
69786         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
69787         Include xalloc.h.
69788         Don't include <stdlib.h>.  Don't declare malloc, realloc.
69789
69790 2000-06-24  Jim Meyering  <meyering@lucent.com>
69791
69792         * m4/strerror_r.m4: Revive this file -- to try out an experimental
69793         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
69794         for which strerror does return char*, but which lacks a conveniently
69795         accessible declaration of the function.  If the compile-test says
69796         strerror_r doesn't work, then resort to a `run'-test that works on
69797         BeOS and segfaults on DEC Unix.
69798
69799 2000-06-24  Jim Meyering  <meyering@lucent.com>
69800
69801         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
69802
69803 2000-06-23  Paul Eggert  <eggert@twinsun.com>
69804
69805         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
69806         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
69807
69808 2000-06-23  Paul Eggert  <eggert@twinsun.com>
69809
69810         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
69811         (mbrtowc, mbstate_t): Define substitutes if
69812         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
69813         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
69814         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
69815
69816 2000-06-23  Jim Meyering  <meyering@lucent.com>
69817
69818         * m4/afs.m4: Add missing AC_MSG_RESULT.
69819         Reported by Bruno Haible.
69820
69821         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
69822         Suggestion from Bruno Haible.
69823
69824 2000-06-23  Jim Meyering  <meyering@lucent.com>
69825
69826         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
69827
69828 2000-06-21  Jim Meyering  <meyering@lucent.com>
69829
69830         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
69831
69832 2000-06-21  Jim Meyering  <meyering@lucent.com>
69833
69834         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
69835         (noinst_HEADERS): Add getstr.h.
69836
69837         * lib/getline.c (getstr): Move into a separate file.
69838         * lib/getstr.c (getstr): New file, extracted from getline.c, with
69839         the following changes: new parameter, delim2; both delim[12]
69840         parameters have type `int', not `char'.  The latter would lose
69841         with 8-bit delimiters.
69842         * lib/getstr.h: New file.
69843
69844 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
69845
69846         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
69847         than 1024, return a memory chunk of least possible size, instead
69848         of size PATH_MAX + 2. In the loop, increment the size proportionally.
69849         Use free/xmalloc instead of xrealloc to avoid copying for very long
69850         paths.
69851
69852 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
69853
69854         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
69855         the empty string.
69856
69857 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
69858
69859         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
69860         address, not strdup.  Include <stdlib.h> and don't declare free().
69861
69862 2000-06-19  Jim Meyering  <meyering@lucent.com>
69863
69864         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
69865
69866 2000-06-18  Jim Meyering  <meyering@lucent.com>
69867
69868         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
69869
69870         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
69871         `checking whether...' message to be consistent with that of the
69872         lstat test.
69873
69874 2000-06-18  Jim Meyering  <meyering@lucent.com>
69875
69876         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
69877         Besides, these days every porting target provides a mkdir function.
69878
69879         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
69880         needed. (this snippet comes from src/system.h).
69881
69882 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
69883
69884         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
69885
69886 2000-06-15  Paul Eggert  <eggert@twinsun.com>
69887
69888         * lib/human.c (adjust_value): New function.
69889         (human_readable_inexact): Apply rounding style even when
69890         printing approximate values.
69891
69892 2000-06-14  Paul Eggert  <eggert@twinsun.com>
69893
69894         * lib/human.c (human_readable_inexact): Allow an input block
69895         size that is not a multiple of the output block size, and vice versa.
69896         Reported by Piergiorgio Sartor.
69897
69898 2000-06-14  Paul Eggert  <eggert@twinsun.com>
69899
69900         * lib/getdate.y (get_date): Apply relative times after time
69901         zone indicator, not before.  Reported by Todd A. Jacobs.
69902
69903 2000-06-13  Jim Meyering  <meyering@lucent.com>
69904
69905         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
69906
69907         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
69908
69909 2000-06-12  Paul Eggert  <eggert@twinsun.com>
69910
69911         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
69912
69913 2000-06-12  Jim Meyering  <meyering@lucent.com>
69914
69915         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
69916         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
69917         optional argument.
69918         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
69919         the optional argument, `lib'.
69920
69921 2000-06-08  Jim Meyering  <meyering@lucent.com>
69922
69923         * m4/largefile.m4: Remove file (now that it's part of autoconf).
69924
69925 2000-06-04  Paul Eggert  <eggert@twinsun.com>
69926
69927         Rewrite largefile configuration so that we don't need to run
69928         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
69929         AC_CANONICAL_HOST in configure.in -- jmm]
69930
69931         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
69932         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
69933         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
69934         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
69935         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
69936         All uses changed.
69937         Instead of inspecting the output of getconf, try to compile the
69938         test program without and with the macro definition.
69939         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
69940         for getconf.  Instead, check for the needed flags by compiling
69941         test programs.
69942
69943 2000-06-04  Paul Eggert  <eggert@twinsun.com>
69944
69945         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
69946
69947 2000-06-04  Jim Meyering  <meyering@lucent.com>
69948
69949         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
69950         SunOS 4.1.4 for which gid_t is an unsigned type.
69951
69952 2000-06-03  Jim Meyering  <meyering@lucent.com>
69953
69954         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
69955         now that autoconf requires that.
69956
69957         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
69958         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
69959         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
69960
69961 2000-06-03  Jim Meyering  <meyering@lucent.com>
69962
69963         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
69964
69965 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
69966
69967         * m4/glibc21.m4: New file.
69968         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
69969
69970 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
69971
69972         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
69973         newer, don't install charset.alias.
69974         * lib/config.charset: Change the Linux/glibc rules so they become empty
69975         on glibc-2.1 or newer.
69976
69977 2000-06-02  Jim Meyering  <meyering@lucent.com>
69978
69979         * lib/mountlist.c: Back out last change.  Instead, do this...
69980         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
69981         me_dummy member using the same `ignore'-testing code.
69982         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
69983         fs_type strings.
69984         From Mark D. Roth.
69985
69986 2000-05-29  Jim Meyering  <meyering@lucent.com>
69987
69988         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
69989         mounts with the `ignore' attribute.  Based on a patch from
69990         Mark D. Roth.
69991
69992 2000-05-28  Jim Meyering  <meyering@lucent.com>
69993
69994         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
69995         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
69996         * m4/stat.m4: Likewise.
69997         * m4/lstat.m4: Likewise.
69998         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
69999
70000         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
70001         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
70002
70003 2000-05-26  Jim Meyering  <meyering@lucent.com>
70004
70005         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
70006
70007 2000-05-24  Jim Meyering  <meyering@lucent.com>
70008
70009         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
70010         autoconf requires that.
70011         * m4/lib-check.m4: Likewise.
70012         * m4/jm-macros.m4: Likewise.
70013         * m4/strftime.m4: Likewise.
70014
70015         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
70016         AC_CHECK_DECLS, now that autoconf requires that.
70017
70018 2000-05-22  Jim Meyering  <meyering@lucent.com>
70019
70020         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
70021         * m4/lstat.m4: Likewise.
70022
70023 2000-05-22  Jim Meyering  <meyering@lucent.com>
70024
70025         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
70026
70027 2000-05-20  Jim Meyering  <meyering@lucent.com>
70028
70029         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
70030         (jm_PREREQ): Use it.
70031
70032 2000-05-18  Jim Meyering  <meyering@lucent.com>
70033
70034         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
70035         back, too, since it may have been modified by allocate_entry.
70036         (hash_delete): Rewrite to use neither the assignment operator
70037         nor the comma operator in an if-expression.
70038
70039 2000-05-15  Paul Eggert  <eggert@twinsun.com>
70040
70041         * lib/closeout.c:
70042         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
70043         Remove; no longer needed.
70044         "quotearg.h": Add include.
70045         (file_name): Do not bother to explicitly initialize to NULL; it's less
70046         efficient on some hosts.
70047         (close_stdout_status): Remove test as to whether stdout was already
70048         closed; it breaks for the case "echo x | sort >&-".
70049         Quote file name colons.
70050         Do not assume that _("write error") lacks format strings.
70051
70052 2000-05-15  Jim Meyering  <meyering@lucent.com>
70053
70054         * lib/version-etc.c (version_etc_copyright): Update the copyright
70055         string used in all --version output.
70056
70057 2000-05-14  Jim Meyering  <meyering@lucent.com>
70058
70059         * lib/closeout.c (close_stdout_set_file_name): New function.
70060         (close_stdout_status): Use new file-scoped global.
70061         Return right away if fstat says the stdout file descriptor is invalid.
70062         * lib/closeout.h (close_stdout_set_file_name): Declare.
70063
70064 2000-05-10  Jim Meyering  <meyering@lucent.com>
70065
70066         * lib/closeout.c [default_exit_status]: New file-scoped variable.
70067         (close_stdout_set_status): New function.
70068         * lib/closeout.h (close_stdout_set_status): Declare.
70069
70070 2000-05-09  Jim Meyering  <meyering@lucent.com>
70071
70072         * m4/gettext.m4: Rename this...
70073         * m4/libintl.m4: ...to this.
70074
70075 2000-05-08  Jim Meyering  <meyering@lucent.com>
70076
70077         * lib/long-options.c: Don't include closeout.h.
70078         (parse_long_options): Don't call close_stdout for --version.
70079
70080 2000-05-06  Paul Eggert  <eggert@twinsun.com>
70081
70082         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
70083         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
70084         2.1.3 bug.  This avoids a clash when files like regex.c define
70085         _GNU_SOURCE.
70086
70087 2000-05-06  Jim Meyering  <meyering@lucent.com>
70088
70089         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
70090         (AC_REPLACE_FUNCS): Add strnlen.
70091
70092         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
70093         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
70094
70095         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
70096         AC_SEARCH_LIBS call for nanosleep.
70097         (LIB_NANOSLEEP): Set and AC_SUBST.
70098
70099 2000-05-06  Jim Meyering  <meyering@lucent.com>
70100
70101         * lib/strnlen.c: Undefine __strnlen and strnlen.
70102         [!weak_alias]: Define __strnlen to strnlen.
70103
70104         * lib/atexit.c: New file, from libiberty.
70105
70106 2000-05-06  Jim Meyering  <meyering@lucent.com>
70107
70108         * lib/closeout.c (close_stdout_status): Also check for errors on the
70109         stderr stream.
70110
70111 2000-05-05  Jim Meyering  <meyering@lucent.com>
70112
70113         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
70114         AC_SEARCH_LIBS call for clock_gettime.
70115         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
70116
70117         * m4/search-libs.m4: Update from autoconf.
70118
70119         su doesn't work on Solaris 2.6.
70120         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
70121         <shadow.h>.  Reported by Dragos Harabor.
70122
70123 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
70124
70125         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
70126         memcpy instead of xmalloc, xrealloc, path_concat.
70127         (locale_charset): Treat empty environment variables as absent.
70128         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
70129
70130 2000-05-04  Jim Meyering  <meyering@lucent.com>
70131
70132         * lib/getopt.c: Update from glibc.
70133         * lib/obstack.c: Likewise.
70134         * lib/obstack.h: Likewise.
70135         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
70136         file
70137
70138         * lib/regex.h: Likewise.
70139         * lib/strndup.c: Likewise.
70140         * lib/strnlen.c: New file, from glibc.
70141
70142 2000-05-03  Jim Meyering  <meyering@lucent.com>
70143
70144         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
70145
70146 2000-05-02  Paul Eggert  <eggert@twinsun.com>
70147
70148         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
70149         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
70150         compile-time test, rather than inspecting host and OS, to
70151         decide whether to define _LARGEFILE_SOURCE.
70152
70153 2000-05-01  Jim Meyering  <meyering@lucent.com>
70154
70155         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
70156
70157         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
70158         Based on a patch from Bruno Haible.
70159
70160 2000-05-01  Jim Meyering  <meyering@lucent.com>
70161
70162         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
70163
70164 2000-04-29  Jim Meyering  <meyering@lucent.com>
70165
70166         * lib/path-concat.c: Declare strdup only if it's not defined.
70167         * lib/canon-host.c: Likewise.
70168
70169 2000-04-28  Jim Meyering  <meyering@lucent.com>
70170
70171         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
70172         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
70173         is included first, then limits.h is included by locale.h by libintl.h.
70174         From John David Anglin.
70175
70176 2000-04-25  Jim Meyering  <meyering@lucent.com>
70177
70178         * lib/makepath.c (S_IRWXUGO): Define.
70179         (make_path): Always perform explicit chmod if MODE specifies any
70180         of the `special' permission bits.  Prompted by a bug report against
70181         install from Mate Wierdl and Joost van Baal.
70182
70183 2000-04-18  Jim Meyering  <meyering@lucent.com>
70184
70185         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
70186         (jm_PREREQ): Use it.
70187
70188 2000-04-18  Jim Meyering  <meyering@lucent.com>
70189
70190         * lib/README: New file.
70191
70192         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
70193         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
70194
70195 2000-04-17  Jim Meyering  <meyering@lucent.com>
70196
70197         Get it right :-)
70198         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
70199         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
70200         Suggestion from Akim Demaille.
70201
70202 2000-04-17  Jim Meyering  <meyering@lucent.com>
70203
70204         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
70205         the definition of it to rpl_strftime also defined-away the system's
70206         declaration.
70207
70208 2000-04-15  Jim Meyering  <meyering@lucent.com>
70209
70210         Use `C' to denote so-called `contiguous' files, the same way
70211         that tar does.
70212         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
70213         (ftypelet): Use S_ISCTG.
70214         From Michael Deutschmann.
70215
70216 2000-04-14  Jim Meyering  <meyering@lucent.com>
70217
70218         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
70219         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
70220         clobbered.
70221
70222 2000-04-14  Jim Meyering  <meyering@lucent.com>
70223
70224         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
70225
70226 2000-04-13  Jim Meyering  <meyering@lucent.com>
70227
70228         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
70229         AH_VERBATIM to insert required #ifndef into config.h.in.
70230         Suggestion from Akim Demaille.
70231
70232 2000-04-12  Jim Meyering  <meyering@lucent.com>
70233
70234         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
70235         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
70236         Christian Krackowizer.
70237
70238         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
70239         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
70240         (AC_SYS_LARGEFILE): Require.
70241         (AM_C_PROTOTYPES): Require.
70242
70243 2000-04-08  Jim Meyering  <meyering@lucent.com>
70244
70245         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
70246         names don't conflict.  Reported by Eli Zaretskii.
70247
70248 2000-04-07  Jim Meyering  <meyering@lucent.com>
70249
70250         * lib/putenv.c: Move inclusion of errno.h so it follows that of
70251         sys/types.h, to work around system header problems on AIX 3.2.5.
70252         From Bruno Haible.
70253
70254 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
70255
70256         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
70257         bug.  Deal with the different error behavior of Irix iconv.
70258
70259 2000-04-05  Paul Eggert  <eggert@twinsun.com>
70260
70261         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
70262         IRIX if the installer said otherwise.
70263
70264 2000-04-05  Jim Meyering  <meyering@lucent.com>
70265
70266         Portability tweaks required for ultrix4.3.
70267         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
70268         (jm_CHECK_DECLS): Add getutent to the list of functions.
70269         (_jm_DECL_HEADERS): Add utmpx.h.
70270         From John David Anglin.
70271
70272         * m4/strftime.m4: Back out the 2000-04-02 change.
70273         Instead of that change, simply undefine putenv in the test program.
70274
70275 2000-04-05  Jim Meyering  <meyering@lucent.com>
70276
70277         Portability tweaks required for ultrix4.3.
70278         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
70279         getutent.
70280         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
70281         * lib/canon-host.c: Declare strdup.
70282         * lib/path-concat.c: Likewise.
70283         From John David Anglin.
70284
70285 2000-04-04  Jim Meyering  <meyering@lucent.com>
70286
70287         Be more DOS 8.3-friendly.
70288         * lib/ref-add.sin: Renamed from ref-add.sed.in.
70289         * lib/ref-del.sin: Renamed from ref-del.sed.in.
70290         * lib/Makefile.am: Reflect renaming.
70291         Reported by Eli Zaretskii.
70292
70293         Use a temporary file name that won't clash with `charset.alias'
70294         in the DOS 8.3 name space.
70295         * lib/Makefile.am (charset_tmp): Define.
70296         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
70297         (uninstall-local): Likewise.
70298         Reported by Eli Zaretskii.
70299
70300 2000-04-03  Jim Meyering  <meyering@lucent.com>
70301
70302         * m4/gettext.m4: Fix typo in comment.
70303
70304         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
70305         textutils/configure.in).  Suggestion from Paul Eggert.
70306         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
70307
70308 2000-04-02  Paul Eggert  <eggert@twinsun.com>
70309
70310         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
70311         variable in the shell rather than using putenv, which isn't
70312         portable.  This avoids the configure-time inter-test dependency
70313         on the potentially-renamed putenv function.
70314
70315 2000-03-30  Paul Eggert  <eggert@twinsun.com>
70316
70317         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
70318         before checking struct stat.st_blksize, so that
70319         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
70320
70321 2000-03-29  Paul Eggert  <eggert@twinsun.com>
70322
70323         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
70324         since strftime.c uses HAVE_STRFTIME to decide whether to use
70325         the underlying strftime.
70326
70327 2000-03-29  Paul Eggert  <eggert@twinsun.com>
70328
70329         * lib/time/strftime.c (my_strftime): Make sure we call the system
70330         strftime, not ourselves, when invoking the underlying strftime.
70331
70332 2000-03-24  Jim Meyering  <meyering@lucent.com>
70333
70334         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
70335         (charset_alias): Define.
70336         (install-exec-local): Factor out common code.
70337         (uninstall-local): Split lines longer than 80.
70338         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
70339         (SUFFIXES): Define.
70340         (.sed.in.sed): New rule.  Don't redirect directly to $@.
70341         (CLEANFILES): Add ref-add.sed and ref-del.sed.
70342
70343 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
70344
70345         * lib/config.charset: Output a line containing "Packages using this
70346         file".
70347         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
70348         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
70349         ref-del.sed): New rules.
70350
70351 2000-03-17  Jim Meyering  <meyering@lucent.com>
70352
70353         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
70354         Otherwise, include <strings.h>
70355
70356 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
70357
70358         * lib/unicodeio.c (utf8_wctomb): New function.
70359         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
70360         format instead of in UCS-4 with platform dependent endianness.
70361
70362 2000-03-10  Jim Meyering  <meyering@lucent.com>
70363
70364         * m4/lib-check.m4: Look for getspnam in -lgen, too.
70365         From Marco Franzen.
70366
70367 2000-03-07  Paul Eggert  <eggert@twinsun.com>
70368
70369         * lib/savedir.c (savedir): Work even if directory size is
70370         negative; this can happen with some screwy NFS configurations.
70371
70372 2000-03-06  Jim Meyering  <meyering@lucent.com>
70373
70374         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
70375         if it's NULL (because we ran out of memory).  From Bruno Haible.
70376
70377 2000-03-05  Jim Meyering  <meyering@lucent.com>
70378
70379         * lib/localcharset.c ("path-concat.h"): Include.
70380         (get_charset_aliases): Use path_concat instead of ANSI string
70381         concatenation.
70382
70383         * lib/unicodeio.h (PARAMS): Define.
70384         Use it to guard prototype.
70385
70386 2000-03-04  Jim Meyering  <meyering@lucent.com>
70387
70388         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
70389         for lib/localcharset.c.
70390
70391 2000-03-04  Jim Meyering  <meyering@lucent.com>
70392
70393         * lib/Makefile.am (install-exec-local): Create $(libdir) before
70394         installing into it.
70395         (uninstall-local): Uncomment this rule so `make distcheck' works
70396         once again.
70397
70398         * lib/unicodeio.c (<errno.h>): Include it.
70399         (errno): Declare if not defined.
70400
70401         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
70402
70403         * lib/config.charset: New version, incorporating remarks from a linux
70404         i18n mailing list.  From Bruno Haible.
70405
70406 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
70407
70408         * m4/codeset.m4: New file.
70409         * m4/iconv.m4: New file.
70410         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
70411
70412 2000-03-03  Jim Meyering  <meyering@lucent.com>
70413
70414         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
70415
70416 2000-03-02  Jim Meyering  <meyering@lucent.com>
70417
70418         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
70419         the messages come out on separate lines.
70420
70421         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
70422         rather than jm_CHECK_DECLARATIONS.
70423         * m4/decl.m4: Remove now-unused file.
70424
70425         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
70426         geteuid.
70427
70428 2000-03-02  Jim Meyering  <meyering@lucent.com>
70429
70430         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
70431
70432 2000-03-01  Jim Meyering  <meyering@lucent.com>
70433
70434         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
70435         * lib/unicodeio.c: Likewise.
70436
70437 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
70438
70439         * lib/config.charset: New file.
70440         * lib/localcharset.c: New file.
70441         * lib/unicodeio.h, lib/unicodeio.c: New files.
70442         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
70443         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
70444         (noinst_HEADERS): Add unicodeio.h.
70445         (all-local, install-exec-local, charset.alias): New targets.
70446
70447 2000-02-28  Paul Eggert  <eggert@twinsun.com>
70448
70449         * lib/quotearg.c (ALERT_CHAR): New macro.
70450         (quotearg_buffer_restyled): Use it.
70451
70452 2000-02-27  Jim Meyering  <meyering@lucent.com>
70453
70454         * m4/check-decl.m4: Add getenv to the list.
70455
70456 2000-02-27  Jim Meyering  <meyering@lucent.com>
70457
70458         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
70459         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
70460
70461         * lib/backupfile.c: Guard inclusion of stdlib.h with
70462         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
70463         Declare malloc if needed.
70464
70465         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
70466         `#ifndef HAVE_DECL..'
70467         now that autoconf always defines the HAVE_DECL_ symbols.
70468         * lib/human.c: Likewise.
70469         * lib/same.c: Likewise.
70470         * lib/strtoumax.c: Likewise.
70471
70472         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
70473         declaration check was not run.
70474         * lib/hash.c: Likewise.
70475         * lib/human.c: Likewise.
70476         * lib/same.c: Likewise.
70477         * lib/strtoumax.c: Likewise.
70478
70479         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
70480         `.', then first look up the entire `.'-containing string as a login
70481         name.
70482
70483 2000-02-23  Jim Meyering  <meyering@lucent.com>
70484
70485         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
70486         in place of my hack.
70487
70488 2000-02-18  Paul Eggert  <eggert@twinsun.com>
70489
70490         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
70491         (textint): New typedef.
70492         (parser_control): Member year changed from int to textint.
70493         All uses changed.
70494         (YYSTYPE): Removed; replaced by %union with int and textint members.
70495         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
70496         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
70497         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
70498         (tSNUMBER, tUNUMBER): Now of type <textintval>.
70499         (date, number, to_year): Use width of number in digits, not its value,
70500         to determine whether it's a 2-digit year, or a 2-digit time.
70501         (yylex): Store number of digits of numeric tokens.
70502         Reported by John Kendall.
70503
70504         (parser_control): Changed from struct parser_control to typedef (for
70505         consistency).  All uses changed.
70506
70507         (tID): Removed; not used.
70508         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
70509
70510 2000-02-14  Paul Eggert  <eggert@twinsun.com>
70511
70512         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
70513         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
70514
70515 2000-02-12  Jim Meyering  <meyering@lucent.com>
70516
70517         * lib/userspec.c (ISDIGIT): Define it.
70518         (isdigit): Remove definition.
70519         (is_number): Use ISDIGIT, not isdigit.
70520         <libintl.h>: Include.
70521         (_ and N_): Define.
70522         (parse_user_spec): Mark translatable strings.
70523
70524 2000-02-10  Jim Meyering  <meyering@lucent.com>
70525
70526         With these changes, nanosleep.[ch] are finally enough like the other
70527         lib/* replacement files to compile on a few more losing systems.
70528
70529         * lib/nanosleep.h: Don't include config.h.
70530         Remove prototype from declaration of nanosleep.
70531         (PARAMS): Remove now-unneeded definition.
70532         * lib/nanosleep.c: #undef nanosleep.
70533         (rpl_nanosleep): Rename from nanosleep.
70534
70535 2000-02-10  Jim Meyering  <meyering@lucent.com>
70536
70537         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
70538         gnu_nanosleep to rpl_nanosleep.
70539
70540 2000-02-09  Jim Meyering  <meyering@lucent.com>
70541
70542         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
70543         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
70544
70545 2000-02-08  Akim Demaille  <akim@epita.fr>
70546
70547         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
70548         `[' and `]' and remove uses of `changequote'.
70549         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
70550         (AC_SYS_LARGEFILE): Likewise.
70551         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
70552         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
70553         of changequote.
70554         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
70555         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
70556         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
70557         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
70558
70559 2000-02-05  Jim Meyering  <meyering@lucent.com>
70560
70561         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
70562         Remove explicit use of AC_HEADER_TIME.  It is required by
70563         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
70564         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
70565         in autoconf whereby the expansion of the latter ended up preceding
70566         the expansion of its prerequisite, AC_HEADER_TIME.
70567         Reported by Volker Borchert.
70568
70569 2000-02-03  Jim Meyering  <meyering@lucent.com>
70570
70571         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
70572
70573 2000-02-03  Jim Meyering  <meyering@lucent.com>
70574
70575         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
70576         rather than with `#if HAVE_UTMPNAME'.
70577
70578 2000-02-02  Jim Meyering  <meyering@lucent.com>
70579
70580         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
70581         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
70582         Reported by Eli Zaretskii.
70583
70584 2000-02-01  Jim Meyering  <meyering@lucent.com>
70585
70586         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
70587
70588 2000-01-31  Jim Meyering  <meyering@lucent.com>
70589
70590         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
70591         functions.  Add the time.h and sys/time.h headers along with the
70592         AC_REQUIRE'ment of AC_HEADER_TIME.
70593
70594 2000-01-31  Jim Meyering  <meyering@lucent.com>
70595
70596         * lib/nanosleep.h (nanosleep): Guard declaration with
70597         `#if ! HAVE_DECL_NANOSLEEP'.
70598         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
70599         the declaration in that vendor's sys/timers.h.
70600         Reported by Christian Krackowizer.
70601
70602         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
70603         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
70604         (ISPRINT): Likewise.
70605         Reported by Tom Tromey.
70606
70607 2000-01-30  Jim Meyering  <meyering@lucent.com>
70608
70609         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
70610
70611         * m4/prereq.m4 (utmp_includes): Define.
70612         Check for ut_user and ut_name members in both struct utmpx
70613         and struct utmp.
70614
70615 2000-01-30  Jim Meyering  <meyering@lucent.com>
70616
70617         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
70618         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
70619         header files where only utmpx.ut_user is declared.
70620
70621         * lib/readutmp.h (UT_USER): Define.
70622
70623 2000-01-29  Jim Meyering  <meyering@lucent.com>
70624
70625         * m4/lib-check.m4: New file containing library-related checks from
70626         fileutils and sh-utils (textutils had none).
70627
70628 2000-01-28  Jim Meyering  <meyering@lucent.com>
70629
70630         * m4/perl.m4: Change format of warning message to look more like that
70631         from the missing script.  Suggestion from François Pinard.
70632
70633 2000-01-25  Jim Meyering  <meyering@lucent.com>
70634
70635         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
70636         well as time.h in the compile check.
70637         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
70638         Fix typo in cross-compiling case: s/yes/no/.
70639
70640 2000-01-23  Jim Meyering  <meyering@lucent.com>
70641
70642         * m4/jm-macros.m4: Move df-related tests here from
70643         fileutils/configure.in
70644
70645         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
70646         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
70647
70648         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
70649         s/space/ac_fsusage_space/.
70650         (jm_FILE_SYSTEM_USAGE): Take two parameters.
70651
70652         * m4/ftruncate.m4: New file (derived from part of
70653         fileutils/configure.in).
70654         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
70655         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
70656
70657         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
70658         AC_SUBST these here, rather than just in sh-util/configure.in, so
70659         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
70660         all the same.
70661         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
70662         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
70663         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
70664         (AC_SUBST(POW_LIBM)): Likewise.
70665         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
70666
70667 2000-01-23  Jim Meyering  <meyering@lucent.com>
70668
70669         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
70670         obstack.c.
70671
70672 2000-01-22  Jim Meyering  <meyering@lucent.com>
70673
70674         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
70675
70676         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
70677
70678         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
70679         configure.in
70680         (AC_CHECK_HEADERS): Likewise for sh-utils.
70681         (AC_CHECK_HEADERS): Likewise for textutils.
70682         Merge the three lists of headers.
70683
70684         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
70685         from fileutils' configure.in.
70686
70687         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
70688         code. Moved tests into their own function (_jm_DECL_HEADERS) in
70689         check-decl.m4.
70690
70691         * m4/check-decl.m4: Use #if rather than #ifdef.
70692         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
70693         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
70694         (_jm_DECL_HEADERS): Define new function.
70695         (jm_CHECK_DECLARATIONS): Require it.
70696
70697 2000-01-22  Jim Meyering  <meyering@lucent.com>
70698
70699         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
70700         [! HAVE_DECL_STRTOULL]: Declare strtoull.
70701         Required for some AIX systems.  Reported by Christian Krackowizer.
70702         [TESTING] (main): New function.
70703
70704         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
70705         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
70706         letters.
70707
70708         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
70709         iswprint.
70710
70711         * lib/strverscmp.c (ISDIGIT): Define.
70712         (strverscmp): Use ISDIGIT, not isdigit.
70713
70714 2000-01-19  Jim Meyering  <meyering@lucent.com>
70715
70716         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
70717         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
70718         defines `struct timespec' in <sys/time.h>
70719
70720         * m4/c-bs-a.m4: Remove uses of changequote altogether.
70721         Thanks to Akim for explaining.
70722
70723 2000-01-17  Paul Eggert  <eggert@twinsun.com>
70724
70725         * lib/nanosleep.c (nanosleep):
70726         Don't use SA_INTERRUPT to decide whether to call sigaction, as
70727         POSIX.1 doesn't require SA_INTERRUPT and some systems
70728         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
70729         it's been part of POSIX.1 since day 1 (in 1988).
70730
70731 2000-01-17  Jim Meyering  <meyering@lucent.com>
70732
70733         * lib/interlock: Remove unused file.  Reported by François Pinard.
70734
70735 2000-01-16  Paul Eggert  <eggert@twinsun.com>
70736
70737         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
70738         alert, backslash, formfeed, and vertical tab unnecessarily in
70739         shell quoting style.
70740
70741 2000-01-16  Jim Meyering  <meyering@lucent.com>
70742
70743         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
70744         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
70745         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
70746         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
70747
70748 2000-01-16  Jim Meyering  <meyering@lucent.com>
70749
70750         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
70751         because the latter didn't work.
70752
70753 2000-01-15  Jim Meyering  <meyering@lucent.com>
70754
70755         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
70756         (AC_REPLACE_FUNCS): Add memcpy and memset.
70757         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
70758         Add strpbrk.
70759         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
70760
70761 2000-01-12  Jim Meyering  <meyering@lucent.com>
70762
70763         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
70764         (jm_PREREQ): Use it.
70765         (jm_PREREQ_READUTMP): New macro.
70766         (jm_PREREQ): Use it.
70767
70768 2000-01-11  Paul Eggert  <eggert@twinsun.com>
70769
70770         Quote multibyte characters correctly.
70771         * m4/c-bs-a.m4: New file.
70772         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
70773         (jm_PREREQ): Use it.
70774
70775 2000-01-11  Paul Eggert  <eggert@twinsun.com>
70776
70777         * m4/uintmax_t.m4: Port to autoconf 2.13.
70778
70779 2000-01-08  Jim Meyering  <meyering@ascend.com>
70780
70781         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
70782         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
70783
70784 2000-01-04  Jim Meyering  <meyering@ascend.com>
70785
70786         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
70787         jm_STRUCT_DIRENT_D_TYPE.
70788         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
70789         jm_STRUCT_DIRENT_D_INO.
70790         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
70791         jm_STRUCT_UTIMBUF.
70792         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
70793         renamings.
70794         * m4/utime.m4: Likewise.
70795
70796         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
70797         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
70798
70799 2000-01-03  Paul Eggert  <eggert@twinsun.com>
70800
70801         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
70802         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
70803
70804 2000-01-02  Jim Meyering  <meyering@ascend.com>
70805
70806         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
70807         remember if this is necessary.
70808
70809 1999-12-26  Jim Meyering  <meyering@ascend.com>
70810
70811         * m4/jm-macros.m4: Use it here.
70812         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
70813
70814 1999-12-23  Jim Meyering  <meyering@ascend.com>
70815
70816         * m4/jm-macros.m4: Check for clock_gettime (moved from
70817         fileutils/configure.in)
70818         Check for gettimeofday.
70819
70820 1999-12-20  Jim Meyering  <meyering@ascend.com>
70821
70822         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
70823         autoconf-2.14a-1999-12-20.
70824
70825 1999-12-19  Jim Meyering  <meyering@ascend.com>
70826
70827         * m4/lstat-slash.m4: New file.
70828         * m4/jm-macros.m4: Use the new macro:
70829         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
70830
70831 1999-12-07  Jim Meyering  <meyering@ascend.com>
70832
70833         * m4/perl.m4: Require that File::Compare be available, too.
70834         Too many systems seem to lack it.
70835
70836         * m4/strftime.m4: Add checks for most of the cpp macros tested in
70837         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
70838
70839 1999-11-18  Paul Eggert  <eggert@twinsun.com>
70840
70841         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
70842         problem with the QNX 4.25 shell, which doesn't propagate exit
70843         status of failed commands inside shell assignments.
70844
70845 1999-11-17  Jim Meyering  <meyering@ascend.com>
70846
70847         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
70848
70849 1999-11-07  Jim Meyering  <meyering@ascend.com>
70850
70851         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
70852
70853 1999-11-06  Jim Meyering  <meyering@ascend.com>
70854
70855         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
70856         * m4/jm-macros.m4 (jm_MACROS): Use it here.
70857
70858 1999-11-05  Jim Meyering  <meyering@ascend.com>
70859
70860         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
70861         configure.in of textutils, fileutils, and sh-utils into this one
70862         (shared between those packages) file.
70863         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
70864         AC_STRUCT_ST_BLKSIZE.
70865
70866 1999-11-03  Jim Meyering  <meyering@ascend.com>
70867
70868         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
70869         of AC_CHECK_TYPE checks includes unistd.h.
70870         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
70871         Suggestion from Akim Demaille.
70872
70873 1999-10-30  Jim Meyering  <meyering@ascend.com>
70874
70875         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
70876         m4-quoted string.
70877         * m4/ls-mntd-fs.m4: Likewise.
70878         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
70879         * m4/jm-winsz1.m4: Likewise.
70880
70881         * m4/const.m4: Remove file, since the fix made it into the experimental
70882         version of autoconf.
70883         * m4/mktime.m4: Likewise.
70884
70885         * m4/check-type.m4: Remove file, now that the latest version of
70886         AC_CHECK_TYPE takes a third arg to specify additional #includes.
70887
70888         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
70889         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
70890         AC_CHECK_TYPE.
70891
70892 1999-10-04  Jim Meyering  <meyering@ascend.com>
70893
70894         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
70895
70896 1999-09-22  Paul Eggert  <eggert@twinsun.com>
70897
70898         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
70899         2.95.1 bug with HP-UX 10.20.
70900
70901 1999-09-17  Jim Meyering  <meyering@ascend.com>
70902
70903         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
70904         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
70905         due to missing strdup (against sh-utils-2.0).
70906
70907 1999-08-29  Jim Meyering  <meyering@ascend.com>
70908
70909         * m4/jm-macros.m4: Require jm_BISON.
70910         * m4/bison.m4: New file.
70911
70912 1999-08-17  Paul Eggert  <eggert@twinsun.com>
70913
70914         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
70915         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
70916
70917 1999-08-05  Jim Meyering  <meyering@ascend.com>
70918
70919         * m4/getline.m4: Rename test file from conftestdata to conftest.data
70920         to avoid conflicts with `conftest' on 8+3 filesystems.
70921         Suggestion from Eli Zaretskii.
70922
70923 1999-08-04  Jim Meyering  <meyering@ascend.com>
70924
70925         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
70926         fileutils and sh-utils (textutils's getline test was inadequate).
70927         (AM_FUNC_GETLINE): Run this test.
70928         (AC_CHECK_FUNCS): Check for getdelim.
70929         Reported by Bob Proulx.
70930
70931 1999-08-02  Jim Meyering  <meyering@ascend.com>
70932
70933         * m4/jm-macros.m4: Add a comment.
70934
70935 1999-08-01  Paul Eggert  <eggert@twinsun.com>
70936
70937         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
70938         <inttypes.h> defines strtoumax as a macro (and not as a
70939         function).
70940
70941 1999-08-01  Paul Eggert  <eggert@twinsun.com>
70942
70943         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
70944         that we can shift, multiply and divide unsigned long long
70945         values; Ultrix cc can't do it.
70946
70947 1999-08-01  Paul Eggert  <eggert@twinsun.com>
70948
70949         * m4/mktime.m4: New file, which is a preview of what should appear
70950         in the next public autoconf release.
70951
70952 1999-08-01  Paul Eggert  <eggert@twinsun.com>
70953
70954         * m4/lfs.m4: Remove this file.
70955         * m4/largefile.m4: New file.  It contains the old contents of
70956         lfs.m4, except that all names with prefix AC_LFS have been
70957         changed to use the prefix AC_SYS_LARGEFILE instead, to be
70958         compatible with future autoconf versions.  Also, some minor m4
70959         quoting problems have been fixed.
70960
70961 1999-08-01  Paul Eggert  <eggert@twinsun.com>
70962
70963         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
70964         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
70965         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
70966         and simplify the shell code.
70967
70968 1999-08-01  Jim Meyering  <meyering@ascend.com>
70969
70970         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
70971         m4.
70972
70973 1999-07-20  Jim Meyering  <meyering@ascend.com>
70974
70975         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
70976
70977 1999-07-15  Jim Meyering  <meyering@ascend.com>
70978
70979         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
70980
70981 1999-05-22  Jim Meyering  <meyering@ascend.com>
70982
70983         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
70984
70985 1999-05-20  Jim Meyering  <meyering@ascend.com>
70986
70987         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
70988         Add a colon after each `then' in case $4 is empty.
70989
70990 1999-05-16  Jim Meyering  <meyering@ascend.com>
70991
70992         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
70993
70994 1999-05-10  Jim Meyering  <meyering@ascend.com>
70995
70996         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
70997
70998         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
70999         AC_FUNC_MKTIME.
71000
71001 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
71002
71003         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
71004
71005 1999-05-04  Paul Eggert  <eggert@twinsun.com>
71006
71007         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
71008         not CPPFLAGS, so that linking works correctly in IRIX.
71009
71010 1999-04-30  Paul Eggert  <eggert@twinsun.com>
71011
71012         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
71013
71014 1999-04-20  Paul Eggert  <eggert@twinsun.com>
71015
71016         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
71017         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
71018         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
71019         jm_AC_TYPE_UNSIGNED_LONG_LONG.
71020         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
71021
71022         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
71023
71024 1999-04-20  Jim Meyering  <meyering@ascend.com>
71025
71026         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
71027         AC_REPLACE xstroull if necessary.  From Paul Eggert.
71028         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
71029
71030 1999-04-18  Jim Meyering  <meyering@ascend.com>
71031
71032         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
71033         * m4/jm-macros.m4: Use it.
71034
71035 1999-04-06  Jim Meyering  <meyering@ascend.com>
71036
71037         * m4/strftime.m4: Remove test for %f.
71038
71039 1999-03-29  Jim Meyering  <meyering@ascend.com>
71040
71041         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
71042         superset of the AC_TYPE_* checks in the textutils, fileutils,
71043         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
71044         AC_TYPE_PID_T.
71045
71046 1999-03-28  Jim Meyering  <meyering@ascend.com>
71047
71048         * m4/jm-macros.m4: Define GNU_PACKAGE here.
71049         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
71050         replaced e.g., in the *.sh files of the sh-utils.
71051
71052 1999-03-20  Jim Meyering  <meyering@ascend.com>
71053
71054         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
71055         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
71056         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
71057
71058 1999-03-19  Jim Meyering  <meyering@ascend.com>
71059
71060         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
71061
71062 1999-03-12  Jim Meyering  <meyering@ascend.com>
71063
71064         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
71065
71066 1999-03-07  Jim Meyering  <meyering@ascend.com>
71067
71068         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
71069         declared.
71070
71071 1999-02-17  Jim Meyering  <meyering@ascend.com>
71072
71073         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
71074         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
71075
71076 1999-02-07  Jim Meyering  <meyering@ascend.com>
71077
71078         * m4/group-member.m4: New file -- extracted from sh-utils'
71079         configure.in.
71080
71081         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
71082         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
71083
71084 1999-02-06  Jim Meyering  <meyering@ascend.com>
71085
71086         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
71087         * m4/fnmatch.m4: Likewise.
71088         * m4/getgroups.m4: Likewise.
71089         * m4/lstat.m4: Likewise.
71090         * m4/malloc.m4: Likewise.
71091         * m4/putenv.m4: Likewise.
71092         * m4/realloc.m4: Likewise.
71093         * m4/regex.m4: Likewise.
71094         * m4/stat.m4: Likewise.
71095         * m4/strftime.m4: Likewise.
71096         Suggestion from Alain Magloire.
71097
71098         * m4/chown.m4: Use `.$ac_objext', not `.o'.
71099         * m4/fnmatch.m4: Likewise.
71100         * m4/getgroups.m4: Likewise.
71101         * m4/getline.m4: Likewise.
71102         * m4/lstat.m4: Likewise.
71103         * m4/malloc.m4: Likewise.
71104         * m4/memcmp.m4: Likewise.
71105         * m4/putenv.m4: Likewise.
71106         * m4/realloc.m4: Likewise.
71107         * m4/regex.m4: Likewise.
71108         * m4/stat.m4: Likewise.
71109         * m4/strftime.m4: Likewise.
71110         Suggestion from Alain Magloire.
71111
71112         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
71113         an argument.
71114
71115         * m4/regex.m4: Add a run-time Test for proper operation of
71116         re_compile_pattern.
71117
71118 1999-01-31  Jim Meyering  <meyering@ascend.com>
71119
71120         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
71121
71122 1999-01-30  Jim Meyering  <meyering@ascend.com>
71123
71124         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
71125
71126         * m4/jm-mktime.m4: Make this a wrapper around the official
71127         AM_FUNC_MKTIME rather than my private copy, now that the official one
71128         is up to date.
71129         * m4/mktime.m4: Remove file.
71130
71131         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
71132         * m4/uptime.m4: Likewise.
71133         * m4/uintmax_t.m4: Likewise.
71134
71135 1999-01-28  Jim Meyering  <meyering@ascend.com>
71136
71137         * m4/jm-macros.m4: Use jm_AFS.
71138         * m4/afs.m4: New file (from fileutils' configure.in).
71139
71140         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
71141         * m4/chown.m4: Likewise.
71142         * m4/d-ino.m4: Likewise.
71143         * m4/d-type.m4: Likewise.
71144         * m4/fnmatch.m4: Likewise.
71145         * m4/getgroups.m4: Likewise.
71146         * m4/gettext.m4: Likewise.
71147         * m4/jm-mktime.m4: Likewise.
71148         * m4/jm-winsz2.m4: Likewise.
71149         * m4/lcmessage.m4: Likewise.
71150         * m4/ls-mntd-fs.m4: Likewise.
71151         * m4/malloc.m4: Likewise.
71152         * m4/memcmp.m4: Likewise.
71153         * m4/putenv.m4: Likewise.
71154         * m4/realloc.m4: Likewise.
71155         * m4/st_mtim.m4: Likewise.
71156         * m4/strftime.m4: Likewise.
71157
71158 1999-01-16  Jim Meyering  <meyering@ascend.com>
71159
71160         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
71161         (ARGMATCH_DIE_DECL): Define.
71162
71163 1999-01-12  Jim Meyering  <meyering@ascend.com>
71164
71165         * m4/Makefile.am.in: Rewrite to avoid using fmt.
71166         Reported by Lars Hecking.
71167
71168 1999-01-10  Jim Meyering  <meyering@ascend.com>
71169
71170         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
71171         gross kludge.
71172         * m4/inttypes_h.m4: Likewise.
71173         * m4/lstat.m4: Likewise.
71174         * m4/malloc.m4: Likewise.
71175         * m4/readdir.m4: Likewise.
71176         * m4/realloc.m4: Likewise.
71177         * m4/st_dm_mode.m4: Likewise.
71178         * m4/stat.m4: Likewise.
71179         * m4/utimbuf.m4: Likewise.
71180         * m4/utimes.m4: Likewise.
71181
71182         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
71183         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
71184         comments in config.h.in are meaningful.
71185
71186         * m4/jm-macros.m4: Require autoconf-2.13 here.
71187
71188         * m4/regex.m4: By default, don't use the included regex.c on systems
71189         with glibc 2.  Suggestion from Uli Drepper.
71190
71191 1999-01-02  Jim Meyering  <meyering@ascend.com>
71192
71193         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
71194
71195 1998-12-18  Jim Meyering  <meyering@ascend.com>
71196
71197         * m4/Makefile.am.in (Makefile.am): Simplify rule.
71198         Based on a suggestion from Lars Hecking.
71199
71200 1998-11-16  Paul Eggert  <eggert@twinsun.com>
71201
71202         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
71203
71204 1998-11-16  Jim Meyering  <meyering@ascend.com>
71205
71206         * m4/lfs.m4: Double-quote the `uname...` expression.
71207
71208 1998-11-14  Jim Meyering  <meyering@ascend.com>
71209
71210         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
71211         * m4/stat.m4: Likewise.
71212
71213 1998-11-03  Jim Meyering  <meyering@ascend.com>
71214
71215         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
71216         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
71217
71218 1998-10-18  Jim Meyering  <meyering@ascend.com>
71219
71220         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
71221
71222 1998-10-17  Jim Meyering  <meyering@ascend.com>
71223
71224         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
71225         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
71226         calls for those previously hard-coded headers.  Instead, take a new
71227         parameter.
71228         (jm_CHECK_DECLARATIONS): Reflect interface change.
71229         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
71230         (jm_CHECK_DECL_LOCALTIME_R): New macro.
71231
71232         * m4/mktime.m4: Test for spring-forward gap before long-running test.
71233
71234 1998-10-14  Jim Meyering  <meyering@ascend.com>
71235
71236         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
71237         instead of "TZ=America/Vancouver".  From Paul Eggert.
71238
71239 1998-10-11  Jim Meyering  <meyering@ascend.com>
71240
71241         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
71242         This adds a test for a recently added compatibility fix for mktime.c.
71243         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
71244
71245 1998-09-27  Jim Meyering  <meyering@ascend.com>
71246
71247         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
71248
71249         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
71250         ../configure.in, including a change from Gordon Matzigkeit to allow
71251         cross-compiling for the Hurd.
71252
71253         * m4/glibc.m4: New file/macro to test for the GNU C Library
71254         versions 1 and 2.  From Gordon Matzigkeit.
71255         Indent.
71256
71257 1998-09-21  Jim Meyering  <meyering@ascend.com>
71258
71259         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
71260
71261 1998-08-18  Paul Eggert  <eggert@twinsun.com>
71262
71263         Port nanosecond-resolution times to UnixWare 2.1.2 and
71264         pedantic Solaris 2.6.
71265
71266         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
71267         AC_STRUCT_ST_MTIM.
71268         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
71269         Generate name of ns member, instead of just 1 or undef.
71270         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
71271
71272 1998-08-15  Jim Meyering  <meyering@ascend.com>
71273
71274         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
71275         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
71276         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
71277         instead of jm_TYPE_SSIZE_T.
71278
71279 1998-08-12  Jim Meyering  <meyering@ascend.com>
71280
71281         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
71282
71283 1998-08-02  Jim Meyering  <meyering@ascend.com>
71284
71285         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
71286         in acconfig.h manually.
71287
71288 1998-07-31  Paul Eggert  <eggert@twinsun.com>
71289
71290         * m4/st_mtim.m4: New file.
71291
71292 1998-07-28  Jim Meyering  <meyering@ascend.com>
71293
71294         * m4/utimes.m4: Undef stat.
71295
71296 1998-07-25  Jim Meyering  <meyering@ascend.com>
71297
71298         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
71299         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
71300
71301 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
71302
71303         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
71304         uid and gid actually remain unchanged.
71305
71306 1998-07-07  Jim Meyering  <meyering@ascend.com>
71307
71308         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
71309
71310 1998-07-04  Jim Meyering  <meyering@ascend.com>
71311
71312         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
71313         to prove that this macro can be used in packages without regex.c.
71314
71315 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
71316
71317         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
71318         is to be used.
71319
71320 1998-07-03  Jim Meyering  <meyering@ascend.com>
71321
71322         * m4/gettext.m4: Add -lintl if it's found to be necessary.
71323
71324         * m4/gettext.m4: New file -- from gettext-0.10.35.
71325         * m4/lcmessage.m4: Likewise.
71326         * m4/progtest.m4: Likewise.
71327
71328         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
71329         * m4/jm-macros.m4: Require the new macro.
71330
71331 1998-06-29  Jim Meyering  <meyering@ascend.com>
71332
71333         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
71334         for the definition of NGROUPS (used in a system header included
71335         by sys/mount.h).
71336
71337 1998-06-28  Jim Meyering  <meyering@ascend.com>
71338
71339         * m4/ls-mntd-fs.m4: New file.
71340         * m4/fstypename.m4: New file.
71341
71342         * m4/jm-macros.m4: Require the new macro.
71343         * m4/jm-glibc-io.m4: New file.
71344
71345 1998-05-19  Jim Meyering  <meyering@ascend.com>
71346
71347         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
71348         * m4/lchown.m4: New file.
71349
71350         * m4/Makefile.am.in: New file.
71351         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
71352
71353 1998-05-14  Jim Meyering  <meyering@ascend.com>
71354
71355         * m4/Makefile.am (EXTRA_DIST): Add them.
71356         * m4/jm-macros.m4: New file.
71357         * m4/utimbuf.m4: New file.
71358
71359 1998-05-12  Jim Meyering  <meyering@ascend.com>
71360
71361         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
71362
71363 1998-05-11  Jim Meyering  <meyering@ascend.com>
71364
71365         * m4/isc-posix.m4: New file.
71366
71367 1998-05-10  Jim Meyering  <meyering@ascend.com>
71368
71369         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
71370
71371 1998-05-09  Jim Meyering  <meyering@ascend.com>
71372
71373         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
71374         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
71375         with automake.
71376
71377         * m4/ssize_t.m4: New file.
71378         * m4/mktime.m4: Remove file -- the new automake has this now.
71379
71380 1998-04-26  Jim Meyering  <meyering@ascend.com>
71381
71382         * m4/assert.m4: New file.
71383         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
71384
71385 1998-04-05  Jim Meyering  <meyering@ascend.com>
71386
71387         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
71388         (jm_PREREQ): Use it here.
71389
71390 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
71391
71392         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
71393         in acconfig.h.
71394
71395 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
71396
71397         * m4/prereq.m4: New file.
71398         * m4/error.m4: New file.
71399         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
71400
71401 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
71402
71403         * m4/getline.m4: Don't set am_cv_func_working_getline before the
71404         cache-check for the same variable -- that defeated the purpose of
71405         the test; the test program was never run.  This was a problem only
71406         on systems with losing getline functions -- HP-UX 10.20 is one.
71407         Reported by Bjorn Helgaas.
71408
71409 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
71410
71411         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
71412
71413 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
71414
71415         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
71416
71417         * m4/const.m4: New file.  Use an initializer in this declaration
71418         typedef int charset[2]; const charset x;
71419         Reported by Bob Glickstein.
71420
71421 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
71422
71423         * m4/chown.m4: Fix reversed types on -1 args to chown.
71424         From Kaveh Ghazi.
71425
71426 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
71427
71428         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
71429         Add lseek and memchr.
71430
71431         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
71432         T.E.Dickey <dickey@clark.net> said that some older preprocessors
71433         have a 20-character limit on names.
71434
71435 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
71436
71437         * m4/inttypes_h.m4: New file.
71438         * m4/uintmax_t.m4: New file.
71439         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
71440
71441
71442         -----
71443
71444         Local Variables:
71445         coding: utf-8
71446         End:
71447
71448         Copyright (C) 1997-2010 Free Software Foundation, Inc.
71449
71450         Copying and distribution of this file, with or without
71451         modification, are permitted provided the copyright notice
71452         and this notice are preserved.